ILOG CPLEX .NET Reference Manual

Cplex.SearchLimit.Init Method 

When a goal created with the method Cplex.LimitSearch is executed, Cplex calls this method after initializing the invoked search limit to the current node.

public virtual void Init();

Remarks

By overriding this method, users can initialize the search limit object.

The method init is called only once for a limit. This convention makes it generally not possible to use one limit object in two subtrees, because init would be called only in one subtree and thus the limit would not be correctly initialized for the other subtree. Use two separate instances of your limit instead to overcome this convention.

See Also

Cplex.SearchLimit Class | ILOG.CPLEX Namespace