To use CoolWorld, you will have to install NetLogo 5.3.1 (free and open source) and download the model itself. Unzip the downloaded file and click on CoolWorld.nlogo
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
CoolWorld is an agent-based model designed to illustrate the usefulness of the theory of Markov chains to analyse computer models. This section explains the formal model that CoolWorld implements. The information provided here should suffice to re-implement the same formal model in any sophisticated enough modelling platform. We use bold red italicised arial font to denote parameters (i.e. variables that can be set by the user). For the sake of clarity in the explanation, we distinguish two components in CoolWorld: the agents and the environment. The agents in CoolWorld wander around the (cold) environment, showing a preference for warm places and houses.
The environment in CoolWorld is a 2-dimensional grid divided into square patches. The size and topology (toroidal, cylindrical, or fully bounded) of the environment can be set by the user. The environment has a certain temperature profile and a distribution of houses. More precisely:
Unless the user interacts with the model at run-time, neither the temperature profile nor the distribution of houses changes during the course of a simulation run. Finally, a patch's neighbourhood is defined as the set of (up to 8) other patches with which the patch shares an edge or a corner.
Agents in CoolWorld are called walkers, as walking on the environment is pretty much all they do. The user can choose the number of walkers and their initial location (i.e. a certain patch). When a walker is given the opportunity to move, her behaviour is determined by the following algorithm:
The value of prob-leaving-home and prob-random-move is shared by every walker in the model. There is no restriction about the number of walkers that can stay on the same patch at any time.
Events in CoolWorld take place in discrete time-steps. In every time-step each individual walker is given the opportunity to move once.
We use bold blue arial font to denote button names. The button Clear resets the model, and generates a random seed from the current time.
The environment in the applet above is made up of 33 patches x 33 patches and does not wrap around. The size and topology of the environment can be changed by the user if the model is downloaded and used within NetLogo.
The user can choose the number of walkers and their initial position by clicking on Create walker. When this button is clicked on, a walker is created on the selected patch, unless there is already a walker on that same patch. The values of prob-leaving-home and prob-random-move can be set using the corresponding sliders.
Random seed The user can also change the value of the random seed used to generate pseudorandom numbers by clicking on Change random seed. This functionality provides the opportunity to conduct exact replications of individual simulation runs. Predefined initial conditions If the button Special Conditions is pressed, the model is parameterised as follows:
Halting the model at a certain time-step The user can pause the model at any time-step by setting the slider pause-at-time-step. |
When the button go once is pressed, every walker is given one opportunity to move. Pressing the button go runs the model indefinitely (or until time-step pause-at-time-step, if not reached yet). The user can modify the value of any parameter at run-time. In particular, new hot spots and walkers can be created while the model runs.
The large square roughly in the middle of the applet is the representation of the 2D environment and the walkers. Houses are coloured in orange. Walkers are coloured in green, and represented as a person if standing on a patch without a house, and as a smiling face if standing on a patch with a house. In the latter case, the white label indicates the number of walkers in the same house.
Patches are coloured according to their temperature value (if display-mode is Temperature) or according to the number of visits they have received (if display-mode is Visits).
CoolWorld is an agent-based model designed to illustrate the usefulness of the theory of Markov chains to analyse computer models.
Copyright (C) 2008 Luis R. Izquierdo, Segismundo S. Izquierdo, José M. Galán & José I. Santos
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You can download a copy of the GNU General Public License by clicking here; you can also get a printed copy writing to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Contact information:
Luis R. Izquierdo
University of Burgos, Spain.
e-mail: lrizquierdo@ubu.es
This program has been designed and implemented by Luis R. Izquierdo, Segismundo S. Izquierdo, José M. Galán & José I. Santos
Final notes: Precise workings of Diffuse heat.
When the button Diffuse heat is pressed, the following algorithm is executed sequentially 10 times: "Each patch shares 50 percent of its temperature with its eight neighbouring patches. If a patch has fewer than eight neighbours the remainder stays on the patch whose temperature is being shared. Temperature updating occurs synchronously, i.e. all patches calculate at the same time how much temperature to give to each of their neighbours considering their individual temperature at time t; once every patch has calculated how much to share with each of its neighbours, all patches' new temperature values at time t + 1 are updated at the same time."