Python, SimPy and Espresso: Your First Steps into Practical Simulation Modelling
summary
Live Python code using SimPy builds a 60‑minute coffee‑shop model with one barista, mean arrivals every 2 minutes and mean service 2.5 minutes (reproducible with seed 42). The run serves 23 customers, yields average wait ~7.5 minutes, a 95th percentile 15 minutes and a max queue of 13, showing variability matters. An extended model doubles arrivals 8:30–8:45, adds a temporary second barista and runs 50 seeds to compare outcomes; the demo executes and produces plots and CSV output.
AI-written summary · about
chapters (11)
- 0:00Introduction and thanks
- 1:05Coffee shop problem setup
- 3:12Why use simulation
- 4:14Core simulation concepts
- 5:39Building the coffee model
- 9:09Live demo of simulation
- 11:57Analyzing simulation results
- 13:22Advanced simulation features
- 15:49Manager intervention demo
- 17:12How to apply simulation
- 18:38Conclusion and resources
