Initializing help system before first use

XPRSscale (SCALE)

Purpose
Re-scales the current matrix.
Topic area
Synopsis
int XPRS_CC XPRSscale(XPRSprob prob, const int rowscale[], const int colscale[]);
SCALE
Arguments
prob 
The current problem.
rowscale 
Integer array of size ROWS containing the powers of 2 with which to scale the rows, or NULL if not required.
colscale 
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. This function currently does not apply to general nonlinear problems.
2. If rowscale and colscale 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.
3. Any existing scaling will be replaced by the scaling specified by rowscale and colscale.
4. This function cannot be called while the current problem is being solved or when it is in an interrupted state. Use XPRSpostsolve to restore the problem to a non-solving state.
Related topics

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