XSLPgetrowstatus
XSLPgetrowstatus |
Purpose
Retrieve the status setting of a constraint
Synopsis
int XPRS_CC XSLPgetrowstatus(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.
|
|
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, Status;
XSLPgetintattrib(Prob, XPRS_ROWS, &nRow);
for (iRow=0;iRow<nRow;iRow++) {
XSLPgetrowstatus(Prob, iRow, &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
