python - gurobipy.GurobiError: Invalid argument to LinExpr multiplication -


i'm getting error: gurobipy.gurobierror: invalid argument linexpr multiplication bug has in following line:

m.setobjective(quicksum(sum(s[d, r] *x[d, r] r in piecewise)                * h[d] * z * vardemand[d] d in demandstage)                + quicksum(sum(s[j, r] * x[j, r] r in piecewise)                *h[j] * z * var[j] j in intermediatestage),                grb.minimize) 

x variable , rest dicts imported values out of excel files.

i've been staring @ quite time, can't see bug.


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -