Professional Documents
Culture Documents
Overview
•Introduction
•M/M/1
•M/M/s
•M/M/s/K
•M/M/s with finite calling population
•queuing theory?
–mathematical study of queues and waiting lines
•waiting line?
–current demand for service exceeds current capacity to provide service
•queuing theory
–does not solve problems related to stochastics directly
–provides useful information required by decision makers
•average # in waiting line / system
•average waiting time
•average time in system
•utilization rate
•input source
–customers requiring a service are generated over time
•customers
–enter queuing system
–join a queue
•queue discipline
–member of queue is selected for service by some rule (f.e. FCFS)
•service mechanism
–required service is performed for the customer
service
mechanism
input
source
“birth” “death”
service
average #
mechanism
in queue (Lq)
input
source
average waiting
time in queue (Wq)
•statistical pattern
–how customers are generated
–common assumption:
•# of customers generated until some specific time: poisson process
•interarrival time: exponential distribution
•behavior of customers
–balking (refuse to enter system)
•queue capacity
–maximum permissible number of customers that can be in queue
–finite vs. infinite
•queuing discipline
–order how members of queue are selected
–first-come-first-served
–random
–priority procedure
•service time
–how long does it take to serve customers?
–follows some probability distribution
•common: assume same for all servers
•exponential distribution
•Erlang distribution
•break downs?
•multiple servers
server
server
•at start
–depends on initial state and on time already elapsed
–system is in a transient condition
–L = W
–Lq = Wq
–W = Wq + 1 /
L High utilization
Lq Low ops costs
Low flexibility
W Poor service
Wq
Low utilization
High ops costs
High flexibility
Good service
Combined
Cost Costs
Sweet Spot –
Min Combined
Costs
Cost of Cost of
Service Waiting
•given N(t) = n,
–the current probability distribution of the remaining time until the
next birth (arrival) is exponential with parameter n
–the current probability distribution of the remaining time until the
next death (departure) is exponential with parameter n
•rate diagram
0 1 2 … n-1 n n+1 …
μ1 μ2 μ3 μn-1 μn μn+1 μn+2
•requirement
•implies
•and finally
•interarrival times
–iid according to an exponential distribution
–input process is Poisson
•service times
–iid according to another exponential distribution
•number of servers = 1
•constant mean arrival rate () and mean service rate ()
–independent of system’s state
<1
otherwise no steady-
•utilization rate = / state condition can
be reached
040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I
rate diagram
λ λ λ λ λ λ λ
0 1 2 … n-1 n n+1 …
μ μ μ μ μ μ μ
•example
–Boulder Reservoir has one launching ramp for small boats. On
summer weekends, boats arrive for launching at a mean rate of
6 boats per hour. It takes an average of s=6 minutes to
launch a boat. Boats are launched FCFS.
• = 6 per hour
• = 1/6 per minute = 10 per hour
• = 6/10 = 60%
6 6 6 6 6 6 6
0 1 2 … n-1 n n+1 …
10 10 10 10
040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I
10 10 10
example
•average # in system
λ λ λ λ λ λ λ
0 1 2 … s-1 s s+1 …
μ 2μ 3μ (s-1)μ sμ sμ sμ
•M/M/4
– = 3 (customers/minute)
– = 1 (customers/minute)
<1
– = / (s ) = 3/4 otherwise no steady-
state condition can
be reached
•rate diagram
0 = 3 1 = 3 2 = 3 3 = 3 4 = 3 5 = 3 6 = 3
0 1 2 3 4 5 6 …
1 = 1 2 = 2 3 = 3 4 = 4 5 = 4 6 = 4 7= 4
•replace ¾ by x
•average # in queue
•basic idea
–finite queue
–space in waiting area is limited (a maximum of K customers can be
accommodated in the system)
–customers balk because queue is too long
•any customer that arrives while queue is full is refused to enter into
the system and leaves forever
•mean input rate into system = 0
rate diagram
λ λ λ λ λ λ
0 1 2 … s … K
μ 2μ 3μ sμ sμ sμ
–M/M/2/3
– = 15 (per hour)
– = 15 (per hour)
040669 || WS 2008 || Dr. Verena Schmid || PR KFK PM/SCM/TL Praktikum Simulation I
example
•rate diagram
λ0 = 15 λ1 = 15 λ2 = 15
0 1 2 3
1 = 15 2 = 30 3 = 30
unfortunately:
Lq Wq and L W
(as n are not equal for all n)
•basic idea
–input source is limited
–size of calling population is finite (N)
–if there’re n customers in the queuing system only N-n potential
customers remain in the input source
0 1 … s s+1 … N-1 N
μ 2μ sμ sμ sμ sμ sμ
•rate diagram
0 1 2 3
1 = 1/2 2 = 1 3 = 1
average # of
machines/customers in
system
= average number of
machines out of order
•remember
–T1, T2,…, Tk k independent random variables with an identical
exponential distribution
(mean = 1/(k) )
–their sum has an Erlang distribution with parameters k and
•queuing networks
•etc.