Professional Documents
Culture Documents
Queuing Theory: Manoj Kumar Sain, Reader, ME
Queuing Theory: Manoj Kumar Sain, Reader, ME
A Queuing System
Average Wait
in Queue
(Wq )
Service
Arrival
Rate
Average Number
in Queue
(Lq )
Departure
Rate (
)
2
Calling Population
Arrival Process
Service Process
Number of Servers
Queue Discipline
Can be homogeneous
Only one type of customers/ jobs
Or heterogeneous
Several different kinds of customers/jobs
2. Arrival Process
In what pattern do jobs / customers arrive to the
queueing system?
3. Service Process
How long does it take to service a job or customer?
Distribution of arrival times?
Rework or repair?
Service center (machine) breakdown?
4. Number of Servers
How many servers are available?
Single Server Queue
Dispatching
discipline
server0
= arrival rate
server1
.
Servern-1
10
queue
server1
.
queue
Servern-1
11
12
5. Queue Discipline
How are jobs / customers selected from the queue
for service?
13
14
Poisson Distribution
Average arrival rate is known
Average arrival rate is constant for some
number of time periods
Number of arrivals in each time period is
independent
As the time interval approaches 0, the average
number of arrivals approaches 0
15
Poisson Queue
16
Poisson Distribution
= the average arrival rate per time unit
P(x) = the probability of exactly x arrivals
occurring during one time period
P(x) = e- x
x!
Manoj Kumar Sain,Reader, ME, SKIT
17
Behavior of Arrivals
Most queuing formulas assume that all
arrivals stay until service is completed
Balking refers to customers who do not join
the queue
Reneging refers to customers who join the
queue but give up and leave before
completing service
Jokeying refers to customers who change the
queue
Manoj Kumar Sain,Reader, ME, SKIT
18
Queue Characteristics
Queue length (max possible queue length)
either limited or unlimited
Service discipline usually FIFO (First In First
Out)
19
20
Exponential Distribution
= average service time
t = the length of service time (t > 0)
P(t) = probability that service time will be
greater than t
P(t) = e- t
21
22
Kendalls Notation
A/B/s
A = Arrival distribution
(M for Poisson, D for deterministic, and G
for general)
B = Service time distribution
(M for exponential, D for deterministic,
and G for general)
S = number of servers
Manoj Kumar Sain,Reader, ME, SKIT
23
24
25
Poisson arrivals
Arrival population is unlimited
Exponential service times
All arrivals wait to be served
is constant
> (average service rate > average arrival
rate)
26
( )
3. Average number in system (waitng+ being
served)
Ls = Lq + /
Manoj Kumar Sain,Reader, ME, SKIT
27
( )
5. Average time in the system
Ws = Wq + 1/
6. Probability of 0 customers in system
P0 = 1 /
7. Probability of exactly n customers in system
Pn = (/ )n P0
Manoj Kumar Sain,Reader, ME, SKIT
28
Example
A TV mechanic finds that the time spent on his
jobs has an exponential distribution with a
mean 30 minutes, and he repairs set in FCFS. If
the arrival of sets is approximately Poisson
with an average rate of 10 per eight hour day.
What is the mechanics expected idle time
each day? How many jobs are ahead of the
average set just brought in?
Manoj Kumar Sain,Reader, ME, SKIT
29
Solution
1
=
30
=
10
=
860
1/48
1/48
=
1/301/48
30
31
Example 2
At what average rate a clerk at a supermarket
work, in order to ensure a probability of 0.90
that the customer will not have to wait longer
than 12 minutes? It is assumed that there is
only one counter, to which customer arrives in
a Poisson fashion at an average rate of 15 per
hour. The length of service by the clerk has an
exponential distribution.
32
Solution
15
60
Arrival rate =
1
4
12
0.10 = 1
312
1
=2.26
12
= 0.10
33
Example 3
Arrival at a telephone booth is considered to
be Poisson, with an average time of 10
minutes between two arrivals. The length of a
phone call is assumed to be exponentially
distributed with three minutes mean.
What is the probability that a person arriving
at the booth will have to wait?
What is the waiting time in the queue?
34
Solution
Arrival rate = 1/10
Service rate =
1
3
Probability of waiting= 1 0 =
=3/10=0.30
=
()
=7/9
35
Poisson arrivals
Exponential service times
s servers
Total service rate must exceed arrival rate
( s > )
Many of the operating characteristic formulas
are more complicated
36
37
38
39