Initializing help system before first use

XPRSchgrhs

XPRSchgrhs


Purpose
Used to change right–hand side values of the problem.
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 values to change.
mindex 
Integer array of length nels containing the indices of the rows on which the right hand side values 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