Reports whether the invoking search limit has been reached.

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

Syntax

C#
public abstract bool Check()
Visual Basic
Public MustOverride Function Check As Boolean

Return Value

A Boolean value reporting whether the limit has been reached.

Remarks

This method must be implemented by the user.

This method is called for the current node to check whether the limit implemented by the invoking search limit has been reached. If the limit has been reached, this virtual method should return true. If so, the unexplored subtree of the current node as well as the node itself will simply be discarded.

Cplex initializes the search limit object to the node to be evaluated before calling method check. Information about this node can be queried through the protected API of class Cplex.SearchLimit.

See Also