我如何为优化数学编程(MIP)制定这些约束

发布于 2025-01-18 20:19:48 字数 531 浏览 0 评论 0原文

我正在努力解决一些范围范围的变量和几个决策变量的约束。

限制是

`if a[i] <= t <= a[i]+b[i], then M[t][i] == 1,
else if t < a[i] or t > a[i]+b[i], then M[t][i] == 0.


decision variables (int a[i], b[i])
                    (boolean M[t][i])
Examples of ranges of the variables 
0 <= a[i] <= 50
0 <= b[i] <= 10
0 <= t <= 100`

我想将这些配方(例如大-M方法或等等)线性化...

PLZ,让我知道克服它的方法。 谢谢。

通过使用Big-M方法或等等的线性化...

例如...

M*t + (M-1)*t <= M*(a[i]) + (M-1)*a[i]

I am struggling with some constraints that have ranged variables and several decision variables.

The constraints are

`if a[i] <= t <= a[i]+b[i], then M[t][i] == 1,
else if t < a[i] or t > a[i]+b[i], then M[t][i] == 0.


decision variables (int a[i], b[i])
                    (boolean M[t][i])
Examples of ranges of the variables 
0 <= a[i] <= 50
0 <= b[i] <= 10
0 <= t <= 100`

I'd like to linearize these formulations, like as Big-M method or etc...

Plz, let me know the way to overcome it.
Thank you.

Linearization by using the Big-M method or etc...

such as...

M*t + (M-1)*t <= M*(a[i]) + (M-1)*a[i]

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

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

发布评论

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