CPXgetbestobjval


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; and a nonzero if an error occurs.

Synopsis

  int CPXgetbestobjval (CPXCENVptr env,
                        CPXCLPptr lp,
                        double *objval_p);

Arguments

CPXCENVptr env

The pointer to the CPLEX environment as returned by CPXopenCPLEX().

CPXCLPptr lp

A pointer to a CPLEX 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: CPXgetbase Return to Top Next Page: CPXgetcallbackinfo