Skip to main content

addConstrs for X @ Q @ X


1 comment

  • Chung-Yi Lin
    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)),

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


Please sign in to leave a comment.