Sunday, July 13, 2008

NetLogo Update

So far, the NetLogo model that we currently have plants one tree species. It has both birth, recruitment and death of the tree. The user can plant the tree anywhere using the cursor. There was a slight problem with recursion being too extreme in the program, as there were three equations (Growth, Maximum Potential Growth, and Diameter) which depended on each other and as a result couldn’t properly function when running at the same time. This was corrected. Now, the next goals we have for the model are:

                - Changing the size of the trees in the model to reflect their growth

                - Planting trees of different species

                - Adding graphs that reflect the changing state of certain tree variables

 

-- Irena

 

1 comment:

Geoffrey said...

Just wondering...how did you fix the recursion problem? I am trying to build a very simple cellular automata forest fire model, but a stack overflow recursive loop problem keeps preventing me from running my model as long as I want to.

Code with problem:
to ignite_trees
set pcolor red
[ask neighbors4 with [pcolor = green]
[ ignite_trees ]]
end

Good luck with your model!

Cheers,
Geoff