ilog.cplex
Class IloCplex.Callback

java.lang.Object
  |
  +--ilog.cplex.IloCplex.Callback
Direct Known Subclasses:
IloCplex.CrossoverCallback, IloCplex.LPCallback, IloCplex.MIPCallback, IloCplex.NetworkCallback, IloCplex.PresolveCallback

public abstract static class IloCplex.Callback
extends java.lang.Object

The callback base class. This class defines the common interface available to all callback classes. Callbacks are objects with a method main() implemented by the user which is called by the IloCplex algorithm at specific points during the optimization. For each of these points, an extension of IloCplex.Callback is provided. To implement and use a particular callback, the following steps must be carried out:

The next time a solution method is exectued on the IloCplex object for which the callback has been set the callbacks method main() will be called each time the corresponding point in the optimization algorithm is reached.

See Also:
IloCplex.use(ilog.cplex.IloCplex.Callback)

Method Summary
protected  void abort()
          Aborts current optimization.
protected abstract  void main()
          The method to be implemented by user callback classes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

protected abstract void main()
                      throws IloException
The method to be implemented by user callback classes.

abort

protected void abort()
Aborts current optimization. This method can be called from a user-written implementation of method main() to instruct the invoking IloCplex optimizer to abort the current optimization.