|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ilog.cplex.IloCplex.Callback
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:
main()
for this extension. When doing
so you may use all of the methods defined in the callback class and
its base classes.
IloCplex
with method IloCplex.use()
.
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.
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 |
protected abstract void main() throws IloException
protected void abort()
main()
to instruct the invoking IloCplex
optimizer to abort the current optimization.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |