Skip to content

labormedia/rdx-sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reaction–Diffusion Exchange Economy Simulator

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.

🔍 What It Does

  • 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)

🔧 What It’s Useful For

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

📁 Output

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.

📘 Background

This project builds directly upon this work:

"The Chemical Basis of Morphogenesis" by Alan Turing (1952)

“Emergent Properties of Distributed Agents with Two-Stage Convex Zero-Sum Optimal Exchange Network” by Diego Correa Tristain (2024)

“Reaction-Diffusion Exchange Economies with Aggregated Cobb-Douglas Preferences for n >= 2 Goods” by Diego Correa Tristain (2025)

🚀 Getting Started

Make sure you have Rust installed, then run:

cargo run --release

About

Reaction–Diffusion Exchange Economy Simulator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages