Namespace: ILOG.OPL
Assembly: oplall (in oplall.dll)
Syntax
| C# |
|---|
public abstract class HeuristicCallback : Cplex..::..ControlCallback |
Remarks
During branching, the heuristic callback is called after each node subproblem has been solved, including any cuts that may have been newly generated. Before branching, at the root node, the heuristic callback is also called before each round of cuts is added to the problem and re-solved.
The callback also provides support for implementing simplex-based heuristics for constructing solutions, by allowing you to change the bounds of variables and re-solve the node relaxation. Changing the bounds in the heuristic callback has no effect on the search once the callback has completed. This callback will be called after the node relaxation (including all cuts generated at that node) has been solved.
The constructor and methods of this class are protected to make sure that they are used only to derive a user-written callback class or to implement the main method in it.
Inheritance Hierarchy
ILOG.OPL..::..Cplex..::..Callback
ILOG.OPL..::..Cplex..::..MIPInfoCallback
ILOG.OPL..::..Cplex..::..MIPCallback
ILOG.OPL..::..Cplex..::..ControlCallback
ILOG.OPL..::..Cplex..::..HeuristicCallback