RepositoryJavaDEGermany
uwol

uwol/computational-economy

An agent-based computational economy with macroeconomic equilibria from microeconomic behaviors

139stars
22forks
0issues
3views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: computational-economics

#1 Repository of the month

1
TINIX TRENDING·Topic: feedback-systems

#1 Repository of the month

1
TINIX TRENDING·Topic: economics

#1 Repository of the month

Computational Economy

This is an agent-based computational economics simulator, which is constituted by agent types household, factory, trader, credit bank, central bank and state. The simulator implements a model akin to the Arrow-Debreu model, which adheres to neoclassical microeconomic theory, based on polypoly markets perpetuated by agent market participants. The micro-economic agent behaviors induce complex oscillation patterns attracted to macroeconomic equilibria due to the economic feedback cycles of the system.

💫 Star if you like this work.

License: GPL v3

animation

Agent types

  • Agent type Household: Households offer labour hours and consume goods according to CES or Cobb-Douglas utility functions. Intertemporal consumption and retirement saving preferences are modeled by Irving-Fisher and Modigliani intertemporal choice models.
  • Agent type Factory: Factories produce multiple goods (e. g. iron, coal, ...) according to an input-output-model based on Cobb-Douglas, CES and root production functions. Depending on the configured economic model, factories produce and accumulate capital goods, which induce economic growth and depreciate over time (→ Solow-Swan).
  • Agent type Credit bank: Credit banks manage bank accounts, create money by credit, trade currencies, follow minimum reserve requirements of central banks and buy bonds for deposits (fractional reserve banking).
  • Agent type Central bank: Central banks adjust key interest rates based on price indices. Key interest rates induce changes in buying behaviour via a monetary transmission mechanism.
  • Agent type Trader: Traders import goods from foreign markets for arbitrage.
  • Agent type State: States emit bonds, which are bought by credit banks for customer savings deposits. Thereby, national debt represents retirement savings of households.

Other entities / features

  • General equilibrium: Macroeconomic equilibria reproducibly emerge from non-stochastic microeconomic decision making of agents (→ Arrow-Debreu).
  • Markets: Sellers offer goods on markets. Settlement markets transfer ownership of goods and money, automatically.
  • Currencies: National currency zones, foreign exchange markets, arbitrage.
  • Shares: Joint-stock companies are owned by agents and pay dividends to them every period.
  • Bonds: Bonds are given as security for credit in open market operations between central and credit banks.
  • Time system: Agents register their actions as events in a global time system (observer pattern). At runtime agents can be instantiated and deconstructed at arbitrary points in time, enabling a dynamic population. Execution of events is not bound to a fixed sequential order of economic phases, e. g. for production and consumption.

Publication

How to run

Import into Eclipse:

  1. Clone or download the repository.
  2. In Eclipse import the directory as a an existing Maven project.
  3. Right click file src/main/java/io.github.uwol.compecon.simulation.impl.DashboardSimulationImpl.java and run as Java application.

Build process

  • The build process is based on Maven (version 3 or higher). Building requires JDK 11.
  • To build, run:
$ mvn clean package
  • You should see output like this:
[INFO] Scanning for projects...
...
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running io.github.uwol.compecon.economy.sectors.financial.CreditBankTest
loading configuration file testing.configuration.properties
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.784 sec
Running io.github.uwol.compecon.economy.sectors.household.HouseholdImplTest
...
Results :

Tests run: 44, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
  • To only run the tests:
$ mvn clean test

Screenshots

screenshot1

screenshot2

screenshot3

screenshot4

screenshot5

screenshot6

screenshot7

screenshot8

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
TauricResearch/TradingAgents

TradingAgents: Towards Agentic Finance Research

124.3k
Nov 25, 2026
RepositoryPython
openbq-org/OpenBB

Open Data Platform for analysts, quants and AI agents.

76.0k
Nov 29, 2026
RepositoryPython
mesa/mesa

Mesa is an open-source Python library for agent-based modeling, ideal for simulating complex systems and exploring emergent behaviors.

4.0k
Dec 1, 2026
RepositoryPython
QuantEcon/QuantEcon.py

A community based Python library for quantitative economics

2.4k
Nov 17, 2026
RepositoryPython
langgenius/dify

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

162.3k
Dec 2, 2026
RepositoryJavaScript
Snailclimb/JavaGuide

Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发

159.7k
Nov 27, 2026
RepositoryTypeScript
OpenHands/OpenHands

🙌 OpenHands: AI-Driven Development

94.6k
Nov 29, 2026
RepositoryTypeScript
koala73/worldmonitor

Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface

91.3k
Nov 29, 2026
RepositoryJava
alibaba/arthas

Alibaba Java Diagnostic Tool Arthas/Alibaba Java诊断利器Arthas

37.6k
Nov 24, 2026