CPLEX / OPL三维决策变量(CPLEX/OPL three

编程入门 行业动态 更新时间:2024-10-08 19:47:49
CPLEX / OPL三维决策变量(CPLEX/OPL three-dimensional decision variable)

是否可以在OPL中使用三维决策变量?

我想对网络图进行优化。 特别是,我需要每个节点对的二维决策变量。 我可以避免使用单个三维决策变量。

Is it possible to use three-dimensional decision variable in OPL?

I want to do optimization on the network graph. In particular, I need two-dimensional decision variable for each pair of nodes. I can avoid that with single three-dimensional decision variable.

最满意答案

当然。

您可以在CPLEX_Studio127 \ opl \ examples \ opl \ models \ NoughtsAndCrosses中看到和示例

三维不确定性和十字架

惠普威廉姆斯数学规划模型构建中的问题17。

> range r=1..3; > dvar boolean cell[r][r][r];

of course.

You can see and example in CPLEX_Studio127\opl\examples\opl\models\NoughtsAndCrosses

Three-dimensional Noughts and Crosses

Problem 17 from Model Building in Mathematical Programming by H.P. Williams.

> range r=1..3; > dvar boolean cell[r][r][r];

更多推荐

本文发布于:2023-08-04 01:30:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1408619.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:变量   CPLEX   OPL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!