Simple Simulation Example
A programming tool that provides a programming approach can be evaluated by how easy it is for a user with no experience to make the first step.
In traditional programming languages, the simplest example is printing "Hello, world!" to the screen.
In
discrete-event simulation, however, such an example should be represented by a model.
Therefore, the simplest suitable model is selected.
A single-server loss system is a suitable model. This is a classic example of the simplest system in queuing theory.
In this system, entities arrive at a single server according to a Poisson process, and service time is exponentially distributed.
Note that this is a special (edge) case, since the total system capacity is 1 — there is no queue in this system.
According to Kendall's notation, it is an
M/M/1/1 queuing system.
Here is
a block simulation model of an
M/M/1/1 queue.
Alternatively:
a Simula-like simulation model of the same system.