To use all available threads to run primal, dual, and barrier in CPLEX, stopping when the first one finds an optimal solution, specify
option cplex_options 'concurrentopt';
This automatically uses 1 thread for primal, 1 thread for dual, and all remaining threads for barrier. To restrict the number of threads used, specify
option cplex_options 'concurrentopt threads=n';
where "n" is replaced by an integer. This uses 1 thread for primal, 1 thread for dual, and n-2 threads for barrier. (Thus setting n to 3 will use 1 thread for primal, for dual, and for barrier.)
Bob Fourer
From: am...@googlegroups.com [mailto:am...@googlegroups.com]
On Behalf Of Ziming
Sent: Tuesday, July 9, 2013 5:47 PM
To: am...@googlegroups.com
Subject: [AMPL 7239] using multiple threads with multipler processors in CPLEX