如何在任何时候循环浏览批处理的代理商?
我在模拟模型中有批处理和联合国批处理逻辑。我正在收集有关代理人人群的统计数据,在我的情况下,这是“ Myagent”。但是看起来它忽略了批处理状态的代理。如何获得批处理代理的属性?我想通过批次循环,以获取哪些代理在任何时间点都被批准。
I am having a batching and un batching logic in my simulation model. I am collecting statistics on agent population which in my case is "MyAgent". But looks like it is ignoring the agents which are in Batch State. How can I get the agent's properties which are batched ? I want to loop through Batch to get which agents are batched at any point in time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要访问批处理中的代理,您可以使用
cottents()
。添加批处理的自定义总体(并在其中添加新批次 - 请参见下图),假设您将其称为batchTypes
,然后循环循环浏览批处理的代理,您可以编写以下内容:To access the agents inside a batch, you can use
contents()
. Add a custom population for the batches (and add the new batches to it - see image below), let's say you call itbatchTypes
, then to loop through the batched agents, you write the following: