我想计算退出接收器的代理数量,并在运行模拟时将该数量连续保存到变量“负载”中。
Anylogic提出以下建议。.但我似乎无法正确解决。 long count()-返回通过此接收器块退出的代理数量。
希望你们中的一些可以帮助我
答案 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++;