我如何在游戏环境中编码动态集?
我想在GAMS环境中编码约束,但我不能。我想编码的约束在图像中看到。在此约束中,x(i,m,t)
是一个二进制变量,但x(i,m,t)
二进制可变被更改为x(i) ,m,d)
,如所示的图像所示,数字d
取决于tp(i)+1
。在tp(i)+1
中,p(i)
是一个参数,t
是一组。在此Equaiton中,我知道方程式要计算的内容,但我无法在游戏中进行编码。 如何在游戏环境中编码此方程式?谢谢。
I want to code a constraint in GAMS environment but I can't. The constraint that I want to code is seen in the image. In this constraint, x(i,m,t)
is a binary variable but x(i,m,t)
binary varible is changed as x(i,m,d)
and as seen in the image shown, the number d
depends on t-p(i)+1
. In t-p(i)+1
, p(i)
is a parameter and t
is a set of times. In this equaiton, I know what the equation wants to calculate but I can't code it in GAMS.
How can I code this equation in GAMS environment? Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论