Purpose
Get
a range value for a variable or constraint.
Synopsis
function getrange(w:integer, x:mpvar):real
function getrange(w:integer, c:linctr):real
Arguments
w
|
Which information to return. Possible values for a variable:
XPRS_UPACT
|
For a variable which is at one of its bounds, the largest value which that bound can take while the current basis remains optimal
|
XPRS_LOACT
|
For a variable which is at one of its bounds, the smallest value which that bound can take while the current basis remains optimal
|
XPRS_UUP
|
The change in objective value per unit increase in the variable activity, assuming the the current basis remains optimal
|
XPRS_UDN
|
The change in objective value per unit decrease in the variable activity, assuming the the current basis remains optimal
|
XPRS_UCOST
|
The largest value which this variable's objective coefficient can take while the current basis remains optimal
|
XPRS_LCOST
|
The smallest value which this variable's objective coefficient can take while the current basis remains optimal
|
Possible values for a constraint:
XPRS_UPACT
|
The largest value which the constraint RHS can take while the current basis remains optimal
|
XPRS_LOACT
|
The smallest value which the constraint RHS can take while the current basis remains optimal
|
XPRS_UUP
|
The change in objective value per unit increase in the constraint RHS, assuming the the current basis remains optimal
|
XPRS_UDN
|
The change in objective value per unit decrease in the constraint RHS, assuming the the current basis remains optimal
|
|
x
|
A variable of the problem
|
c
|
A constraint of the problem
|
Return value
Range information depending on the value of
w.
Further information
This function returns ranging information to be used for sensitivity analysis after the problem has been optimized. On MIP problems, discrete entities have to be ``fixed'' using the procedure
fixmipentities before this function can be called.
Related topics
Module
© 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.