ILOG CPLEX C++ API 9.0 Reference Manual
ILOG CPLEX C++ API 9.0 Reference Manual
ILOG CPLEX C++ API 9.0 Reference Manual
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
IloCplex::CallbackI<br />
callbacks can also be called from presolve, probing, fractional cuts, and disjunctive<br />
cuts.<br />
◆ Control callbacks enable you to direct the search when you are solving a MIP in an<br />
instance of IloCplex. For example, control callbacks enable you to select the next<br />
node to process or to control the creation of subnodes (among other possibilities).<br />
Existing extractables should never be modified within a callback. Temporary<br />
extractables, such as arrays, expressions, and range constraints, can be created and<br />
modified. Temporary extractables are often useful, for example, for computing cuts.<br />
See Also<br />
Methods<br />
ILOBARRIERCALLBACK0, ILOBRANCHCALLBACK0, IloCplex,<br />
IloCplex::BarrierCallbackI, IloCplex::BranchCallbackI,<br />
IloCplex::Callback, IloCplex::ControlCallbackI,<br />
IloCplex::CrossoverCallbackI, IloCplex::CutCallbackI,<br />
IloCplex::DisjunctiveCutCallbackI,<br />
IloCplex::SimplexCallbackI,<br />
IloCplex::FractionalCutCallbackI,<br />
IloCplex::HeuristicCallbackI, IloCplex::IncumbentCallbackI,<br />
IloCplex::ContinuousCallbackI, IloCplex::MIPCallbackI,<br />
IloCplex::NetworkCallbackI, IloCplex::NodeCallbackI,<br />
IloCplex::PresolveCallbackI, IloCplex::ProbingCallbackI,<br />
IloCplex::SolveCallbackI, ILOCROSSOVERCALLBACK0,<br />
ILOCUTCALLBACK0, ILOBRANCHCALLBACK0,<br />
ILODISJUNCTIVECUTCALLBACK0, ILOFRACTIONALCUTCALLBACK0,<br />
ILOHEURISTICCALLBACK0, ILOINCUMBENTCALLBACK0,<br />
ILOCONTINUOUSCALLBACK0, ILOMIPCALLBACK0, ILONETWORKCALLBACK0,<br />
ILONODECALLBACK0, ILOPRESOLVECALLBACK0, ILOPROBINGCALLBACK0,<br />
ILOSIMPLEXCALLBACK0, ILOSOLVECALLBACK0<br />
protected void abort()<br />
This method stops the current optimization.<br />
protected virtual CallbackI * duplicateCallback()<br />
This virtual method must be implemented to create a copy of the invoking callback<br />
object on the same environment. Typically the following implementation will work for a<br />
callback class called MyCallbackI:<br />
IloCplex::CallbackI* MyCallbackI::duplicateCallback() const {<br />
return (new (getEnv()) MyCallbackI(*this));<br />
}<br />
This method is called by an IloCplex object in two cases:<br />
<strong>ILOG</strong> <strong>CPLEX</strong> <strong>C++</strong> <strong>API</strong> <strong>9.0</strong> REFERENCE M ANUAL 100