title: Gurobi - declare constrains in python
body: <p>I'm trying to declare the constraints below in Python but it does not work. </p>
  
  <p>This is my code:</p>
  
  <pre><code>m.addConstrs((tsk*Xkt[i]).sum(k, '*') + (tbk*Qkt[i]).sum(k, "*") &lt;= bt[i]+Ot[i] for i in range(0, t))
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/SyFAb.jpg" alt=""></p>