Returns the depth of the current node in the search tree.

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

Syntax

C#
protected virtual long GetCurrentNodeDepth()
Visual Basic
Protected Overridable Function GetCurrentNodeDepth As Long

Return Value

The depth of the current node in the search tree.

Remarks

The root node has depth 0 (zero). The depth of other nodes is defined recursively as the depth of their parent node plus one. In other words, the depth of a node is its distance in terms of the number of branches from the root. Throws ILOG.Concert.Exception if invoked from a callback that is not in a node context (for example NodeCallback) or if an errors occurs during the query.

See Also