[Cbc] thread safety

Ken Jacoby kjacoby at tower-research.com
Tue Jun 3 13:43:48 EDT 2014


Hi Ted,
We have noticed that OsiCbcSolverInterface::branchAndBound() has a warning that says it is deprecated and that CbcSolver should be used instead.
Can you elaborate on what it means,  how it hurts our performance and what are the consequences of using the deprecated Osi interface.

Thanks,
Ken

From: Alon Shapira
Sent: Wednesday, May 14, 2014 6:33 PM
To: Ted Ralphs
Cc: cbc at list.coin-or.org
Subject: Re: [Cbc] thread safety

Thank you :)
Alon

Sent from my Verizon Wireless 4G LTE DROID


Ted Ralphs <ted at lehigh.edu<mailto:ted at lehigh.edu>> wrote:
The answer is a qualified "yes". We have been successfully using Cbc to simultaneously solve multiple different problems in different threads by creating a CbcModel object and calling the branchAndBound()  method. Using the wrappers in CbcSolver.cpp does not seem to be thread-safe. Calling Cbc this way only works for solving one MILP at a time (though it is possible to use multiple threads to solve that single MILP). I don't recall the precise reason for this.

Cheers,

Ted

On Wed, May 14, 2014 at 12:18 PM, Alon Shapira <ashapira at tower-research.com<mailto:ashapira at tower-research.com>> wrote:
Hi,
Is the cbc library (and the clp) thread safe ?
What I mean is :  Can two different threads solve (two different problems) simultaneously ?
Thanks,
Alon

_______________________________________________
Cbc mailing list
Cbc at list.coin-or.org<mailto:Cbc at list.coin-or.org>
http://list.coin-or.org/mailman/listinfo/cbc



--
Dr. Ted Ralphs
Associate Professor, Lehigh University
(610) 628-1280
ted 'at' lehigh 'dot' edu
coral.ie.lehigh.edu/~ted<http://coral.ie.lehigh.edu/~ted>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20140603/2fa970f3/attachment.html>


More information about the Cbc mailing list