title: '>=' not supported between instances of 'generator' and 'int' Python Error
body: <pre><code>t = [1,2]
  J = range(5)
  </code></pre>
  
  <p>y's are variables to be determined
  I'm trying to make loop that looks like this:</p>
  
  <pre><code>1*x + y[0,0] &gt;= 10
  1*x + y[0,1] &gt;= 10
  1*x + y[0,2] &gt;= 10
  1*x + y[0,3] &gt;= 10
  1*x + y[0,4] &gt;= 10
  
  2*x + y[1,0] &gt;= 10
  2*x + y[1,1] &gt;= 10
  2*x + y[1,2] &gt;= 10
  2*x + y[1,3] &gt;= 10
  2*x + y[1,4] &gt;= 10
  </code></pre>
  
  <p>but when I try to make this as a loop: for example, like this</p>
  
  <pre><code>for i in range(t):
      (t[i]*x + y[i,j] for j in J) &gt;= 10
  </code></pre>
  
  <p>it gives me an error saying that </p>
  
  <pre><code>'&gt;=' not supported between instances of 'generator' and 'int'
  </code></pre>
  
  <p>I am wondering why I get this error. When I type the indexes for each t, and type in loop indexes for y, it doesn't give me any error but when I loop it, it gives me an error. What am I doing wrong?</p>