Simple simulation example
The product which offers some programming approach can be evaluated by how easy user with no experience of this product can make the first step.
A traditional example of the easiest code for conventional programming languages is the output of "Hello, world!" to the screen.
However, such example for
discrete-event simulation should be represented by a model.
So, the simplest appropriate model should be chosen.
A model of a single server loss system is such a suitable case.
In this system entities arrive at a single server according to a Poisson process, so the interarrival time of entities is exponentially distributed.
The value of service time is also exponentially distributed.
This is a classic example of the simplest system of queuing theory.
It should be noted that this is a degenerate case, since there is no queue as such in this system.
According to Kendall's notation this is the
M/M/1 loss system.
A
block simulation model of
M/M/1 loss system is considered here.
And here a
Simula-like simulation model of the same system is considered.