Can I save a compiled optimization model in gurobi python in order to run it for several inputs?
AnsweredI have an optimization model that takes about two hours to be compiled. I just wanna use this model for several inputs. Is there anyway to skip compiling the model for every new inputs in order to save the time?
0
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hi,
I'm not sure I understand your question.... but if it is about having a model, and modify it to solve it again with new data, there is a complete set of methods in the OO APIs and in C to do that. Also, you can give information from a related problem to a current problem, there are a set of attributes to do that, from mipstarts, varhints, and partitions.
Hope this helps,
Daniel
0
Post is closed for comments.
Comments
2 comments