Systems Dynamics in AnyLogic - Fibonacci sequence

三世轮回 提交于 2019-12-02 03:50:55

The reason why this happens is because of the way differential equations are handled in each Software.

The reason you are getting the fibonacci sequence in vensim is because you are using Euler method with time step 1 (check in model settings)

If you change the integration type to RK45 in Vensim or if you reduce the time step using euler's method, you will probably get the same results as AnyLogic gets... Runge-Kutta method even though it starts with the fixed step of 1, it later changes the time step depending on the requirements of the dynamics of the model.

Now, let's understand that using a time-step of 1 is ridiculous in any practical application... But THAT'S WHy you get exact values in vensim... because those exact values are really extremely inaccurate for what the model really is. I would even say that the model on your link is a bad model and shouldn't be ever shown to the public.

Fortunately, AnyLogic doesn't allow you to do that. You can set up a time step of 1 in the model properties, but it will discover the inaccuracies immediately and change the time step to something much smaller (maybe 0.01)... Since it only allows to use Euler+Newton in the mixed equations option, but not Euler alone.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!