Purpose
Returns the
row types for the rows in a given range.
Synopsis
int XPRS_CC XPRSgetrowtype(XPRSprob prob, char qrtype[], int first, int last);
Arguments
prob
|
The current problem.
|
qrtype
|
Character array of length last-first+1 characters where the row types will be returned:
N
|
indicates a free constraint;
|
L
|
indicates a  constraint;
|
E
|
indicates an = constraint;
|
G
|
indicates a  constraint;
|
R
|
indicates a range constraint.
|
|
first
|
First row in the range.
|
last
|
Last row in the range.
|
Example
The following example retrieves row types into an array
qrtype
:
int rows;
char *qrtype;
...
XPRSgetintattrib(prob,XPRS_ROWS,&rows);
qrtype = (char *) malloc(sizeof(char)*rows);
XPRSgetrowtype(prob,qrtype,0,rows-1);
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.