Previous Page: CPXgetbaseFirst PageNext Page: CPXgetcallbackinfo

CPXgetbestobjval


Usage

Mixed Integer Users Only

Description

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);

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 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.

Example

status = CPXgetbestobjval (env, lp, &objval);
Previous Page: CPXgetbaseFirst PageNext Page: CPXgetcallbackinfo