andrewchch / abceExamples

Repos for examples of abcEconomics simulations that can be extended from

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

abcEconomics examples

To run the examples, first install the abcEconomics dependency

pip install -r requirements.txt

then run the start.py file from one of the examples. Note: the examples are not always working with the latest version of abcEconomics, so always check the version used in requirements.txt

Directory

  • 2sectors: The "hello, world!" of abcEconomics
  • 50000_firms: Title says it all - 50k firms up and running
  • calendar: Shows how day/month can be incorporated
  • create_and_delete_agents: A simple illustration of how to create/delete agents during a simulation
  • mesa_example: A simple model of how to integrate abcEconomics and Mesa. The model and scheduler are implemented with abcEconomics while the space is implemented with Mesa.
  • one_household_one_firm: TODO
  • one_household_one_firm_with_logic: one_household_one_firm with decision making control flow of a firm to choose an action (adjust_price)
  • pid_controller: TODO
  • sugarscape: Implementation of Sugarscape ({G1}, {M, T}) from Epstein Chapter 4. Heavily uses Mesa library.

About

Repos for examples of abcEconomics simulations that can be extended from

License:Apache License 2.0