HiGHS icon indicating copy to clipboard operation
HiGHS copied to clipboard

time_limit parameter doesn't work even if I turn off the presolve

Open paramshah-official opened this issue 8 months ago • 4 comments

I am modeling my MILP model in pyomo in python. It usually takes 10-20 seconds to solve these models. However in some cases, the model gets stuck in an infinite loop. So I turned off the presolve and the issue was resolved for a model but it is again stuck with different parameters but same model. (Even after turning off the presolve).

The time_limit parameter also doesn't seem to work.

options = { 'presolve': 'off', 'time_limit': 60, 'parallel': 'on' } Solver.highs_options = options

paramshah-official avatar Mar 11 '25 11:03 paramshah-official

There are a couple of presolve rules that lack timeout checks. Similarly in the MIP solver. In the case of the presolve, I have the example in #2217, and for MIP, I'm adding better timeout handling (see #2214).

jajhall avatar Mar 11 '25 21:03 jajhall

The problem persists even when I turn off the presolve. options = { 'presolve': 'off', 'time_limit': 60, 'parallel': 'on' } Solver.highs_options = options

Any idea about that?

paramshah-official avatar Mar 12 '25 10:03 paramshah-official

Isn't that covered by https://github.com/ERGO-Code/HiGHS/issues/2214 ?

lesshaste avatar Mar 12 '25 10:03 lesshaste

Oh, my bad. Thought it was about presolve.

paramshah-official avatar Mar 12 '25 10:03 paramshah-official