我如何在游戏环境中编码动态集?

发布于 2025-01-21 20:39:49 字数 417 浏览 0 评论 0原文

我想在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.

Constraint

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文