Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0
Syntax
| C# |
|---|
public virtual double GetBestObjValue() |
| Visual Basic |
|---|
Public Overridable Function GetBestObjValue As Double |
Return Value
A bound on the optimal solution value.
Remarks
It is computed for a minimization problem as the minimum objective function value of all remaining unexplored nodes. Similarly, it is computed for a maximization problem as the maximum objective function value of all remaining unexplored nodes.
For a regular MIP optimization, this value is also the best known bound on the optimal solution value of the MIP problem. In fact, when a problem has been solved to optimality, this value matches the optimal solution value.
However, for the method populate, the value can also exceed the optimal solution value if CPLEX has already solved the model to optimality but continues to search for additional solutions.
ILOG.Concert.Exception If the method fails, an exception of type ILOG.Concert.Exception, or one of its derived classes, is thrown.