Skip to main content

Objective Function Summation Help

Answered

Comments

2 comments

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

    Hi Richard,

    You can formulate line 51 with just one gp.quicksum and one pair of parentheses.  This should eliminate the error you are seeing.

    Please be aware for future questions that you will generally get a more thorough answer and faster response if you post your code in the form of a minimum reproducible example.

    - Riley

    0

Post is closed for comments.