jump-dev / HiGHS.jl

A Julia interface to the HiGHS solver
https://highs.dev
MIT License
97 stars 13 forks source link

time_limit behavior? #167

Closed manuelma closed 9 months ago

manuelma commented 1 year ago

I have a JuMP.Model with HiGHS.Optimizer that I solve iteratively while modifying some constraint coefficients in between iterations. I also set the time_limit optimizer attribute to something like 300 seconds. I have the suspicion that the timer is not reset everytime I call optimize!, so after a few hundred iterations I start hitting the time limit immediately. Do you think that's possible?

odow commented 1 year ago

That seems like a good explanation. Unfortunately, it means that the problem is in https://github.com/ERGO-Code/HiGHS, not in HiGHS.jl. Let me take a look.

odow commented 1 year ago

Confirmed upstream issue: https://github.com/ERGO-Code/HiGHS/issues/1331

odow commented 1 year ago

Just to update this issue: I've added Highs_zeroAllClocks to upstream: https://github.com/ERGO-Code/HiGHS/pull/1332. So we can fix this once the next version of HiGHS is released.