Initializing help system before first use

problem.scale

problem.scale


Purpose
Re-scales the current problem.
Synopsis
problem.scale (mrscal, mcscal)
Arguments
mrscal 
Array of size ROWS containing the exponents of the powers of 2 with which to scale the rows, or None if not required.
mcscal 
Array of size COLS containing the exponents of the powers of 2 with which to scale the columns, or None if not required.
Example
p.read ("prob1", "")
p.scale ([1] * p.attributes.rows, [3] * p.attributes.cols)
p.lpoptimize ("")
This reads the MPS file prob1.mat, rescales the problem and seeks the minimum objective value.
Further information
1. If mrscal and mcscal are both non- None then they will be used to scale the problem. Otherwise the problem will be scaled according to the control SCALING. This routine may be useful when the current problem has been modified by calls to routines such as problem.chgmcoef and problem.addrows.
2. scale cannot be called if the current problem is presolved.
Related topics

© 2001-2019 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.