Tuesday, October 7, 2014

NetLogo

In anticipation of project 2, I tried to use NetLogo to emulate the effect I wanted to generate for project 2.
My idea for project 2 is to generatively create a forest on an arbitrary piece of terrain. I will use some  pseudoscience logic to control where the trees "grow." Basically, the lower parts of the terrain are where the water would collect and thus more favorable regions for trees to grow. However, too many trees near each other will compete for resources and block each others sunlight causing them to die. Therefore I predict that some sort of equilibrium could be achieved by balancing these parameters.

These parameters are what I attempted to simulate in this NetLogo model. I used the Rabbits and Grass model, but treated the energy providing grass as if it were water-rich soil and the rabbits were stand-ins for trees. I kept the grass fixed because the low areas of the terrain where the water collects would also remain fixed. For the rabbits, if they had enough energy they could reproduce like a tree spreading its seeds, but otherwise the remained still. I also queried how many neighbors each rabbit had so I could kill them off if they became to clustered.

Below is the initial condition for the model.

After running it briefly, the rabbit population seems to be skyrocketing. But they are mostly grouped where the grass is, which is what I intended.

 After letting it run some more, you can see the population does level off and approaches an equilibrium state.

I will be using these principles to help inform how I create project 2.

No comments:

Post a Comment