maximization using CLI
AnsweredHow do I solve as a maximization problem using the CLI?
dev-dsk-magalati-1d-692f1d5f % ~/workplace/Gurobi/gurobi1100/linux64/bin/gurobi_cl ModelSense=-1 ltl_instance1_phase2.mps.gz
Unknown parameter: 'ModelSense' (ignored)
0
-
Official comment
This post is more than two 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. -
Hi Matthew,
ModelSense is an attribute of the model object. The Gurobi Command-Line Tool does not accept attributes as an argument. Please run
gurobi_cl --help
to see the full list of inputs that can be used with the tool.
To solve the model as a maximization model, please read the model with the read method, set model.ModelSense to -1 and call the optimize method.
Best regards,
Simran0
Post is closed for comments.
Comments
2 comments