Module D
Module D
Management
Waiting-Line Models
Module D
D-1
Outline
Characteristics of a Waiting-Line System.
Arrival characteristics.
Waiting-Line characteristics.
Service facility characteristics.
D-2
Waiting Lines
First studied by A. K. Erlang in 1913.
Analyzed telephone facilities.
Body of knowledge called queuing theory.
Queue is another name for waiting line.
Decision problem:
Balance cost of providing good service with cost
of customers waiting.
D-3
You’ve Been There Before!
D-4
Waiting Line Examples
Situation Arrivals Servers Service Process
D-5
Waiting Line Components
Arrivals: Customers (people, machines, calls, etc.)
that demand service.
Waiting Line (Queue): Arrivals waiting for a free
server.
Servers: People or machines that provide service
to the arrivals.
Service System: Includes waiting line and servers.
D-6
Car Wash Example
D-7
Key Tradeoff
D-8
Waiting Line Terminology
Queue: Waiting line.
Arrival: 1 person, machine, part, etc. that
arrives and demands service.
Queue discipline: Rules for determining the
order that arrivals receive service.
Channels: Parallel servers.
Phases: Sequential stages in service.
D-9
Input Characteristics
Input source (population) size.
Infinite: Number in service does not affect
probability of a new arrival.
A very large population can be treated as infinite.
Finite: Number in service affects probability of a
new arrival.
Example: Population = 10 aircraft that may need repair.
Arrival pattern.
Random: Use Poisson probability distribution.
Non-random: Appointments.
D-10
Poisson Distribution
Number of events that occur in an interval of time.
Example: Number of customers that arrive each half-hour.
D-11
Poisson Probability Distribution
0.30 0.30
0.25 0.25
0.20 0.20
Probability
0.15 0.15
Probability
0.10 0.10
0.05
0.05
0.00
0 1 2 3 4 5 6 7 8 9 10 11 12 0.00
x
0 1 2 3 4 5 6 7 8 9 10 11 12
x
=2 =4
D-12
Behavior of Arrivals
Patient.
Arrivals will wait in line for service.
Impatient.
Balk: Arrival leaves before entering line.
Arrival sees long line and decides to leave.
Renege: Arrival leaves after waiting in line a while.
D-13
Waiting Line Characteristics
Line length:
Limited: Maximum number waiting is limited.
Example: Limited space for waiting.
Unlimited: No limit on number waiting.
Queue discipline:
FIFO (FCFS): First in, First out. (First come, first served).
Random: Select arrival to serve at random from those
waiting.
Priority: Give some arrivals priority for service.
D-14
Service Configuration
Single channel, single phase.
One server, one phase of service.
Single channel, multi-phase.
One server, multiple phases in service.
Multi-channel, single phase.
Multiple servers, one phase of service.
Multi-channel, multi-phase.
Multiple servers, multiple phases of service.
D-15
Single Channel, Single Phase
Service system
Served
Arrivals Queue units
Service
facility
D-16
Single Channel, Multi-Phase
Service system
Served
Arrivals Queue units
Service Service
facility facility
D-17
Multi-Channel, Single Phase
Service system
Served
units
Service
Arrivals Queue facility
Service
facility
Service Service
facility facility
D-20
Negative Exponential Distribution
.4
Continuous distribution. =1
Probability: =2
Probability t>x
.3
f ( t x ) e μ x =3
.2 =4
Example: Time between
arrivals. .1
Mean service rate =
6 customers/hr. 0.
Mean service time = 1/ 0 2 4 6 8 10
1/6 hour = 10 minutes x
D-21
Assumptions in the Basic Model
Customer population is homogeneous and infinite.
Queue capacity is infinite.
Customers are well behaved (no balking or reneging).
Arrivals are served FCFS (FIFO).
Poisson arrivals.
The time between arrivals follows a negative exponential
distribution
D-23
Queuing Model Notation
a/b/S
Number of servers or channels.
Service time distribution.
Arrival time distribution.
D-26
Performance Measures
Average queue time = Wq
Average queue length = Lq
Average time in system = Ws
Average number in system = Ls
Probability of idle service facility = P0
System utilization =
Probability of more than k units in system = Pn > k
Also, fraction of time there are more than k units in the system.
D-27
General Queuing Equations
=
S
1
=
Ws Wq +
Given one of Ws , Wq ,
Ls = Lq + Ls, or Lq you can use
these equations to
Lq = W q find all the others.
Ls = W s
D-28
M/M/1 Model
Type: Single server, single phase system.
Input source: Infinite; no balks, no reneging.
Queue: Unlimited; single line; FIFO (FCFS).
Arrival distribution: Poisson.
Service distribution: Negative exponential.
D-29
M/M/1 Model Equations
Average # of customers in system: L s =
-
1
=
Average time in system: W s -
2
Average # of customers in queue: L q =
( - )
()
k+1
P =
n>k
D-31
M/M/1 Example 1
Average arrival rate is 10 per hour. Average service
time is 5 minutes.
1
Also note: Ws = Wq +
1 1 1
so Wq = W - = - = O.41667 hours
s 2 12
D-33
M/M/1 Example 1
= 10/hr and = 12/hr
D-34
M/M/1 Example 1
= 10/hr and = 12/hr
D-35
More than 5 in the system...
Note that “more than 5 in the system” is the
same as:
“more than 4 in line”
“5 or more in line”
“6 or more in the system”.
D-36
M/M/1 Example 1
= 10/hr and = 12/hr
= 5/day ( = 0.625/hour)
5
Wq = = 0.558 days (or 4.46 hours)
6.4(6.4 - 5)
0.625
Wq = = 4.46 hours
0.8(0.8 - 0.625)
D-39
M/M/1 Example 2
= 5/day (or = 0.625/hour)
= 6.4/day (or = 0.8/hour)
Q3: How much time per day (on average) are there 2 or
more broken copiers waiting for the repair person?
5 3
P
n>2 = ( )
6.4
= 0.477 (47.7% of the time)
D-40
M/M/1 Example 3
A coffee shop sees on average one arrival every two minutes
in the morning. The average service time (for preparing the
drink, paying, etc.) is 90 seconds. If you leave your house at
9:00 am, and it is a 10 minutes drive to the coffee shop, and
then a 15 minute drive to school, what time would you expect
to arrive at school (on average)?
D-42
M/M/S Equations
1
Probability of zero people or P0
M 1 1 λ n 1 λ M Mμ
units in the system:
n 0 n! μ M! μ Mμ λ
M
Average number of people or
Ls P
units in the system: M !M
M
Average time a unit spends
Ws P
in the system: M !M
D-44
M/M/2 Model Equations
D-45
M/M/2 Example
Average arrival rate is 10 per hour.
Average service time is 5 minutes for each of 2 servers.
412
Ws = = 0.1008 hours = 6.05 minutes
4(12) -(10)
2 2
D-46
M/M/2 Example
= 10/hr, = 12/hr, and S=2
(10)2
Wq = = 0.0175 hrs = 1.05 minutes
12 (212 + 10)(212 - 10)
1
Also note: Ws = Wq +
1
so Wq = W -
s = 0.1008 hrs - 0.0833 hrs = 0.0175 hrs
D-47
M/M/2 Example
= 10/hr, = 12/hr, and S=2
D-48
M/M/2 Example
= 10/hr and = 12/hr
D-49
M/M/1, M/M/2 and M/M/3
1 server 2 servers 3 servers
Wq 25 min. 1.05 min. 0.1333 min. (8 sec.)
= 0.417 hr = 0.0175 hr = 0.00222 hr
WS 30 min. 6.05 min. 5.1333 min.
Lq 4.167 cust. 0.175 cust. 0.0222 cust.
LS 5 cust. 1.01 cust. 0.855 cust.
P0 16.7% 41.2% 43.2%
D-50
Waiting Line Costs
Service cost per day
= (# of servers) x (cost per day of each server) +
(# customers per day) x (marginal cost per customer)
D-51
Service Cost per Day
= 10/hr and = 12/hr
Suppose servers are paid $7/hr and work 8 hours/day. Also,
suppose the marginal cost to serve each customer is $0.50.
D-52
Customer Waiting Cost per Day
= 10/hr and = 12/hr
Suppose customer waiting cost is $10/hr.
= Mean number of
arrivals served per time
period.
Example: 4 units/hour.
1/ = 15 minutes/unit.
D-56
Other Queuing Models
M/D/S
Constant service time; Every service time is the same.
Random (Poisson) arrivals.
Limited population.
Probability of arrival depends on number in service.
Limited queue length.
Limited space for waiting.
Many others...
D-57
Other Considerations
Wait time & queue length increase rapidly for >0.7
Queue is small until system is about 70% busy; then
queue grows very quickly.
Pooling servers is usually advantageous.
Airport check-in vs. Grocery stores.
Variance in arrivals & service times causes long waits.
Long service times cause big waits.
Cost of waiting is nonlinear.
Twice as long wait may be more than twice as bad.
D-58
More Considerations
Reduce effect of waiting.
Distract customers with something to do, look at
or listen to.
Music, art, mirrors, etc.
Provide feedback on expected length of wait.
“Your call will be answered in 6 minutes…”
D-59