如何在 java &cplex 中编写包含积分的常量?

发布于 2025-01-12 04:02:11 字数 295 浏览 1 评论 0原文

我两个月前开始 Java 编程。我不知道如何在 Java+Cplex 库中编写约束。该约束包含一个积分。 Java 是否已经包含一个完整的库,我只需要输入边界,或者是否有其他方法可以实现这一点?

 //constraints
            IloLinearNumExpr capacity= cplex.linearIntExpr();
            capacity.addTerms();
// the constraint is I-integral(P)dt+ Ps(t1-t0)>Ilow

I started Java programming 2 months ago. I don't know how to code a constraint in the Java+Cplex library. This constraint contains an integral. Does Java contain an integral library already and I'll need just to enter the bounds or is there another method for this?

 //constraints
            IloLinearNumExpr capacity= cplex.linearIntExpr();
            capacity.addTerms();
// the constraint is I-integral(P)dt+ Ps(t1-t0)>Ilow

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

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

发布评论

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