Continuing optimization...
AnsweredWhat does it mean when I see this in the log for a while "Continuing optimization... ", even though I used the parameter: model.Params.OutputFlag = 1, to get detailed information during the optimziation? Is the model stuck? how do I fix it?
-
Hi,
You will see this message if you resume a solve after it had previously terminated. It is letting you know that the internal structures and data from the previous solve are being used and you are not starting from scratch.
Any chance you are using Jupyter Notebooks? I can see this arising if you were to run an optimization, change some parameters in a subsequent cell, then call optimize() again.
If you need to reset the model then you can use Model.reset()
I would strongly recommend you make yourself familiar with our reference manual, it will help your understanding a lot.
- Riley
0 -
Yes, I am using jupyter notebook.
The problem is that it is stuck and it doesn't give any further messages after
Continuing optimization...
0 -
How long is it like that for?
0 -
over 3 hours
0 -
Hi Dana,
My suggestion would be to write the model out to an MPS file, and run Gurobi via the command line, and see whether the solver seems to stall. You certainly won't see the message "Continuing optimization..." but it would be good to confirm if you also see hours of inactivity in the output.
Jupyter Notebooks can be a bit misleading. Sometimes a cell appears to be running but it is not. Sometimes a notebook appears to be running but it is not, and has silently failed. Ideally we rule this out.
- Riley
0
Please sign in to leave a comment.
Comments
5 comments