ILOG CPLEX 11.0 User's Manual > Advanced Programming Techniques > Using Optimization Callbacks > Implementing Callbacks in the Callable Library > Callbacks for Continuous and Discrete Problems |
Callbacks for Continuous and Discrete Problems |
INDEX PREVIOUS NEXT |
ILOG CPLEX will evaluate two user-defined callback functions, one during the solution of continuous problems and one during the solution of discrete problems. ILOG CPLEX calls the continuous callback once per iteration during the solution of an LP, QP, or QCP problem and periodically during the presolve. ILOG CPLEX calls the discrete callback periodically during the probing phase of MIP preprocessing, periodically during cut generation, and periodically in the branch & cut process.
Every user-defined callback must have these arguments:
env
, a pointer to the ILOG CPLEX environment;
cbdata
, a pointer to ILOG CPLEX internal data structures needed by CPXgetcallbackinfo
;
wherefrom
, indicates which optimizer is calling the callback;
cbhandle
, a pointer supplied when your application calls CPXsetlpcallbackfunc
or CPXsetmipcallbackfunc
(so that the callback has access to private user data).
The arguments wherefrom
and cbdata
should be used only in calls to CPXgetcallbackinfo
.
Copyright © 1987-2007 ILOG S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |