ILOG CPLEX 11.0 User's Manual > Advanced Programming Techniques > Using Optimization Callbacks > Query or Diagnostic Callbacks > Where Query Callbacks Are Called

Query or diagnostic callbacks are distinguished by the place where they are called during an optimization. There are nine such places where ILOG CPLEX calls a query or diagnostic callback:

In the C++ API, a query callback is installed by the method IloCplex::use.

In the Java API, a query callback is installed by the method IloCplex.use.

In the .NET API, a query callback is installed by the method Cplex.Use.

In Callable Library applications (C API), a query callback is a user-written function installed by the routine CPXsetmipcallbackfunc, CPXsetlpcallbackfunc, or CPXsetnetcallbackfunc.