Professional Documents
Culture Documents
Queuing Theory
Queuing Theory
Queuing Theory
Cliff T. Ragsdale
Chapter 13
Queuing Theory
Queuing Costs
$
Total Cost
Service Level
Customer
Arrives
...
Waiting Line
...
Waiting Line
...
Waiting Line
Customer
Arrives
Server
Customer
Leaves
Server 1
Customer
Leaves
Server 2
Customer
Leaves
Server 3
Customer
Leaves
Server 1
Customer
Leaves
Server 2
Customer
Leaves
...
Waiting Line
...
Waiting Line
Server 3
Customer
Leaves
x e
P( x )
, for x = 0, 1, 2, ...
x!
where is the arrival rate (e.g., calls arrive at a
rate of =5 per hour)
See file Fig13-3.xls
Comments
If arrivals follow a Poisson distribution with mean ,
interarrival times follow an Exponential distribution
with mean 1/.
Example
Assume calls arrive according to a Poisson
distribution with mean =5 per hour.
Interarrivals follow an exponential distribution
with mean 1/5 = 0.2 per hour.
On average, calls arrive every 0.2 hours or
every 12 minutes.
The exponential distribution exhibits the Markovian
(memoryless) property.
Kendall Notation
Queuing systems are described by 3 parameters:
1/2/3
Parameter 1
M = Markovian interarrival times
D = Deterministic interarrival times
Parameter 2
M = Markovian service times
G = General service times
D = Deterministic service times
Parameter 3
A number Indicating the number of servers.
Examples,
M/M/3
D/G/4
M/G/2
Operating Characteristics
Typical operating characteristics of interest include:
U - Utilization factor, % of time that all servers are busy.
P0 - Prob. that there are no zero units in the system.
Lq - Avg number of units in line waiting for service.
L - Avg number of units in the system (in line & being
served).
Wq - Avg time a unit spends in line waiting for service.
W - Avg time a unit spends in the system (in line & being
served).
Pw - Prob. that an arriving unit has to wait for service.
Pn - Prob. of n units in the system.
L W
1
Wq W
Lq Wq
5
7
1
5
7
2
71.43%
0.2857
1.7857
2.5000
0.3571
0.5000
0.7143
35.71%
0.4737
0.1044
0.8187
0.0209
0.1637
0.1880
Summary of Results:
Bitway Computers With Finite Queue
Arrival rate
Service rate
Number of servers
Maximum queue length
Utilization
P(0), probability that the system is empty
Lq, expected queue length
L, expected number in system
Wq, expected time in queue
W, expected total time in system
Probability that a customer waits
Probability that a customer balks
5
7
1
5
5
7
2
5
68.43%
0.3157
1.0820
1.7664
0.2259
0.3687
0.6843
0.0419
35.69%
0.4739
0.1019
0.8157
0.0204
0.1633
0.1877
0.0007
Summary of Results:
Miller Manufacturing
Arrival rate
Service rate
Number of servers
Population size
0.01
0.125
1
10
0.01
0.125
2
10
0.01
0.125
3
10
Utilization
P(0), probability that the system is empty
Lq, expected queue length
L, expected number in system
Wq, expected time in queue
W, expected total time in system
Probability that a customer waits
67.80%
0.3220
0.8463
1.5244
9.9856
17.986
0.6780
36.76%
0.4517
0.0761
0.8112
0.8282
8.8282
0.1869
24.67%
0.4623
0.0074
0.7476
0.0799
8.0799
0.0347
$20.00
$152.44
$172.44
$40.00
$81.12
$121.12
$60.00
$74.76
$134.76
3.5
0.25
0.0333
3.5
0.2
0.0333
4.371
0.2
0.333
Utilization
P(0), probability that the system is empty
Lq, expected queue length
L, expected number in system
Wq, expected time in queue
W, expected total time in system
87.5%
0.1250
3.1168
3.9918
0.8905
1.1405
70.0% 87.41%
0.3000 0.1259
0.8393 3.1198
1.5393 3.9939
0.2398 0.7138
0.4398 0.9138
0.871
$13.06
$130.61
$783.63
Cost of Machine
$5,000
Payback Period
6.381 weeks
Simulating Queues
The queuing formulas used in Q.xls describe
the steady-state operations of the various
queuing systems.
Simulation is often used to analyze more
complex queuing systems.
See file Fig13-21.xls
End of Chapter 13