Howdy folks,<div><br></div><div>I am working on testing out whether we can increase our solver performance by multithreading cbc. So far my results with compiling and running under windows have been not good, so I assume I am doing something wrong. My code is basically like this:</div>
<div><br></div><div><div>CbcModel ip(*(coinlp));</div><div>ip.setNumberThreads(2); </div><div>ip.setAllowablePercentageGap(AllowablePercentageGap);</div><div>ip.setMaximumSeconds(maxTime);</div><div>ip.branchAndBound();</div>
</div><div><br></div><div><br></div><div>I tried with 1,2,3,4,5,6,and 8 threads on my quad core machine, but only noticed any speedup with 2 threads and a dramatic degradation as the number of threads increased beyond that.</div>
<div><br></div><div>Is there some sample code out there that will show me what I am doing wrong?</div><div><br></div><div>Thanks,</div><div>John</div><div><br></div><div><br></div>