coin-or / Cbc.old

This is a mirror of the subversion repository on COIN-OR
https://projects.coin-or.org/Cbc
Other
88 stars 30 forks source link

[Trac #179] multiThreadind and algorithms options #32

Open s-c-e opened 5 years ago

s-c-e commented 5 years ago

image

Hello everybody,

I'm sorry to bother with this ticket, but I didn't find any forum where I can question a CBC developer.

We're using with my team the CBC solver on a big logistic problem (around 4 millions continuous and discrete variables).

We observed that when we launch the solving directly from command lines it is way quicker than from our project execution (c++).

In both cases we would like first to know how can we activate the multithreading option because for the moment it runs with only one thread. I read that it could be a problem of the way we compiled the solver ?!

Then, is someone know if there is any option we can activate in our c++ project in order to use the same algorithms as command line ones (in our project "cgl" and "cbc" algorithms are launched whereas in command line "clp" is).

I would be very grateful is someone can help.

Regards,

Leslie

h-g-s commented 5 years ago

If you call cbc using CbcMain0 and CbcMain1 (see examples/driver4.cpp) you'll get the same performance of the standalone solver.