This method is called by Cplex
right before the first time evaluate
is called for a node and allows you to initialize the evaluator based on that node.
The method init
is called only once for an evaluator. This convention makes it generally impossible to use one evaluator object in two subtrees, because init
would be called only in one subtree and thus the evaluator would not be correctly initialized for the other subtree. Use two separate instances of your evaluator instead to overcome this convention.