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.

Terminating without CallbacksIf you simply want to terminate optimization under circumstances defined by yourapplication, then you do not necessarily need to write a callback to do so. Instead, you caninvoke termination by these means:◆◆◆◆In the C++ API, pass an instance of the class IloCplex::Aborter to an instance ofIloCplex. Then call the method IloCplex::Aborter::abort to terminateoptimization.In the Java API, pass an instance of the class IloCplex.Aborter to an instance ofIloCplex. Then call the method IloCplex.Aborter.abort to terminateoptimization.In the .NET API, pass an instance of the class Cplex.Aborter to an instance of Cplex.Then call the method Cplex.Aborter.Abort to terminate optimization.In the Callable Library (C API), call the routine CPXsetterminate to set a pointer tothe termination signal. Initially, the value of the termination signal should be zero. Whenyour application sets the termination signal to a nonzero value, then <strong>ILOG</strong> <strong>CPLEX</strong> willterminate optimization.468 <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!