NO FRAMES

CPXgetobjval

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

The routine CPXgetobjval accesses the 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.

Returns:

The routine returns zero if successful and nonzero if no solution exists.