乌龟群的领导者选择(NetLogo) [英] Leader selection for crowd of turtles (NetLogo)

查看:63
本文介绍了乌龟群的领导者选择(NetLogo)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用NetLogo进行仿真,其中我必须处理许多每只代表机器人的乌龟.我需要找到一种用于领导者选择的算法.我想在人群之间做出领导,最终将人群引向预定目标.还是有其他方法可以使乌龟动态改变其行为以成为领导者.任何人都可以帮忙. 正如我们在模型库中看到的那样,该模型名为"Flocking".其中一只随机的海龟带领着所有的海龟.但是我不需要随机的乌龟,我需要的领导者应该在人群的中心或角落.

I am using NetLogo for a simulation in which i have to deal with many turtles each representing a robot. I need to find an algorithm for leader selection. I want to make leaders in between the crowd which will ultimately lead crowd toward the predefined target. Or is there any other way to which any turtle dynamically changes its behavior to become a leader. Any one if could help. As we see in the model library a model named "Flocking". In which a random turtles leads all turtles. But i don't need random turtle i need the leader which should be at center or at corners of crowd.

推荐答案

有两种直接的可能性:leader品种或is-leader?乌龟属性.请注意,就像其他任何属性一样,乌龟的品种可以动态更改.

There are two immediate possibilities: a leader breed, or an is-leader? turtle attribute. Note that a turtle's breed can be changed dynamically, just like any other attribute.

如果您将有多个领导者,则可能需要跟踪谁跟随他们.做到这一点的三种方法:领导者可以维护代理的跟随者集,或者每个机器人可以将leader属性设置为适当的领导者(对于领导者'bot可以为nobodyself),或者(作为第二种方法的更强大的变体),您可以创建从每个关注者到其领导者的定向链接.

If you will have multiple leaders you may need to keep track of who follows them. Three ways to do this: a leader can maintain an agent set of followers, or each robot can have a leader attribute set to the appropriate leader (which might be nobody or self for a leader 'bot), or (as a more powerful variant of the second approach) you could create a directed links from each follower to its leader.

hth.

这篇关于乌龟群的领导者选择(NetLogo)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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