XPRSgetunbvec
PurposeReturns the index vector which causes the primal simplex or dual simplex algorithm to determine that a matrix is primal or dual unbounded respectively.Synopsisint XPRS_CC XPRSgetunbvec(XPRSprob prob, int *junb);
Arguments
prob The current problem. junb Pointer to an integer where the vector causing the problem to be detected as being primal or dual unbounded will be returned. In the dual simplex case, the vector is the leaving row for which the dual simplex detected dual unboundedness. In the primal simplex case, the vector is the entering row junb (if junb is in the range 0 to ROWS-1) or column (variable) junb-ROWS-SPAREROWS (if junb is between ROWS+SPAREROWS and ROWS+SPAREROWS+COLS-1) for which the primal simplex detected primal unboundedness.Error value
A current problem is not available.Further informationWhen solving using the dual simplex method, if the problem is primal infeasible then XPRSgetunbvec returns the pivot row where dual unboundedness was detected. Also note that when solving using the dual simplex method, if the problem is primal unbounded then XPRSgetunbvec returns -1 since the problem is dual infeasible and not dual unbounded.Related topics
If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.