[Cbc] Pause - Resume
John Forrest
john.forrest at fastercoin.com
Mon Nov 9 04:10:02 EST 2015
Babak,
I would suggest that you have a global variable - initialized to 0.
When a thread finishes it sets it to 1 - no need to bother about
duplicate setting.
Then an event handler and check at whatever granularity you want e.g.
treeStatus or node.
John Forrest
On 09/11/15 00:05, Babak Moazzez wrote:
> Hi
>
> I am trying to use two CBC processes in different threads. For
> example thread 1 solves a problem using pure branch and bound and
> thread 2 uses branch and cut with some parameters for solving the same
> problem (this is just an example).
>
> I need to make these threads check regularly if the other threads
> have finished solving, so there is an optimal solution found and there
> is no need for other threads to continue.
>
> Is there any way to do pause-resume in cbc from programming side
> (i.e. not using cmd/terminal and ctrl-S etc.)? for example pause every
> 1 second, check some flag and continue or terminate.
>
> Thanks
>
> Babak M.
>
>
> _______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cbc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20151109/95487fed/attachment.html>
More information about the Cbc
mailing list