Skip to main content

addConstrs for X @ Q @ X

Comments

2 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.
  • Chung-Yi Lin
    • Gurobi-versary
    • First Question
    • First Comment

    I found myself adding the constraint in a very basic way

    m.addConstrs((Err[t] == sum(Z[s, t] * Z[s, t] * g for s in range(nS)) for t in range(0, nT)),
                 name="cErr")

    If there is a smarter way to add such a constraint, please let me know.

    0

Post is closed for comments.