在实验中管理多个Anylogic模拟 [英] Managing multiple anylogic simulations within an experiment

查看:171
本文介绍了在实验中管理多个Anylogic模拟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发AnyLogic 7下的ABM,并且正要从一个实验中进行多个模拟.将为每次模拟运行设置不同的参数,以便为一小套标准方案生成结果.

We are developing an ABM under AnyLogic 7 and are at the point where we want to make multiple simulations from a single experiment. Different parameters are to be set for each simulation run so as to generate results for a small suite of standard scenarios.

我们有一个无需按运行"即可自动启动的实验.随后按下运行"按钮,将增加实验计数器并重新运行模型.

We have an experiment that auto-starts without the need to press the "Run". Subsequent pressing of the Run does increment the experiment counter and reruns the model.

我们想要的是一种使自动运行或单击运行的方法启动模拟循环的方法.在该循环中将对链接到传递的参数的变量进行编程调整.

What we'd like is a way to have the auto-run, or single press of Run, launch a loop of simulations. Within that loop would be the programmatic adjustment of the variables linked to passed parameters.

编辑-一种折衷方式是某些参数是字符串. 优化"或参数变化"实验不适合枚举要在一组模拟运行中使用的一组字符串.您可以为一个实验中的所有模拟运行的每个参数设置 a 字符串.

EDIT- One wrinkle is that some parameters are strings. The Optimization or Parameter Variation experiments don't lend themselves to enumerating a set of strings to be be used across a set of simulation runs. You can set a string per parameter for all the simulation runs within one experiment.

我们已使用从外部无需演示窗口即可运行模型"的帮助示例,将自动运行功能添加到了初始实验设置代码块中.需要一种方法来等待运行0完成,然后分派运行1、2等.

We've used the help sample for "Running a Model from Outside Without Presentation Window", to add the auto-run capability to the initial experiment setup block of code. A method to wait for Run 0 to complete, then dispatch Run 1, 2, etc, is needed.

非常感谢具有此类功能的教程模型的指针,或指向实验Java块的代码片段的指针.

Pointers to tutorial models with such features, or to a snip of code for the experiment's java blocks are much appreciated.

推荐答案

也许我不理解您的需求,但这听起来确实像您想使用参数变化"实验.您可以指定应在哪些步骤中更改哪些参数,然后根据需要运行任意数量的模拟即可自动开始实验,而所有过程都无需动画.

maybe I don't understand your need but this certainly sounds like you'd want to use a "Parameter Variation" experiment. You can specify which parameters should be varied in which steps and running the experiment automatically starts as many simulation runs as needed, all without animation.

希望有帮助

这篇关于在实验中管理多个Anylogic模拟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆