Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我有多个积极的决策变量,我想根据某个因素限制为 == 0,添加一个约束还是多个约束更好?
这是一个大大简化的示例:
var1 == 0
var5 == 0
var7 == 0
或者
var1 + var5 + var7 == 0
我使用求和方法继承了一个模型,我想知道为什么要这样做。我知道我可以进行一些实验,但我只是想知道是否有人知道答案。