Discrete-Event System Simulation — Arena / AnyLogic Style

Simulation
Introduced by
Kelton, Law & Sadowski (formalised methodology); SIMSCRIPT (Markowitz et al., 1963) and GPSS (Gordon, 1961) were pioneering tools
Year
1960s (formalised in literature through the 1980s–2000s)
Type
Stochastic process simulation

What does it do?

Discrete-event simulation (DES) is a computational modelling technique in which a system's state changes only at discrete points in time, called events, such as a customer arriving, a machine starting, or a job completing.

Textbooks by Kelton, Sadowski and Zupick (2014) and Law (2015) set out the method, which represents a process as a network of resources, queues and activities. This lets analysts test capacity and policy changes on a model before changing the real system.

The intuition behind the method

Picture a factory floor where machines break down, jobs arrive irregularly, and each worker can be in only one place at a time. Rather than solving equations for the whole floor, a discrete-event simulation advances the clock only to the next moment when something changes, such as a job arriving or a machine finishing. Running many such replays with different random numbers gives statistics on how long jobs wait, how busy machines are, and where bottlenecks form, without disrupting the real plant.

History

Discrete-event simulation developed through early general-purpose simulation languages for describing event-driven processes computationally, which appeared in the 1960s. The methodology was formalised in the literature through the 1980s to 2000s. Statistical methods for output analysis and variance reduction are treated in detail in the textbooks by Kelton, Sadowski and Zupick (2014) and Law (2015), the latter now in its fifth edition. Commercial tools such as Arena, ProModel and AnyLogic brought graphical process-flow interfaces to practitioners, and open-source libraries such as salabim and simmer have since made the approach available without commercial licences.

When to use it

Choose discrete-event simulation when system behaviour is driven by discrete, asynchronous events such as arrivals, completions and failures, and when the question concerns flow, waiting, resource contention or the effect of changed operating rules. It suits capacity planning, bottleneck identification and what-if analysis for manufacturing lines, service counters, hospital wards and supply chains. It needs a complete process map with defined resources and routing rules, plus enough historical data to fit arrival and service-time distributions. The simulation run itself has no fixed minimum size, but the input distributions need sufficient historical observations to be fitted and tested reliably, and a poorly specified map or poorly fitted distributions will mislead results regardless of run length. Do not use it where the question concerns continuously evolving stock-and-flow feedback at a strategic level, where a continuous-time approach is better suited, and do not expect it to find optimal settings on its own.

Limitations and considerations

  • Building and validating a credible model requires detailed process knowledge and historical data for fitting the input distributions.
  • Outputs are stochastic estimates rather than exact values; valid inference depends on an adequate number of replications and a justified warm-up period.
  • The model reports how the system performs under the stated rules; it does not identify the best rules. Optimisation requires coupling the simulation with a separate search procedure.
  • Detailed models with long simulation horizons or many scenarios can be slow to run.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Represents stochastic, time-dependent interactions such as queues forming at shared resources, which closed-form queuing formulas handle poorly once routing, priorities and breakdowns interact.
  • Allows risk-free what-if experimentation: staffing levels, layout changes or policy rules can be tested on the model without disrupting the live system.
  • Models arbitrary routing logic, priorities and resource breakdowns within one process map, so a model can grow from a single station to a multi-stage system.
  • Output confidence intervals from replications give decision-makers a probabilistic view of performance, not just a single-point estimate.

Applications

  • Manufacturing: evaluating machine layouts, shift schedules and buffer sizes to raise throughput and reduce work-in-process inventory.
  • Healthcare: modelling patient flow through emergency departments, operating theatres or outpatient clinics to reduce waiting times and locate staffing shortfalls.
  • Supply chain and logistics: simulating warehouse operations, port loading and last-mile delivery to locate delays under demand variability.
  • Service systems: dimensioning call-centre staffing, bank teller counts or airport security lanes under peak-load conditions.
  • Project management: running schedule-risk analyses by simulating task durations as distributions rather than fixed estimates.

How it works

How it works

1

The real system is documented as a process map that identifies every arrival source, routing path, resource (machine, staff member, vehicle) and queue, with explicit rules for each. This map is the backbone of the model: an entity, resource or routing relationship left out here will be absent from every downstream result.

2

Historical data on inter-arrival times, service durations and breakdown intervals are collected and fitted to probability distributions such as exponential, log-normal or Erlang, with goodness-of-fit tests used to check each choice. Fitting requires enough historical observations for each distribution to be estimated and tested reliably; with sparse data, the choice of distribution is itself uncertain and should be reported as such. The input distributions are usually the most consequential modelling decision, because input error propagates into every simulated output.

3

The process map and fitted distributions are encoded in a simulation tool such as Arena or AnyLogic, or in a code library such as salabim or simmer. Entities flow through the model, seize resources, wait in queues and are processed according to the specified rules. Verification comes first: the model logic is checked against the process map, so that every entity, resource and routing rule behaves as documented. Validation follows: simulated outputs such as throughput, queue lengths and cycle times are compared with historical data for the same period. The acceptance tolerance should be agreed before the comparison, and a model whose outputs fall outside it is revised and re-validated rather than used for experiments (Law, 2015).

4

The model is executed many times, each run with a different random seed, to sample the stochastic behaviour of the system. For steady-state estimates, a warm-up period is run first and its output discarded, so that statistics are not distorted by the empty-system start. Terminating systems with a natural end state, such as a single shift, are analysed without discarding initial output, provided the starting state matches the real system. Each replication needs an independent seed, because reused seeds create correlated runs that invalidate standard confidence-interval calculations.

5

Across replications, key performance indicators such as mean queue length, resource utilisation, cycle time and throughput are summarised, and confidence intervals are constructed. Scenario comparisons, for example adding a machine or changing shift patterns, are made by running alternative configurations and comparing their output distributions.

Common pitfalls

  • Omitting entities or resources from the process map creates a model that systematically underestimates congestion; validate the map against system documentation.
  • Using the same random seed for all replications produces correlated runs and invalidates confidence intervals; use a different seed for each replication.
  • In steady-state studies, a warm-up period that is too short leaves statistics contaminated by the empty-system startup transient; pilot runs should determine an adequate length.
  • Fitting distributions by eye, or assuming an exponential distribution without testing it against data, introduces input error that biases every output metric.
  • Treating what the model shows (performance under given rules) as if it showed the optimal rules leads to misuse; optimisation requires an explicit search layer.
  • Accepting a model without verification and validation means its outputs have no demonstrated link to the real system; check the logic against the process map and compare outputs with historical data using a tolerance agreed in advance.

Frequently asked questions

How many replications do I need?

The number depends on the variance of the output metric and the precision you require. A common approach is to run a small pilot set of replications, estimate the variance of the metric, and then add replications until the confidence-interval half-width reaches your target. High-variance outputs or tight precision requirements need more replications than stable, low-variance outputs.

How long should the warm-up period be?

For steady-state estimates, the warm-up period must be long enough for the system to reach its typical operating state before statistics are collected. A practical approach is to plot a running average of a key output, such as queue length, across pilot replications and identify where it levels off; the discarded period should extend beyond that point. A terminating simulation with a natural end state does not need a warm-up period, provided it starts from the real system's starting state.

What is the difference between discrete-event simulation and system dynamics?

Discrete-event simulation tracks individual entities (jobs, patients, vehicles) moving through a system and updates state only at discrete event times, making it well suited to capacity and flow analysis at the operational level. System dynamics uses aggregate stock-and-flow equations that evolve continuously, and is better suited to strategic, macro-level analysis of feedback structures. The right choice depends on whether individual entity behaviour and queuing detail matter.

Can discrete-event simulation find the optimal solution?

Simulation alone evaluates configurations rather than optimising them. To search for good staffing levels, buffer sizes or routing priorities, the model must be coupled with an optimisation procedure, such as a metaheuristic search, that proposes candidate designs and uses the simulation to score each one.

Related methods

Sources

  1. Kelton, W.D., Sadowski, R.P. & Zupick, N.B. (2014). Simulation with Arena (6th ed.). McGraw-Hill.

    ISBN: 978-0073401317
  2. Law, A.M. (2015). Simulation Modeling and Analysis (5th ed.). McGraw-Hill.

    ISBN: 978-0073401324