Initializing help system before first use

XPRSchgrhsrange

XPRSchgrhsrange


Purpose
Used to change the range for a row of the problem matrix.
Synopsis
int XPRS_CC XPRSchgrhsrange(XPRSprob prob, int nels, const int mindex[], const double rng[]);
Arguments
prob 
The current problem.
nels 
Number of range elements to change.
mindex 
Integer array of length nels containing the indices of the rows on which the range elements will change.
rng 
Double array of length nels giving the range values.
Example
Here, the constraint x + y ≤ 10 (with row index 5) in the problem is changed to 8 ≤ x + y ≤ 10:
mindex[0] = 5; rng[0] = 2.0;
XPRSchgrhsrange(prob,1,mindex,rng);
Further information
If the range specified on the row is r, what happens depends on the row type and value of r. It is possible to convert non-range rows using this routine.

Value of r   Row type   Effect
r ≥ 0   = b, ≤ b   b-r ≤ ∑ajxj ≤ b
r ≥ 0   ≥ b   b ≤ ∑ajxj ≤ b+r
r < 0   = b, ≤ b   b ≤ ∑ajxj ≤ b-r
r < 0   ≥ b   b+r ≤ ∑ajxj ≤ b


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.