XPRSchgrhs


Purpose
Used to change right hand side elements of the matrix.
Synopsis
int XPRS_CC XPRSchgrhs(XPRSprob prob, int nels, const int mindex[], const double rhs[]);
Arguments
prob 
The current problem.
nels 
Number of right hand side elements to change.
mindex 
Integer array of length nels containing the indices of the rows on which the right hand side elements will change.
rhs 
Double array of length nels giving the right hand side values.
Example
Here we change the three right hand sides in rows 2, 6, and 8 to new values:
mindex[0] = 2; mindex[1] = 8; mindex[2] = 6;
rhs[0] = 5.0; rhs[1] = 3.8; rhs[2] = 5.7;
XPRSchgrhs(prob,3,mindex,rhs);
Related topics
XPRSchgcoef, XPRSchgmcoef, XPRSchgrhsrange, XPRSgetrhs, XPRSgetrhsrange .


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