I'm trying to set "parent" variable in a nested ask but without luck. In code below I use an "outer" ask instruction "ask turtle 0" and below this a ...
I'm trying to set "parent" variable in a nested ask but without luck. In code below I use an "outer" ask instruction "ask turtle 0" and below this a ...
I have an agent set named "open patches", which I found using the following, in which "number_open_patches" is a specific radius depending on "length" ...
I'm trying to assign my breed called "evacuees" their age based on a percentage. The number of evacuees is based on a slider in the interface, meaning ...
I have a simple model, for example the model starts with 8 turtles, so: After some actions 5 of them die. After they die, I need to do ask tur ...
I'd like to subset agents based on values I have in a list. In the code below I have a list of values, called "ActiveID". I'd like to create an agents ...
I'm building a model loosely based on the Sugarscape model to look at corporate takeovers. I need to check the attributes of a neighbouring turtle, pe ...
Although NetLogo has a good set of primitives allowing for the handy creation of agentsets, sometimes we might want to ask agents to 'manually' add th ...
I'm fairly new to NetLogo and its programming capabilities. I am trying to create a grouping mechanism for my code so that NLCD classifications can be ...
If I select an agentset of patches, for example: How can I move all my turtles (Which are as much as my selected patches, so 9) each one to a DIFFE ...
I am simulating a neighborhood. Patches represent households, turtles people living there. I want to track "households" and thought it would be conven ...
Here is the problem: I need to compare a value inside turtles-own, which is best-food, with the other agents in the same agentset but I don't know ho ...
Here is what I want to do: I want a team consists of 3 turtles in a group. All turtles need to store their own ID and teammatesID inside the va ...
Given an agentset of two or more turtles, how I find the most frequent color? I would like to do something like that, if possible: ...
i got a problem with my breed (amministrazione spurgatori). I need each one of them to pick a different target from the same agentset (manholes with s ...
my model is a network of agents connected to each other with links. I try to create a agentset from the neighbors of an agents and their neigbors and ...
in my netlogo code I have a network with companies (that is my breed). I want to ask the companies to share information with their neighbors and their ...
I have trouble getting agent-sets in R using RNetLogo package Is there something wrong in using NLGetAgetSet function? I need some help. ...
This is relevant to the previous question just asked. How can I convert list(which representing turtles) to a agentset? For example, I want to make ...
I have a doubt and apologize if the answer is very obvious. I created the following code. Pretty simple & straightforward: As you can see, i ha ...
I have a list which will always contain only 1 turtle in it. It is a patch-only variable and hence when any patch is inspected it appears like best-tu ...