Simulation Methodology
How the browser-based dashboard computes trajectories and indicators, step-by-step.
Computation pipeline
- Read & validate inputs (min/max bounds, numeric checks, required fields).
- Initialize compartments (S, E, I, R, V, Q, q) from totals and program settings.
- Iterate time for the selected horizon (e.g., 100 days): update each compartment using rates.
- Compute derived indicators (R₀, HIT, peak/day, duration, equilibrium where applicable).
- Render plots (Chart.js curves) and update summary panels.
- Export CSV/PNG/HTML using client-side downloads.
Quality checks (recommended)
- Non-negativity: compartments never go below 0 (clamp if needed).
- Mass sanity: totals stay within expected bounds (small drift acceptable if births/deaths included).
- Reproducibility: exported CSV matches plotted arrays (“what you see is what you download”).
- Edge cases: if R₀ ≤ 1, HIT is reported as 0%.
Related theory & figures
If you want Theorems / R₀ derivations / Sensitivity plots, open the theory viewer page.