<div dir="ltr"><span style="font-size:12.8px">Hi Sam,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks, that did the trick. My other question would then be, how can I specify the how many threads the CbcModel object can use with branch and bound? Or does the models query my processor architecture at compile time and use a suitable amount of threads implicitly?<br><br>I ask because there doesn't seem to be any setter methods for the number of threads. (Only getters: parallelMode() and numberThreads_).</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Jesse</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 26, 2017 at 1:31 PM, Sam Mathew <span dir="ltr"><<a href="mailto:sam.cfd.iitm@gmail.com" target="_blank">sam.cfd.iitm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi Jesse,<br><br></div><div>In order to use parallel, you need to do this while configuring during installation of Cbc.<br><br></div><div>The right step then would be (supposing you are in the build directory, within the directory where CBC has been downloaded using SVN)<br><br></div><div>../configure --enable-cbc-parallel</div><div>make<br></div><div>make install<br><br></div>It might help if you look at the fourth option on the following: <a href="https://projects.coin-or.org/Cbc/wiki/FYI" target="_blank">https://projects.coin-or.org/<wbr>Cbc/wiki/FYI</a><br><br></div>Then you can use the parallel version within C++.<br><br>JuMP has it pre-configured to run parallel, so you did not need to do it there.<br><br></div>Regards,<br><br></div>Sam<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On 25 February 2017 at 22:56, Jesse Jaanila <span dir="ltr"><<a href="mailto:jessejaanila@gmail.com" target="_blank">jessejaanila@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>In the past, I have used CBC though Julia JuMP library, where running parallel branch & bound can be done easily by specifying the Threads=N argument for the solver. I'm now transferring some of my code to C++ and I'm not sure how to run the B&B parallel using C++. Is it trivial?<br></div><div><br></div><div>What's worrisome is that <font color="#000000"><span style="background-color:rgb(255,255,255)"><font style="font-size:10.5pt" face="source code pro">model.haveMultiThreadSupp<wbr>ort() </font><font face="arial, helvetica, sans-serif">returns false which suggest I don't even have the prerequisites for parallel B&B. I guess the quick start guide for Unix-like systems in </font></span></font><font color="#000000" face="arial, helvetica, sans-serif"><a href="https://projects.coin-or.org/Cbc" target="_blank">https://projects.coin-or.or<wbr>g/Cbc</a> doesn't include the necessary option for building CBC with parallel support. What actions should I take? I'm fine with rebuilding the whole set of libraries and dependencies.</font></div><div><br></div><div><font color="#000000" face="arial, helvetica, sans-serif">Thanks!</font></div><span class="m_8391998984330529211HOEnZb"><font color="#888888"><div><font color="#000000" face="arial, helvetica, sans-serif">Jesse</font></div></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org" target="_blank">Cbc@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" rel="noreferrer" target="_blank">http://list.coin-or.org/mailma<wbr>n/listinfo/cbc</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div class="m_8391998984330529211gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font color="#888888">Consultant</font><font style="font-family:times new roman,serif" color="#888888"><br><i>Gyan Data Pvt. Ltd.<br></i></font></div><font style="font-family:times new roman,serif" color="#888888"><i>IITM Research Park</i></font><br></div></div></div></div></div></div></div></div>
</font></span></div>
</blockquote></div><br></div>