using multiple threads with multipler processors in CPLEX

545 views
Skip to first unread message

Ziming

unread,
Jul 9, 2013, 6:47:23 PM7/9/13
to am...@googlegroups.com
Hi,
 
I am solving a large number of problems in sequential orders using AMPL/CPLEX on a computer with multiple processors, and want to use multiple threads to speed up the process. I want the first thread to use dual simplex, the second one to use barrier and the third one to use primal simplex. I have used
 
option cplex_options ' threads=3';
 
but I wonder if I need to add in
 
option cplex_options 'concurrentopt' ;
and if using this directive makes the process faster. Thanks.
 
Regards
Ziming Guan

Robert Fourer

unread,
Jul 18, 2013, 11:35:32 AM7/18/13
to am...@googlegroups.com

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

am...@googlegroups.com

 

 

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

Ziming

unread,
Jul 19, 2013, 6:37:04 PM7/19/13
to am...@googlegroups.com, 4...@ampl.com
Thank you.
 
Regards,
Ziming Guan
Reply all
Reply to author
Forward
0 new messages