NO FRAMES

CPXgetobjval

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

The routine CPXgetobjval is used to return the LP, QCP or QP solution objective value.

Example


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

See also the example lpex2.c in the ILOG CPLEX User's Manual and 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 a variable of type double where the objective value is stored.

Example


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

See also the example lpex2.c in the ILOG CPLEX User's Manual and in the standard distribution.

Returns:

The routine returns zero on success and nonzero if no solution exists.