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.
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.