This paper presents an example application of a software program developed using the programming language VBA
and designed for modelling queuing systems in the field of transport. The program enables users to quantitatively
determine the indicators of the queuing systems. In order to show the programs capabilities and how it can be used,
two scenarios have been considered - modelling single-server and multi-server queuing systems of type M/M/1 and
M/M/S, respectively, having a Poisson incoming flow of requests and exponentially distributed service times.
Keywords: transport, process, service, queuing theory, queuing system, modelling, software program, programming
language, VBA, Microsoft Office Excel
systems (finite source) and opened systems (infi- To present the extended functionalities of the
nite source). program two scenarios are considered - modelling
the work of a single-server queuing system (in our
Irrespective of its type each queuing system is
case ticket machine) of type M/M/1 [1,4] and
defined by incoming flow of requests, a
modelling of a multi-server queuing system of type
mechanism (server) for their servicing and
M/M/S [1,4], both the systems having a Poisson
discipline of the queue according to which the
arrivals and exponentially distributed service
arriving requests are processed FIFO (First-In,
times:
First-Out), LIFO(Last-In, First-Out) or arbitrary
selection of the requests for servicing. Scenario 1: After pressing the button Enter the
program (fig. 4.1) a window opens (fig. 4.2) in
Often due to the complexity of the modelled
which parameters such as number of servers,
systems, in order to accurately calculate their
customers arrival rate and average service time
working indicators, automated tools such as
must be entered.
specialized software designed for modelling
queuing systems is suitable to be used.
86
Logistics and Transport No 2(15)/2012 Program for Modelling Queuing Systems in Transport
pressing the button Calculate in the same tems queue is close to 1 (Pw = 0,95). Summariz-
window the program, using the formulas [4] valid ing the above values we may conclude that an op-
for M/M/S queuing system which in scenario 1 has timization of the systems functioning needs to be
S = 1 number of servers, calculates all system done. An optimization can be achieved by opening
output parameters (fig. 4.3) - utilization of one a second serving facility (machine, issuing tickets
server Rho, average number of customers in the to passengers) a subject to scenario 2 discussed
queue Lq, average time spent by one customer below.
waiting in the queue Tq, average number of
Scenario 2: In order to play this scenario the
customers in the system Ls, the time that each
user must press button Back to Input Form
customer on average spends in the system Ts, the
located on window System output results (fig.
probability that all servers will be idle Po and the
4.3). As a result opens the window System Input
probability that an arriving customer at the
Parameters (fig. 4.4) that is already known.
entrance of the system will have to wait in the
queue Pw [4].
87
Program for Modelling Queuing Systems in Transport Logistics and Transport No 2(15)/2012
88
Logistics and Transport No 2(15)/2012 Program for Modelling Queuing Systems in Transport
89
Program for Modelling Queuing Systems in Transport Logistics and Transport No 2(15)/2012
90