This directory contains example models meant to test and demonstrate Mesa's features, and provide demonstrations for how to build and analyze agent-based models. For more information on each model, see its own Readme and documentation.
Classic models, some of which can be found in NetLogo's/MASON's example models.
A highly abstracted, simplified model of an economy, with only one type of agent and a single bank representing all banks in an economy.
A cellular automaton model where agents opinions are influenced by that of their neighbors. As the model evolves, color patches representing the prevailing opinion in a given area expand, contract, and sometimes disappear.
Implementation of Conway's Game of Life, a cellular automata where simple rules can give rise to complex patterns.
Joshua Epstein's model of how a decentralized uprising can be suppressed or reach a critical mass of support.
Boids-style flocking model, demonstrating the use of agents moving through a continuous space following direction vectors.
Simple cellular automata of a fire spreading through a forest of cells on a grid, based on the NetLogo Fire model.
Conway's game of life on a hexagonal grid.
Grid-based demographic prisoner's dilemma model, demonstrating how simple mimicing can lead to the emergence of widespread cooperation -- and how a model activation regime can change its outcome.
Mesa implementation of the classic Schelling segregation model.
Completed code to go along with the tutorial on making a simple model of how a highly-skewed wealth distribution can emerge from simple rules.
Implementation of an ecological model of predation and reproduction, based on the NetLogo Wolf Sheep Predation model.
Implementation of Sugarscape 2 Constant Growback model, based on the Netlogo Sugarscape 2 Constant Growback
This model is based on the NetLogo model "Virus on Network".
Example models specifically for demonstrating Mesa's features.
A modified version of the "bank_reserves" example made to provide examples of mesa's charting tools.
Example of grid display and direction showing agents in the form of arrow-head shape.