> Advanced Programming Techniques > Parallel Optimizers > Using Parallel Optimizers in 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. Within your application, set the appropriate ILOG CPLEX parameter from Table 27.1 to specify the number of threads.
  3. Enter and populate your problem object in the usual way, as in Put Data in the Problem Object.
  4. Call the parallel optimizer with the appropriate method or routine from Table 27.3.
    Table 27.3 Parallel Optimizer Methods and Routines of Component Libraries
    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_PARAM_LPMETHOD, 
    CPX_ALG_CONCURRENT) 
    and then CPXlpopt or CPXqpopt