Saving the full state of the optimizer

83 views
Skip to first unread message

moati

unread,
Apr 20, 2017, 10:20:42 AM4/20/17
to Gurobi Optimization
Hi,

I have extremely difficult models that could run for days.

I prefer using the interactive session so that I interrupt the optimizer whenever I like to change one of its parameters, i.e., increase/decrease the heuristic percentage, change the MIPFocus... etc.

My question is whether it is possible to save the whole full state of the optimizer so that if my session is killed for any unexpected reason, I don't have to restart from scratch and just start from the last saved state.

Please let me know if my question is not clear.

Thanks,

Daniel Espinoza

unread,
Apr 20, 2017, 4:34:23 PM4/20/17
to Gurobi Optimization
Moati,

AFAIK this is not possible in Gurobi 7.
One suggestion that might help is to use some terminal multiplexer (like screen) to avoid the session being destroyed by a network problem. That way, the only thing that would kill your interactive session would be a power failure or running out of memory.

Best,
Daniel

moati

unread,
Apr 21, 2017, 12:37:06 AM4/21/17
to Gurobi Optimization
Thanks for your prompt reply and thanks for the great webinar earlier today, I enjoyed it :)

Mark

unread,
Apr 21, 2017, 12:37:06 AM4/21/17
to Gurobi Optimization
Moati,

Andrew posted recently about a python package he released that he claimed could help with this to a certain extent.
It may not save all state, but it might get you close enough.
Have a look at the "metamodel" package he mentioned in this thread:

Mark

Daniel Espinoza

unread,
Apr 21, 2017, 7:31:55 AM4/21/17
to Gurobi Optimization
Glad to hear that,

Have a good one
Daniel

moati

unread,
Apr 21, 2017, 10:43:01 AM4/21/17
to Gurobi Optimization
Thanks Mark, will look into it.
Reply all
Reply to author
Forward
0 new messages