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

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -