ILOG CPLEX 11.0 User's Manual > Advanced Programming Techniques > Parallel Optimizers > Using Parallel Optimizers in the ILOG CPLEX Component Libraries

Follow these steps to invoke a parallel optimizer with the ILOG CPLEX component libraries.

  1. Create your ILOG CPLEX environment and initialize a problem object in the usual way. See Initialize the ILOG CPLEX Environment and Instantiate the Problem Object for details.
  2. Enter and populate your problem object in the usual way, as in Put Data in the Problem Object.
  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 you want to use the parallel barrier optimizer or the concurrent optimizer. If you want to use the parallel MIP optimizer in deterministic mode with fewer than the maximum number of available threads, set both the parallel mode and the threads parameter in your application. See Determinism of Results for background about this step.
  4. Call the parallel optimizer with the appropriate method or routine from Table 34.1.
    Optimizer 
    Concert IloCplex Method 
    Callable Library 
    Parallel MIP Optimizer 
    solve 
    CPXmipopt 
    Parallel Barrier Optimizer 
    setParam(RootAlg, Barrier) and then solve 
    CPXbaropt or CPXhybbaropt 
    Concurrent Optimizer 
    setParam(RootAlg, Concurrent) and then solve 
    CPXsetintparam(env, 
    CPX_ALG_CONCURRENT) 
    and then CPXlpopt or CPXqpopt