You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Moved this original question over from https://github.com/coin-or/pulp:
I have been reading through a few online discussions on GitHub and other sources (https://groups.google.com/g/pulp-or-discuss/c/IKE--kT6c5U/m/Y0OUJCqoBQAJ, coin-or/pulp#463) about using multiple threads with CBC, but I haven’t been able to find a direct answer to my question. So I wanted to reach out to you directly about it. Does the time limit correlate to the number of threads passed in to the solver? So for instance when I set “threads=4” and “time limit=3600”, does that mean each thread gets a time limit of 3600/4 seconds? I.e. does CBC use CPU time or wall time for the time limit?
From the discussion on the pulp github it seems like it is CPU time but it can be changed to use wall clock time by using the "timeMode elapsed" option. Is that correct?
Additional question:
For my project, we have someone with a high computing performance machine running our model using 38 threads - which seems to run as expected. However, for some reason when I try testing on out CBC solving using multiple threads (2 - 4 threads) on my laptop and set the time limit to be 10 sec (for example), the solver seems to totally disregard the time limit and gets stuck solving and doesn't update the log. I attached the log file to this for reference. Why would this be happening? solver_log.txt
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Moved this original question over from https://github.com/coin-or/pulp:
I have been reading through a few online discussions on GitHub and other sources (https://groups.google.com/g/pulp-or-discuss/c/IKE--kT6c5U/m/Y0OUJCqoBQAJ, coin-or/pulp#463) about using multiple threads with CBC, but I haven’t been able to find a direct answer to my question. So I wanted to reach out to you directly about it. Does the time limit correlate to the number of threads passed in to the solver? So for instance when I set “threads=4” and “time limit=3600”, does that mean each thread gets a time limit of 3600/4 seconds? I.e. does CBC use CPU time or wall time for the time limit?
From the discussion on the pulp github it seems like it is CPU time but it can be changed to use wall clock time by using the "timeMode elapsed" option. Is that correct?
Additional question:
For my project, we have someone with a high computing performance machine running our model using 38 threads - which seems to run as expected. However, for some reason when I try testing on out CBC solving using multiple threads (2 - 4 threads) on my laptop and set the time limit to be 10 sec (for example), the solver seems to totally disregard the time limit and gets stuck solving and doesn't update the log. I attached the log file to this for reference. Why would this be happening?
solver_log.txt
Beta Was this translation helpful? Give feedback.
All reactions