Python's last example on quick start guide
回答済みHello guys, on this guide
https://cdn.gurobi.com/wp-content/plugins/hd_documentations/documentation/9.0/quickstart_windows.pdf p.g. 83 has an example. Could you please explain how is the objective function defined and minimized?
Kind regards
Iason
0
-
正式なコメント
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. -
The line
flow = m.addVars ( commodities , arcs , obj = cost , name =" flow ")
defines a variable for each combination of commodities and arcs. Each such variable is added to the objective with coefficient cost (obj=cost). See the definition of cost, arcs, and commodities above in the document. The default objective sense is to minimize. Hence, no additional action is necessary.
0 -
thank you so much Marika!
0
投稿コメントは受け付けていません。
コメント
3件のコメント