Article view

Melodie: Agent-based Modeling in Python

By Songmin Yu, Zhanyi Hou

Article information

Publication
Published 26 March 2023
Institutions at publication
Fraunhofer Institute for Systems and Innovation Research; Beihang University
11 Citations OpenAlex, 4 December 2026 FULL LIST: Citations
Countries with citations No data yet
Usage Phase 3: not collected yet

Abstract

Agent-based models (ABMs) characterize physical, biological, and social economic systems as dynamic interactions among agents from a bottom-up perspective. The agents can be molecules, animals, or human beings. The interactions can be water molecules forming a vortex, ants searching for food, or people trading stocks in the market. Agents’ interactions can bring emergent properties to a system and turn it into a complex system. The core reason for using ABMs is usually to model such mechanisms. Besides, taking social economic systems as example, ABMs are also flexible to consider agents’ (1) heterogeneity (e.g., wealth, risk attitude, preference, decision-making rule, etc.) based on micro-data; and (2) bounded rationality and adaptation behavior based on psychological and behavioral studies. Melodie is a general framework for developing agent-based models (ABMs) in Python. It is published and maintained on the GitHub organization page of ABM4ALL, a developing community among agent-based modelers for sharing ideas and resources. Together with the code repository, we have also published the documentation of Melodie, including a tutorial explaining how a minimum example - an agent-based covid contagion model - can be developed with Melodie step by step.

Citations per year

Citations per year
YearCitations
2023 0
2024 5
2025 3
2026 3

OpenAlex counts citations by year for the last ten years only, so the total and the list of citing works can include earlier ones.

Works citing this article

OpenAlex counts 11 citations, but the citing work are not listed here yet: citing works are collected from OpenAlex a few at a time, and it lists most, not all, of the citations it counts.

Where its authors are based

Countries of the institutions the article's authors were affiliated to when it was published.

  • AUTHORS
  • CITATIONS No data yet
  • USAGE Phase 3
Authors by country
CountryAuthors
China1
Germany1