ILOG CPLEX C++ API 9.0 Reference Manual
ILOG CPLEX C++ API 9.0 Reference Manual
ILOG CPLEX C++ API 9.0 Reference Manual
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
IloCplex::ContinuousCallbackI<br />
Description<br />
An instance of a class derived from IloCplex::ContinuousCallbackI<br />
represents a user-written callback in an <strong>ILOG</strong> <strong>CPLEX</strong> application that uses an instance<br />
of IloCplex with the primal simplex, dual simplex, or barrier optimizer. IloCplex<br />
calls the user-written callback after each iteration during an optimization of a problem<br />
solved at a node. This class offers methods for use within the callbacks you write. In<br />
particular, there are methods in this class to access primal and dual feasibility, number of<br />
iterations, and objective value.<br />
The methods of this class are protected for use in deriving a user-written callback class<br />
and in implementing the main method there.<br />
If an attempt is made to access information not available to an instance of this class, an<br />
exception is thrown.<br />
Note: There are special callbacks for simplex and barrier, that is,<br />
IloCplex::SimplexCallbackI and<br />
IloCplex::BarrierCallbackI, respectively. Using a continous callback<br />
sets this callback in both of these algorithms. If a special callback was already set<br />
for one of these algorithms, (for example, simplex) it is replaced by the general<br />
continuous callback.<br />
See Also<br />
Constructors<br />
Methods<br />
IloCplex, IloCplex::Callback, IloCplex::CallbackI,<br />
ILOCONTINUOUSCALLBACK0<br />
protected ContinuousCallbackI()<br />
This constructor creates a callback for use in an application that solves continuous<br />
models.<br />
protected IloNum getDualInfeasibility()<br />
This method returns the current dual infeasibility measure of the solution in the instance<br />
of IloCplex at the time the invoking callback is executed.<br />
protected IloNum getInfeasibility()<br />
This method returns the current primal infeasibility measure of the solution in the<br />
instance of IloCplex at the time the invoking callback is executed.<br />
protected IloInt getNiterations()<br />
This method returns the number of iterations completed so far by an instance of<br />
IloCplex at the invoking callback is executed.<br />
protected IloNum getObjValue()<br />
<strong>ILOG</strong> <strong>CPLEX</strong> <strong>C++</strong> <strong>API</strong> <strong>9.0</strong> REFERENCE M ANUAL 104