NO FRAMES

CPXgetbestobjval

public int CPXgetbestobjval(CPXCENVptr env, CPXCLPptr lp, double * objval_p)
Definition file: cplex.h

The routine CPXgetbestobjval accesses the currently best known bound on the optimal solution value of a MIP model. When a model has been solved to optimality, this value matches the optimal solution value. Otherwise, this value is computed for a minimization (maximization) problem as the minimum (maximum) objective function value of all remaining unexplored nodes.

Example

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

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

A pointer to a CPLEX problem object as returned by CPXcreateprob.

objval_p

A pointer to the location where the best node objective value is returned.

Returns:

The routine returns zero if successful and nonzero if an error occurs.