Executes the invoking node evaluator.

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

Syntax

C#
protected abstract double Evaluate()
Visual Basic
Protected MustOverride Function Evaluate As Double

Return Value

The evaluation value of the current node.

Remarks

Cplex calls this method for every node controlled by the invoking evaluator in order to compute an evaluation value for the node. These values are then used to select the next node to be processed. Given two nodes controlled by one evaluator, by default, the evaluator chooses the node with the lower evaluation value. However, this can be changed by overriding the method subsume.

Cplex calls the method evaluate only once for every node, and reuses the returned value for that node whenever comparing it with another node.

When this method is called, the evaluator has been initialized to the node to evaluated, such that the other methods of the invoking evaluator can be called to query information about this node. The node at which the evaluator has been initialized is referred to as the current node.

By returning Double.MAX_VALUE in this function, you instruct Cplex to prune the current node.

See Also