Professional Documents
Culture Documents
(Session 10)
D1
Outline
Characteristics of a Waiting-Line System
Arrival Characteristics Waiting-Line Characteristics Service Characteristics Measuring a Queues Performance
Queuing Costs
2008 Prentice Hall, Inc. D2
Outline
The Variety of Queuing Models
Model A(M/M/1): Single-Channel Queuing Model with Poisson Arrivals and Exponential Service Times Model B(M/M/S): Multiple-Channel Queuing Model Model C(M/D/1): Constant-Service-Time Model Model D: Limited-Population Model
Waiting Lines
Often called queuing theory Waiting lines are common situations Useful in both manufacturing and service industries
2008 Prentice Hall, Inc. D4
Telephone company Callers Bank Machine maintenance Harbor Customer Broken machines Ships and barges
D5
Arrival Characteristics
1. Size of the population
Unlimited (infinite) or limited (finite)
2. Pattern of arrivals
Scheduled or random, often a Poisson distribution
3. Behavior of arrivals
Wait in the queue and do not switch lines No balking or reneging
2008 Prentice Hall, Inc. D7
Enter
Exit
In the system
Arrival Characteristics Size of the population Behavior of arrivals Statistical distribution of arrivals
D8
Poisson Distribution
e-x P(x) = x!
where P(x) x e = = = =
for x = 0, 1, 2, 3, 4,
probability of x arrivals number of arrivals per unit of time average arrival rate 2.7183 (which is the base of the natural logarithms)
D9
Poisson Distribution
e-x Probability = P(x) = x!
0.25 Probability Probability 0.02 0.15 0.10 0.05 x 0.25 0.02 0.15 0.10 0.05
0 1 2 3 4 5 6 7 8 9 10 11 x
0 1 2 3 4 5 6 7 8 9
Distribution for = 2
Distribution for = 4
D 10
Waiting-Line Characteristics
Limited or unlimited queue length Queue discipline - first-in, first-out (FIFO) is most common Other priority rules may be used in special circumstances
D 11
Service Characteristics
Queuing system designs
Single-channel system, multiplechannel system Single-phase system, multiphase system
D 13
Queue Arrivals
Service facility Channel 2 Service facility Channel 3
D 14
Queue Arrivals
D 15
Probability that service time is greater than t = e-t for t 1 = Average service rate e = 2.7183 Average service rate () = 3 customers per hour Average service time = 20 minutes per customer
Time t (hours)
D 16
D 17
Queuing Costs
Cost
Total expected cost Cost of providing service Cost of waiting time Low level of service Optimal service level High level of service
D 18
Queuing Models
The four queuing models here all assume: Poisson distribution arrivals FIFO discipline A single-service phase
D 19
Queuing Models
Model A Name Single-channel system (M/M/1) Example Information counter at department store
D 20
Queuing Models
Model B Name Multichannel (M/M/S) Example Airline ticket counter
D 21
Queuing Models
Model C Name Constantservice (M/D/1) Example Automated car wash
D 22
Queuing Models
Model D Name Limited population (finite population) Example Shop with only a dozen machines that might break
D 23
Model A Single-Channel
1. Arrivals are served on a FIFO basis and every arrival waits to be served regardless of the length of the queue 2. Arrivals are independent of preceding arrivals but the average number of arrivals does not change over time 3. Arrivals are described by a Poisson probability distribution and come from an infinite population
2008 Prentice Hall, Inc. D 24
Model A Single-Channel
4. Service times vary from one customer to the next and are independent of one another, but their average rate is known 5. Service times occur according to the negative exponential distribution 6. The service rate is faster than the arrival rate
D 25
Model A Single-Channel
Mean number of arrivals per time period Mean number of units served per time period Average number of units (customers) in the system (waiting and being served) = Ws = Average time a unit spends in the system (waiting time plus service time) 1 = Ls = = =
D 26
Model A Single-Channel
Lq = Average number of units waiting in the queue 2 = ( ) Wq = Average time a unit spends waiting in the queue = ( ) p = Utilization factor for the system =
2008 Prentice Hall, Inc. D 27
Model A Single-Channel
P0 = Probability of 0 units in the system (that is, the service unit is idle) = 1 Pn > k = Probability of more than k units in the system, where n is the number of units in the system =
k+1
D 28
Single-Channel Example
= 2 cars arriving/hour = 3 cars serviced/hour 2 = = 2 cars in the system on average Ls = 3-2 1 1 = = 1 hour average waiting time in Ws = 3-2 the system 22 2 = = 1.33 cars waiting in line Lq = 3(3 - 2) ( )
D 29
Single-Channel Example
= 2 cars arriving/hour = 3 cars serviced/hour
2 Wq = = = 2/3 hour = 40 minute 3(3 - 2) ( ) average waiting time p = / = 2/3 = 66.6% of time mechanic is busy P0 = 1 = .33 probability there are 0 cars in the system
D 30
Single-Channel Example
Probability of more than k Cars in the System k 0 1 2 3 4 5 6 7
2008 Prentice Hall, Inc.
Pn > k = (2/3)k + 1 .667 Note that this is equal to 1 - P0 = 1 - .33 .444 .296 .198 Implies that there is a 19.8% chance that more than 3 cars are in the system .132 .088 .058 .039
D 31
Single-Channel Economics
Customer dissatisfaction and lost goodwill Wq Total arrivals Mechanics salary = $10 per hour = 2/3 hour = 16 per day = $56 per day
D 32
P0 =
for M > M M -
1 n! n=0
1 + M!
Ls =
(/)
(M - 1)!(M - )
P + 2 0
D 33
Multi-Channel Model
1 Ws = P0 + = 2 (M - 1)!(M - ) (/)
M
Ls
Lq = Ls
Lq 1 Wq = Ws =
D 34
Multi-Channel Example
= 2 P0 = 1 = 3 M = 2 = 2(3) 2(3) - 2 1 2
n=0
1 n!
2 3
1 + 2!
2 3
Ls =
(2)(3(2/3)2 1! 2(3) - 2 3 = 8
2
1 2
2 + 3
3 4 .083 2
Ws =
3/4 2
Lq =
1 2 3 = 12 3 4
Wq =
= .0415
D 35
Multi-Channel Example
Single Channel P0 Ls Ws Lq Wq .33 2 cars 60 minutes 1.33 cars 40 minutes Two Channels .5 .75 cars 22.5 minutes .083 cars 2.5 minutes
D 36
D 37
M 1 2 3 4
Time in queue .45 hrs, 27 minutes .0127 hrs, minute .0017 hrs, 6 seconds .0003 hrs, 1 second
D 38
Ls = Lq + Ws = Wq + 1
D 39
Constant-Service Example
Trucks currently wait 15 minutes on average Truck and driver cost $60 per hour Automated compactor service rate () = 12 trucks per hour Arrival rate () = 8 per hour Compactor costs $3 per truck Current waiting cost per trip = (1/4 hr)($60) = $15 /trip 1 8 = hour Wq = 12 2(12)(12 8) Waiting cost/trip = (1/12 hr wait)($60/hr cost) with compactor Savings with = $15 (current) $5(new) new equipment Cost of new equipment amortized Net savings
2008 Prentice Hall, Inc.
D 41
Limited-Population Model
D = Probability that a unit N = Number of potential T will have to wait customers Service factor:inX = T+U queue F = Average number running: J = NF(1 - X) time Efficiency factor T = Average service H = Averagenumber of waiting: =LAverage time between Average number units U = N(1 - F) being served unit service Average number being serviced: H = FNX requirements T(1 - F) J = Average number of units W = Average time a unit Average waiting time: W = waits in line not in queue or in XF service bay Number of population: N = J + L + H L = Average number of units X = Service factor waiting for service M = Number of service channels
2008 Prentice Hall, Inc. D 42
Limited-Population Example
Each of 5 printers requires repair after 20 hours (U) of use One technician can service a printer in 2 hours (T) Printer downtime costs $120/hour Technician costs $25/hour
Service factor: X =
2 = .091 (close to .090) 2 + 20 For M = 1, D = .350 and F = .960 For M = 2, D = .044 and F = .998 Average number of printers working: For M = 1, J = (5)(.960)(1 - .091) = 4.36 For M = 2, J = (5)(.998)(1 - .091) = 4.54
D 44
Limited-Population Example
Average Average Number Each of 5 printers require Cost/Hrafter 20 Cost/Hr(for of use repair for hours U) Technicians Total Downtime Printers Number of One technician can service a printer in 2 hours (T) ($25/hr) Cost/Hr (N - J)$120 Down (N - J) Technicians
$25.00
$101.80
2 $55.20 $50.00 $105.20 = .091 (close to .090) 2 + 20 For M = 1, D = .350 and F = .960 For M = 2, D = .044 and F = .998 Average number of printers working: For M = 1, J = (5)(.960)(1 - .091) = 4.36 For M = 2, J = (5)(.998)(1 - .091) = 4.54
D 45
Problems 1) A waiting line meeting the M/M/1 assumptions has an arrival rate of 4 per hour and a service rate of 12 per hour. What is the probability that the waiting line is empty? Po = 1 - / = 1 - 4/12 = 8/12 or 0.667.
2) A waiting line meeting the M/M/1 assumptions has an arrival rate of 10 per hour and a service rate of 12 per hour. What is the average time a unit spends in the system and the average time a unit spends waiting?
D 47
3) A crew of mechanics at the Highway Department garage repair vehicles that break down at an average of = 7.5 vehicles per day (approximately Poisson in nature). The mechanic crew can service an average of = 10 vehicles per day with a repair time distribution that approximates an exponential distribution. a. What is the utilization rate for this service system? b. What is the average time before the facility can return a breakdown to service? c. How much of that time is spent waiting for service? d. How many vehicles are likely to be in the system at any one time? (a) Utilization is = 7.5 / 10 = .75 or 75 percent; (b) Ws = 1 / (10 7.5) = 1 / 2.5 = 0.4 days; (c) Wq = 7.5 / 10*(10-7.5) = 0.3 days; (d) Ls = 7.5 / (10-7.5) = 7.5 / 2.5 = 3 units.
2008 Prentice Hall, Inc. D 48
4) At the order fulfillment center of a major mail-order firm, customer orders, already packaged for shipment, arrive at the sorting machines to be sorted for loading onto the appropriate truck for the parcel's address. The arrival rate at the sorting machines is at the rate of 100 per hour following a Poisson distribution. The machine sorts at the constant rate of 150 per hour. a. What is the utilization rate of the system? b. What is the average number of packages waiting to be sorted? c. What is the average number of packages in the sorting system? d. How long must the average package wait until it gets sorted? e. What would Lq and Wq be if the service rate were exponential, not constant?
2008 Prentice Hall, Inc. D 49