获取DocPlexexception:无法转换为表达式:< Generator对象< genexpr>在0x7F59FEDA16D0>
我尝试此代码
m.minimize(30 sum(x [“ product a”,j])+28 sum(i [“ product b”,j])+0.9 sum(i [“产品A”,j])+0.75 sum(i [“ product b”,j])in Products in Products in in Products)
它不断给我DocPlexexception:无法转换为表达式:
, 帮助我分解或让它起作用
Im trying this code
m.minimize(30sum(x["Product A",j])+28sum(I["Product B",j])+0.9sum(I["Product A",j])+0.75sum(I["Product B",j])for i in Products)
and it keeps giving me DOcplexException: cannot convert to expression: <generator object error
please help me break this down or let it work
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
效果很好,给予
works fine and gives