Initializing help system before first use

XPRSchgrhsrange

Purpose
Used to change the range for a row of the problem matrix.
Topic area
Synopsis
int XPRS_CC XPRSchgrhsrange(XPRSprob prob, int nrows, const int rowind[], const double rng[]);
Arguments
prob 
The current problem.
nrows 
Number of range elements to change.
rowind 
Integer array of length nrows containing the indices of the rows on which the range elements will change.
rng 
Double array of length nrows 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:

rowind[0] = 5; rng[0] = 2.0;
XPRSchgrhsrange(prob,1,rowind,rng);
See also example repair.c.
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-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.