-
Notifications
You must be signed in to change notification settings - Fork 946
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into api_reorganization
- Loading branch information
Showing
9 changed files
with
55 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
|
||
# Examples | ||
$readme | ||
|
||
|
||
```{toctree} | ||
:maxdepth: 1 | ||
|
||
$examples | ||
|
||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
# Mesa core examples | ||
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. | ||
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. | ||
|
||
More user examples and showcases can be found in the [mesa-examples](https://github.com/projectmesa/mesa-examples) repository. | ||
|
||
## Basic Examples | ||
The basic examples are relatively simple and only use stable Mesa features. They are good starting points for learning how to use Mesa. | ||
|
||
### [Boltzmann Wealth Model](basic/boltzmann_wealth_model) | ||
### [Boltzmann Wealth Model](examples/basic/boltzmann_wealth_model) | ||
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 Flockers Model](basic/boid_flockers) | ||
### [Boids Flockers Model](examples/basic/boid_flockers) | ||
[Boids](https://en.wikipedia.org/wiki/Boids)-style flocking model, demonstrating the use of agents moving through a continuous space following direction vectors. | ||
|
||
### [Conway's Game of Life](basic/conways_game_of_life) | ||
### [Conway's Game of Life](examples/basic/conways_game_of_life) | ||
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. | ||
|
||
### [Schelling Segregation Model](basic/schelling) | ||
### [Schelling Segregation Model](examples/basic/schelling) | ||
Mesa implementation of the classic [Schelling segregation](http://nifty.stanford.edu/2014/mccown-schelling-model-segregation/) model. | ||
|
||
### [Virus on a Network Model](basic/virus_on_network) | ||
### [Virus on a Network Model](examples/basic/virus_on_network) | ||
This model is based on the NetLogo [Virus on a Network](https://ccl.northwestern.edu/netlogo/models/VirusonaNetwork) model. | ||
|
||
## Advanced Examples | ||
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. | ||
|
||
### [Epstein Civil Violence Model](advanced/epstein_civil_violence) | ||
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. | ||
### [Epstein Civil Violence Model](examples/advanced/epstein_civil_violence) | ||
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. | ||
|
||
### [Demographic Prisoner's Dilemma on a Grid](advanced/pd_grid) | ||
### [Demographic Prisoner's Dilemma on a Grid](examples/advanced/pd_grid) | ||
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. | ||
|
||
### [Sugarscape Model with Traders](advanced/sugarscape_g1mt) | ||
### [Sugarscape Model with Traders](examples/advanced/sugarscape_g1mt) | ||
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. | ||
|
||
### [Wolf-Sheep Predation Model](advanced/wolf_sheep) | ||
### [Wolf-Sheep Predation Model](examples/advanced/wolf_sheep) | ||
Implementation of an ecological model of predation and reproduction, based on the NetLogo [Wolf Sheep Predation](http://ccl.northwestern.edu/netlogo/models/WolfSheepPredation) model. |