行人怪异行为中的特工

Agents in Pedestrian weird behavior

我正在构建一个模型,我应该告诉代理使用行人库在一组沙发中等待,但是一旦代理到达沙发节点,尽管使用了吸引子,他们会继续来回移动? 应该做的是坐下来并保持稳定 这似乎是什么问题?

行人不能“坐以待毙”。一旦他们感觉到附近有其他人,他们就会“变得紧张”,这取决于他们内部的防撞机制。

如果你必须冻结它们,一种方法是在它们到达目的地后将它们转换为普通代理(并在需要移动时重新转换为 Peds)。

查看帮助,将代理转换为不同类型是一项非常有用的技能,通常应用很多。还可以节省您的性能(无需对坐在那里的代理人执行 Ped 操作)

我曾经遇到过同样的问题并联系了 AnyLogic 支持。行人的移动是由可能导致这种情况的算法控制的。这些算法会受到您为行人选择的直径及其舒适速度的影响。例如,一旦他们在沙发上,您就可以将它们更改为 0。但是你需要在他们离开沙发后再次将其更改为原始速度。这是我收到的关于我最初问题的电子邮件:

Yes, it is common for pedestrians to shake a little bit in a wait block. This is a side effect of the algorithm that makes pedestrians stay away from obstacles and other pedestrians. Smaller diamiter reduces the impact of the obstavles on the pedestrians. But it is better to change the comfortable speed to 0. Then, they will stand still.

这是我的做法: