Discrete event simulation
What Is Discrete Event Simulation?
Discrete event simulation (DES) is a computational modeling methodology in which the state of a system changes only at distinct points in time, each corresponding to the occurrence of a defined event. Between events, the system is assumed to be static; time advances in jumps from one event to the next rather than in the continuous increments used by differential-equation-based simulation methods. This design reflects the structure of many real-world systems: a customer arriving at a service desk, a packet entering a router queue, or a machine completing a part are all events that change system state instantaneously, with the system then waiting in a new configuration until the next event occurs. DES is a central technique in operations research, systems engineering, and performance analysis, and it provides the primary analytical framework for studying queuing, resource contention, and throughput in complex systems.
The methodology traces its conceptual roots to queuing theory formalized by A. K. Erlang in the early twentieth century, and the first software implementations appeared in the 1960s with the development of the GPSS (General Purpose Simulation System) language. It remains among the most widely used quantitative modeling approaches in manufacturing, logistics, and healthcare system design.
Event-Based Modeling Methodology
A DES model consists of entities, resources, events, and a future events list. Entities are the objects that flow through the system: patients in a clinic, jobs in a factory, or packets on a network. Resources represent the servers, machines, or channels that entities compete for. The simulation engine maintains a chronological list of future events and advances the simulation clock to the timestamp of the next event, executing the logic associated with that event and potentially scheduling new future events as a result.
This event-driven architecture gives DES its computational efficiency: the engine skips over periods of system inactivity entirely, which is critical for systems where events are rare relative to real elapsed time. A simulation of a year of hospital operations might involve millions of events but take seconds to execute, because only the event instants require computation.
Stochastic Processes and Queuing
Most practical DES models incorporate randomness to reflect the variability inherent in real systems. Interarrival times, service durations, equipment failure intervals, and routing decisions are typically drawn from probability distributions fit to observed data or specified from theoretical models. Common distributions include exponential (for memoryless arrival processes), Erlang (for multi-phase service), lognormal (for repair times), and empirical distributions derived directly from historical records.
The connection to queuing theory provides analytical benchmarks for DES results. For simple queue configurations such as the M/M/1 or M/D/1 models, closed-form expressions for throughput, mean waiting time, and queue length are available and can validate the simulation. For complex systems that resist analytical treatment, such as multi-priority queues with breakdowns, rework loops, and finite buffers, simulation remains the only practical tool. The Springer volume on stochastic discrete event systems provides a formal treatment of the probability theory underpinning these models, including performance bounding and sensitivity analysis techniques. A systematic review of DES in healthcare, covering 231 studies published between 1994 and 2021, documents how this methodology has been applied to emergency department throughput, surgical scheduling, and patient flow optimization.
Software and Implementation
Several specialized software environments support discrete event simulation. Arena, Simul8, AnyLogic, and the open-source SimPy library in Python are among the most used platforms. Each provides constructs for defining entity classes, specifying arrival distributions, modeling resource allocation rules, and collecting statistics on waiting times, utilization rates, and throughput. The SimPy documentation describes how process-interaction and event-scheduling styles map onto its generator-based architecture, illustrating the two main paradigms used in DES software design.
Output analysis is a distinct methodological challenge in DES. Because each run is stochastic, results vary across replications, and practitioners must collect enough independent runs to estimate performance metrics with acceptable confidence intervals. Warm-up period selection and variance reduction techniques such as common random numbers are standard topics in simulation methodology courses.
Applications
Discrete event simulation has applications in a range of fields, including:
- Hospital and clinic workflow optimization including emergency department design
- Manufacturing line throughput analysis and factory layout planning
- Port and airport terminal capacity planning and operations
- Supply chain risk analysis and inventory policy evaluation
- Network performance modeling for telecommunications and data center design
- Military logistics and resource allocation planning