You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This folder contains a collection of example models built using Mesa. These core models are maintained by the Mesa team and are intended to demonstrate the capabilities of Mesa.
2
+
These examples are a collection of classic agent based models built using Mesa. These core examples are maintained by the Mesa team and are intended to demonstrate the capabilities of Mesa.
3
3
4
4
More user examples and showcases can be found in the [mesa-examples](https://github.com/projectmesa/mesa-examples) repository.
5
5
6
6
## Basic Examples
7
7
The basic examples are relatively simple and only use stable Mesa features. They are good starting points for learning how to use Mesa.
Completed code to go along with the [tutorial](https://mesa.readthedocs.io/latest/tutorials/intro_tutorial.html) on making a simple model of how a highly-skewed wealth distribution can emerge from simple rules.
[Boids](https://en.wikipedia.org/wiki/Boids)-style flocking model, demonstrating the use of agents moving through a continuous space following direction vectors.
14
14
15
-
### [Conway's Game of Life](basic/conways_game_of_life)
15
+
### [Conway's Game of Life](examples/basic/conways_game_of_life)
16
16
Implementation of [Conway's Game of Life](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life), a cellular automata where simple rules can give rise to complex patterns.
Mesa implementation of the classic [Schelling segregation](http://nifty.stanford.edu/2014/mccown-schelling-model-segregation/) model.
20
20
21
-
### [Virus on a Network Model](basic/virus_on_network)
21
+
### [Virus on a Network Model](examples/basic/virus_on_network)
22
22
This model is based on the NetLogo [Virus on a Network](https://ccl.northwestern.edu/netlogo/models/VirusonaNetwork) model.
23
23
24
24
## Advanced Examples
25
25
The advanced examples are more complex and may use experimental Mesa features. They are good starting points for learning how to build more complex models.
Joshua Epstein's [model](http://www.uvm.edu/~pdodds/files/papers/others/2002/epstein2002a.pdf) of how a decentralized uprising can be suppressed or reach a critical mass of support.
Joshua Epstein's [model](https://www.pnas.org/doi/10.1073/pnas.092080199) of how a decentralized uprising can be suppressed or reach a critical mass of support.
29
29
30
-
### [Demographic Prisoner's Dilemma on a Grid](advanced/pd_grid)
30
+
### [Demographic Prisoner's Dilemma on a Grid](examples/advanced/pd_grid)
31
31
Grid-based demographic prisoner's dilemma model, demonstrating how simple rules can lead to the emergence of widespread cooperation -- and how a model activation regime can change its outcome.
32
32
33
-
### [Sugarscape Model with Traders](advanced/sugarscape_g1mt)
33
+
### [Sugarscape Model with Traders](examples/advanced/sugarscape_g1mt)
34
34
This is Epstein & Axtell's Sugarscape model with Traders, a detailed description is in Chapter four of *Growing Artificial Societies: Social Science from the Bottom Up (1996)*. The model shows how emergent price equilibrium can happen via decentralized dynamics.
Implementation of an ecological model of predation and reproduction, based on the NetLogo [Wolf Sheep Predation](http://ccl.northwestern.edu/netlogo/models/WolfSheepPredation) model.
0 commit comments