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