Skip to main content

7.1) Variable Definition


Now, let us start programming this model with the second part of its ODD description, the state variables and scales. First, define the model’s state variables - the variables that patches, turtles, and the observer own.

Go to the code tab and insert:

globals []
patches-own []
turtles-own []

Click the Check button. There should be no error message, so the code syntax is correct so far.