Usage
Mixed Integer Users OnlyDescription
The routine CPXgetbestobjval() is used to access the objective function value of the best remaining node in the branch-and-bound tree. Return Value
The routine returns a zero on success; otherwise it returns a nonzero value.Synopsis
int CPXgetbestobjval (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 the location where the best node objective value is returned. If the branch-and-bound tree has been exhausted the best node value is set to a large number.
status = CPXgetbestobjval (env, lp, &objval);