XPRSgetrhs


Purpose
Returns the right hand side elements for the rows in a given range.
Synopsis
int XPRS_CC XPRSgetrhs(XPRSprob prob, double rhs[], int first, int last);
Arguments
prob 
The current problem.
rhs 
Double array of length last-first+1 where the right hand side elements are to be placed.
first 
First row in the range.
last 
Last row in the range.
Example
The following example retrieves the right hand side values of the problem:
int rows;
double *rhs;
...
XPRSgetintattrib(prob,XPRS_ROWS,&rows);
rhs = (double *) malloc(sizeof(double)*rows);
XPRSgetrhs(prob,rhs,0,rows-1);
Related topics
XPRSchgrhs, XPRSchgrhsrange, XPRSgetrhsrange.


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