12.07.2015 Views

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table 30.2Callback MacrosCallback Macro Classpresolve ILOPRESOLVECALLBACKn IloCplex::PresolveCallbackIcontinuous ILOCONTINUOUSCALLBACKn IloCplex::ContinuousCallbackIsimplex ILOSIMPLEXCALLBACKn IloCplex::SimplexCallbackIbarrier ILOBARRIERCALLBACKn IloCplex::BarrierCallbackIcrossover ILOCROSSOVERCALLBACKn IloCplex::CrossoverCallbackInetwork ILONETWORKCALLBACKn IloCplex::NetworkCallbackIMIP info ILOMIPINFOCALLBACKn IloCplex::MIPInfoCallbackIMIP ILOMIPCALLBACKn IloCplex::MIPCallbackIprobing info ILOPROBINGINFOCALLBACKn IloCplex::ProbingCallbackIprobing ILOPROBINGCALLBACKn IloCplex::ProbingCallbackIfractional cut info ILOFRACTIONALCUTINFOCALLBACKn IloCplex::FractionalCutCallbackIfractional cut ILOFRACTIONALCUTCALLBACKn IloCplex::FractionalCutCallbackIdisjunctive cut info ILODISJUNCTIVECUTINFOCALLBACKn IloCplex::DisjunctiveCutCallbackIdisjunctive cut ILODISJUNCTIVECUTCALLBACKn IloCplex::DisjunctiveCutCallbackIflow MIR cut info ILOFLOMIRCUTINFOCALLBACKn IloCplex::FlowMIRCutInfoCallbackIflow MIR cut ILOFLOMIRCUTCALLBACKn IloCplex::FlowMIRCutCallbackIThe protected methods of the corresponding class and its base classes specify the functionsthat can be called for implementing your callback. See the <strong>ILOG</strong> <strong>CPLEX</strong> Reference <strong>Manual</strong>with respect to these classes for details of which functions can be called.Here is an example of how to implement a simplex callback with the name MyCallbackthat takes one argument:ILOSIMPLEXCALLBACK1(MyCallback, IloInt, num) {if ( getNiterations() == num ) abort();}This callback aborts the simplex algorithm at the iteration indicated by the number num. Itqueries the current iteration number by calling the function getNiterations, a protectedmethod of the class IloCplex::ContinuousCallbackI.To use this callback with an IloCplex object cplex, simply call:456 <strong>ILOG</strong> <strong>CPLEX</strong> <strong>11.0</strong> — USER’ S MANUAL

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!