Hi Rafaela,
You will save memory if you only use 150 turtles at a time. However unless the patches are entirely independent of each other this may not solve your problem.
I have included code below in which each patch is initialized by 150 turtles. You could use similar code to set patch variables.
This code uses ask, so the patches act in random order. You might be interested in the “Ask Ordering Example” in the Models library.
I use a small number of patches and a large patch size so that you can see the patch pattern.
to setup
clear-all
resize-world -1 1 -1 1
set-patch-size 100
end
to initialize-patches
ask patches [ initialize-patch]
end
to initialize-patch
sprout 150 [set size .1 fd .4 stamp die]
end
Aaron
--
Aaron Brandes, Software Developer
Center for Connected Learning and Computer-Based Modeling
--
You received this message because you are subscribed to the Google Groups "netlogo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
netlogo-user...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/netlogo-users/CAHs8kB_oPSUuV-m%2B3O7q_X0G0PXSC5tz0ge9kUXcaKs3cj2rfQ%40mail.gmail.com.
--
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/CACv-4rCs87cdS79hL6EBBJ2Y9UubX8JQM-B538E8%3Dme4V%3DA0GA%40mail.gmail.com.