Previous Page: CPXgetmipitcntFirst PageNext Page: CPXgetmipslack

CPXgetmipobjval


Usage

Mixed Integer Users Only

Description

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

Return Value

The routine returns a zero on success, and a nonzero if an error occurs. If no integer solution exists, the value CPXERR_NO_INT_SOLUTION is returned.

Synopsis

int CPXgetmipobjval (CPXENVptr env
                     CPXLPptr lp,
                     double *objval_p);

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

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

Example

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

See Also

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

Previous Page: CPXgetmipitcntFirst PageNext Page: CPXgetmipslack