You probably don't want a list... but you can always get one later. To append to a list you use FPUT or LPUT. FPUT is faster for very long lists. All the list...
8873
James Steiner
askturtlezero
Apr 1, 2009 5:56 pm
You want to write set mylist (list var) See the definintion of the LIST primitive for more information....
8874
Giorgio Calanni
grgcln
Apr 2, 2009 10:18 pm
Hello everyone, i have various sets of patches and i want to assign specific turtles to them (1 turtle going towards a particular set). to make things easier,...
8875
waldo_pusher
waldo_pusher@...
Apr 3, 2009 1:04 am
Seems like a simple question, at least it is in a procedural language, but I am trying to do the following - For each turtle For each other turtle with color...
8876
James Steiner
askturtlezero
Apr 3, 2009 11:54 am
THe answer here depends on why you are looking for the distance...and are you storing it... In general, one iterates turtles (and patches) using ASK, as in: ...
8877
Jim Lyons
jimlyons37
Apr 3, 2009 2:21 pm
... Wayne, Nested loops are a little tricky in NetLogo because of the way it uses the special loop variable -- each loop refers to its loop variable the same...
8878
Giorgio Calanni
grgcln
Apr 3, 2009 10:59 pm
Hello everyone, I have two groups of patches both of the same colors. the two groups don't share any patches. I want to create two agentsets, each of which...
8879
James Steiner
askturtlezero
Apr 6, 2009 1:27 pm
I'm confused... how do you create the second group... if you don't have an agentset for it? In other words... it is often the case that the code that defines...
8880
concetta_sorropago
concetta_sor...
Apr 6, 2009 1:28 pm
Hello anybody, May you help me. I use Netlogo for the first time, and I would write an application where the world is divided in rectangular patches, each...
8881
Jen Burton
jenburton18@...
Apr 6, 2009 5:33 pm
I've seen as little as 20......
8882
jscheesman
jscheesman@...
Apr 7, 2009 4:16 pm
Hi all, Upon modifying a program, I have run upon a problem. I am unfamiliar with the override commands and was wondering if anyone knew how to extract the...
8883
Esther Verreau
estherverreau
Apr 7, 2009 4:17 pm
Hi Concetta - Could you be more specific about what you need help on? Send the code that you have now, explain what you want it to do and how what is does now...
8884
Esther Verreau
estherverreau
Apr 8, 2009 2:55 am
Hi Sam - I'm a little bit confused about what you are trying to do. First, you can't use the arrow keys interact with a NetLogo model, HubNet or not. You can...
8885
youngis89
Apr 8, 2009 2:56 am
While I coded, I've got a quetion. Let me explain my model first. There are 100 turtles with different productivity level. If (the productivity level of a...
8886
chunkyorkshireman
chunkyorkshi...
Apr 8, 2009 2:56 am
Hi all, I would like to export the xcor and ycor of a turtle breed, to an .xls file. I only want the current position, so the value should be replaced as the...
8887
chunkyorkshireman
chunkyorkshi...
Apr 8, 2009 1:06 pm
Morning, Sorry, realised i made a silly mistake so i now have values exporting to an excel file - but i only want the current x & ycor values, not the history....
8888
James Steiner
askturtlezero
Apr 8, 2009 1:06 pm
Hi, Tim! What is SPACES? a breed or agentset? If it's empty, nothing will print. Also, what you show is NOT the desktop path on a windows computer... I can't...
8889
James Steiner
askturtlezero
Apr 9, 2009 12:18 am
If you only want the current values, then only write the file after the model has run and stopped... does that make sense, or am I missing something? On Wed,...
8890
concetta_sorropago
concetta_sor...
Apr 9, 2009 12:18 am
Hi everybody, I have my world built as a box 0f 10 * 10 patches, each horizontal line of patches represents a period of time, you can think it is a month, each...
8891
chunkyorkshireman
chunkyorkshi...
Apr 9, 2009 7:18 pm
Hi James, No that makes sense but I'd like to try and use netlogo in conjunction with another platform so I want the current values only as the model is...
8892
Uri Wilensky
uwilensk
Apr 9, 2009 7:18 pm
The Center for Connected Learning and Computer-Based Modeling at Northwestern University is pleased to announce the release of NetLogo 4.1beta2. NetLogo...
8893
adrianoouk
adrianoouk@...
Apr 9, 2009 7:19 pm
Hey All, I am developing an model of a contained ecosystem based on the wolf, sheep, grass predation model and the urban suite - pollution models. The agents I...
8894
btmarti25
Apr 9, 2009 10:16 pm
Hello, Im am running a fairly large model and having som issues with speed. The full model uses 128 ^2 patches and a couple hundred thousand turtles and has...
8895
James Steiner
askturtlezero
Apr 9, 2009 10:16 pm
Hi Tim, OK... then... NetLogo always writes to files in APPEND mode, so if you want only the most recent set of coords, you need to delete the existing file...
8896
chunkyorkshireman
chunkyorkshi...
Apr 10, 2009 3:32 pm
Great! Thanks James....
8897
btmarti25
Apr 11, 2009 4:12 am
... Well thinking about it there is really only one part of my code which runs very slowly but not sure if there is a better way. Pretty much this part of the...
8898
jscheesman
jscheesman@...
Apr 11, 2009 4:18 am
Thank you Esther. That actually clears up a lot of the confusion I'm having and makes a whole lot of sense. I do have one still have one question though. I am...
8899
James Steiner
askturtlezero
Apr 12, 2009 2:34 pm
First: you use [sum] of patches inside ASK PATCHES... that means you are calculating [ sum] of patches 128 ^2 times!! calculate that and put it in a temp...
8900
sanbalestrini
Apr 12, 2009 2:34 pm
The "couple hundred thousand" turtles tells me that you may be pushing the envelope here. On the other hand, you identified functions that make no reference to...
8901
Esther Verreau
estherverreau
Apr 13, 2009 11:59 pm
Hi Sam - ... I don't understand what you mean by override commands. I think you might not have the right terminology (or I just don't understand what you're ...