Gurobi solver stuck in model.optimize()
Awaiting user inputHi, I want to thanks for the help in advance. I am implementing a column generation procedure for my problem. I am facing issues while optimising initial master problem. I have given the initial routes to begin with and the model.optimize() solves for a instance of 10 var but it does not for 15 or latter.
I have checked my LP file before optimizing and the formulation is correct.
There is an optimal solution that is begin found but it does not go to the next line in my code.
-
Hi Jepan,
This seems a little unusual at first glance.
It looks like the second screenshot is of a file, and if I understand correctly the output is being written to a file?
How are you writing this output?
Is your code being run from a jupyter notebook or a python script?
What happens if you put the following line after master.optimize() and run the code?raise RuntimeError()
- Riley
0 -
I am using Jupyter notebook. And VSCode stops responding and I get no runtime error.
The scale is very small and it shouldn't take much time to solve the inital rmp.
0 -
And do you have to restart the jupyter kernel in order to execute cells after this?
Can you convert the notebook to a python script and see if it crashes, and if it does whether it gives us more information?
https://stackoverflow.com/a/75628216/114727610
Please sign in to leave a comment.
Comments
3 comments