
Newest 'netlogo' Questions - Stack Overflow
Stack Overflow | The World’s Largest Online Community for Developers
NetLogo: the meaning of TO-REPORT explained for dummies?
I have a problem to understand the role of to-report and report in NetLogo, even it seems pretty useful and I can't really find a help written in "human style" language. In NetLogo dictionnary ht...
netlogo - How to properly plot variables - Stack Overflow
Jul 3, 2015 · NetLogo recommended practice is to do this in the interface directly rather than in code. So, you could create a plot on the interface with, for example mean [revenue] of turtles as the plot code.
Netlogo , How to display number of ticks - Stack Overflow
Mar 24, 2015 · It is because of netlogo version it not work on 5.0R-3 version but it is working on 5.1 version thank you however there is still new problems is tick still running due to main simulation is rung I want just exactly tick value which all agents die for example whole simulation end at 500 ticks, where all agents die at 200 tick , interface should ...
netlogo: how to position turtles in certain location
Sep 24, 2013 · I want to position my turtles in a certain squared location. Why does this code below not work? Netlogo accepts it, but does not compile, saying "can't set turtle variable XCOR to non-number false"...
Netlogo: How can I obtain the accumulate value in Netlogo?
Oct 20, 2017 · Unfortunately, that code is problematic- it is missing variables (like the number-of-turtles) and has things like cd as a variable- but cd is a primitive in Netlogo already. A true MCVE is one that you have pared down to the absolute minimum code necessary to isolate your problem. That means cutting as much code as possible that is not relevant, and often it is …
netlogo - Turtles move to nearest patch of a certain color - how …
Try something like this: if random-float 1 < attr-prob [ let target-patch min-one-of (patches in-radius 25 with [pcolor = 9.9]) [distance myself] if target-patch != nobody [ move-to target-patch ] ] This should be faster for a couple reasons. First, the fastest code is the code that never runs. So, doing the probability check at the very beginning allows you to skip computing the closest …
Netlogo, creating obstacle avoidance algorithm - Stack Overflow
Apr 13, 2013 · I am simulating pedestrian motion in NetLogo, and am having trouble creating an obstacle avoidance algorithm from scratch. There are algorithms online but they are not suited for moving obstacles (...
Netlogo: Nested if/ifelse statements - Stack Overflow
Oct 17, 2019 · Building my first ABM using Netlogo and have a problem involving ifelse statements and how to use them. I'm modelling agents response to flooded properties. The concepts are as follows: If an agen...
netlogo - Putting turtles into groups: modified partners example ...
Aug 21, 2015 · I've been trying to write a model in NetLogo where I start with a certain number of turtles with random starting co-ordinates. When I hit go, I want the turtles to go into groups of a certain size ...