Evaluates expr with respect to the current candidate solution.

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

Syntax

C#
public abstract double GetCandidateValue(
	INumExpr expr
)
Visual Basic
Public MustOverride Function GetCandidateValue ( _
	expr As INumExpr _
) As Double

Parameters

expr
Type: ILOG.Concert..::..INumExpr
The expression to evaluate.

Return Value

the value of expr with respect to the current candidate solution.

Remarks

This method can be invoked only in the context Callback.Context.Id.Candidate and if Cplex.Callback.Context.IsCandidatePoint() returns true.

Throws ILOG.Concert.Exception if an error occurs. Throws NullPointerException if expr is null.

See Also