Purpose
Retrieve the status setting of a constraint
Synopsis
int XPRS_CC XSLPgetrow(XSLPprob Prob, int RowIndex, int *Status);
Arguments
|
Prob
|
The current SLP problem.
|
|
RowIndex
|
The index of the matrix row whose data is to be obtained.
This respects the setting of XPRS_CSTYLE.
|
|
Status
|
Address of an integer holding a bitmap to receive the status settings.
|
Example
This recovers the status of the rows of the matrix of the current problem
and reports those which are flagged as enforced constraints.
int iRow, nRow, CStyle, Status;
XSLPgetintattrib(Prob, XPRS_ROWS, &nRow);
XSLPgetintattrib(Prob, XPRS_CSTYLE, &CStyle);
CStyle = 1-CStyle;
for (iRow=0;iRow<nRow;iRow++) {
XSLPgetrow(Prob, iRow+CStyle, &Status);
if (Status & 0x800) printf("\nRow %d is enforced");
}
Further information
See the section on bitmap settings for details on the possible information
in Status.
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.