如何从代理类型中检索数据并将其带到主体以在任何logic中设置实验?
我已经开发了一个模型,该模型使用四种具有状态创作和离散事件模型模型的代理类型模拟团队工作行为。 作为逻辑步骤,我首先添加图形和其他分析元素来观察每个代理模型的行为。由于图显示在上代理处,因此我对此表示满意。 这四个代理是带有四个参数的“控制”,我有兴趣在模拟实验的范围内使用其中两个或三个参数。第四个必须是固定参数。 但是,优化和校准实验的设置需要主要代理中的数据集,而不是代理类型中的数据集,因此使用Anylogic和Nathaniel Osgood的视频教程。 我已经注意到,优化实验视频教程使用“函数”来总结油终端示例中的所有“输出”。这些“输出”正在从其他“功能”中收集信息,但所有内容都分配在主体代理中。 我的问题是:哪种实用程序,元素,块或代码我需要将存储在Agent类型数据集中的数据拉到主要代理中以设置实验?
I have developed a model that uses four agent types with state-chart and discrete events models simulating a team working behaviour.
As a logical step, I started by adding graphs and other analysis elements to observe the behaviour of each agent model. Since the graphs are shown at the upper agent, I was ok with that.
Those four agents are “controlled” with four parameters, and I’m interested in using two or three of them in a range for the simulation experiments. The fourth one must be a fixed parameter by the moment.
However, the setup of the optimization and calibration experiments, requires the datasets in the main agent and not in the agent type,accordingly with the Anylogic and Nathaniel Osgood’s video tutorials.
I have noticed that the optimization experiment video tutorial uses a “function” to summarize all the “outputs” in the Oil terminal example. Those “outputs” are collecting information from other “functions” but everything is allocated in the main agent.
My question is: What kind of utility, element, block, or code do I need to pull the data stored in agent type datasets to the main agent to be used to set up the experiments?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有任何。您使用 Java 代码。如果您在
main
中有一个名为myAgents
的代理群体,并且您希望其中的数据集为该群体中的第三个,则您始终可以使用main.myAgents 访问它.get(2).myDataset
。但这绝对取决于您编写代码的位置以及模型结构的实际外观。您需要了解一些基本的 Java 原理,请查看 AnyLogic 帮助以获取更多信息 。
None. You use Java code. If you have an agent population in
main
calledmyAgents
and you want the dataset in it for the 3rd in that population, you can always access it withmain.myAgents.get(2).myDataset
.But it absolutely depends on where you write that code and what your model structure actually looks like. You need to understand some basic Java principles, check the AnyLogic help for more info.