Initializing help system before first use

XPRSscale (SCALE)

Purpose
Re-scales the current matrix.
Topic area
Synopsis
int 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
Custom objective scaling factor.
Type of scaling.

Example 1 (Library)
XPRSreadprob(prob,"jovial","");
XPRSscale(prob,NULL,NULL);
XPRSlpoptimize(prob,"");
This reads the MPS file jovial.mat, rescales the matrix and seeks the optimal objective value.
Example 2 (Console)
The equivalent set of commands for the Console user would be:
READPROB jovial
SCALE
LPOPTIMIZE
Further information
1. This function currently does not apply to general nonlinear problems.
2. If rowscale and colscale are both NULL then the matrix will be scaled according to the current scaling controls ( SCALINGMETHOD, SCALINGORDER, SCALINGBIGM and SCALINGOPS). If rowscale or colscale or both are non- NULL, the values passed in those arrays will be used for scaling rows or columns or both, respectively.
3. Objective scaling is applied according to the control OBJSCALEFACTOR, independently of the rowscale and colscale arguments.
4. Any existing scaling will be replaced by the scaling specified by rowscale and colscale.
5. 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-2026 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.