【发布时间】:2020-03-20 04:19:40
【问题描述】:
假设我有以下问题:
- 目标函数
c1x1 + c2x2(我们需要将其最小化) -x1 + x2 <= 00 <= x1 <= 30 <= x2 <= 2
我们还假设c1 = 1 和c2 = -0.5 以及另一个约束已添加c1x1 + c2x2 = P, were P = -1,0,1。
为了解决这个问题,使用linprog 的正确方法是什么?
bounds 是指下限吗?
感谢您的帮助。
【问题讨论】:
-
你的等式约束是什么意思?当然,将相同的表达式限制为等于三个不同的事物会使您的程序不可行。
标签: python optimization scipy mathematical-optimization linear-programming