英文:
Exception during discrete event: Can't set arrival callback during movement
问题
我在运行模拟时遇到了这个图像中的错误,我不确定代理在哪里,也不知道如何找到它,因为它是一个非常庞大的模型。请问有人可以帮助我理解这个错误的含义以及如何排除它吗?
不幸的是,每次出现错误的代理都不相同。
英文:
I am encountering this error in the image while running the simulation, I am not sure where that agent is or how to find it as its a really huge model. Please can someone help me with understanding what does that error mean and how to get rid of it
Unfortunately it is not the same agent every time
答案1
得分: 1
一个可能的原因,我不知道是否唯一的原因是在尝试同时将代理移动到两个不同的位置(甚至是相同的位置)时会出现此错误。
例如,如果你有一个 moveTo 块,并且在 onEnter 动作中你执行 agent.moveTo(某处),你将会收到这个错误。
在你的情况下,这个错误似乎很少发生,因为你可能在不同的情况下同时发生了不同的 moveTo 操作,但这种情况非常罕见。所以我只能建议你仔细调查并消除任何可能同时给予代理不同移动指令的机会,即使目的地是相同的。
英文:
one of the reasons, i don't know if the only one for which this error can occur is when you are trying to move an agent to 2 different places (or even to the same place) at the same time..
So for example if you have a moveTo block and on the onEnter action you do agent.moveTo(somewhere) you will get this error.
It seems in your case that the error occurs rarely because you probably have different moveTo in different situations that occur at the same time in very rare occassions, so I can only tell you to investigate this carefully and remove any chance you are giving different moving instructions to agents at the same time, even if the destination is the same.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论