Namespace: ILOG.CPLEX
Assembly: ILOG.CPLEX (in ILOG.CPLEX.dll) Version: 22.1.1.0
Syntax
| C# |
|---|
protected virtual void Init() |
| Visual Basic |
|---|
Protected Overridable Sub Init |
Remarks
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. Information about the node can be queried when this method is called.
The method init is called only once for an evaluator. This convention generally makes it 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.