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.

parameter (Threads, CPX_PARAM_THREADS) documented in the <strong>ILOG</strong> <strong>CPLEX</strong> ParametersReference <strong>Manual</strong>. At its default setting 0 (zero), the number of threads that <strong>ILOG</strong> <strong>CPLEX</strong>actually uses during a parallel optimization is the smaller of:◆the number of CPU cores available on the computer where <strong>ILOG</strong> <strong>CPLEX</strong> is running;◆ the number of threads indicated by the license.If you set the threads parameter to a value greater than its default of 0 (zero), then thenumber of threads that <strong>ILOG</strong> <strong>CPLEX</strong> uses equals that value. When you set the threadsparameter to 1 (one), you enforce sequential operation, that is, processing on one threadonly. The maximum possible setting is the smaller of:◆the number of CPU cores available on the computer where <strong>ILOG</strong> <strong>CPLEX</strong> is running;◆ the number of threads indicated by the license.The number of threads used by a parallel <strong>ILOG</strong> <strong>CPLEX</strong> optimizer is separate from andindependent of the number of licensed users. A typical <strong>ILOG</strong> <strong>CPLEX</strong> license permits onelicensed use, that is, a single concurrent execution on one licensed computer. If the licensealso contains the parallel option with a thread limit of, say, four (on a machine with at leastfour processors), that one concurrent execution of <strong>ILOG</strong> <strong>CPLEX</strong> can employ any number ofparallel threads to increase performance, up to that limit of 4. A license with the paralleloption that additionally has a limit larger than one on the number of licensed uses cansupport that many simultaneous executions of <strong>ILOG</strong> <strong>CPLEX</strong>, each with the licensedmaximum number of parallel threads. In such a case, the operating system will manage anycontention for processors.The number of parallel threads used by an <strong>ILOG</strong> <strong>CPLEX</strong> optimizer is usually controlled by<strong>ILOG</strong> <strong>CPLEX</strong> parameter settings. These settings are discussed in more detail in the sectionsthat follow.Example: Threads and LicensingFor example, let's assume you use <strong>ILOG</strong> <strong>CPLEX</strong> to optimize MIP models on an eightprocessor machine, and you have purchased an <strong>ILOG</strong> <strong>CPLEX</strong> license for four parallelthreads. Then you can use the Interactive Optimizer command set threads i,substituting values 1 through 4 for i. You will not be able to set the thread count higher than4 because you are licensed for a maximum of four threads.If you set the number of threads to a value less than the number of processors, the remainingprocessors will be available for other jobs on your platform. Simultaneously runningmultiple parallel jobs with a total number of threads exceeding the number of processorsmay impair the performance of each individual processor as its threads compete with oneanother.492 <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!