I am trying to create a simulation of the niche-model for food webs. For each species [breed], the model randomly determines a niche ranging from 0-1 and a...
16742
murh01
peuleschil@...
Jun 12, 2013 4:05 pm
Hi guys, I'm making my very first NetLogo model (for my thesis) and I'm encountering some problems. Here is a short description: First and most important, I...
16743
mjrignacio
Jun 13, 2013 5:14 pm
... globals [ goal Smin Smax distWeight colorWeight ] turtles-own [ S Ac ] to setup ca set Smin 2 set Smax 6 set distWeight 2 set colorWeight 3 ask n-of n...
16744
James Steiner
gregortroll@...
Jun 13, 2013 5:15 pm
NEVER USE WHO NUMBERS -- unless you absolutely must. Hint: You'd know if you did. let sorted-turtles SORT <agentset> gives a sorted list of <agentset>, sorted...
16745
James Steiner
gregortroll@...
Jun 13, 2013 5:15 pm
You need to use a patches-own variable to store the value from the other patch. Once all patches have stored their new-value, they can apply it to value. ...
16746
James Steiner
gregortroll@...
Jun 13, 2013 5:15 pm
When using "TURTLES WITH [ criteria ] " what you are asking is for WITH to iterate through all the TURTLES, one at a time, and have each of those TURTLES...
16747
James Steiner
gregortroll@...
Jun 13, 2013 5:15 pm
... Oh, sorry, that's what you were doing... except you needed to use MYSELF instead if the breed name...
16748
Elio
elioamicarel...
Jun 13, 2013 5:15 pm
Hi, for the second point you can try with a loop: patches-own [yfitness] to setup clear-all test end to test let i min-pycor repeat (max-pycor * 2 + 1) [ let...
16749
Elio
elioamicarel...
Jun 13, 2013 5:15 pm
Hi, I solved the puzzle. I post here how I did it because could be useful for other modelers. If you think it is wrong, or you have any further suggestion on...
16750
Miss Kaka
jjedwards86@...
Jun 13, 2013 9:38 pm
Hi, I'm writing a code where I limit the movements of a set of turtles in a certain area of the space. The turtles follow a leader in that area by a distance...
16751
Elio
elioamicarel...
Jun 13, 2013 9:38 pm
Thank you James. I will remember your advice about who numbers. However, in formulating the initial question, I chose the 'who' variable for my Y just because...
16752
James Steiner
gregortroll@...
Jun 13, 2013 9:38 pm
It looks like you don't want to sort a list, you want to find the MAX value of an expression from a set of turtles. "Each turtle finds other turtle with...
16753
f1444es
Jun 15, 2013 1:52 pm
Hi Anon, Try the following: to setup ca crt 10 [setxy (random 16 - 8) (random 16 - 8) ] end to go ask turtle 0 [ rt (random 10) - 5 fd .1 let X xcor let Y ycor...
16754
f1444es
Jun 15, 2013 1:52 pm
Please, try to be a little bit more specific... there are a lot of different approachs to this problem depending on the kind of behavior you are trying to...
16755
f1444es
Jun 15, 2013 1:52 pm
Hi Raul, I am not sure about your goals, but I have tried my best in the next procedure: to grown-neigh ask patches with [not any? turtles-here] [ let...
16756
f1444es
Jun 15, 2013 1:52 pm
Hi Anon, Have you considered to separate "setup" from "go"? As you explain in your message, you aretrying to "repeat" the go procedure to simulate the step...
16757
f1444es
Jun 15, 2013 1:52 pm
Hi Creighton, As you must know, Netlogo has no "matrix" type (but you have an extension to use them). Anyway, I suppose that the first step you need is to...
16758
f1444es
Jun 15, 2013 1:53 pm
Hi Anon, I think that you code is right.. only some syntax mistakes. Please try this: to display-prod06-as-patches let lowest-point [prod06] of min-one-of...
16759
f1444es
Jun 15, 2013 1:53 pm
Hello Anish, If you have a breed for cells: breed [cells cell] And let's suppose that you hace a pore as a set of patches (it is what I understood from your...
16760
f1444es
Jun 15, 2013 1:53 pm
Hi David, If you have the turtles linked of course you can use link-neighbors to know who are connected to someone... and you can add more conditions using...
16761
f1444es
Jun 15, 2013 1:53 pm
Hello Julia, As far as I can see, there is no problem with your procedure, but it is hard to say only seeing one procedure. Could you please paste the go...
16762
f1444es
Jun 15, 2013 1:53 pm
Hello Daniel, I suppose there are several solutions, and it will depend on the other requirements of your model. But there are some direct options: 1.- Putting...
16763
Seth Tisue
sethtisue
Jun 15, 2013 9:15 pm
just a small amendment. this: let lowest-point [prod06] of min-one-of patches [prod06] let highest-point [prod06] of max-one-of patches [prod06] can be...
16764
desertfox1982roma
desertfox1982@...
Jun 15, 2013 9:15 pm
Hi guys, first of all I wanna introduce me to this group because i just signed in and overall I'm a newbie of netlogo. Im Jacopo and im writing from Italy....
16765
Christopher
mrredapple
Jun 15, 2013 9:16 pm
The turtle starts small. It's very normal, like all the other turtles. Predators or other turtles in the environment do not seek the turtle. Over time, the...
16766
Alan G Isaac
aisaac0
Jun 15, 2013 9:18 pm
I need to create disjoint subsets of known sizes from my turtles. I'm creating sublists of a list of the turtles. Is there a better way? Alan Isaac PS Here's...
16767
tienoud2
Jun 16, 2013 12:10 pm
Hi body, I have this error: "You can't use GO in an observer context, because GO is turtle-only" I checked that topic: ...
16768
murh01
peuleschil@...
Jun 16, 2013 8:11 pm
Thanks to both of you guys! I made some patch variables for storage purposes (very useful trick) and used the looping code. It all worked fine. Thanks....
16769
savefish20
savefish20@...
Jun 17, 2013 4:09 am
Hi Thomas, I am very interested in bringing in netcdf files as "rasters" within NetLogo. I have the NetLogo R-extension running fine, and am curious if you...
16770
rey sebastien
rey.sebastien
Jun 17, 2013 3:11 pm
Hi, OpenMOLE <http://www.openmole.org> (Open MOdeL Experiment) is a workflow engine designed to leverage the computing power of parallel execution environments...