Returns the current objective value.

Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0

Syntax

C#
protected virtual double GetObjValue()
Visual Basic
Protected Overridable Function GetObjValue As Double

Return Value

The current objective function value.

Remarks

The current objective value is the objective value at the point when the callback is called. In the network simplex method, this objective value may not reflect the objective function defined for the model being solved, but an artificial phase 1 objective function used to achieve primal feasibility. Also, since the network optimizer sees only the embedded network part of the full model, the objective value may not reflect the objective function of the full model.

See Also