NO FRAMES

CPXgetstat

int CPXPUBLIC CPXgetstat(CPXCENVptr env, CPXCLPptr lp)
Definition file: cplex.h
Include files: cplex.h

The routine CPXgetstat is used to access the solution status of the problem after an LP, QP, QCP, or mixed integer optimization.

Example

 lpstat = CPXgetstat (env, lp);
 

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

A pointer to a CPLEX problem object as returned by CPXcreateprob.

Returns:

The routine returns the solution status of the most recent optimization performed on the CPLEX problem object. Return values are as shown in group optim.cplex.solutionstatus. For status code CPX_STAT_NUM_BEST, the algorithm could not converge to the requested tolerances due to numeric difficulties. The best solution found can be retrieved by the routine CPXsolution. Similarly, when an abort status is returned, the last solution computed before the algorithm aborted can be retrieved using CPXsolution. Use the query routines CPXsolninfo and CPXsolution to obtain further information about the current solution of an LP or QP.