This project simulates a decentralized economic system in which multiple agents interact by transforming and exchanging different types of goods. It is inspired by biological reaction–diffusion models and extended to represent economic behavior using mathematical optimization.
- Models 100 agents exchanging 15 types of goods
- Each agent has its own preferences and transformation rules (like recipes)
- Goods are produced (reaction) and traded (diffusion) in every round
- Agents aim to maximize utility using Cobb–Douglas preferences
- Prices adjust automatically until supply matches demand
- Supports visualizing economic behavior over time (e.g., specialization, equilibrium)
This simulator helps researchers and developers:
- Study how decentralized agents make decisions in an economy
- Explore how preferences and transformation rules affect market outcomes
- Analyze how prices and goods evolve over time
- Experiment with market-clearing behavior and emergent specialization patterns
- Prototype models of economic coordination, blockchain tokenomics, and distributed optimization
The simulation produces data files (in CSV format) that contain:
- Price history
- Goods held by agents over time
- Market supply and demand gaps
- Trade participation levels
You can analyze this data using Python, R, Excel, or other tools.
This project builds directly upon this work:
"The Chemical Basis of Morphogenesis" by Alan Turing (1952)
Make sure you have Rust installed, then run:
cargo run --release