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.

◆ CPX_TUNE_TILIM specifies that tuning reached a time limit specified as a parameter inthe environment.Tuning will set any parameters which have been chosen even if there is an early termination.Callbacks for TuningA tuning callback is a user-written function that <strong>ILOG</strong> <strong>CPLEX</strong> calls before each trial runduring a tuning session. A tuning callback allows you to follow the progress of tuning. Itreports information that enables you to estimate how much more time tuning needs toachieve results useful in your model.To use a tuning callback in a tuning session, you must first write the callback function, andthen pass it to <strong>ILOG</strong> <strong>CPLEX</strong>. <strong>ILOG</strong> <strong>CPLEX</strong> will then execute your tuning callback before itbegins a trial run.◆◆In Concert Technology, you must implement your user-written function as an instance ofthe tuning callback class.●●IloCplex::TuningCallbackI in the C++ APIIloCplex.TuningCallback in the Java API● Cplex.TuningCallback in the .NET APIFor details about writing your tuning callback, see Using Optimization Callbacks onpage 445, especially Implementing Callbacks in <strong>ILOG</strong> <strong>CPLEX</strong> with Concert Technologyon page 454In the Callable Library (C API), use the routine CPXsettuningcallbackfunc. Formore about how to write a callback, see also Implementing Callbacks in the CallableLibrary on page 460.Terminating a Tuning SessionTo terminate a tuning session, you can use one of the following 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 terminate thetuning session.In the Java API, pass an instance of the class IloCplex.Aborter to an instance ofIloCplex. Then call the method IloCplex.Aborter.abort to terminate the tuningsession.<strong>ILOG</strong> <strong>CPLEX</strong> <strong>11.0</strong> — USER’ S MANUAL 167

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

Saved successfully!

Ooh no, something went wrong!