NetLogo Systems Dynamics Modeler for Agents [英] NetLogo Systems Dynamics Modeler for Agents

查看:35
本文介绍了NetLogo Systems Dynamics Modeler for Agents的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 NetLogo System Dynamics Modeler 来控制单个代理的行为.但是当我设置 Modeler 图时,生成的代码自动包含变量(股票、变量)作为全局.相反,我希望这些变量位于 turtles-own 下,以便每个代理自主运行系统动态模型.

I´m trying to use the NetLogo System Dynamics Modeler to control the behavior of individual agents. But when I set up the Modeler diagram, the code that is generated automatically includes variables (stocks, variables) as Global. Instead I would like these variable to be under turtles-own, so that each agent runs the systems dynamic model autonomously.

如果这是不可能的,我想我可以继续自己编写 ODE.但这样做时,最好使用 R 扩展来解决 R 中的 ODE(我还没有使用过 R),还是会比在 NetLogo 代码中使用 Euler 方法慢?

If this is not possible, I guess I can go on writing the ODEs myself. But in doing this, is it best to solve the ODEs in R using the R-extension (I haven´t used R yet), or will this be slower than using Euler´s Method in the NetLogo Code?

推荐答案

NetLogo 的 SDM 不允许这样做.(一般来说,NetLogo SDM 的功能非常初级.)

NetLogo's SDM doesn't allow this. (In general, the NetLogo SDM's capabilities are pretty rudimentary.)

但是,如果您已经有一个现有的 SDM 模型,您至少可以将其用作起点,只需将生成的 NetLogo 代码从 SDM 窗口的代码选项卡中复制出来,然后将其粘贴到模型的主代码选项卡中,然后然后从那里开始,从将 globals 更改为 turtles-own 开始.

But, if you already have an existing SDM model, you could at least use it as a starting point, by just copying the generated NetLogo code out of the SDM window's Code tab, pasting it into your model's main Code tab, and then taking it from there, starting with changing globals to turtles-own.

NetLogo SDM 的输出只是普通的 NetLogo 代码,没有隐藏的魔法,没有在后台运行的特殊求解器,只是你看到的代码.

The output of the NetLogo SDM is just ordinary NetLogo code, no hidden magic, no special solver running in the background, just the code you see.

不知道你的第二个问题——你可以试着分开问.

No idea about your second question — you might try asking that separately.

这篇关于NetLogo Systems Dynamics Modeler for Agents的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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