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.

3. Call the parallel optimizer with the mipopt command.The optimizer will use themaximum number of available threads in deterministic mode.In order to invoke parallel optimization of continuous models in the Interactive Optimizer,you must abandon determinism. You can do so explicitly with the parallel mode parameter,or you can do so implicitly with the threads parameter.To abandon determinism explicitly by means of the parallel mode parameter, do this:1. Start the parallel <strong>CPLEX</strong> Interactive Optimizer with the command cplex at theoperating system prompt.2. Enter your problem object and populate it with data as usual.3. Enter the command: set parallel -1. The optimizer will use the maximum numberof available threads in opportunistic mode.4. Optimize.To abandon determinism implicitly by means of the thread parameter, do this:1. Start the parallel <strong>CPLEX</strong> Interactive Optimizer with the command cplex at theoperating system prompt.2. Enter your problem object and populate it with data as usual.3. Enter the command: set threads n where n is a number strictly greater than 1 (one).The optimizer will use the specified number of threads in opportunistic mode.4. Optimize.Using Parallel Optimizers in the <strong>ILOG</strong> <strong>CPLEX</strong> Component LibrariesFollow these steps to invoke a parallel optimizer with the <strong>ILOG</strong> <strong>CPLEX</strong> componentlibraries.1. Create your <strong>ILOG</strong> <strong>CPLEX</strong> environment and initialize a problem object in the usual way.See Initialize the <strong>ILOG</strong> <strong>CPLEX</strong> Environment on page 111 and Instantiate the ProblemObject on page 112 for details.2. Enter and populate your problem object in the usual way, as in Put Data in the ProblemObject on page 112.3. If you want to use an opportunistic parallel algorithm, set either the parallel mode(ParallelMode, CPX_PARAM_PARALLELMODE) or threads (Threads,CPX_PARAM_THREADS) parameter in your application. This step is mandatory if youwant to use the parallel barrier optimizer or the concurrent optimizer. If you want to use<strong>ILOG</strong> <strong>CPLEX</strong> <strong>11.0</strong> — USER’ S MANUAL 495

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

Saved successfully!

Ooh no, something went wrong!