Cbc icon indicating copy to clipboard operation
Cbc copied to clipboard

Cbc will not obey the time limit if the the root LP relaxation takes longer than the time limit to solve

Open lucazav opened this issue 2 years ago • 2 comments

I came across the following case:

Pyomo solver.solve stuck for big problem using cbc

it was found that the timeout parameter provided via Pyomo to CBC was causing the freeze. Timeout time was less than the time it took to resolve the root LP relaxation, and thus the solver would stuck.

It would be preferable to abort the process even if the solver is in the relaxation phase, returning a clear error message because of the timeout.

lucazav avatar Jun 20 '22 08:06 lucazav

If I understood the discussion in the Pyomo issue, then it seems the problem isn't that Cbc is "stuck" and there is no "freeze," it's just that Cbc will not obey the time limit if the the root LP relaxation takes longer than the time limit to solve. This is a known issue for which there is not a quick fix. If you could re-word the title and description of the issue to reflect the true nature of the situation, that would be helpful.

tkralphs avatar Jun 27 '22 02:06 tkralphs

@tkralphs done the problem is that if I set a timeout, CBC runs indefinitely and I had to stop the kernel. If I don't set the timeout, CBC gives me the information that the problem is infeasible in 15 minutes. So CBC actually locks up if I set the timeout.

lucazav avatar Jun 28 '22 15:06 lucazav