Project 2: Simulation runs

Oct. 14, 2009

Posted by PERRY, JO under Information
0 Comments | Permalink

When you run a simulation, make sure that you do the task in each step in the correct order. This is the logic that I used:

for each step of the simulation
get the count for predator, prey, scavenger

plot all of the counts on the graph

get the projected population for predator
get the projected population for prey
get the projected population for scavenger

set the predator count with the value just retrived (from the projected population)
set the prey count with the value just retrieved
set the scavenger count with the value just retrieved

It is important to get each projected population before setting any count.  Make sure you understand why.



Post a Comment:
Comments are closed for this entry.