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);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX routines.
CPXLPptr lpA pointer to a CPLEX LP problem object as returned by
CPXcreateprob().
double *objval_pA pointer to a variable of type double where the objective value is stored.
status = CPXgetobjval (env, lp, &objval);