Skip to main content

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    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.
  • Marika Karbstein
    • Gurobi Staff

    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
  • Iason Liagkas
    • Gurobi-versary
    • Detective
    • Thought Leader

    thank you so much Marika!

    0

Post is closed for comments.