Initializing help system before first use

XPRBgetlpstat

XPRBgetlpstat


Purpose
Get the LP status.
Synopsis
int XPRBgetlpstat(XPRBprob prob);
Argument
prob 
Reference to a problem.
Return value
the problem has not been loaded, or error;
XPRB_LP_OPTIMAL 
LP optimal;
XPRB_LP_INFEAS 
LP infeasible;
XPRB_LP_CUTOFF 
the objective value is worse than the cutoff;
XPRB_LP_UNFINISHED 
LP unfinished;
XPRB_LP_UNBOUNDED 
LP unbounded;
XPRB_LP_CUTOFF_IN_DUAL 
LP cutoff in dual.
XPRB_LP_UNSOLVED 
LP problem is not solved.
XPRB_LP_NONCONVEX 
QP problem is nonconvex;
Example
The following returns the current LP status.
XPRBprob expl2;
int status;
   ...
expl2 = XPRBnewprob("example2");
XPRBlpoptimize(expl2, "");
status = XPRBgetlpstat(expl2);
Further information
The return value of this function provides LP status information from the Xpress Optimizer.
Related topics