Professional Documents
Culture Documents
λ λ
λ λ λ
2µ 2µ
2µ
2
In the general case of M |Ek |1 model, for suffi-
ciently small h,
3
Hence,
p0(t + h) − p0(t) o(h)
= −λp0(t) + kµp1,1(t) +
h h
p1,i(t + h) − p1,i(t)
= −(λ + kµ)p1,i(t)
h
o(h)
+ kµp1,i+1(t) + ,
h
1 ≤ i ≤ k − 1,
p1,k (t + h) − p1,k (t)
= −(λ + kµ)p1,k (t)
h
o(h)
+ kµp2,1(t) + λp0(t) +
h
pnk (t + h) − pnk (t)
= −(λ + kµ)pnk (t)
h
+ kµpn+1,1(t) + λpn−1,k (t)
o(h)
+ , n ≥ 2,
h
pni(t + h) − pni(t)
= −(λ + kµ)pni(t)
h
+ kµpn,i+1(t) + λpn−1,i(t)
o(h)
+ , n ≥ 2 and
h
1 ≤ i ≤ k − 1.
4
By letting h → 0,
p0 = lim p0(t)
t→∞
p1,i = lim p1,i(t), 1 ≤ i ≤ k − 1,
t→∞
p1,k = lim p1,k (t)
t→∞
pnk = lim pnk (t), n ≥ 2,
t→∞
pni = lim pni(t), n ≥ 2 and 1 ≤ i ≤ k − 1.
t→∞
The existence of these limits implies that
5
lim p′0(t) = 0
t→∞
lim p′1,i(t) = 0, 1 ≤ i ≤ k − 1,
t→∞
lim p′1,k (t) = 0
t→∞
lim p′nk (t) = 0, n ≥ 2,
t→∞
lim p′ni(t) = 0, n ≥ 2 and 1 ≤ i ≤ k − 1,
t→∞
and consequently
λp0 = kµp1,1 (1)
(λ + kµ)p1,i = kµp1,i+1, 1 ≤ i ≤ k − 1, (2)
(λ + kµ)p1,k = kµp2,1 + λp0 (3)
(λ + kµ)pnk = kµpn+1,1 + λpn−1,k , n ≥ 2, (4)
(λ + kµ)pni = kµpn,i+1 + λpn−1,i, (5)
n ≥ 2 and 1 ≤ i ≤ k − 1
Similar to the birth-and-death process, the bal-
ance equations (1)-(5) can be interpreted as
stating that the rate at which the system leaves
each state equals the rate at which the system
enters this state. In other words, for any state
of the system
entering rate = leaving rate
6
Therefore, the balance equations (1)-(5) can
be obtained directly from the transition dia-
gram. For example, consider M |E2|1 and the
corresponding transition diagram
λ λ
λ λ λ
2µ 2µ
2µ
Consider state (0). There is only one arc for
which node (0) is a starting node. The rate
associated with this arc is λ. So, the leaving
rate for node (0) is λp0. There is only one
arc for which node (0) is an end node. This
arc is (1,1)-(0), and the corresponding rate is
2µ. Therefore, the entering rate for node (0)
is 2µp1,1. This gives the balance (conservation
of flow) equation
λp0 = 2µp1,1
which is a particular case of (1) with k = 2.
7
Now consider node (2,1). There are two arcs
for which node (2,1) is a starting node. These
arcs are (2,1)-(3,1) with rate λ and (2,1)-(1,2)
with rate 2µ. Hence, the leaving rate for node
(2,1) is
(λ + 2µ)p2,1
Similarly, there are only two arcs for which
node (2,1) is an end node. These arcs are
(2,2)-(2,1) with rate 2µ and (1,1)-(2,1) with
rate λ. Hence, the entering rate for node (2,1)
is
λp1,1 + 2µp2,2
The balance equation associated with node
(2,1) is
8
In general,
k [
∞ ∑
∑
]
1 i
Wq = (n − 1) + pni + 0p0
n=1 i=1 µ kµ
k [
∞ ∑
∑
]
k(n − 1) + i
= pni
n=1 i=1 kµ
Consider the following probability generating
function ∞ ∑ k
∑
g(z) = z k(n−1)+ipni + p0
n=1 i=1
Then, g ′(1)
Wq = . (6)
kµ
In order to find g(z), we multiply (5) by z k(n−1)+i,
(4) by z kn, (2) by z i, (3) by z k , and sum up all
resultant equations and (1). We have
kµ
(λ + kµ)g(z) = kµp0 + [g(z) − p0] + λz k g(z),
z
λ
and by dividing by kµ and denoting r = ,
kµ
1
(1 + r)g(z) = p0 + [g(z) − p0] + rz k g(z),
z
9
which gives
( )
1 k (z − 1)p0
g(z) 1 + r − − rz =
z z
(1 − z)p0
g(z) = .
1 − (1 + r)z + rz k+1
k+1 λ2 λ
L = λW = +
2k µ(µ − λ) µ
M [Y ]|M |1 Model
12
Using our usual technique, we can derive the
following set of differential equations
13
Let ∞
∑
g(z) = pn z n
n=0
∞
∑ ∞
∑
q(z) = πnz n = πnz n
n=0 n=1
Then,
∞ ∑
∑ n
pn−k πk z n = g(z)q(z),
n=1 k=1
and (9) can be rewritten as
µ
λg(z) + µ[g(z) − p0] = [g(z) − p0] + λg(z)q(z)
z
which gives
µp0(1 − z)
g(z) =
µ(1 − z) − λz[1 − q(z)]
Now we can obtain p0 from lim g(z) = 1. By
z→1
applying L’Hopital’s rule, and taking into ac-
count that lim q(z) = 1 and lim q ′(z) = E[Y ],
z→1 z→1
−µp0
lim g(z) = lim
z→1 z→1 −µ − λ + λq(z) + λzq ′ (z)
14
−µp0
=
−µ + λE[Y ]
Hence, λE[Y ]
p0 = 1 −
µ
λE[Y ]
Let ϱ = , then p0 = 1 − ϱ. So, we need
µ
ϱ < 1. Since p0 and q(z) are known, we can
find
L = lim g ′(z).
z→1
π4,5
π1,4
queue 2
outside world
π1,2
λ1 queue 5
queue 1 queue 3
π1,3
π1,5
18
So, customers arrive at the first service station
according to the Poisson process with rate λ1.
Taking into account the theorems about split-
ting and merging Poisson processes, we con-
clude that
• customers arrive at the second service sta-
tion according to the Poisson process with
rate λ1π1,2;
• customers arrive at the third service station
according to the Poisson process with rate
λ1π1,3;
• customers arrive at the fourth service sta-
tion according to the Poisson process with
rate λ1π1,4 + λ1π1,2 + λ4;
• customers arrive at the fifth service station
according to the Poisson process with rate