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 Maths/leq.png 10 in the problem is changed to 8 Maths/leq.png x + y Maths/leq.png 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 Maths/geq.png 0   = b, Maths/leq.png b   b-r Maths/leq.png Maths/sumsm.pngajxj Maths/leq.png b
r Maths/geq.png 0   Maths/geq.png b   b Maths/leq.png Maths/sumsm.pngajxj Maths/leq.png b+r
r < 0   = b, Maths/leq.png b   b Maths/leq.png Maths/sumsm.pngajxj Maths/leq.png b-r
r < 0   Maths/geq.png b   b+r Maths/leq.png Maths/sumsm.pngajxj Maths/leq.png b


Related topics
XPRSchgcoef, XPRSchgmcoef, XPRSchgrhs, XPRSgetrhsrange .


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.