Loading SimPy and other libraries...
This may take a moment
SimPy Simulation Playground
Explore and run SimPy simulations from different industries below.
Steel Production Plant Simulation
This simulation models a steel production facility with multiple furnaces processing steel batches. The simulation demonstrates:
- Resource allocation and contention (furnaces)
- Process times with variability
- Queue management and waiting times
- Production throughput analysis
Adjust the parameters below to see how different configurations affect production efficiency and resource utilization.
Simulation Parameters
Simulation Code
Output
Shipping Logistics Simulation
This simulation models a shipping port with multiple berths handling container ships. The simulation demonstrates:
- Port berth utilization
- Ship arrival patterns and queuing
- Loading/unloading time variability
- Port throughput optimization
Experiment with different numbers of berths and ship arrival rates to optimize port operations.
Simulation Parameters
Simulation Code
Output
Satellite Communication Network
This simulation models a satellite communication network managing data transmission requests. The simulation demonstrates:
- Satellite channel allocation and bandwidth management
- Data packet transmission with varying priorities
- Network congestion and latency analysis
- Ground station coordination
Experiment with different numbers of satellites and data loads to optimize network performance.
Simulation Parameters
Simulation Code
Output
Aircraft Turnaround Operations
This simulation models airport ground operations for aircraft turnaround between flights. The simulation demonstrates:
- Gate allocation and aircraft parking
- Parallel ground services (fueling, catering, cleaning, baggage)
- Turnaround time optimization
- Resource scheduling and coordination
Adjust parameters to minimize turnaround times while managing limited ground resources.
Simulation Parameters
Simulation Code
Output
Military Supply Chain
This simulation models a military supply chain network with multiple forward operating bases (FOBs). The simulation demonstrates:
- Multi-echelon inventory management
- Supply convoy scheduling and routing
- Emergency resupply prioritization
- Resource allocation under constraints
Experiment with different supply strategies to maintain operational readiness across all bases.
Simulation Parameters
Simulation Code
Output
Building Climate Control
This simulation models an HVAC system managing climate control for a multi-zone building. The simulation demonstrates:
- Zone temperature regulation and control
- Energy consumption optimization
- Occupancy-based climate adjustment
- Peak load management and efficiency
Adjust parameters to balance comfort levels with energy efficiency across different building zones.
Simulation Parameters
Simulation Code
Output
Multi-Year Guaranteed Annuity (MYGA)
This simulation models a portfolio of Multi-Year Guaranteed Annuities (MYGAs). The simulation demonstrates:
- Interest accumulation at a guaranteed rate
- Policyholder behavior, including lapses (surrenders)
- Cash flow analysis for an insurance company
- Portfolio valuation over time
Adjust the parameters to see how interest rates and policyholder behavior impact the growth and stability of the annuity portfolio.
Simulation Parameters
Simulation Code
Output
Actuarial Pricing
This simulation models the process an actuary uses to price an insurance premium for a portfolio of policies. It uses a Monte Carlo approach to simulate one year of claims activity many times to understand the range of possible outcomes. The simulation demonstrates:
- Modeling claim frequency and severity
- Calculating pure premium based on expected losses
- Applying a loading factor for expenses and profit
- Analyzing the risk of the insurance portfolio
Adjust the parameters to see how claim characteristics and business assumptions affect the final premium and the insurer's risk.
Simulation Parameters
Simulation Code
Output
Actuarial Reserving
This simulation models the process of establishing reserves for insurance claims. It simulates claims occurring in a single "accident year" and tracks how they are reported and paid over subsequent "development years". This helps estimate IBNR (Incurred But Not Reported) reserves. The simulation demonstrates:
- Modeling reporting and payment delays for claims
- Tracking the development of paid losses over time
- Estimating ultimate losses for an accident year
- Calculating the required reserves (Outstanding Claims)
Adjust the parameters to see how claim delays and other factors influence the loss development pattern and the size of the required reserves.
Simulation Parameters
Simulation Code
Output
Disclaimer: These simulations are proof-of-concept examples for educational purposes and should not be used for real-world decision-making.
Would you like a copy of my book on Simulation in Python with SimPy?
Enter your email below and I will send it straight to your inbox.