Week 8 - Queuing Theory PDF
Week 8 - Queuing Theory PDF
Winston, W.L. & Goldberg, J.B. (2004). Operations research: applications and algorithms (Vol 4).
BelmonteCalif Calif:Thomson/Brooks/Cole.
t1 t2 t3
T1 T2
for example:
t1 = 3 ; t2 = 8 ; t3 = 15
Ti = ti+1 - ti interarrival time
T1 = 8 – 3 = 5
T2 = 15 – 8 = 7
Modeling the Arrival Process (2)
1
◉ 𝜆 = the arrival rate (units of arrivals per hour) 𝜆 = mean
interarrival time
No-memory Property
◉ It implies that if we want to know the
probability distribution of the time until the
next arrival, then it does not matter how long
it has been since the last arrival.
◉ If we know that at least 𝑡 time units have
elapsed since the last arrival occurred, then the
distribution of the remaining time until the next
arrival ℎ doesn’t depend on 𝑡.
This means that to predict future arrival patterns, we need not
keep track of how long it has been since the last arrival.
Example
Relation Between Poisson and
Exponential Distribution
3. Let 𝑿 be the time (in minutes) between successive pizza orders. The mean number of
orders per minute is exponential with parameter or rate 30/60 =0.5 pizza per minute.
Thus, the pdf of the time between orders is 0.5𝑒 −0.5𝑡
Example 2
𝑒 −2 20
c. P(0 buses) = = 𝑒 −2 = 0.14
0!
23
Erlang Distribution
As k increases, the Erlang distribution behaves more and more like a normal distribution.
For extremely large values of k, it approaches a random variable with zero variance
(constant interarrival time).
The Erlang distribution has the same distribution as the random variable A1 + A2 +...+ Ak,
where each Ai is an exponential random variable with parameter k𝜆, and the Ai’s are
independent random variables.
Assume that the service times of different customers are independent random variables and
that each customer’s service time is governed by a random variable S having a density
function s(t).
1
= mean service time for customer (hours per customer)
𝜇
𝜇 = servicerate(customersper hour)
Service times can be accurately modeled as exponential random variables.
Modeling the Service Process (2)
The actual service time may be inconsistent with the no memory property
Erlang distribution can be closely fitted to observed service times.
In many important models 4/5/6 is GD/∞/∞. If this is the case, then 4/5/6 is
often omitted.
Example: M/E2/8/FCFS/10/∞
Represents: A health clinic with 8 doctors, exponential interarrival times,
two-phase Erlang service times, an FCFS queue discipline, and a total
capacity of 10 patients.
Waiting is so unusual that many of us can't
stand in a queue for 30 seconds without
getting out our phones to check for messages
or to Google something
-Julian Baggini-