30.01.2015 Views

ILOG CPLEX C++ API 9.0 Reference Manual

ILOG CPLEX C++ API 9.0 Reference Manual

ILOG CPLEX C++ API 9.0 Reference 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.

IloCplex::CutCallbackI<br />

from a user-written callback. More than one cut can be added in this callback by calling<br />

the method add or addLocal multiple times. All added cuts must be linear.<br />

The constructor and methods of this class are protected for use in deriving a user-written<br />

callback class 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 />

See Also<br />

Constructors<br />

Methods<br />

IloCplex, IloCplex::Callback, IloCplex::CallbackI,<br />

IloCplex::MIPCallbackI, IloCplex::ControlCallbackI,<br />

ILOCUTCALLBACK0<br />

protected CutCallbackI()<br />

This constructor creates a callback for use in an application with a user-defined cut to<br />

solve a MIP.<br />

protected IloConstraint add(IloConstraint con)<br />

This method adds a cut for the constraint indicated by con. This cut must be globally<br />

valid; it will not be removed by backtracking or any other means during the search. The<br />

added cut must be linear.<br />

protected IloConstraint addLocal(IloConstraint con)<br />

This method adds a local cut for the constraint indicated by con. IloCplex will<br />

manage the local cut in such a way that it will be active only when processing nodes of<br />

this subtree. The added cut must be linear.<br />

<strong>ILOG</strong> <strong>CPLEX</strong> <strong>C++</strong> <strong>API</strong> <strong>9.0</strong> REFERENCE M ANUAL 122

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

Saved successfully!

Ooh no, something went wrong!