| Overview | Group | Tree | Graph | Deprecated | Index | Concepts |
Interface for CPLEX callback.
Any class to be used as a CPLEX generic callback must implement this interface.
See Also:
| Method Summary | |
|---|---|
public virtual void | invoke(Callback::Context const & context) |
| Method Detail |
|---|
This method invokes the CPLEX generic callback.
If an object is registered with CPLEX by means of the method
IloCplex::use(Callback::Function, long),
then CPLEX will invoke this function of the registered object in all
contexts requested by the argument contextMask passed to
IloCplex::use(Callback::Function, long).
Note that in this function you must not invoke any functions
of the IloCplex that is performing the current solve. All
functions that can be invoked from a callback are members of
context.
| context |
An instance of IloCplex::Callback::Context that defines in
which context the callback is invoked, which progress
information can be queried, and which actions can be
performed. This instance is valid only during execution
of the callback function. Do not keep a reference to it.
|