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
Post a Comment