Queueing Models
Queueing Models
Figure # 1
Queueing systems
Station of
service
Multiple servers
(various channels)
Server
1
Server
2
Server
3
The previous figures show the general problem of waiting lines, known
as a single channel model. This consists of a queue and a single server.
As an example, we have the case of patients waiting to be seen in a clinic.
doctor. The multiple server model also consists of a queue, but to
the difference from the single channel model, there are several servers attending, in such a way
that the first task in the queue will be attended to by the first server that becomes free. It is
the case of the waiting lines at a bank where there are several tellers.
The case of the lines in a supermarket involves several systems of a
single channel.
On the other hand, when a task must go through several service stations in
sequentially, it is a modification of the known single channel model
as a multiphase system, and queues can be generated between stations, or servers
idle, as long as there is an imbalance in the attention capacity of each one of them
the stations. The system as a whole will have a service capacity equal to the
the capacity of the slowest station or in other words the one that requires the most time in
the demanded service. An example is when at a fast food restaurant you
They take the order at a window, ask him to pay at another, and to pick up the food.
at a third window. This type of model is shown in the following figure:
S S S S
#1 2 #3 #4
a- The number of tasks in the system: Those that are receiving the service
currently, as well as those who are waiting.
b- The number of tasks in the queue: Those that are waiting to be addressed.
c- The waiting time: The period that elapses between the moment a task enters
to the system and the moment when the service is completed. Note that the period
include the duration of the service.
d- The waiting time in line: Time that elapses from the moment of entering the
system and the start of the service itself.
A- Arrival process: Each arrival is called a 'task'. Since it is not known the
time interval between two arrivals, we need to specify a distribution for it
probability. In the basic model, a particular distribution called
exponential distribution, sometimes called exponential distribution
negative." This distribution explains the reason why there are still waiting lines.
when the values of lambda and mu, which will be seen later, would suggest
that there should be no waiting lines.
The exponential distribution is specified by a parameter called
lambda (λ) and what is the average arrival rate; that is, how many tasks are presented,
on average during a given period.
Example:
If on average a task arrives every 20 minutes, the average time between arrivals
it's 20 minutes, therefore λ = 1 / 20 = 0.05, which means that they arrive in
average five hundredths of homework per minute.
B- Service process: In the basic model, the time it takes to complete the
a task (service time) is also managed through distribution
exponential. The parameter of this exponential distribution is called mu (μ) which
represents the average service rate in tasks per unit of time.
Example:
The basic model requires that λ < μ, as this would occur if it were given.
on the contrary, (λ > μ) the row would grow continuously, the system would collapse and therefore not
there is analysis to be done, (formulas to apply in it) since what is required is
a solution to the system incapacity problem.
The question that arises is: why if the arrival rate is lower than the rate of
service forms the line? The reason is explained by the fact that tasks do not arrive in
uniform way over time, but there will be periods when a certain amount arrives
of tasks at the same time forming the queue; and there will be other periods when they arrive
fewer tasks, or they do not arrive at all, which allows the server to keep "shortening" the queue. Thus
the line forms because the service time is not constant, there will be tasks
that require more time, and when attended to, a line forms. However, on average
the service time is less than the time between arrivals and therefore much greater than
lambda. If mu were not greater than lambda, there would be no possibility of shortening the line and the
the system would collapse as mentioned earlier. As the average capacity
if the server rate is greater than the arrival rate, the server will be able to meet all the
tasks; the system is capable.
Given this situation, queue analysis seeks to answer the questions that
were formulated in point # 2 to know: average of tasks waiting in the system and in
the line and average waiting time in the system and in the line. These responses are
they are obtained through the formulas that will be presented for the different models
later. For the moment we will focus on the basic single-channel model:
MODEL 1
Note that since λ and μ are expressed in terms of minutes, the waiting times
calculated are in the same units. On the other hand, it can be noted that the difference
between the waiting time in line and the waiting time in the system, (13.33–5.33),
it is equal to the service time itself, that is 8 minutes, (1/μ = 1 / 0.125 = 8).
PRACTICE
Exercise #1
You manage a cinema complex in a shopping center. The company has four
rooms and in each of them a different movie is shown. The programming is done
so that the start times of the movies are staggered to avoid the long ones
queues that would be produced if all were started at the same time. The complex has a
the only ticket sales window that can maintain an average service of 235
spectators per hour. The arrival of spectators on a normal activity day has
an average of 210 per hour. The management of the Shopping Center has asked you to
I took the necessary measures so that the rows in the system do not exceed 10.
people as this obstructs the way to other businesses.
What is the probability that there are more than the allowed number of clients in the system?
How do you evaluate the situation regarding this?
Exercise No. 2
In a large company that manufactures intimate apparel, it has been determined that every 5
Minutes report machines with minor faults, according to a distribution
Poisson. There is only one mechanic who takes an average of 4 minutes to solve the
problem, with service times that follow an exponential distribution.
What is the probability that there are more than four machines out of service?
What is your opinion on this situation? What would you recommend?
Exercise #3
Two mechanics are being considered to service the machines in a plant.
industrial. The first mechanic, category A, would be paid $10 per hour and can
repair machines at the rate of 8 per hour. The second mechanic, category B, is assigned to
They would pay $7 per hour, but he would repair the machines at a rate of 7 per hour. It is estimated
that the time a machine is down has a cost for the company of $15 per
hour.
Assume that machines break down according to a Poisson distribution with an average
4 per hour, and the repair time is exponential. For each mechanic
determine
The costs in a queueing system are given by the cost of providing the
service, represented by the cost of having a server multiplied by the number of
servers. The second cost to identify in a waiting line system is the cost
what it means to have tasks waiting in the system or waiting in the queue. For this
Overall, the cost of waiting in the system will be. For example, in an industry, the cost of
having machines waiting to be repaired incurs the cost of idle labor, delays in
production, others. Another example of costs, although more difficult to determine, is the cost
of the people waiting in a bank: cost of image loss and consequently
loss of customers.
If the number of servers in a system is increased, we could reduce costs of
wait; but it would be increasing the costs of providing the service and vice versa. The
the ideal number of servers is the one that represents a balance between both costs; but
difference from other models, such as inventory models, in this case there is no formula
that allows us to determine the ideal number of servers, but this is done by
test of trial and error by varying the number of servers and calculating L or Lq, (according to
the case), and calculating the total costs of the system using the following formula:
CT = L * Ce + S * Cs ó
CT = Lq * Cq + S * Cs
Where:
Note: When applying these formulas, special care must be taken that the costs are
expressed for the same units of time in which λ and μ have been defined.
Resolved example
The truck drivers of a company earn $10 per hour. The loaders that
they work on the loading dock, with space for only one truck, earning $6 per
time and carry out the loading with a semi-automatic machine. The drivers of the
trucks that are waiting in line or at the loading dock, they have a salary but are
productively inactive during that waiting time in the system. On the platform of
charging stations can be located one or more chargers increasing the charging capacity as
It is indicated in the following table. On average, 3 trucks arrive at the plant per hour and
One charger can charge 2 trucks per hour. What is the number of chargers?
that minimizes the system costs?
a.λ = 3 y μ = 2
c. Since the unproductivity of drivers occurs whether they are waiting in line.
or while the truck is being loaded, the waiting costs are considered for the
system, therefore we must calculate L and not Lq.
Amount of Tasks Cost of waiting Cost of Total cost
chargers μ waiting $ service (CT)
L $ $
1 2 - - - -
λ/(μ-λ)= L * Ce S * Cs 30 + 12 =
2 4 3/(4-3)= 3 3 * 10 = 30 2 * 6 = 12 42
λ/(μ-λ)= L * It S * Cs 10 + 18 =
3 5 3/(5-3)= 1.5 1.5 * 10 = 15 3 * 6 = 18 33
λ/(μ-λ)= L * Ce S * Cs 6 + 24 =
4 6 3/(6-3)= 1 1 * 10 = 10 4 * 6 = 24 34
Conclusion:
a- You cannot use just one charger because the line grows indefinitely, the
system collapses.
b- With two chargers, the total cost of the system is $42 and decreases to $33 with three.
chargers.
c- By using four chargers, the total cost of the system rises to $34.
consequence, to minimize system costs, three should be employed.
chargers.
Note:
It should be clarified that the payment the company makes to the drivers of the
trucks it will not vary, regardless of whether 2, 3, or 4 are used
chargers, this type of analysis allows us to make a decision by assessing the cost
of opportunity that represents having tasks pending, in this case the cost of
opportunity to have the truck drivers on standby.
PRACTICE
Exercise #1
American Vending Inc. supplies food dispensers at a university
of large size. As students tend to kick the machines in anger and
frustrated, management has to face a constant problem of repairs. In
on average, three machines break down per hour and the breakdowns are distributed in a way
Downtime costs the company $25 per hour per machine and to each
maintenance employee is paid $4 per hour. An employee can repair the
machines at an average rate of five per hour, distributed exponentially; two
employees who work together can repair seven machines per hour, distributed
exponentially; and a group of three workers can repair eight per hour,
exponentially distributed.
What is the optimal size of the maintenance team to repair the machines?
Exercise #2
For the case of exercise No. 3 of the first practice, consider the salaries of the
mechanics A and B as well as the cost of having a machine stopped: what
Which mechanic do you recommend? Compare your decision with the one made earlier for
this case.
Exercise #3
The rice harvesting season in the central Pacific (Zone of Quepos and Parrita),
it's short and the farmers take their trucks loaded with rice to a giant silo of
central storage over a two-week period. Therefore, the trucks that
full of rice wait to unload and return to the rice fields, they form lines of
more than one 'block' in the reception of the silo. The silo is cooperatively owned by the
farmers and make the unloading-storage process as
The possible efficiency will benefit all farmers. The cost of deterioration
due to delays in unloading and the cost of renting the truck and the
driver downtime is important for the members of the
cooperative. Although farmers have difficulties in quantifying the damages
in the harvest, it is easy to assign a waiting and unloading cost for the trucks and
drivers who are evaluated at $10 per hour of waiting both in line and during the
download process proper. The storage silo is open and
working 16 hours a day seven days a week for the two weeks of
collection and is capable of unloading 35 trucks per hour, following a distribution
exponential. The trucks arrive filled throughout the day (during the hours that the
the store is open) at an average of one every two minutes, following a law of
Fish.
Determine:
1- The total daily cost for farmers to have their trucks parked in
the entire downloading process, (queuing and the download itself).
Note: The operating cost of the silo will not change with the remodeling.
MODEL 2
It is characterized by being a single channel of single phase. The queue is of unlimited size.
is organized with a PEPS discipline. The clients that come from a population
infinitely arrive with times that are distributed according to a Poisson distribution. The
service time is constant.
Characteristic Symbol Formula
Solved example
A university has decided to place a microwave for the students
heat up your lunch. The oven has been programmed for exactly 105 later.
seconds to heat each lunch. During lunch periods, students
They arrive at an average rate of one every 2.25 minutes following a Poisson law.
b. The average total time that a student is expected to take in the process of
heat your lunch? (time in the system).
d. What is the probability that there are more than 3 students in the system?
d. (0.444 / 0.571)3+136.5%
PRACTICE
MODEL 3
Solved example:
A certain bank receives 100 customers per hour during the mornings.
Poisson distribution. There are three 'open' boxes and the average time to attend to a
The customer arrival time is 1.5 minutes, distributed exponentially. Perform the evaluation of this.
system calculating the different performance measures:
a.
1
Po = (1/0! (100/40)0 + 1/1! (100/40)1+1/2! (100/40)2) + 1/3! (100/40)3-1.0
1
(1 + 2.5 + 0.5 * 6.25 ) + ((1/6 * 2.53* (3 * 40 / 3*40–100)
1
(1 + 2.5 + 0.5 * 6.25 ) + 0.1667 * 15.625 * 120/20
1 1
(6.625 + 15.625) = 22.25 = 0.045 = 4.5%
Once the Po value is established, it is substituted in the rest of the formulas along with the
values of λ and μ.
The probability that all employees are busy, (the probability that when
a customer should wait to be served), is 70.3%.
The probability that 3 or fewer people are in line would be the sum of the
probabilidades de que haya 0,1,2,3,4,5 y 6 personas en el sistema. R/ 66.1%
Use of Table:
(1)
To facilitate calculations, the value of Lq can be obtained from Table I. Using
this value, and the previous formulas, can be used to calculate certain performance measures.
The remaining ones would be obtained by isolating the value Po in the Lq formula.
2
Po = Lq(s–1)! (sμ-λ)
λ μ (λ/μ)s
PRACTICE
Exercise No. 1
Customers arrive at the American Airlines ticket counter. at a rate of 50 per hour,
following a Poisson distribution. An agent takes an average of 6 minutes to assist
a customer, (exponentially distributed). American Airlines has 7 agents in
box office. Calculate the different performance measures for this case.
Exercise No. 2
For the previous case, suppose that the agents earn $20 per hour. On the other hand
American Airlines has estimated that the commercial cost, (of image), because a customer
waiting for attention, (in line), it is $30 per hour. Determine what would be the
What is the optimal number of agents that this airline should have attending to its customers?
(1) Taken from: Chase. Aquilano J. Production and Operations Management. Eighth Edition.
McGraw-Hill Publishing 2000.
MODEL No. 4
Assume a single server, single phase, and that there is a small number of possible clients.
(finite population). If there is a small number of possible clients, the number of clients
present in the system will affect the rate at which new clients arrive; this is because
When a customer enters the system, the size of the source population decreases and therefore
the probability of a new customer arriving also decreases. When it is completed
the task, the client joins the source population and again increases the
probability of occurrence of a new task. This situation forces the use of formulas
different from those used in infinite population.
This type of model is solved more easily using finite tables and formulas.
specifics:
X = T / (T+U)
2. H = F*N*X
3. F = (T+U) / (T+U+W)
4. Lq = N* (1–F)
5. L = Lq + H
6. W = LT / LH(T+U)
or / (N-L)
7. Wq = W - (1/μ)
Resolved example:
Po = 1
4!/(4-0)!(0.5) + 4!/(4-1)!(0.5) 4!/(4-2)! (0.5)24!/(4-3)!(0.5/6) 3+ 4!/(4-4)!(0.5/6) 4
0 1
1
=
1 + 24/6*0.83 + 24/2*0.0069 + 24*0.00579 + 24*0.000482
1
=
1 + 0.332 + 0.0828 + 0.01389 + 0.011
= 1 / 1.44 = 0.6987
MODEL No. 5
This model is similar to model 4, that is to say, it assumes a single phase and a finite population, but
of multiple channels.
1. P = λ/ sμ
N
2.Lq = ∑ (n –s) Pn
n=s
s-1 N s-1
3.L = ∑ n * Pn + ∑ (n-s) Pn + s ( 1 - ∑Pn )
n=0 n=s n=0
4.Pn = (λ / μ)n* N1/ ((N-n)!n!) * Po
n-s
5. Pn = (λ/μ)* N!/ ((N-n)!s!s ) * Po
1
6. Po =
s-1 N! (λ/μ)n N N! (λ/μ)n
∑ (N-n)! n! + ∑ (N-n)! s! sn-1
n=0 n=s
Solved example:
1
Po =
24/(24-1) (1) + 24/(6*1) * (0.20) + 24/(2*2*1) * 0.04 + 24/(1*2*2) * 0.008 + 24/(1*2*4) * 0.0016
1
= 0.48
1 + 0.80 + 0.24 + 0.048 + 0.0048
X = 2 / (10 + 2) = 0.166
Practice:
It is characterized by being a simple channel in series, in tandem, or of multiple phases. That is to say
customers must go through different service stages in succession. The
performance measures are as follows:
1. Pi = λ / μi
F
2.W = W1+ W2+ W3+ …WF=∑((1 / (1-Pi)) (1/μ i))
i=1
F
3. Lf = L1+ L2+ L3+LF= ∑ (Pi / (1-Pi))
i=1
F
4. Wq = Wq1 + Wq2 + Wq3 + Wqf = ∑((Pi/(1-Pi)) (1/μ i))
I=1
Example:
A clinic offers a packaged service that the client must follow the procedure.
what is indicated below. On average, it is estimated that 10 customers arrive per hour at
request the services of the clinic.
Determine: