How do I save file after finished analysis model in Terminal?
AnsweredI don't know how to save file in MacOS, which I did model in the Terminal, and I want to save on my desktop.
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 try Gurobot, our chatbot interface offering instant, expert-level support. -
You can use the write method to write an LP or an MPS file of your model.
An example input would be
Gurobi Interactive Shell (mac64), Version 9.5.0
Copyright (c) 2021, Gurobi Optimization, LLC
Type "help()" for help
gurobi> model=Model("test")
gurobi> x = model.addVar()
gurobi> model.setObjective(x)
gurobi> model.write("myLP.lp")This writes your current model to an LP file called \(\texttt{myLP}\).
Best regards,
Jaromił0
Post is closed for comments.
Comments
2 comments