[Cbc] thread safety

Ted Ralphs ted at lehigh.edu
Wed May 14 17:39:01 EDT 2014


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>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
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20140514/1e1f7cb9/attachment.html>


More information about the Cbc mailing list