如何计算座席人数并将号码保存到变量

时间:2019-04-08 12:35:04

标签: count anylogic

我想计算退出接收器的代理数量,并在运行模拟时将该数量连续保存到变量“负载”中。

https://imgur.com/rAUQ52n

Anylogic提出以下建议。.但我似乎无法正确解决。 long count()-返回通过此接收器块退出的代理数量。

希望你们中的一些可以帮助我

1 个答案:

答案 0 :(得分:0)

It should be easy... you don't even need a variable since sink.count() has the information you need always.

But if you insist in creating one, You can also create a variable called counter of type int and on the sink action just use counter++;