多智能体仿真环境NetLogo介绍之导入外部数据

阅读: 评论:0

多智能体仿真环境NetLogo介绍之导⼊外部数据
十八大反腐倡廉气浮垫NetLogo Nw Extension
⾸先我们需要理解的是,为了使⽤network extension,如何告诉extension要使⽤哪个network。先考虑下⾯例⼦中的情形:
breed [ bankers banker ]
breed [ clients client ]
undirected-link-breed [ friendships friendship ]
directed-link-breed [ accounts account ]
基本上,我们有银⾏家和顾客。顾客和银⾏家之间通过账户联系。银⾏家之间也可以通过账户联系,任两个⼈之间都可以成为朋友
现在,我们或许会想到将整个事情当作⼀个⼤⽹络。默认地,NW extension原语考虑所有的海龟和连边当作⽹络的⼀部分。
然⽽,我们或许只对⽹络中的朋友关系感兴趣。进⼀步地,我们只对银⾏家之间的朋友关系感兴趣。为了具体化这种⽹络,我们需要告诉extension我们对哪些海龟和连边感兴趣。
⼀些例⼦:
私营企业主不能入党nw:set-context turtles links will give you everything: bankers and clients, friendships and accounts, as one big network.
civ
nw:set-context turtles friendships will give you all the bankers and clients and friendships between any of them.
nw:set-context bankers friendships will give you all the bankers, and only friendships between bankers.
莲文化nw:set-context bankers links will give you all the bankers, and any links between them, whether these links are
friendships or accounts.
观潮教学实录nw:set-context clients accounts will give you all the clients, and accounts between each other, but si
nce in our fictional example clients can only have accounts with bankers, this will be a completely disconnected network.

本文发布于:2023-06-27 15:50:54,感谢您对本站的认可!

本文链接:https://patent.en369.cn/xueshu/137467.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:感兴趣   环境   需要   朋友   关系   海龟   当作   入党
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 369专利查询检索平台 豫ICP备2021025688号-20 网站地图