Previous Page: CPXgetobjsenFirst PageNext Page: CPXgetorder

CPXgetobjval


Description

The routine CPXgetobjval() is used to return the LP or QP solution objective value.

Return Value

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

Synopsis

int CPXgetobjval (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 a variable of type double where the objective value is stored.

Example

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

See Also

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

Previous Page: CPXgetobjsenFirst PageNext Page: CPXgetorder