具体示例如何在 GAMS 中建立约束
谁能帮我弄清楚如何在 GAMS 软件中引入这些约束? 谢谢。 在此处输入图片说明
Xijkl = 0, i ={3}, j={1,2 },对于属于 K 的所有 k,对于属于 L 的所有 l
Xijkl = 0,i ={2},j={3},对于属于 K 的所有 k,对于属于 L 的所有 l
Can anyone help me figure out how to introduce these constraints in GAMS software?
Thanks.
enter image description here
Xijkl = 0, i ={3}, j={1,2}, for all k that belong to K, for all l that belong to L
Xijkl = 0, i ={2}, j={3}, for all k that belong to K, for all l that belong to L
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里有一些见解:
您所描述的是变量 X 的具体值而不是方程。所以:
1- 定义集合:
2- 定义变量:
3- 定义当 X 固定为 0 时索引的具体组合。
Here some insights:
What you described are specific values for a variable X rather than an equation. So:
1- Define the sets:
2- Define the variable:
3- Define the specific combination of indexes when X is fixed to 0.