What is Engine.mc() and why is it slowing down my model?

不想你离开。 提交于 2019-12-12 04:12:30

问题


I recently hit a severe performance wall in an AnyLogic model and decided to do some method profiling. The top-level culprit was com.anylogic.engine.Engine.mc(), but what does it do, and how do we speed it up?


回答1:


Ideally, never use conditional transitions, only message-based, timeout-based and agent-arrival-based ones. Otherwise, your condition-based transition keeps checking all the time if it's condition has been met yet.




回答2:


It was explained to me that com.anylogic.engine.Engine.mc() is where conditions in events and transitions are checked. If Engine.mc() is slowing you down, check your condition events and condition transitions!



来源:https://stackoverflow.com/questions/45069863/what-is-engine-mc-and-why-is-it-slowing-down-my-model

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