Returns the objective value of a solution in the solution pool.
Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0
Syntax
| C# |
|---|
public virtual double GetObjValue( int soln ) |
| Visual Basic |
|---|
Public Overridable Function GetObjValue ( _ soln As Integer _ ) As Double |
Parameters
- soln
- Type: System..::..Int32
The index of the solution pool member for which to return the objective value. A value of Cplex.IncumbentId specifies that the value returned should correspond to the incumbent rather than a member of the solution pool.
Return Value
The objective value of a solution in the solution pool.
Remarks
ILOG.Concert.Exception If the method fails, an exception
of type ILOG.Concert.Exception, or
one of its derived classes, is thrown.