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
-
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
Please sign in to leave a comment.
Comments
1 comment