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