Returns a goal to limit a search tree.

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

Syntax

C#
public Cplex..::..Goal LimitSearch(
	Cplex..::..Goal goal,
	Cplex..::..SearchLimit limit
)
Visual Basic
Public Function LimitSearch ( _
	goal As Cplex..::..Goal, _
	limit As Cplex..::..SearchLimit _
) As Cplex..::..Goal

Return Value

A goal imposing the search tree defined by goal to search limit limit.

Remarks

This method creates and returns a goal that limits the exploration of the search tree defined by goal, as specified by limit. All nodes in a subtree that have not yet been explored when the limit for that subtree is reached will be discarded.

See Also