0

在我的模型中ARENA,我有 22 个QUEUE我想将SUM它们的值显示在我的动画中。问题是我的expression长度超过了 256 个字符的限制,因此我被卡住了。这是我想要的表达式:

NQ(TRAFFIC LIGHT AT N1.Queue) + NQ(TRAFFIC LIGHT AT N2.Queue) + NQ(TRAFFIC LIGHT AT N3.Queue) + NQ(TRAFFIC LIGHT AT N4.Queue) + NQ(TRAFFIC LIGHT AT N5.Queue) + NQ(TRAFFIC LIGHT AT N6.Queue) + NQ(TRAFFIC LIGHT AT N7.Queue) + NQ(TRAFFIC LIGHT AT N8.Queue) + NQ(TRAFFIC LIGHT AT N9.Queue) + NQ(TRAFFIC LIGHT AT N10.Queue) + NQ(TRAFFIC LIGHT AT N11.Queue) + NQ(TRAFFIC LIGHT AT N12.Queue) + NQ(TRAFFIC LIGHT AT N13.Queue) + NQ(TRAFFIC LIGHT AT N14.Queue) + NQ(TRAFFIC LIGHT AT N15.Queue) + NQ(TRAFFIC LIGHT AT N16.Queue) + NQ(TRAFFIC LIGHT AT N17.Queue) + NQ(TRAFFIC LIGHT AT N18.Queue) + NQ(TRAFFIC LIGHT AT N19.Queue) + NQ(TRAFFIC LIGHT AT N20.Queue) + NQ(TRAFFIC LIGHT AT N21.Queue) + NQ(TRAFFIC LIGHT AT N22.Queue)

知道如何在我的模型中执行此求和吗?

4

1 回答 1

0

只是对于将来访问此页面的任何人,我发现的解决方法是variables使用上面提到的那个长查询的值进行定义。Arenaexpression本身不接受长查询,但它确实接受长查询作为变量值。ASSIGN因此,我在模型中的每个模块中定义了变量并更新了该变量。

于 2016-08-15T23:25:51.930 回答