[Cbc] Cbc threads and derived CbcModel classes

Pietro Belotti petr.7b6 at gmail.com
Thu Oct 3 19:54:45 EDT 2013


Hello.

I have implemented a BB by deriving a myModel class from CbcModel. The main
difference is in the ::checkSolution() method, which is specialized to the
model.

The sequential version seems to work just fine. The multi-thread version,
instead, does not: while everything works fine in the root node and the
right solution check is run, in CbcThread.cpp:573, the new CbcModels that
run the threads are created using the copy constructor of the original
CbcModel, and hence during the BB the original (and invalid for my problem)
checkSolution() method is used.

Is there a clean way to make the threads use myModel objects rather than
CbcModels?

Thanks,
Pietro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20131004/4a0396b0/attachment.html>


More information about the Cbc mailing list