MPSolver gets stuck and does not respect time limit when dealing with high numerical values #4484
Labels
Solver: Linear Solver
Related to all Linear Solver (GLOP, BOP, CBC etc...)
Solver: SCIP
SCIP Solver related issue
Milestone
What version of OR-Tools and what language are you using?
Google OR-Tools version: 9.11.4210
SCIP 9.0.0 [LP solver: Glop 9.11]
Language: Java
Java version: 21.0.5 (JDK)
Apache Maven 3.9.9
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)
MPSolver.OptimizationProblemType.SCIP_MIXED_INTEGER_PROGRAMMING
What operating system (Linux, Windows, ...) and version?
I tried on both Windows 11 24H2 and Ubuntu 22.04.2 LTS (WSL). I don't have any fully Linux-based machine.
What did you do?
I used the basic example provided here https://developers.google.com/optimization/install/java/pkg_linux and loaded my proto model (1233 variables & 1367 constraints)
Steps to reproduce the behavior:
What did you expect to see
What did you see instead?
The output showing the solving in real time gets stuck after a few seconds, and the solving process does not stop after the 300 seconds, but after 421s (7min instead of 5)
With a 60 seconds time limit :
With a 30 minutes time limit : (2623 seconds = 43 minutes and 43 seconds)
As you can see, the more time you give to the solver, the more time it takes to stop, and it always gets stuck at the same point
Anything else we should know about your project / environment$10^6$ . I tried with $10^9$ and the solver took even more time to stop. I then tried with $1500$ (the minimum I can afford) and I still experienced the issue, but less, 331 sec instead of 421 when running with $10^6$ . So I might guess that the problem comes from here.
In the tests above, I have some constraints with some coefficients set to
I can provide more models experiencing the same issue if needed (but with much more variables and constraints)
The text was updated successfully, but these errors were encountered: