Callable Library callback facilities

Describes features to support callbacks in the C API.

Optimization routines in the Callable Library incorporate a callback facility to allow your application to transfer control temporarily from CPLEX to the calling application. Using callbacks, your application can implement interrupt capability, for example, or create displays of optimization progress. After control is transferred back to a function in the calling application, the calling application can retrieve specific information about the current optimization from the routine CPXgetcallbackinfo. Optionally, the calling application can then tell CPLEX to discontinue optimization.

To implement and use a callback in your application, you must first write the callback function and then tell CPLEX about it. For more information about the Callable Library routines for callbacks, see the Callable Library Reference Manual. In that reference manual, the group optim.cplex.callable.callbacks gives you direct access to documentation about callback routines.