XPRSpivot


Purpose
Performs a simplex pivot by bringing variable in into the basis and removing out.
Synopsis
int XPRS_CC XPRSpivot(XPRSprob prob, int in, int out);
Arguments
prob 
The current problem.
in 
Index of row or column to enter basis.
out 
Index of row or column to leave basis.
Error values
425 
in is invalid (out of range or already basic).
426 
out is invalid (out of range or not eligible, e.g. nonbasic, zero pivot, etc.).
Related Controls
Double
Pivot tolerance.
Relative pivot tolerance.

Example
The following brings the 7th variable into the basis and removes the 5th:
XPRSpivot(prob,6,4)
Further information
Row indices are in the range 0 to ROWS-1, whilst columns are in the range ROWS+SPAREROWS to ROWS+SPAREROWS+COLS-1.
Related topics
XPRSgetpivotorder, XPRSgetpivots.


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