multi-agent

Netlogo, changing link-with to link-to

纵饮孤独 提交于 2020-03-04 21:52:08
问题 I am trying to create a network of influence for my turtles on my setup. Each turtle has an AD variable randomly set between 0 and 1.Each of them will create 5 undirected links. Now if they have AD low (below 0.3), they should look for someone with high AD in their network (above 0.7) and create a link to that person (to become a follower). I have tried with this code which doesn't work because some networks will not have anyone with AD > 0.7 and so when trying to kill the link I get runtime.

Netlogo, changing link-with to link-to

梦想的初衷 提交于 2020-03-04 21:50:20
问题 I am trying to create a network of influence for my turtles on my setup. Each turtle has an AD variable randomly set between 0 and 1.Each of them will create 5 undirected links. Now if they have AD low (below 0.3), they should look for someone with high AD in their network (above 0.7) and create a link to that person (to become a follower). I have tried with this code which doesn't work because some networks will not have anyone with AD > 0.7 and so when trying to kill the link I get runtime.

Netlogo, changing link-with to link-to

南楼画角 提交于 2020-03-04 21:50:13
问题 I am trying to create a network of influence for my turtles on my setup. Each turtle has an AD variable randomly set between 0 and 1.Each of them will create 5 undirected links. Now if they have AD low (below 0.3), they should look for someone with high AD in their network (above 0.7) and create a link to that person (to become a follower). I have tried with this code which doesn't work because some networks will not have anyone with AD > 0.7 and so when trying to kill the link I get runtime.

Netlogo, changing link-with to link-to

你说的曾经没有我的故事 提交于 2020-03-04 21:50:08
问题 I am trying to create a network of influence for my turtles on my setup. Each turtle has an AD variable randomly set between 0 and 1.Each of them will create 5 undirected links. Now if they have AD low (below 0.3), they should look for someone with high AD in their network (above 0.7) and create a link to that person (to become a follower). I have tried with this code which doesn't work because some networks will not have anyone with AD > 0.7 and so when trying to kill the link I get runtime.

How to monitor whether a ZeroMQ server exists?

霸气de小男生 提交于 2020-01-14 03:29:10
问题 I want to check the existence ( state ) of a server before I send a ZeroMQ request, but I have no idea how to do it. 回答1: Q : I want to check the existence ( state ) of a server before I send a ZeroMQ request The solution is to setup and use the services of a zmq_socket_monitor() // Read one event off the monitor socket; return value and address // by reference, if not null, and event number by value. Returns -1 // in case of error. static int get_monitor_event ( void *monitor, int *value,

Agent-based modeling resources [closed]

牧云@^-^@ 提交于 2019-12-31 08:39:10
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I would like to know what kind of toolkits, languages, libraries exist for agent-based modeling and what are the pros/cons of them? Some examples of what I am thinking of are Swarm, Repast, and MASS. 回答1: I found a survey from June 2009 that answer your question: Survey of Agent

How can I compute the distance between two patches?

三世轮回 提交于 2019-12-24 12:04:47
问题 I need to find the minimum distance between patches in front of my agent to a certain patch (goal), in order to select the patch that would create the most optimal (shortest) path. The primitive distance only requires one argument so I can't use it as is for this function. 回答1: The distance primitive only requires one argument, yes, but it is a "patch or turtle primitive": it must be run in the context of a particular agent by "asking" it for its distance to another, so you can think of the

Use undirected links instead of Directed links

a 夏天 提交于 2019-12-11 06:36:24
问题 In my model I use direct links to keep interaction value of each turtle to other turtles and each link has a different value for each end of the links which is exactly what I want and it was really easy to implement, However, I have a performance issue and my model is not working as fast as I think it should work. Now I am trying different methods to decrease the computation needs. One of the things that crossed my mind is to integrate all directed links to undirected links and put the value

Agent-based modeling resources [closed]

核能气质少年 提交于 2019-12-02 18:16:36
I would like to know what kind of toolkits, languages, libraries exist for agent-based modeling and what are the pros/cons of them? Some examples of what I am thinking of are Swarm , Repast , and MASS . darlinton I found a survey from June 2009 that answer your question: Survey of Agent Based Modelling and Simulation Tools Au. R.J. Allan Abstract Agent Based Modelling and Simulation is a computationally demanding technique based on discrete event simulation and having its origins in genetic algorithms. It is a powerful technique for simulating dynamic complex systems and observing “emergent”

How to model a very large world in NetLogo?

送分小仙女□ 提交于 2019-11-29 08:43:43
I need to create a very large grid of patches to have GIS information of a very large network (such as a city-wide network). My question is how to get NetLogo to model such a world? When I set the max-pxcor and max-pycor to large numbers, it stop working. I need a world of for example size 50000 * 50000. Thanks for your help. See http://ccl.northwestern.edu/netlogo/docs/faq.html#howbig , which says in part: “The NetLogo engine has no fixed limits on size...” It's highly unlikely that you'll be able to fit a 50,000 x 50,000 world, in your computer though — that's 2.5 billion patches. Memory