Solve 1D Mean Field Games and mean-field–type control problems with the Rust backend. The solver couples a backward HJB equation with a forward Fokker–Planck equation using a fixed-point loop and implicit diffusion for stability.
- Residuals: track `||m^{k+1}-m^k||_1` and `||u^{k+1}-u^k||_inf`; stop when both flatten.
- Mass conservation: integrate `m` after each iteration; values close to 1.0 indicate stable transport.
- CFL sanity: if oscillations appear, reduce `dt` (increase `nt`) or raise `nu` slightly.
## Practical tips
- Grid resolution: start with `nx=64, nt=40`; move to 100×100 for publication-quality plots.
- Congestion: increase `lambda_congestion` to avoid density spikes; decrease for freer flow.
- Relaxation: `alpha=0.5` is a stable default; lower if the fixed-point loop jitters.
## Notebook and audit
- Full walkthrough: `examples/notebooks/mean_field_games_tutorial.ipynb` (all cells validated).
- Audit notes: the notebook renders convergence plots, 3D density/value surfaces, and time-slice snapshots; runs cleanly with the Rust backend (see `docs/MFG_TUTORIAL_COMPLETE.md`).