Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0
Syntax
| C# |
|---|
public virtual void Init() |
| Visual Basic |
|---|
Public Overridable Sub Init |
Remarks
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. 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.