Using Callbacks

Interrupt routines, also known as callback routines, allow users to define functions to interrupt and resume optimization and to access progress information while the optimization is in process.

Note: Names of classes, methods, and symbolic constants in the .NET API correspond very closely to those in the Java API with these systematic exceptions:

Purpose

Java API

C++ API

C API

Gets function to be called during LP optimization

----

----

CPXgetlpcallbackfunc

Sets function to be called during LP optimization

IloCplex.use

IloCplex::use

CPXsetlpcallbackfunc

Gets function to be called during MIP optimization

----

----

CPXgetmipcallbackfunc

Sets function to be called during MIP optimization

IloCplex.use

IloCplex::use

CPXsetmipcallbackfunc

Gets function to be called during network optimization

----

----

CPXgetnetcallbackfunc

Sets function to be called during network optimization

IloCplex.use

IloCplex::use

CPXsetnetcallbackfunc

Gets optimization progress information

Methods of callback classes

Methods of callback classes

CPXgetcallbackinfo

Gets information about nodes during MIP optimization

Methods of callback classes

Methods of callback classes

CPXgetcallbacknodeinfo