Simulates an M/M/1 queue
with the parameters given, by the 'fixed-time incrementing' method,
as opposed to the 'next-event incrementing' method.
(The simulation run length is ajusted to one million time increments
if more are given.)
If it is:
(a) α < μ (recommended), the steady state
may be attained, and a comparison to the
analytical results is then possible; and
(b) Lq0 < 0,
the initial queue length will be computed as the steady-state value.
If graph points ('ngp') is not 0, Δt
will be changed to 'time ⁄ ngp'.
This plate is inspired in H&L [2005, 937]
(α = 3, μ = 5 / min). |