XPRSchgrhsrange
XPRSchgrhsrange |
Purpose
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