SlideShare a Scribd company logo
1 of 10
Queueing Model: A Brief Introduction
Let us think about a queue (waiting line) most of us have seen, the line at Orin’s place
café in Paccar hall. Let us consider the simplest case, one line in front of a single cashier.
For now, ignore the role of second cashier (occasionally open) and the barista. We will
discuss in class the wide applicability (not just cafes) of the insights we draw from this
model.
Inputs
Customers arrive at the café and join the line. The time between any two customer
arrivals is variable and uncertain but we can say, for example, on average two customers
join the line every minute. The rate at which customers join the line is what we call
arrival rate (symbol lambda  ). This is the same as workload arrival in chapter 1. In this
case, arrival rate lambda  is 2 per minute. This also means that the average time
between two arrivals is ½ minute; we call this interarrival time.
The time cashier takes to serve one customer is called service time. This too changes
from customer to customer and is, therefore, variable and uncertain. Let us say, on
average, service time for a customer is 15 seconds = ¼ minute. This also means that the
one cashier can serve customers at the rate of 1/(1/4) = 4 customers per minute; this is
what we call service rate (symbol mu  ).
Since there is only one cashier, number of cashiers is 1. We use symbol m for this. In
case cafe opens another cashier and if a single line is used to feed both servers, we will
say number of servers m is 2. In case there are two different lines in front of two cashiers
then we will say that these are two different queues, each with m=1. For now, let us go
with our original scenario of single queue with single server.
To summarize, at least three inputs are needed to define a queue: arrival rate (lambda),
service rate (mu) and number of servers (m). Note that we are interested in expressing our
inputs in terms of rates (per minute, for example) and not in time (minutes, for example).
Depending on the situation, we may need other inputs describing the extent of variability
in arrivals and service. For this basic model, we assume certain type of variability
(Poisson distribution for number of arrivals and Exponential distribution for service
times) and not worry about it for now.
Outputs
First output we can get is the utilization of our resource, the cashier. We use the symbol
rho  for the utilization. This is equal to the ratio of the rate at which work arrives and
the capacity of the station. The idea is exactly the same as utilization computation in
chapter 1.We know that the rate at which work arrives is arrival rate lambda  . One
cashier can service the work at the rate of service rate  . If there are more than one
servers (that is, if number of servers m is more than 1) then total rate at which work can
be served, station capacity, will be m multiplied by . Therefore, utilization rho  can be
calculated as lambda  divided by (m multiplied by ).
m



 . Make sure arrival rate
and service rate are expressed in same unit of time; for example, both should be per
minute or per hour. In the case of Orin café,
2
0.5
1*4
   . Our cashier is busy 50% of
the times. For our calculations to work, utilization rho  must be less than 1.
Second output is number of customers waiting. We use the symbol Lq for this. Note that
this excludes the person who is actually getting serviced by the cashier. We have a simple
table to find this value. The table is attached. To look at the table we need two things:
first, (arrival rate/service rate, that is lambda/mu /  ) and second, number of servers m.
In Orin café’s case /  is 2/4=0.5 and m is 1. You will find one row in the table that
corresponds to these two values. In this row, read the number in column titled Lq. You
will see that the number is 0.5. This means that, on an average, the number of people
waiting in line Lq is 0.5.
Only in the special case when there is only one server, m=1, we can also use a simple
formula to compute the number of customers waiting Lq. (The table works for all values
of m, including m=1). For m=1:
2
1
qL




. For example, in this case
0.5
2
1 0.5
qL 

=0.5,
same as that we got from table.
Third output is the time an average customer waits in line to receive service. We use the
symbol Wq for this. We have a simple formula to convert number-of-customers-waiting
Lq into time-a-customer-waits Wq. To get Wq, divide Lq by arrival rate lambda (Little’s
law) In Orin cafe, the time-a-customer-waits
0.5
0.25
2
q
q
L
W

   min = 15 seconds.
Sometimes we want to think about the whole system, that is, not just waiting but both
waiting and getting service. We would like to know the time-a-customer-spends-in-the-
system (we use symbol Ws for this) including both time for waiting and time for service.
Clearly, this is equal to time-a-customer-waits Wq plus service time. In Orin café’s case,
Ws is just equal to the sum of waiting time (15 sec.) and service time (15 sec.). Ws=30sec
= 0.5 min.
There is also the question of the number-of-customers-in-system (symbol Ls), including
both, customers who are waiting and who are getting service. Another application of
Little’s law shows that to get number-of-customers-in-system symbol Ls, multiply time-
in-system Ws by arrival rate lambda  . In Orin café’s case, 2*0.5 1s sL W   .
Finally, to compute the chance that system is idle, that is, there is no customer in the
system, we can read the column titled P0 from the table, just the way we read Lq. For Orin
café, P0=0.5, that is 50% chance that cashier is free.
Other Performance Measures
For single-server case, some other performance measures can be computed as following:
Probability that there are n customers in system (1 )n
n
P   
Probability that wait is greater than t = (1 )t
e  
  
Probability that time-in-system is greater than t = (1 )t
e   
For more than one server, spreadsheets are available to compute these measures.
Determining Capacity
If we increase capacity (by increasing m or by increasing  ), we expect that the cost of
providing that capacity will increase. We also expect, however, that the customers will
wait less and that the cost of customer waiting will decrease. This suggests that we should
look at the total cost = (cost of providing service + cost of customer waiting) in order to
make decision about how much capacity to provide.
For example, if Orin café pays $15 per hour to a cashier then adding one more cashier
increases the cost of providing capacity by $15 per hour. But it also reduces the number
of customer in system from 1sL  (see above) to 0.533sL  ( 0.033qL  from table for
m=2 and then repeat the above steps to get sL ). If we assume that a customer’s time is
worth $20 per hour then system saves (1-0.533)*$20 per hour = $9.34. Therefore, in this
example, from total system cost perspective, we should not add another server.
Other Extensions
Without making much fuss about it, we have made two significant assumptions about the
pattern of variability in arrivals and service: Poisson distribution for number of arrivals
and Exponential distribution for service times. These assumptions mean the following:
coefficient of variation =(standard deviation / mean) for interarrival times 1aC  and
coefficient of variation =(standard deviation / mean) for service times 1sC  . But what if
based on measurement of real data, they are not 1? We call this the case of general
arrivals and service.
It is easy to compute Lq in this more general case as follows:
2 2
1 / 1
( )
2
q a s
a s
q
L in case C and or C
C C
L ascomputed fromtable
 
 
  
 
Starting from qL , other performance measures can be computed in the same way as
earlier.
Summary
Arrival rate lambda  = 1 / (interarrival time, that is time between two arrivals)
Service rate mu  = 1 / service time
Number of servers m
Utilization rho / ( )m  
Assume arrivals Poisson distribution and service time are exponentially distributed.
Average number in waiting line Lq can be obtained from table (given /  and m)
In case number of servers m=1, we can also use 2/(1 )Lq   
Average waiting time /q qW L  from Little’s Law
Average time-in-system (waiting time +service time) (1/ )s qW W  
Average number-in-system (waiting+getting served) s sL W
Probability that there is nobody in the system P0 is available in table.
For single-server case, m=1, we have following three formulas:
Probability that there are n customers in system (1 )n
n
P   
Probability that wait is greater than t = (1 )t
e  
  
Probability that time-in-system is greater than t = (1 )t
e   
Determination of capacity is a trade-off between cost of service capacity and cost of
customer waiting.
Coefficient of variation of interarrival times Ca = (Std.dev./mean of interarrival times)
Coefficient of variation of service times Cs = (Std.dev./mean of service times)
If 1 / 1a sC and or C  , modify Lq from above by multiplying it with 2 2
( ) / 2a sC C
Queueing Model: Practice Problems
1. A small town with one hospital has two ambulances to supply ambulance service. Requests for
ambulances during non-holiday weekend averages 0.8 per hour and tend to be Poisson
distributed. Travel and assistance time averages one hour per call and follows an exponential
distribution. What is the utilization of ambulances? On an average, how many requests are
waiting for ambulances? How long will a request have to wait for ambulances? What is the
probability that both ambulances are sitting idle at a given point in time?
2. At a bank’s ATM location with a single machine, customers arrive at the rate of one every
other minute. This can be modeled using a Poisson distribution. Each customer spends an
average of 90 seconds completing his/her transactions. Transaction time is exponentially
distributed. Determine (1) the average time customers spend from arriving to leaving, (2) the
chance that the customer will not have to wait, (3) the average number waiting to use the
machine.
3. The last two things that are done before a car is completed are engine marriage (station 1) and
tire installation (station 2). On average 54 cars per hour arrive at the beginning of these two
stations. Three servers are available for engine marriage. Engine marriage requires 3 minutes.
The next stage is a single server tire installation. Tire installation requires 1 minute. Arrivals are
Poisson and service times are exponentially distributed.
(1) What is the queue length at each station?
(2) How long does a car spend waiting at the final two stations?
4. A machine shop leases grinders for sharpening their machine cutting tools. A decision must be
made as to how many grinders to lease. The cost to lease a grinder is $50 per day. The grinding
time required by a machine operator to sharpen his cutting tool has an exponential distribution,
with an average of one minute. The machine operators arrive to sharpen their tools according to a
Poisson process at a mean rate of one every 20 seconds. The estimated cost of an operator being
away from his machine to the grinder is 10¢ per minute. The machine shop is open 8 hours per
day. How many grinders should the machine shop lease?
5. (a) Consider a queue with a single server, arrival rate of 5 per hour and service rate of 10 per
hour. Assuming Poisson arrivals and exponential service time, what is the waiting time in queue?
(b) Actual measurements show that interarrival time standard deviation is 24 minutes and service
time standard deviation is 3 minutes. What is the waiting time in queue?
Queueing Model Practice problems: Solutions
1. A small town with one hospital has two ambulances to supply ambulance service. Requests for
ambulances during non-holiday weekend averages 0.8 per hour and tend to be Poisson
distributed. Travel and assistance time averages one hour per call and follows an exponential
distribution. What is the utilization of ambulances? On an average, how many requests are
waiting for ambulances? How long will a request have to wait for ambulances? What is the
probability that both ambulances are sitting idle at a given point in time?
Ambulances are resources or servers servicing the requests that are coming in (customers). Two
ambulances mean m=2. Requests arrival rate  =0.8 per hour. Service time = one hour. Service
rate  = (1/service time) = 1 per hour.
Utilization
0.8
0.4
2*1m



  
/  =0.8 and m=2.
From table: 0.152qL  , 0 0.429P 
On an average, how many requests are waiting for ambulances = 0.152qL 
How long will a request have to wait for ambulances
0.152
0.19
0.8
q
q
L
W hr

  
What is the probability that both ambulances are sitting idle at a given point in time.. 0 0.429P 
Other Performance measures include ,s sW L .
Time spent by a call in system 0.19 1 1.19s qW W service time hr    
Number of requests in system = 0.8*1.19 0.952s sL W  
2. At a bank’s ATM location with a single machine, customers arrive at the rate of one every
other minute. This can be modeled using a Poisson distribution. Each customer spends an
average of 90 seconds completing his/her transactions. Transaction time is exponentially
distributed. Determine (1) the average time customers spend from arriving to leaving, (2) the
chance that the customer will not have to wait, (3) the average number waiting to use the
machine.
Solution:
One every other minute means arrival rate 0.5/min 
Service rate 1/90sec 0.667/ min   1m 
0.5
0.75
1*0.667m



  
2 2
0.75
2.25
(1 ) 1 0.75
qL


  
 
(we an use the formula because m=1; table should give the same
result)
2.25
4.5min
0.5
q
q
L
W

  
(1) the average time customers spend from arriving to leaving sW = waiting + service time = Wq+
90 sec = 4.5min+1.5min= 6 minutes
(2) the chance that the customer will not have to wait that is the chance that there are 0
customers in system 0P = 1  =0.25 (the formula is for m=1 case) (3) the average number
waiting to use the machine qL =2.25
3. The last two things that are done before a car is completed are engine marriage (station 1) and
tire installation (station 2). On average 54 cars per hour arrive at the beginning of these two
stations. Three servers are available for engine marriage. Engine marriage requires 3 minutes.
The next stage is a single server tire installation. Tire installation requires 1 minute. Arrivals are
Poisson and service times are exponentially distributed.
(a) What is the queue length at each station?
(b) How long does a car spend waiting at the final two stations?
(a) We can analyze these two stations as independent queues. One queue at station 1 followed by
another queue at station 2.
Station 1: Engine Marriage
m=3
 = 54 per hour
 = 20 per hour
/  =54/20=2.7,
(1) From the table we know that Lq=7.354
Waiting time at station 1 Wq= qL

=7.354/54=0.1362 hours.
Station 2: Tire assembly
The arrival rate at station 2 is the rate of departure from station 1. If 54 cars per hour
arrive at station 1 then, just for the system to be stable, on an average 54 cars must depart from
station 1. Thus, arrival rate at station 2:
 = 54 per hour
 = 60 per hour
/  = 54/(60) = 0.90
(1) From table, Lq =8.1.
Waiting time at station 2 Wq= qL

=8.1/54=0.15 hour
(b) Total wait time is therefore 0.1362 hr + 0.15 hr = 0.2862 hr
4. A machine shop leases grinders for sharpening their machine cutting tools. A decision must be
made as to how many grinders to lease. The cost to lease a grinder is $50 per day. The grinding
time required by a machine operator to sharpen his cutting tool has an exponential distribution,
with an average of one minute. The machine operators arrive to sharpen their tools according to a
Poisson process at a mean rate of one every 20 seconds. The estimated cost of an operator being
away from his machine to the grinder is 10¢ per minute. The machine shop is open 8 hours per
day. How many grinders should the machine shop lease?
Solution:
The data for this problem are as follows:
hourperoperatorper$6.00=minuteper10¢=
hourpergrinderper$6.25=daypergrinderper$50=
minuteper1=
minuteper3=seconds20percustomer1
costWaiting
costLease

 
The trade-off is between costs of providing service (lease cost) and the cost of customer waiting
(waiting cost). Note that customers are our own employees and therefore it is possible to have a
good estimate of waiting cost as above. We will focus on minimizing the sum of these two costs
so that the trade-off can be resolved optimally. Let us call the sum total cost per hour. Let us try
three options for leasing: 4 grinders, 5 grinders and 6 grinders.
M=4:
1.528 (from Table , / =3 , M=4),
( (1/ )) 1.528 3 4.528
Total Cost/Hour=($6.25)(4)+($6)(4.528)=$52.17.
q
s S q
L
L W W
 
  

     
Note that 4 grinders result in a cost of providing service equal to $6.25*4 per hour. Since, on
average, there are 4.528 operators away from their machines, the cost of customer waiting (being
away from machine) is $6*4.528 per hour. The operator being services is also away from his
machine
M=5:
0.354 (from Table , / =3 , M=5),
( (1/ )) 0.354 3 3.354,
Total Cost/Hour=($6.25)(5)+($6)(3.354)=$51.37.
q
s S q
L
L W W
 
  

     
M=6:
0.099 (from Table , / =3 , M=6),
( (1/ )) 0.099 3 3.099,
Total Cost/Hour=($6.25)(6)+($6)(3.099)=$56.09.
q
s S q
L
L W W
 
  

     
5 grinders should be leased, since this yields the lowest total cost per hour ($51.37).
5. (a) Consider a queue with a single server, arrival rate of 5 per hour and service rate of 10 per
hour. Assuming Poisson arrivals and exponential service time, what is the waiting time in queue?
(b) Actual measurements show that interarrival time standard deviation is 24 minutes and service
time standard deviation is 3 minutes. What is the waiting time in queue?
(a) Arrivals follow Poisson distribution. This means that interarrival time standard deviation is
equal to interarrival time mean and that coefficient of variation (=standard deviation/mean) of
interarrival time Ca=1. Service time follows exponential distribution. This means that service
time standard deviation is equal to service time mean and that coefficient of variation (=standard
deviation/mean) of service time Cs=1. This means that for part (a) we can use standard table or
formulas to compute performance.
5/ ;hr  10 / ;hr  / 0.5   ; m=1
/ 0.5m   
2
/ (1 ) 0.25 / (1 0.5) 0.5qL       ; / 0.5/ 5 0.1 6minq qW L hr   
(b) Now that standard deviations are not equal to mean, we have neither Ca=1, nor Cs=1. We
need to modify above results to incorporate new values of Ca and Cs.
Since arrival rate is 5 per hour, average interarrival time is (1/5) hr = 12 minutes.
Standard deviation of interarrival time is 24 minutes.
Coefficient of variation of interarrival time Ca= standard deviation/mean=24/12=2.
Since service rate is 10 per hour, average service time is (1/10) hr = 6 minutes.
Standard deviation of service time is 3 minutes.
Coefficient of variation of service time Cs= standard deviation/mean=3/6=0.5.
2 2
1 / 1 ( )
2
a s
q a s q
C C
L in case C and or C L ascomputed fromtable
 
    
 
2 2
2 0.5
0.5*( ) 1.0625
2
qL

 
/ 1.0625/ 5 0.2125 12.75minq qW L hr   

More Related Content

What's hot

Waiting Line Management
Waiting Line ManagementWaiting Line Management
Waiting Line ManagementRaman Kumar
 
cycle time, normal time and standard allowance
cycle time, normal time and standard allowancecycle time, normal time and standard allowance
cycle time, normal time and standard allowancePratibha Khemchandani
 
Basic EOQ Model, Quantity Discount, Economic Lot Size
Basic EOQ Model, Quantity Discount, Economic Lot SizeBasic EOQ Model, Quantity Discount, Economic Lot Size
Basic EOQ Model, Quantity Discount, Economic Lot SizePhillip Leonard Petate
 
Food Court Business - Operations Manual
 Food Court Business - Operations Manual  Food Court Business - Operations Manual
Food Court Business - Operations Manual Vipin Jaswal
 
Chapter 02 simulation examples
Chapter 02   simulation examplesChapter 02   simulation examples
Chapter 02 simulation examplesImran Ali Chaudhry
 
Location Strategy
Location StrategyLocation Strategy
Location StrategyJoanmaines
 
Opc least unit cost
Opc   least unit costOpc   least unit cost
Opc least unit costRishabh Jain
 
Process selection
Process selectionProcess selection
Process selectionolenyxa
 
Unit 1 Service Operations Management
Unit 1 Service Operations ManagementUnit 1 Service Operations Management
Unit 1 Service Operations ManagementGopinath Guru
 
Strategic capacity planning for products and services
Strategic capacity planning for products and servicesStrategic capacity planning for products and services
Strategic capacity planning for products and servicesgerlyn bonus
 
Food and Beverage Cost Control
Food and Beverage Cost ControlFood and Beverage Cost Control
Food and Beverage Cost ControlAkmal Hafiz
 

What's hot (20)

Waiting Line Management
Waiting Line ManagementWaiting Line Management
Waiting Line Management
 
Facility Layout
Facility LayoutFacility Layout
Facility Layout
 
cycle time, normal time and standard allowance
cycle time, normal time and standard allowancecycle time, normal time and standard allowance
cycle time, normal time and standard allowance
 
Capacity Management
Capacity ManagementCapacity Management
Capacity Management
 
Lot Sizing Techniques
Lot Sizing TechniquesLot Sizing Techniques
Lot Sizing Techniques
 
Service operations
Service operationsService operations
Service operations
 
Basic EOQ Model, Quantity Discount, Economic Lot Size
Basic EOQ Model, Quantity Discount, Economic Lot SizeBasic EOQ Model, Quantity Discount, Economic Lot Size
Basic EOQ Model, Quantity Discount, Economic Lot Size
 
Food Court Business - Operations Manual
 Food Court Business - Operations Manual  Food Court Business - Operations Manual
Food Court Business - Operations Manual
 
Waiting line mgmt
Waiting line mgmtWaiting line mgmt
Waiting line mgmt
 
Ch09
Ch09Ch09
Ch09
 
Chapter 02 simulation examples
Chapter 02   simulation examplesChapter 02   simulation examples
Chapter 02 simulation examples
 
Ch12pp
Ch12ppCh12pp
Ch12pp
 
Location Strategy
Location StrategyLocation Strategy
Location Strategy
 
Opc least unit cost
Opc   least unit costOpc   least unit cost
Opc least unit cost
 
Capacity Management
Capacity ManagementCapacity Management
Capacity Management
 
Process selection
Process selectionProcess selection
Process selection
 
INVENTORY MODELS
INVENTORY MODELSINVENTORY MODELS
INVENTORY MODELS
 
Unit 1 Service Operations Management
Unit 1 Service Operations ManagementUnit 1 Service Operations Management
Unit 1 Service Operations Management
 
Strategic capacity planning for products and services
Strategic capacity planning for products and servicesStrategic capacity planning for products and services
Strategic capacity planning for products and services
 
Food and Beverage Cost Control
Food and Beverage Cost ControlFood and Beverage Cost Control
Food and Beverage Cost Control
 

Similar to Queueing model

Cost minimization model
Cost minimization modelCost minimization model
Cost minimization modelrowell balala
 
Queuing theory and its applications
Queuing theory and its applicationsQueuing theory and its applications
Queuing theory and its applicationsDebasisMohanty37
 
Presentación teoría de colas reparación de máquinas
Presentación teoría de colas   reparación de máquinasPresentación teoría de colas   reparación de máquinas
Presentación teoría de colas reparación de máquinasGiddelEliasibManjarr
 
Simple queuingmodelspdf
Simple queuingmodelspdfSimple queuingmodelspdf
Simple queuingmodelspdfAnkit Katiyar
 
Operations Research_18ME735_module 4 - queuing systems.pdf
Operations Research_18ME735_module 4 - queuing systems.pdfOperations Research_18ME735_module 4 - queuing systems.pdf
Operations Research_18ME735_module 4 - queuing systems.pdfRoopaDNDandally
 
queueing problems in banking
queueing problems in bankingqueueing problems in banking
queueing problems in bankingMani Deep
 
Simulation chapter 4
Simulation chapter 4Simulation chapter 4
Simulation chapter 4Hagos Guesh
 
Proposed pricing model for cloud computing
Proposed pricing model for cloud computingProposed pricing model for cloud computing
Proposed pricing model for cloud computingAdeel Javaid
 
25700722037-(HM-HU601).pdf mechanical engineering
25700722037-(HM-HU601).pdf mechanical engineering25700722037-(HM-HU601).pdf mechanical engineering
25700722037-(HM-HU601).pdf mechanical engineeringAnantaKumarNandi
 
25700722037-(HM-HU601).pptx mechanical engineering
25700722037-(HM-HU601).pptx mechanical engineering25700722037-(HM-HU601).pptx mechanical engineering
25700722037-(HM-HU601).pptx mechanical engineeringAnantaKumarNandi
 
Flow queue analysis co4.pptx business process management
Flow  queue analysis co4.pptx business process managementFlow  queue analysis co4.pptx business process management
Flow queue analysis co4.pptx business process management21120061
 
Module 2 - Queuing Models and notations.pdf
Module 2 - Queuing Models and notations.pdfModule 2 - Queuing Models and notations.pdf
Module 2 - Queuing Models and notations.pdfShreenathAcharya1
 

Similar to Queueing model (20)

Queueing theory
Queueing theoryQueueing theory
Queueing theory
 
14 queuing
14 queuing14 queuing
14 queuing
 
Sample final report
Sample final reportSample final report
Sample final report
 
Cost minimization model
Cost minimization modelCost minimization model
Cost minimization model
 
Operation Research
Operation ResearchOperation Research
Operation Research
 
Queuing theory and its applications
Queuing theory and its applicationsQueuing theory and its applications
Queuing theory and its applications
 
Presentación teoría de colas reparación de máquinas
Presentación teoría de colas   reparación de máquinasPresentación teoría de colas   reparación de máquinas
Presentación teoría de colas reparación de máquinas
 
Simple queuingmodelspdf
Simple queuingmodelspdfSimple queuingmodelspdf
Simple queuingmodelspdf
 
Business Logistics Assignment Help
Business Logistics Assignment HelpBusiness Logistics Assignment Help
Business Logistics Assignment Help
 
Operations Research_18ME735_module 4 - queuing systems.pdf
Operations Research_18ME735_module 4 - queuing systems.pdfOperations Research_18ME735_module 4 - queuing systems.pdf
Operations Research_18ME735_module 4 - queuing systems.pdf
 
QUEUEING THEORY
QUEUEING THEORYQUEUEING THEORY
QUEUEING THEORY
 
queueing problems in banking
queueing problems in bankingqueueing problems in banking
queueing problems in banking
 
Queue
QueueQueue
Queue
 
Simulation chapter 4
Simulation chapter 4Simulation chapter 4
Simulation chapter 4
 
Proposed pricing model for cloud computing
Proposed pricing model for cloud computingProposed pricing model for cloud computing
Proposed pricing model for cloud computing
 
25700722037-(HM-HU601).pdf mechanical engineering
25700722037-(HM-HU601).pdf mechanical engineering25700722037-(HM-HU601).pdf mechanical engineering
25700722037-(HM-HU601).pdf mechanical engineering
 
25700722037-(HM-HU601).pptx mechanical engineering
25700722037-(HM-HU601).pptx mechanical engineering25700722037-(HM-HU601).pptx mechanical engineering
25700722037-(HM-HU601).pptx mechanical engineering
 
Flow queue analysis co4.pptx business process management
Flow  queue analysis co4.pptx business process managementFlow  queue analysis co4.pptx business process management
Flow queue analysis co4.pptx business process management
 
Queueing theory
Queueing theoryQueueing theory
Queueing theory
 
Module 2 - Queuing Models and notations.pdf
Module 2 - Queuing Models and notations.pdfModule 2 - Queuing Models and notations.pdf
Module 2 - Queuing Models and notations.pdf
 

More from kongara

K.chaitanya sm
K.chaitanya smK.chaitanya sm
K.chaitanya smkongara
 
Stakeholder management
Stakeholder managementStakeholder management
Stakeholder managementkongara
 
K.chaitanya pm
K.chaitanya pmK.chaitanya pm
K.chaitanya pmkongara
 
2 e salesforce objectives.pdf (3 files merged)
2 e salesforce objectives.pdf (3 files merged)2 e salesforce objectives.pdf (3 files merged)
2 e salesforce objectives.pdf (3 files merged)kongara
 
Linear logisticregression
Linear logisticregressionLinear logisticregression
Linear logisticregressionkongara
 
Adwords introduction (1)
Adwords introduction (1)Adwords introduction (1)
Adwords introduction (1)kongara
 
Offpage optimization
Offpage optimizationOffpage optimization
Offpage optimizationkongara
 
Basics of search engines and algorithms (1)
Basics of search engines and algorithms (1)Basics of search engines and algorithms (1)
Basics of search engines and algorithms (1)kongara
 
Isttm evol, dynamics, trends hrm
Isttm evol, dynamics, trends hrmIsttm evol, dynamics, trends hrm
Isttm evol, dynamics, trends hrmkongara
 
Isttm hyd ir v2.0
Isttm hyd ir v2.0Isttm hyd ir v2.0
Isttm hyd ir v2.0kongara
 
Isstm merit rating, promotions & transfers
Isstm merit rating, promotions & transfersIsstm merit rating, promotions & transfers
Isstm merit rating, promotions & transferskongara
 
Matching entrepreneur
Matching entrepreneurMatching entrepreneur
Matching entrepreneurkongara
 
Marketing channel selection
Marketing channel selection Marketing channel selection
Marketing channel selection kongara
 
Market feasibility
Market feasibilityMarket feasibility
Market feasibilitykongara
 
Innovation & entrepreneurship development program
Innovation & entrepreneurship development programInnovation & entrepreneurship development program
Innovation & entrepreneurship development programkongara
 
Industrial policy
Industrial policyIndustrial policy
Industrial policykongara
 
government industrial policies
government industrial policies government industrial policies
government industrial policies kongara
 
Current scenario
Current scenarioCurrent scenario
Current scenariokongara
 
Feasibilitystudy
FeasibilitystudyFeasibilitystudy
Feasibilitystudykongara
 

More from kongara (20)

K.chaitanya sm
K.chaitanya smK.chaitanya sm
K.chaitanya sm
 
Stakeholder management
Stakeholder managementStakeholder management
Stakeholder management
 
K.chaitanya pm
K.chaitanya pmK.chaitanya pm
K.chaitanya pm
 
2 e salesforce objectives.pdf (3 files merged)
2 e salesforce objectives.pdf (3 files merged)2 e salesforce objectives.pdf (3 files merged)
2 e salesforce objectives.pdf (3 files merged)
 
Linear logisticregression
Linear logisticregressionLinear logisticregression
Linear logisticregression
 
Adwords introduction (1)
Adwords introduction (1)Adwords introduction (1)
Adwords introduction (1)
 
Offpage optimization
Offpage optimizationOffpage optimization
Offpage optimization
 
Basics of search engines and algorithms (1)
Basics of search engines and algorithms (1)Basics of search engines and algorithms (1)
Basics of search engines and algorithms (1)
 
Isttm evol, dynamics, trends hrm
Isttm evol, dynamics, trends hrmIsttm evol, dynamics, trends hrm
Isttm evol, dynamics, trends hrm
 
Isttm hyd ir v2.0
Isttm hyd ir v2.0Isttm hyd ir v2.0
Isttm hyd ir v2.0
 
Isstm merit rating, promotions & transfers
Isstm merit rating, promotions & transfersIsstm merit rating, promotions & transfers
Isstm merit rating, promotions & transfers
 
Matching entrepreneur
Matching entrepreneurMatching entrepreneur
Matching entrepreneur
 
Marketing channel selection
Marketing channel selection Marketing channel selection
Marketing channel selection
 
Market feasibility
Market feasibilityMarket feasibility
Market feasibility
 
Innovation & entrepreneurship development program
Innovation & entrepreneurship development programInnovation & entrepreneurship development program
Innovation & entrepreneurship development program
 
Industrial policy
Industrial policyIndustrial policy
Industrial policy
 
government industrial policies
government industrial policies government industrial policies
government industrial policies
 
Current scenario
Current scenarioCurrent scenario
Current scenario
 
Feasibilitystudy
FeasibilitystudyFeasibilitystudy
Feasibilitystudy
 
Dpr
DprDpr
Dpr
 

Recently uploaded

KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 

Recently uploaded (20)

KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 

Queueing model

  • 1. Queueing Model: A Brief Introduction Let us think about a queue (waiting line) most of us have seen, the line at Orin’s place café in Paccar hall. Let us consider the simplest case, one line in front of a single cashier. For now, ignore the role of second cashier (occasionally open) and the barista. We will discuss in class the wide applicability (not just cafes) of the insights we draw from this model. Inputs Customers arrive at the café and join the line. The time between any two customer arrivals is variable and uncertain but we can say, for example, on average two customers join the line every minute. The rate at which customers join the line is what we call arrival rate (symbol lambda  ). This is the same as workload arrival in chapter 1. In this case, arrival rate lambda  is 2 per minute. This also means that the average time between two arrivals is ½ minute; we call this interarrival time. The time cashier takes to serve one customer is called service time. This too changes from customer to customer and is, therefore, variable and uncertain. Let us say, on average, service time for a customer is 15 seconds = ¼ minute. This also means that the one cashier can serve customers at the rate of 1/(1/4) = 4 customers per minute; this is what we call service rate (symbol mu  ). Since there is only one cashier, number of cashiers is 1. We use symbol m for this. In case cafe opens another cashier and if a single line is used to feed both servers, we will say number of servers m is 2. In case there are two different lines in front of two cashiers then we will say that these are two different queues, each with m=1. For now, let us go with our original scenario of single queue with single server. To summarize, at least three inputs are needed to define a queue: arrival rate (lambda), service rate (mu) and number of servers (m). Note that we are interested in expressing our inputs in terms of rates (per minute, for example) and not in time (minutes, for example). Depending on the situation, we may need other inputs describing the extent of variability in arrivals and service. For this basic model, we assume certain type of variability (Poisson distribution for number of arrivals and Exponential distribution for service times) and not worry about it for now. Outputs First output we can get is the utilization of our resource, the cashier. We use the symbol rho  for the utilization. This is equal to the ratio of the rate at which work arrives and the capacity of the station. The idea is exactly the same as utilization computation in chapter 1.We know that the rate at which work arrives is arrival rate lambda  . One cashier can service the work at the rate of service rate  . If there are more than one servers (that is, if number of servers m is more than 1) then total rate at which work can be served, station capacity, will be m multiplied by . Therefore, utilization rho  can be
  • 2. calculated as lambda  divided by (m multiplied by ). m     . Make sure arrival rate and service rate are expressed in same unit of time; for example, both should be per minute or per hour. In the case of Orin café, 2 0.5 1*4    . Our cashier is busy 50% of the times. For our calculations to work, utilization rho  must be less than 1. Second output is number of customers waiting. We use the symbol Lq for this. Note that this excludes the person who is actually getting serviced by the cashier. We have a simple table to find this value. The table is attached. To look at the table we need two things: first, (arrival rate/service rate, that is lambda/mu /  ) and second, number of servers m. In Orin café’s case /  is 2/4=0.5 and m is 1. You will find one row in the table that corresponds to these two values. In this row, read the number in column titled Lq. You will see that the number is 0.5. This means that, on an average, the number of people waiting in line Lq is 0.5. Only in the special case when there is only one server, m=1, we can also use a simple formula to compute the number of customers waiting Lq. (The table works for all values of m, including m=1). For m=1: 2 1 qL     . For example, in this case 0.5 2 1 0.5 qL   =0.5, same as that we got from table. Third output is the time an average customer waits in line to receive service. We use the symbol Wq for this. We have a simple formula to convert number-of-customers-waiting Lq into time-a-customer-waits Wq. To get Wq, divide Lq by arrival rate lambda (Little’s law) In Orin cafe, the time-a-customer-waits 0.5 0.25 2 q q L W     min = 15 seconds. Sometimes we want to think about the whole system, that is, not just waiting but both waiting and getting service. We would like to know the time-a-customer-spends-in-the- system (we use symbol Ws for this) including both time for waiting and time for service. Clearly, this is equal to time-a-customer-waits Wq plus service time. In Orin café’s case, Ws is just equal to the sum of waiting time (15 sec.) and service time (15 sec.). Ws=30sec = 0.5 min. There is also the question of the number-of-customers-in-system (symbol Ls), including both, customers who are waiting and who are getting service. Another application of Little’s law shows that to get number-of-customers-in-system symbol Ls, multiply time- in-system Ws by arrival rate lambda  . In Orin café’s case, 2*0.5 1s sL W   . Finally, to compute the chance that system is idle, that is, there is no customer in the system, we can read the column titled P0 from the table, just the way we read Lq. For Orin café, P0=0.5, that is 50% chance that cashier is free.
  • 3. Other Performance Measures For single-server case, some other performance measures can be computed as following: Probability that there are n customers in system (1 )n n P    Probability that wait is greater than t = (1 )t e      Probability that time-in-system is greater than t = (1 )t e    For more than one server, spreadsheets are available to compute these measures. Determining Capacity If we increase capacity (by increasing m or by increasing  ), we expect that the cost of providing that capacity will increase. We also expect, however, that the customers will wait less and that the cost of customer waiting will decrease. This suggests that we should look at the total cost = (cost of providing service + cost of customer waiting) in order to make decision about how much capacity to provide. For example, if Orin café pays $15 per hour to a cashier then adding one more cashier increases the cost of providing capacity by $15 per hour. But it also reduces the number of customer in system from 1sL  (see above) to 0.533sL  ( 0.033qL  from table for m=2 and then repeat the above steps to get sL ). If we assume that a customer’s time is worth $20 per hour then system saves (1-0.533)*$20 per hour = $9.34. Therefore, in this example, from total system cost perspective, we should not add another server. Other Extensions Without making much fuss about it, we have made two significant assumptions about the pattern of variability in arrivals and service: Poisson distribution for number of arrivals and Exponential distribution for service times. These assumptions mean the following: coefficient of variation =(standard deviation / mean) for interarrival times 1aC  and coefficient of variation =(standard deviation / mean) for service times 1sC  . But what if based on measurement of real data, they are not 1? We call this the case of general arrivals and service. It is easy to compute Lq in this more general case as follows: 2 2 1 / 1 ( ) 2 q a s a s q L in case C and or C C C L ascomputed fromtable          Starting from qL , other performance measures can be computed in the same way as earlier.
  • 4. Summary Arrival rate lambda  = 1 / (interarrival time, that is time between two arrivals) Service rate mu  = 1 / service time Number of servers m Utilization rho / ( )m   Assume arrivals Poisson distribution and service time are exponentially distributed. Average number in waiting line Lq can be obtained from table (given /  and m) In case number of servers m=1, we can also use 2/(1 )Lq    Average waiting time /q qW L  from Little’s Law Average time-in-system (waiting time +service time) (1/ )s qW W   Average number-in-system (waiting+getting served) s sL W Probability that there is nobody in the system P0 is available in table. For single-server case, m=1, we have following three formulas: Probability that there are n customers in system (1 )n n P    Probability that wait is greater than t = (1 )t e      Probability that time-in-system is greater than t = (1 )t e    Determination of capacity is a trade-off between cost of service capacity and cost of customer waiting. Coefficient of variation of interarrival times Ca = (Std.dev./mean of interarrival times) Coefficient of variation of service times Cs = (Std.dev./mean of service times) If 1 / 1a sC and or C  , modify Lq from above by multiplying it with 2 2 ( ) / 2a sC C
  • 5.
  • 6. Queueing Model: Practice Problems 1. A small town with one hospital has two ambulances to supply ambulance service. Requests for ambulances during non-holiday weekend averages 0.8 per hour and tend to be Poisson distributed. Travel and assistance time averages one hour per call and follows an exponential distribution. What is the utilization of ambulances? On an average, how many requests are waiting for ambulances? How long will a request have to wait for ambulances? What is the probability that both ambulances are sitting idle at a given point in time? 2. At a bank’s ATM location with a single machine, customers arrive at the rate of one every other minute. This can be modeled using a Poisson distribution. Each customer spends an average of 90 seconds completing his/her transactions. Transaction time is exponentially distributed. Determine (1) the average time customers spend from arriving to leaving, (2) the chance that the customer will not have to wait, (3) the average number waiting to use the machine. 3. The last two things that are done before a car is completed are engine marriage (station 1) and tire installation (station 2). On average 54 cars per hour arrive at the beginning of these two stations. Three servers are available for engine marriage. Engine marriage requires 3 minutes. The next stage is a single server tire installation. Tire installation requires 1 minute. Arrivals are Poisson and service times are exponentially distributed. (1) What is the queue length at each station? (2) How long does a car spend waiting at the final two stations? 4. A machine shop leases grinders for sharpening their machine cutting tools. A decision must be made as to how many grinders to lease. The cost to lease a grinder is $50 per day. The grinding time required by a machine operator to sharpen his cutting tool has an exponential distribution, with an average of one minute. The machine operators arrive to sharpen their tools according to a Poisson process at a mean rate of one every 20 seconds. The estimated cost of an operator being away from his machine to the grinder is 10¢ per minute. The machine shop is open 8 hours per day. How many grinders should the machine shop lease? 5. (a) Consider a queue with a single server, arrival rate of 5 per hour and service rate of 10 per hour. Assuming Poisson arrivals and exponential service time, what is the waiting time in queue? (b) Actual measurements show that interarrival time standard deviation is 24 minutes and service time standard deviation is 3 minutes. What is the waiting time in queue?
  • 7. Queueing Model Practice problems: Solutions 1. A small town with one hospital has two ambulances to supply ambulance service. Requests for ambulances during non-holiday weekend averages 0.8 per hour and tend to be Poisson distributed. Travel and assistance time averages one hour per call and follows an exponential distribution. What is the utilization of ambulances? On an average, how many requests are waiting for ambulances? How long will a request have to wait for ambulances? What is the probability that both ambulances are sitting idle at a given point in time? Ambulances are resources or servers servicing the requests that are coming in (customers). Two ambulances mean m=2. Requests arrival rate  =0.8 per hour. Service time = one hour. Service rate  = (1/service time) = 1 per hour. Utilization 0.8 0.4 2*1m       /  =0.8 and m=2. From table: 0.152qL  , 0 0.429P  On an average, how many requests are waiting for ambulances = 0.152qL  How long will a request have to wait for ambulances 0.152 0.19 0.8 q q L W hr     What is the probability that both ambulances are sitting idle at a given point in time.. 0 0.429P  Other Performance measures include ,s sW L . Time spent by a call in system 0.19 1 1.19s qW W service time hr     Number of requests in system = 0.8*1.19 0.952s sL W   2. At a bank’s ATM location with a single machine, customers arrive at the rate of one every other minute. This can be modeled using a Poisson distribution. Each customer spends an average of 90 seconds completing his/her transactions. Transaction time is exponentially distributed. Determine (1) the average time customers spend from arriving to leaving, (2) the chance that the customer will not have to wait, (3) the average number waiting to use the machine. Solution: One every other minute means arrival rate 0.5/min  Service rate 1/90sec 0.667/ min   1m  0.5 0.75 1*0.667m       2 2 0.75 2.25 (1 ) 1 0.75 qL        (we an use the formula because m=1; table should give the same result)
  • 8. 2.25 4.5min 0.5 q q L W     (1) the average time customers spend from arriving to leaving sW = waiting + service time = Wq+ 90 sec = 4.5min+1.5min= 6 minutes (2) the chance that the customer will not have to wait that is the chance that there are 0 customers in system 0P = 1  =0.25 (the formula is for m=1 case) (3) the average number waiting to use the machine qL =2.25 3. The last two things that are done before a car is completed are engine marriage (station 1) and tire installation (station 2). On average 54 cars per hour arrive at the beginning of these two stations. Three servers are available for engine marriage. Engine marriage requires 3 minutes. The next stage is a single server tire installation. Tire installation requires 1 minute. Arrivals are Poisson and service times are exponentially distributed. (a) What is the queue length at each station? (b) How long does a car spend waiting at the final two stations? (a) We can analyze these two stations as independent queues. One queue at station 1 followed by another queue at station 2. Station 1: Engine Marriage m=3  = 54 per hour  = 20 per hour /  =54/20=2.7, (1) From the table we know that Lq=7.354 Waiting time at station 1 Wq= qL  =7.354/54=0.1362 hours. Station 2: Tire assembly The arrival rate at station 2 is the rate of departure from station 1. If 54 cars per hour arrive at station 1 then, just for the system to be stable, on an average 54 cars must depart from station 1. Thus, arrival rate at station 2:  = 54 per hour  = 60 per hour /  = 54/(60) = 0.90 (1) From table, Lq =8.1. Waiting time at station 2 Wq= qL  =8.1/54=0.15 hour (b) Total wait time is therefore 0.1362 hr + 0.15 hr = 0.2862 hr 4. A machine shop leases grinders for sharpening their machine cutting tools. A decision must be made as to how many grinders to lease. The cost to lease a grinder is $50 per day. The grinding time required by a machine operator to sharpen his cutting tool has an exponential distribution, with an average of one minute. The machine operators arrive to sharpen their tools according to a
  • 9. Poisson process at a mean rate of one every 20 seconds. The estimated cost of an operator being away from his machine to the grinder is 10¢ per minute. The machine shop is open 8 hours per day. How many grinders should the machine shop lease? Solution: The data for this problem are as follows: hourperoperatorper$6.00=minuteper10¢= hourpergrinderper$6.25=daypergrinderper$50= minuteper1= minuteper3=seconds20percustomer1 costWaiting costLease    The trade-off is between costs of providing service (lease cost) and the cost of customer waiting (waiting cost). Note that customers are our own employees and therefore it is possible to have a good estimate of waiting cost as above. We will focus on minimizing the sum of these two costs so that the trade-off can be resolved optimally. Let us call the sum total cost per hour. Let us try three options for leasing: 4 grinders, 5 grinders and 6 grinders. M=4: 1.528 (from Table , / =3 , M=4), ( (1/ )) 1.528 3 4.528 Total Cost/Hour=($6.25)(4)+($6)(4.528)=$52.17. q s S q L L W W             Note that 4 grinders result in a cost of providing service equal to $6.25*4 per hour. Since, on average, there are 4.528 operators away from their machines, the cost of customer waiting (being away from machine) is $6*4.528 per hour. The operator being services is also away from his machine M=5: 0.354 (from Table , / =3 , M=5), ( (1/ )) 0.354 3 3.354, Total Cost/Hour=($6.25)(5)+($6)(3.354)=$51.37. q s S q L L W W             M=6: 0.099 (from Table , / =3 , M=6), ( (1/ )) 0.099 3 3.099, Total Cost/Hour=($6.25)(6)+($6)(3.099)=$56.09. q s S q L L W W             5 grinders should be leased, since this yields the lowest total cost per hour ($51.37). 5. (a) Consider a queue with a single server, arrival rate of 5 per hour and service rate of 10 per hour. Assuming Poisson arrivals and exponential service time, what is the waiting time in queue? (b) Actual measurements show that interarrival time standard deviation is 24 minutes and service time standard deviation is 3 minutes. What is the waiting time in queue?
  • 10. (a) Arrivals follow Poisson distribution. This means that interarrival time standard deviation is equal to interarrival time mean and that coefficient of variation (=standard deviation/mean) of interarrival time Ca=1. Service time follows exponential distribution. This means that service time standard deviation is equal to service time mean and that coefficient of variation (=standard deviation/mean) of service time Cs=1. This means that for part (a) we can use standard table or formulas to compute performance. 5/ ;hr  10 / ;hr  / 0.5   ; m=1 / 0.5m    2 / (1 ) 0.25 / (1 0.5) 0.5qL       ; / 0.5/ 5 0.1 6minq qW L hr    (b) Now that standard deviations are not equal to mean, we have neither Ca=1, nor Cs=1. We need to modify above results to incorporate new values of Ca and Cs. Since arrival rate is 5 per hour, average interarrival time is (1/5) hr = 12 minutes. Standard deviation of interarrival time is 24 minutes. Coefficient of variation of interarrival time Ca= standard deviation/mean=24/12=2. Since service rate is 10 per hour, average service time is (1/10) hr = 6 minutes. Standard deviation of service time is 3 minutes. Coefficient of variation of service time Cs= standard deviation/mean=3/6=0.5. 2 2 1 / 1 ( ) 2 a s q a s q C C L in case C and or C L ascomputed fromtable          2 2 2 0.5 0.5*( ) 1.0625 2 qL    / 1.0625/ 5 0.2125 12.75minq qW L hr   