Initializing help system before first use

XPRSscale (SCALE)

XPRSscale

SCALE


Purpose
Re-scales the current matrix.
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

© 2001-2020 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.