Skip to main content

addConstrs for X @ Q @ X

Comments

1 comment

  • 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

Please sign in to leave a comment.