top | item 35029762

(no title)

didntreadarticl | 3 years ago

From the title it sounds like research on humans but the paper is actually all about a simple software model of a group of entities going 'foraging'

The model is using a program called NetLogo

https://github.com/NetLogo/NetLogo

https://ccl.northwestern.edu/netlogo/index.shtml

Source code for the model used in this paper

https://figshare.com/articles/software/Netlogo_code_supporti...

Seems like a fun program, you set up 'turtles' and give them attributes and rules and then watch them roam around

I thought this was interesting:

    ;adding individual noise into the speeds of individuals, to avoid computational problems caused by all individuals being on top of each other in a cell
    ask turtles [                               
        set individual-speed 0.95 + random-float 0.05
    ]
Like, seems like a good idea to add the random speed but why does having all the turtles in one cell cause such a problem?

discuss

order

AlecSchueler|3 years ago

Or why not program them to wait (or whatever other behaviour, from turning around/re-routing to fighting) when they see the cell in front of them is already occupied by another turtle?

Doxin|3 years ago

I'd assume there's some sort of collision/overlap detection going on. If all the turtles are in a single cell all of the turtles are touching all of the turtles, which runs into O(n^2) issues real quickly.