XPRSscale (SCALE)
XPRSscale |
SCALE |
Purpose
Synopsis
int XPRS_CC XPRSscale(XPRSprob prob, const int mrscal[], const int mcscal[]);
SCALE
Arguments
prob
|
The current problem.
|
mrscal
|
Integer array of size
ROWS containing the powers of
2 with which to scale the rows, or
NULL if not required.
|
mcscal
|
Integer array of size
COLS containing the powers of
2 with which to scale the columns, or
NULL if not required.
|
Related controls
Integer
Type of scaling.
|
Example 1 (Library)
XPRSreadprob(prob,"jovial",""); XPRSalter(prob,"serious"); XPRSscale(prob,NULL,NULL); XPRSlpoptimize(prob,"");
This reads the MPS file
jovial.mat, modifies it according to instructions in the file
serious.alt, rescales the matrix and seeks the minimum objective value.
Example 2 (Console)
The equivalent set of commands for the Console user would be:
READPROB jovial ALTER serious SCALE LPOPTIMIZE
Further information
1. If
mrscal and
mcscal are both non-
NULL then they will be used to scale the matrix. Otherwise the matrix will be scaled according to the control
SCALING. This routine may be useful when the current matrix has been modified by calls to routines such as
XPRSalter (
ALTER),
XPRSchgmcoef and
XPRSaddrows.
2.
XPRSscale (
SCALE) cannot be called if the current matrix is presolved.
Related topics