-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect Improvement in Solution After Adding a Cut in Iterative Process #1954
Comments
Gurobi concurs with |
Sorry about this. Probably due to an error in presolve. I'll investigate further in due course |
Looks like it works with HiGHS 1.2.0. I am able to get the same objective (-289.269406). Solving report
Status Optimal
Primal bound -289.269406
Dual bound -289.269406
Gap 0%
Solution status feasible
-289.269406 (objective)
0 (bound viol.)
1.16018306073e-13 (int. viol.)
0 (row viol.)
Timing 72.25 (total)
0.42 (presolve)
0.00 (postsolve)
Nodes 208
LP iterations 221430 (total)
133567 (strong br.)
5321 (separation)
20564 (heuristics) |
This is probably because bug fixes to the MIP presolve since 1.2.0 have caused the 1.7.2 MIP presolve to take a different path and exposed a bug. In other words, it's very unlikely to be a regression. What happens with |
With |
And if you switch off presolve? |
When presolve is off (version 1.7.2), I get the correct result, so you are right, it looks like a presolve issue. It takes much longer (2181 seconds) to solve as expected, but finds the same solution as CBC and Gurobi. Solving report
Status Optimal
Primal bound -289.269406
Dual bound -289.269406
Gap 0%
Solution status feasible
-289.269406 (objective)
0 (bound viol.)
6.76125821997e-14 (int. viol.)
0 (row viol.)
Timing 2181.20 (total)
0.03 (presolve)
0.00 (postsolve)
Nodes 4552
LP iterations 2350958 (total)
798769 (strong br.)
97653 (separation)
135297 (heuristics) |
@sertalpbilal I am trying to investigate this, but the reproduction examples are rather large. By any chance do you have a smaller instance to reproduce this? The answer is most probably no, but I wanted to ask anyway... |
@fwesselm I have attached 5 iterations from a smaller solve (~1.8 MB each) and pasting the objectives ( |
Thank you. For |
Hi,
I'm encountering an unexpected behavior when using the HiGHS solver. In a two-step iterative process, I solve a problem and then add a cut in the second iteration. Theoretically, this should result in the same or a worse solution compared to the first iteration, as all the original constraints remain unchanged and the cut adds an additional restriction. However, the solver returns a better solution after adding the cut, which clearly seems incorrect.
I attached both MPS files in a zip file.
mps_files.zip
HiGHS Version
1.7.2 (Windows)
Steps to Reproduce:
Relevant Details
mip_rel_gap = 0
in it. But, the issue happens regardless of this file.Logs
Solve 1:
Solve 2:
The text was updated successfully, but these errors were encountered: