Hi all.,
I can't figure out why I get this error for this code:
"GurobiError: Invalid argument to LinExpr addition"
m.addConstr( yti[t][v] >= quicksum (buv[u,v]*yti[t][u] for u in range(1,n+1) - (Teta[v] - epsilon) ), 'c1_%s_%s' %(v,t) )
''' buv is a two dimensional array created using Numpi, while yti is a two dimensions list '''
While this following code works fine for another constraint:
m.addConstr ( quicksum ( yti[0][i] for i in range(1, n+1) ) <= 3, 'c00')