IBM

From QERM Wiki
(Difference between revisions)
Jump to: navigation, search
(Variability in the Super-individual)
 
Line 1: Line 1:
 
== Variability in the Super-individual ==
 
== Variability in the Super-individual ==
  
This page contains 3 scripts for a final project in QERM 550.  It has been put on the Wiki so that results may be reproducible and to highlight a framework which can be used for coding an IBM in R as  opposed to more traditional object oriented languages like C++.  For the project, a simple generic IBM was coded, modeling young-of-the-year fish foraging on a limited food population.  Then this model was recoded twice using two different super-individual approaches described by Grimm and Railsback (2005).  A full description is given by Scheffer et. al (1995).  The extent to which variability was lost or retained in the super-individual schemes compared to the purely individual based was the focus of the project.
+
This page contains 3 scripts for a final project in QERM 550.  It has been put on the Wiki so that results may be reproducible and to highlight a framework which can be used for coding an IBM in R as  opposed to more traditional object oriented languages like C++.  For the project, a simple generic IBM was coded, modeling young-of-the-year fish foraging on a limited food population.  A full description is given by Scheffer et. al (1995).  Then this model was recoded twice using two different super-individual approaches described by Grimm and Railsback (2005).  The extent to which variability was lost or retained in the super-individual schemes compared to the purely individual based was the focus of the project.
  
 
    
 
    

Latest revision as of 03:17, 10 June 2008

Contents

Variability in the Super-individual

This page contains 3 scripts for a final project in QERM 550. It has been put on the Wiki so that results may be reproducible and to highlight a framework which can be used for coding an IBM in R as opposed to more traditional object oriented languages like C++. For the project, a simple generic IBM was coded, modeling young-of-the-year fish foraging on a limited food population. A full description is given by Scheffer et. al (1995). Then this model was recoded twice using two different super-individual approaches described by Grimm and Railsback (2005). The extent to which variability was lost or retained in the super-individual schemes compared to the purely individual based was the focus of the project.


Pure IBM

Here is the Rlogo.jpg code used for the pure IBM. The real simulated population size used in the project has been reduced for efficiency.


super IBM 1

Here is the Rlogo.jpg code used for the first super individual approach. When in starvation mode, this approach reduces the internal amount of each super-individual by a random draw from a Binomial(n,p) distribution.


super IBM 2

Here is the Rlogo.jpg code used for the second super individual approach. When in starvation mode, this approach reduces the internal amount of each super-individual by a random draw from a Binomial(n,p) distribution. When this internal amount falls belows 25% of it's original value it is recombined with another super-individual based on several criteria. Unfortunately, the recombination function was coded with two while loops and this script runs a bit slower.


References

Scheffer, M., Baveco, J.M., DeAngelis, D.L., Rose, K.A. and van Nes, E.H. (1995) Super-individuals a simple solution for modeling large populations on an individual basis. Ecological Modeling

Volker, G and Railsback, S. (2005) Individual Based Models and Ecology. New York: Wiley

Personal tools