GAMA-Platform

GAMA-Platform

  • Documentation
  • Tutorials
  • Download
  • Contribute
  • Blog

›Predator Prey

Tutorials

  • Tutorials

Predator Prey

  • Predator Prey
  • 1. Basic Model
  • 2. Vegetation Dynamic
  • 3. Prey Agent Behavior
  • 4. Inspectors and Monitors
  • 5. Predator Agent
  • 6. Breeding
  • 7. Agent Aspect
  • 8. Complex Behavior
  • 9. Stopping condition
  • 10. Charts
  • 11. Writing Files
  • 12. Image loading
  • 13. Model exploration

Road Traffic

  • Road Traffic
  • 1. Loading of GIS Data
  • 2. People Agents
  • 3. Movement of People
  • 4. Weight for Road Network
  • 5. Dynamic weights
  • 6. Charts
  • 7. Automatic Road Repair

3D Tutorial

  • 3D Tutorial
  • 1. Basic Model
  • 2. Moving Cells
  • 3. Connections

Incremental Model

  • Incremental Model
  • 1. Simple SI Model
  • 2. Charts
  • 3. Integration of GIS Data
  • 4. Movement on Graph
  • 5. Visualizing in 3D
  • 6. Multi-Level
  • 7. Differential Equations

Luneray's flu

  • Luneray's flu
  • 1. Creation of a first basic disease spreading model
  • 2. Definition of monitors and chart outputs
  • 3. Importation of GIS data
  • 4. Use of a graph to constraint the movements of people
  • 5. Definition of 3D displays
  • 6. Exploration of the model

BDI Agents

  • BDI Agents
  • 1. Skeleton model
  • 2. BDI Agents
  • 3. Social relation
  • 4. Emotions and Personality
  • 5. Norms, obligation, and enforcement

Predator Prey

This tutorial presents the structure of a GAMA model as well as the use of a grid topology. In particular, this tutorial shows how to define a basic model, to define "grid agents" which are able to move within the constraints. It also introduces the displays and agents' aspect.

All the files related to this tutorial (images and models) are available in the Models Library (project Tutorials/Predator Prey).

Content

Model Overview

In this model, three types of entities are considered: preys, predators and vegetation cells. Preys eat grass on the vegetation cells and predators eat preys. At each simulation step, grass grows on the vegetation cells. Concerning the predators and preys, at each simulation step, they move (to a neighbor cell), eat, die if they do not have enough energy, and eventually reproduce.

Tutorial models Predator-Prey.

Step List

This tutorial is composed of 12 incremental steps corresponding to 12 models. For each step, we present its purpose, an explicit formulation and the corresponding GAML code of the model.

  1. Basic model (prey agents)
  2. Dynamic of the vegetation (grid)
  3. Behavior of the prey agent
  4. Use of Inspectors/monitors
  5. Predator agents (parent species)
  6. Breeding of prey and predator agents
  7. Agent display (aspect)
  8. Complex behaviors for the preys and predators
  9. Adding of a stopping condition
  10. Definition of charts
  11. Writing files
  12. Image loading (raster data)
  13. Exploration of the model
← Tutorials1. Basic Model →
  • Content
  • Model Overview
  • Step List
GAMA-Platform
Networks
GitHub Facebook Twitter LinkedIn Youtube Blog RSS
Mailing list
For Users
gama-platform@googlegroups.com
For Developers
gama-dev@googlegroups.com
License

Copyright (C) - 2019 GAMA-Platform.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.

A copy of the license is included here, in the repository of the wiki content.