NetLogo End-of-Chapter Exercises
1. Change the other basic agent characteristics: size and shape
• Add a second population of turtles spreading from eastern Asia. Give
each population its own fixed color
Copyright By PowCoder代写 加微信 powcoder
Addan initial-pop-size slider. Modify the setup code to use
this to vary the size of the original population. Also adjust the code
so that these initial agents must be created on empty patches only.
4. First, add more population dynamics by adding age and death after
a certain age. Second, add probability of death (which is similar to
reproduction-probability). Define this probability as a function of
age, so that the older a turtle gets, the higher its probability of dying.
Y& B use a variable carrying capacity to affect the dispersal character-
istics. First, give all patches a variable called carrying-capacity
(check patches-own in the NetLogo Dictionary). For land patches,
set it to 1, and for water patches set it to 0. Modify the reproduc-
tion procedure to only allow turtles to hatch onto patches where
carrying-capacity is greater than the count of turtles on that
patch. Second, follow Y& Bin setting carrying-capacity higher
for patches below 30° of latitude, which corresponds on our map to
Pycor 307. Does this make any difference to the dispersal rate?
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com