Description
The routine CPXgetstat() is used to access the solution status of the problem after an LP or mixed integer optimization. Return Value
If no solution exists, CPXgetstat() returns the value 0. When a solution does exist, the return values are as shown in Appendix B, Solution Status Codes.
For status codes including the
CPX_NUM_BEST prefix, the algorithm could not converge to the requested tolerances, but a "best possible" solution was found (given the numerical properties of the problem).CPX_IT_LIM_INFEAS will be returned if the last iterate is primal or dual infeasible. Otherwise, CPX_IT_LIM_FEAS is returned to signify a primal and dual feasible point. If the time limit is exceeded, the return value CPX_TIME_LIM_INFEAS will be returned if the last iterate is primal or dual infeasible. Otherwise, CPX_TIME_LIM_FEAS is returned to signify a primal and dual feasible point.Synopsis
int CPXgetstat (CPXENVptr env,
CPXLPptr lp);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX routines.
CPXLPptr lpA pointer to a CPLEX LP problem object as returned by
CPXcreateprob().
lpstat = CPXgetstat (env, lp);