ERGO-Code / HiGHS

Linear optimization software
MIT License
957 stars 177 forks source link

turn off `presolve` would return worse result #1696

Closed mzy2240 closed 6 months ago

mzy2240 commented 6 months ago

I am trying to tune the HiGHS on a MIP problem and happen to find out that HiGHS returns worse result if switching off the presolve. I have attached the case that should help reproduce the issue. With mip_rel_gap=0.0005, I am able to get 2.084748238572568e6 when presolve is enabled and 2.0849273612253e6 when presolve is disabled. This is a minimization problem. I am running HiGHS v1.7.0 on a M1 Max machine. model_1.mps.zip

image
mzy2240 commented 6 months ago

dont think it is related to HiGHS.jl but loop @odow in just in case

jajhall commented 6 months ago

This isn't a bug. It's an artefact of using a positive gap tolerance, and was interesting to observe

Here are

image

With a gap tolerance of 0.0005...

mzy2240 commented 6 months ago

Make sense. Thank you for the investigation!