Gets the objective of the current candidate solution.
Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0
Syntax
| C# |
|---|
public abstract double GetCandidateObjective() |
| Visual Basic |
|---|
Public MustOverride Function GetCandidateObjective As Double |
Return Value
The objective value of the current candidate solution.
Remarks
This method can be invoked only from the context Cplex.Callback.Context.Id.Candidate and if Cplex.Callback.Context.IsCandidatePoint() returns true; it throws an exception when invoked from another context.
Throws ILOG.Concert.Exception if an error occurs.