Previous Page: CPXgetsosFirst PageNext Page: CPXgetstrparam

CPXgetstat


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).

For Barrier, if the iteration limit is exceeded, the return value 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);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX routines.

CPXLPptr lp
A pointer to a CPLEX LP problem object as returned by CPXcreateprob().

Example

lpstat = CPXgetstat (env, lp);

See Also

Example lpex2.c in the CPLEX User's Manual.

Previous Page: CPXgetsosFirst PageNext Page: CPXgetstrparam