NO FRAMES

CPXgetmipobjval

int CPXPUBLIC CPXgetmipobjval(CPXCENVptr env, CPXCLPptr lp, double * objval_p)
Definition file: cplex.h

The routine CPXgetmipobjval is used to access the mixed integer solution objective value.

Example

 status = CPXgetmipobjval (env, lp, &objval);
 

See also the example mipex1.c in the standard distribution.

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

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

objval_p

A pointer to the location where the mixed integer objective value is stored.

Example

 status = CPXgetmipobjval (env, lp, &objval);
 

See also the example mipex1.c in the standard distribution.

Returns:

The routine returns zero on success and nonzero if an error occurs. If no integer solution has been found, the value CPXERR_NO_INT_SOLN is returned.