2025-10-30 02:21:55 +00:00
|
|
|
|
# PolyCode Simulator (v0.1)
|
2025-10-30 02:21:04 +00:00
|
|
|
|
|
2026-07-08 14:05:10 +02:00
|
|
|
|
Simulator for PolyCode Market Dynamics
|
|
|
|
|
|
|
2025-10-30 02:21:55 +00:00
|
|
|
|
## Quickstart
|
|
|
|
|
|
|
|
|
|
|
|
1) Run a single demo simulation:
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
python simulator.py
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
2) Run a tiny parameter sweep (edit ranges inside `experiments.py` for deeper runs):
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
python experiments.py
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Outputs are written to `./runs/`.
|
|
|
|
|
|
|
|
|
|
|
|
## Files
|
|
|
|
|
|
|
|
|
|
|
|
- `spec.md` — rigorous protocol description (this repo)
|
|
|
|
|
|
- `README.md` — quickstart
|
|
|
|
|
|
- `simulator.py` — core engine + one‑run demo
|
|
|
|
|
|
- `strategies.py` — pluggable investor/voter strategies
|
|
|
|
|
|
- `experiments.py` — grid sweeps and KPI aggregation
|
|
|
|
|
|
- `params_default.json` — baseline parameters
|