Download presentation
Presentation is loading. Please wait.
1
Department of Industrial Engineering
Lecture 3: Algorithmic Methods for M/M/1-type models: Quasi Birth Death Process Dr. Ahmad Al Hanbali Department of Industrial Engineering University of Twente
2
Lecture 3 This Lecture deals with continuous time Markov chains with infinite state space as opposed to finite space Markov chains in Lectures 1 and 2 Objective: To find equilibrium distribution of the Markov chain Lecture 3: M/M/1 type models
3
Background (1): M/M/1 queue
Customers arrive according to Poisson process of rate ๐, i.e., the inter-arrival times are iid exponential random variables (rv) with rate ๐ Customers service times are iid exponential rv with rate ๐ inter-arrivals and service times are independent Service discipline can be Fisrt-In-First-Out (FIFO), Last-In-First-Out (LIFO), or Processor Sharing (PS) Under above assumptions, {๐(๐ก), ๐กโฅ 0}, the nbr of customers in M/M/1 queue at time ๐ก is continuous-time infinite space Markov chain Lecture 3: M/M/1 type models
4
Background (2): M/M/1 queue
i i+1 i-1 1 ฮป Let ๐๐ denote equilibrium probability of state ๐, then โ๐๐0 +๐๐1 = 0, ๐ ๐ ๐โ1 โ ๐+๐ ๐๐+๐ ๐ ๐+1 = 0, ๐= 1,2, โฆ Solving equilibrium equations for ๐=๐/๐<1 (with ๐โฅ0 ๐๐ =1) gives: ๐๐= ๐ ๐โ1 ๐, ๐ 0 =1โ๐โ ๐๐= 1โ๐ ๐ ๐ , ๐โฅ 0, This means N is geometrically distributed with parameter ๐ Lecture 3: M/M/1 type models
5
Background (3) Stability condition, expected queue length is finite, load ฯ:= ฮป/ยต < 1โ๐<๐. This can be interpreted as drift to right is smaller than drift to left In stable case ฯ is probability the M/M/1 system is non-empty, i.e. , ๐(๐=0)=1โ๐ Q, the generator of M/M/1 queue, is a tridiagonal matrix, form has the form ๐= โ๐ ๐ 0 โฎ โฎ ๐ โ๐โ๐ ๐ โฑ โฑ 0 ๐ โ๐โ๐ ๐ โฑ โฆ โฑ โฑ โฑ โฑ What happens if Q becomes ๐ต 00 ๐ต โฎ โฎ ๐ต 01 ๐ต 11 ๐ด 2 โฑ โฑ 0 ๐ด 0 ๐ด 1 ๐ด 2 โฑ โฆ โฑ ๐ด 0 ๐ด 1 โฑ โฆ โฑ โฑ โฑ โฑ Lecture 3: M/M/1 type models
6
M/M/1-type models: Quasi Birth Death Process
A 2-dimensional irreducible continuous time Markov process with states (๐,๐), where ๐=0,โฆ,โ and ๐= 0,โฆ,๐โ1 Subset of state space with common ๐ entry is called level ๐ (๐>0) and denoted ๐(๐)={(๐,0),(๐,1),โฆ,(๐,๐โ1)}. ๐(0)={(0,0),(0,1),โฆ,(๐,๐โ1)}. This means state space is โช ๐โฅ0 ๐(๐) Transition rate from (๐,๐) to (๐โฒ,๐โฒ) is equal to zero for |๐โ๐โฒ| โฅ 2 For ๐>0, transition rate between states in ๐(๐) and between states in ๐(๐) and ๐(๐ยฑ1) is independent of ๐ Lecture 3: M/M/1 type models
7
M/M/1-type models: Quasi Birth Death Process
Order the states lexicographically, i.e., 0,0 ,โฆ, 0,๐โ1 0,๐โ1 , 1,0 ,โฆ, 1,๐โ1 , 2,0 ,โฆ, 2,๐โ1 ,โฆ, the generator of the QBD has the following form: ๐= ๐ต 00 ๐ต โฎ โฎ ๐ต 01 ๐ต 11 ๐ด 2 โฑ โฑ 0 ๐ด 0 ๐ด 1 ๐ด 2 โฑ ๐ด 0 ๐ด 1 โฑ โฆ โฑ โฑ โฑ โฑ where ๐ด0 and ๐ด2 are nonnegative ๐-by-๐ matrices; ๐ด1 and ๐ต 11 are ๐-by-๐ matrix with strictly negative diagonal; ๐ต 00 is ๐-by-๐ matrix with strictly negative diagonal; ๐ต 10 ๐-by-๐ and ๐ต 01 ๐-by-๐ nonnegative matrices. Note, ( ๐ต ๐ต 01 )๐=0, ( ๐ต 10 + ๐ต 11 + ๐ด 0 )๐=0, and ( ๐ด 2 +๐ด1+ ๐ด0)๐=0 Lecture 3: M/M/1 type models
8
๐๐ด0๐<๐๐ด2๐, (mean drift condition)
QBDs stability Theorem: The QBD is ergodic (i.e., mean recurrence time of the states is finite) if and only if ๐๐ด0๐<๐๐ด2๐, (mean drift condition) where ๐ is the column vector of ones and ๐ is the equilibrium distribution of the irreducible Markov chain with generator ๐ด=๐ด0+๐ด1+๐ด2, ๐๐ด=0, ๐๐=1 Interpretation: ๐๐ด0๐ is mean drift from level ๐ to ๐+1. ๐๐ด2๐ is mean drift from level ๐ to ๐โ1. Generator ๐ด describes the behavior of QBD within level It is assumed here the A is a generator of an irreducible Markov chain. For less restrictive assumption on A see book of Latouche & Ramaswami Section 7.3 Lecture 3: M/M/1 type models
9
Equilibrium distribution of QBDs
Let ๐๐=(๐(๐,0),..,๐(๐,๐โ1)) and ๐=(๐0,๐1,โฆ) then equilibrium equation ๐๐=0 reads ๐0 ๐ต 00 +๐1 ๐ต 10 = 0, ๐0 ๐ต 01 +๐1 ๐ต 11 +๐1 ๐ด 2 = 0 ๐ ๐โ1 ๐ด0+๐๐๐ด1+ ๐ ๐+1 ๐ด2 = 0, ๐โฅ2 Theorem: if the QBD is ergodic the equilibrium probability distribution then reads ๐ ๐ =๐1 ๐
๐โ1 , ๐โฅ2, where ๐
=๐ด0๐, called rate matrix, and the matrix ๐ records the expected sojourn time in the states of ๐(๐), starting from ๐(๐), before the first visit to ๐(๐โ1) The rate matrix is a non-negative matrix of unit less numbers. Note that if the row i of A_0 is a row of zeros this gives the ith row of R is also zero. This may simplies the finding of R computed iteratively. Lecture 3: M/M/1 type models
10
Proof On board. Based on proof of Latouche & Ramaswami in the book โIntroduction to Matrix Analytic Methods in Stochastic Modelingโ Chap. 6 p ...... A direct result of the previous theorem is that spectral radius of ๐
is < 1 It remains to find ๐0, ๐1 , and ๐
? Lecture 3: M/M/1 type models
11
Equilibrium Distribution (cnt'd)
Lemma: The matrix ๐
is the minimal nonnegative solution of ๐ด0+ ๐
๐ด1+๐
2๐ด2 = 0 Lemma: The stationary probability vectors ๐0 and ๐1 are the unique solution of ๐0 ๐ต 00 + ๐ 1 ๐ต 10 =0 ๐0 ๐ต 01 + ๐ 1 (๐ต 11 +๐
๐ด 2 )=0 ๐ 0 ๐ ๐ + ๐1 ๐ผโ๐
โ1 ๐ ๐ =1 (Normalization condition) where ๐ ๐ and ๐ ๐ are column vectors of ones with size ๐ and ๐, respectively - Note that B_00 is invertible because eventually the process will leave level 0. Therefore ๐0=โ ๐ 1 ๐ต 10 ๐ต 00 โ1 . Inserting in the second equation we get that: ๐ 1 โ ๐ต 10 ๐ต 00 โ1 ๐ต 01 + ๐ต 11 +๐
๐ด 2 =0. The normalization condition can be rewritten as ๐ 1 (โ ๐ต 10 ๐ต 00 โ1 ๐ ๐ + ๐ผโ๐
โ1 ๐ ๐ )=1. Let matrix X be โ ๐ต 10 ๐ต 00 โ1 ๐ต 01 + ๐ต 11 +๐
๐ด 2 โ ๐ต 10 ๐ต 00 โ1 ๐ต 01 + ๐ต 11 +๐
๐ด 2 but with column i โ ๐ต 10 ๐ต 00 โ1 ๐ ๐ + ๐ผโ๐
โ1 ๐ ๐ โ ๐ต 10 ๐ต 00 โ1 ๐ ๐ + ๐ผโ๐
โ1 ๐ ๐ . Then we get that ๐ 1 = ๐ ๐ ๐ โ1 , ๐ ๐ a row vector with i-th entry 1 and rest zero. - Note it possible that p_0 has a different size than p_1 in this case the vectors e in the normalization condition will be different and have the size of p_0 and p_1 respectively. - A way to verify that R is correct is to check that ๐ต 10 e n + ๐ต 11 +๐
๐ด 2 ๐ ๐ =0 Lecture 3: M/M/1 type models
12
๐
๐+1 =โ( ๐ด 0 + ๐
๐ 2 ๐ด 2 ) ๐ด 1 โ1 , with ๐
0=0
Compute R Rearrange the quadratic equation of the rate matrix: ๐
=โ ๐ด0+๐
2๐ด2 ๐ด 1 โ1 ๐ด1 is invertible since it is a generator of a transient Markov chain l(n) of states, n>0 Fixed point equation solved by successive substitution ๐
๐+1 =โ( ๐ด 0 + ๐
๐ 2 ๐ด 2 ) ๐ด 1 โ1 , with ๐
0=0 It can be shown that ๐
๐โ ๐
for ๐โโ A way to check the correctness of ๐
is by verifying that: ๐ต 10 ๐ ๐ + ๐ต 11 +๐
๐ด 2 ๐ ๐ =0 Note that Latouche and Ramaswami in their book proposed to find the matrix G which satisfies: ๐ด 0 ๐บ 2 + ๐ด 1 ๐บ+ ๐ด 2 =0; Note that G is a nonnegative stochastic matrix (sum of its rows equal to one). Then R is simply found as ๐
=โ ๐ด 0 ๐ด 1 + ๐ด 0 ๐บ โ1 . In their book, G is computed iteratively. (i,j) entry G records the probability starting in level n in state (n,i) to visit for the first time level (n-1) in state (n-1,j), n>=2. Lecture 3: M/M/1 type models
13
Special cases For ๐ด 2 =๐ฃ.๐ผ is a product of two vectors where ๐ฃ is column vector and ๐ผ is row vector with ๐=0 ๐ ๐ผ ๐ =1, the rate matrix reads, ๐ is a column vector of ones, ๐
=โ ๐ด 0 ๐ด 1 + ๐ด 0 ๐๐ผ โ1 , For ๐ด 0 =๐ค. ๐ฝ is a product of two vectors where ๐ค is column vector and ๐ฝ is row vector with ๐=0 ๐ ๐ฝ ๐ =1, the rate matrix reads ๐
=๐ค.๐โ ๐
๐ = ๐ ๐โ1 ๐
where ๐ is some row and ๐= ๐.๐ค (a number). ๐ is spectral radius of ๐
and can be found as the root (0,1) of det ๐ด 0 +๐ฅ ๐ด 1 + ๐ฅ 2 ๐ด 2 =0 * Make a plot on the board: what it means v.\alpha? It means that given state i in a level n, with n>2, rate to jump to state j in level n-1 is nothing than v_i*\alpha_j. So, given that chain starts in level n in state i the probability to go first time reach j in level n-1 is equal \alpha_j. This means that G=e.\alpha. R follows right away from that. * Starting with R=0 in the recursion ๐
๐+1 =โ( ๐ด 0 + ๐
๐ 2 ๐ด 2 ) ๐ด 1 โ1 , it is easily found that ๐
๐ = ๐ค๐ ๐ . * Why ฮท is unique? Since R is non-negative matrix this follows from Perron-Frobenius proposition Lecture 3: M/M/1 type models
14
Spectral expansion method
The balance equation can be seen as a difference equation with a basis solution of form ๐ ๐ =๐ฆ ๐ฅ ๐ , ๐ฆ= ๐ฆ 0 ,โฆ,๐ฆ ๐ โ 0 ๐๐๐ ๐ฅ <1 Inserting this solution in the balance equation ๐ ๐โ1 ๐ด0+ ๐๐๐ด1+ ๐ ๐+1 ๐ด2 = 0, ๐โฅ2 yields ๐ฆ ๐ด 0 +๐ฅ ๐ด 1 + ๐ฅ 2 ๐ด 2 =0โ det ๐ด 0 +๐ฅ ๐ด 1 + ๐ฅ 2 ๐ด 2 =0 This latter equation has ๐+1 roots in the unit disk and ๐ ๐ = ๐=0 ๐ ๐ ๐ ๐ฆ ๐ ๐ฅ ๐ ๐โ1 , ๐=1,2,โฆ The constants ๐ ๐ ,๐=0,โฆ,๐, are found using the boundary equations and the normalization condition Lecture 3: M/M/1 type models
15
Spectral expansion method
The roots ๐ฅ 0 ,โฆ, ๐ฅ ๐+1 are eigenvalue of the rate matrix ๐
with corresponding left eigenvectors ๐ฆ 0 ,โฆ, ๐ฆ ๐+1 If it appears some these roots are of a multiplicity higher than a more complicated basis solution should be considered No probabilistic interpretation is available for ๐ฅ ๐ โs and ๐ฆ ๐ โs Numerically it has been found that Matrix geometric methods is more stable than the spectral expansion Lecture 3: M/M/1 type models
16
M/M/1 Type models Machine with set-up times Unreliable machine
M/Er/1 model Er/M/1 model PH/PH/1 model Lecture 3: M/M/1 type models
17
Machine with set-up times (1)
In addition to assumptions of M/M/1 system, further assume that the system is turned off when it is empty System is turned on again when a new customer arrives The set-up time is exponentially distributed with mean 1/๐ Lecture 3: M/M/1 type models
18
Machine with set-up time (2)
Number of customers in system is not a Markov process Two-dimensional process of state (๐,๐) where ๐ is number of customers and ๐ is system state (๐ =0, sys. is off, ๐ =1, sys. is on) is Markov process Lecture 3: M/M/1 type models
19
Machine with set-up time (3)
Let ๐(๐,๐) denote equilibrium prob. of state (๐,๐), ๐ โฅ 0, ๐=0,1. Equilibrium equations read ๐(0,0)๐ = ๐(1,1)๐ ๐(๐,0)(๐+๐) = ๐(๐โ1,0)๐, ๐โฅ1 ๐(๐,1)(๐+๐) = ๐(๐,0)๐+๐(๐+1,1)๐+๐(๐โ1,1)๐, ๐โฅ1 Let ๐๐=(๐(๐,0),๐(๐,1)), then Equilibrium eqs read ๐0๐ต1+ ๐1๐ต2 = 0, ๐ ๐โ1 ๐ด0+ ๐ ๐ ๐ด1+ ๐ ๐+1 ๐ด2 = 0, ๐โฅ1 Lecture 3: M/M/1 type models
20
Machine with set-up time (4)
where ๐ด 0 = ๐ 0 0 ๐ , ๐ด 2 = ๐ , ๐ด 1 = โ ๐+๐ ๐ 0 โ ๐+๐ , ๐ต 1 = โ๐ 0 0 โ๐ , ๐ต 2 = ๐ We shall use the Matrix geometric to the find the equilibrium probability It can be easily checked that ( ๐ด 0 + ๐ด 1 + ๐ด 2 )๐=0. Lecture 3: M/M/1 type models
21
Matrix Geometric Method (1)
Global balance equations are given by equating flow from level ๐ to ๐+1 with flow from ๐+1 to ๐ which gives, ๐ ๐,0 +๐ ๐,1 ๐=๐ ๐+1,1 ๐, ๐โฅ1 In matrix notation this gives ๐ ๐+1 ๐ด2= ๐ ๐ ๐ด3, where ๐ด 3 = ๐ 0 ๐ 0 This gives, ๐โฅ1, ๐ ๐โ1 ๐ด0+ ๐ ๐ ๐ด1+๐ด3 =0โ ๐ ๐ =โ ๐ ๐โ1 ๐ด 0 ๐ด 1 + ๐ด 3 โ1 โ ๐
=โ ๐ด 0 ๐ด 1 + ๐ด 3 โ1 = ๐ / ๐+๐ ๐/๐ 0 ๐/๐ Note that ๐ด 2 =๐ฃ.๐ผ= 0 ๐ This is one of special cases that we saw earlier we can conclude directly that: ๐
=โ ๐ด 0 ๐ด 1 + ๐ด 0 ๐๐ผ โ1 Lecture 3: M/M/1 type models
22
Matrix Geometric method (2)
Stability condition: absolute values of eigenvalues of R should be strictly smaller than 1 ๐<๐ and ๐>0 Normalization condition gives ๐ 0 ๐ผ+๐
+ ๐
2 +โฏ ๐=1โ ๐ 0 ๐ผโ๐
โ1 ๐=1 Note 0,1 is a transient state thus ๐ 0,1 =0. Normalization gives that ๐ 0,0 = ๐ ๐+๐ 1โ ๐ ๐ Mean number of customers ๐ธ[๐ฟ] = โ๐โฅ1 ๐ ๐ ๐ ๐= ๐0 ๐
๐ผโ๐
โ2 ๐ Note that the drift condition for stability is not applicable here because A=( ๐ด 0 + ๐ด 1 + ๐ด 2 ) is not irreducible. Lecture 3: M/M/1 type models
23
Lecture 3: M/M/1 type models
Unreliable machine (1) customers arrive according to Poisson process of rate ๐ Service times is exponentially distributed of rate ๐ Up time of the machine is exp. distributed with rate 1/๐ Repair time is exp. dist. with rate 1/๐ Stability condition: load is smaller than capacity of the machine: ๐/๐<๐(๐๐๐โ๐๐๐ ๐๐ ๐ข๐)=๐/(๐+๐) Lecture 3: M/M/1 type models
24
Unreliable machine (2) Under the above assumption the two-dimensional process of state (๐,๐), where ๐ nbr of customers, ๐ the state of machine (๐=1 machine up, ๐=0 machine down), Then Lecture 3: M/M/1 type models
25
Unreliable machine (3) Note ๐ด 2 =๐ฃ๐ผ, matrix geometric method gives
๐๐ = ๐0 ๐
๐ , ๐โฅ1, ๐
=โ ๐ด 0 ๐ด 1 + ๐ด 0 ๐๐ผ โ1 = ๐ ๐ ๐+๐ ๐+๐ 1 ๐ ๐+๐ 1 Note in this case we have that ๐ 0 ๐ผโ๐
โ1 = 1โ ๐ ๐ข ๐ ๐ข , where ๐ ๐ข is probability that the machine is up ๐/(๐+๐). We find ๐ 0 = 1โ ๐ ๐ข ๐ ๐ข ๐ผโ๐
= ๐ ๐ข โ ๐ ๐ ๐ ๐+๐ 1 Spectral expansion method gives ๐๐=๐1๐ฆ1 ๐ฅ 1 ๐ +๐2๐ฆ2 ๐ฅ 2 ๐ where ๐ฅ1 and ๐ฅ2 are roots of (eigenvalues of ๐
): ๐ ๐+๐ ๐ฅ 2 โ๐ ๐+๐+๐+๐ ๐ฅ+ ๐ 2 =0 ๐ด 2 = ๐ = 0 ๐ =๐ฃ๐ผ, with ๐ฃ= 0 ๐ and ๐ผ= Lecture 3: M/M/1 type models
26
M/Er/1 model (1) Poisson arrivals with rate ฮป
Service times is Erlang distributed of r phases of mean r/ฮผ, i.e., is sum r exponentially distributed rv each of rate ฮผ Stability is offered load is smaller than 1 ฯ = ฮป.r/ฮผ < 1 Two dimensional process of state (i,j) where i is nbr of customers in the system (excluding the customer in service) and j remaining phases of customer in service is Markov process Lecture 3: M/M/1 type models
27
M/Er/1 model (2) State diagram:
๐ด 0 =๐๐ผ, ๐ด 2 = 0 โฏ โฎ 0 ๐ โฎ 0 โฏ โฎ โฏ 0 , ๐ด 1 =๐ โ1 0 1 โ1 โฆ 0 โฑ 0 โฎ โฑ 0 โฏ โฑ 0 1 โ1 โ๐๐ผ Note that ๐ด 2 = ๐ 0 โฎ โฆ =๐ฃ๐ผ, with ๐ฃ= ๐ 0 โฎ and ๐ผ= 0 โฆ Note this is a very simple queue. First, all stable single server queues satisfying Littleโs law have that p(0,0)=1-๐๐ธ ๐ =1โ ๐๐ ๐ . Note ๐ ๐ 0,1 =๐ ๐ 0,0 , ๐+๐ ๐ 0,1 =๐๐ 0,2 ,โฏ, ๐+๐ ๐ 0,๐โ1 =๐๐ 0,๐ , ๐+๐ ๐+๐ ๐ 0,๐ =๐๐ 0,0 +๐๐ 1,1 , โฆ. So basically all probability can be found. Lecture 3: M/M/1 type models
28
M/Er/1 model (2) Matrix geometric method gives
๐ ๐ =๐0 ๐
๐ , ๐โฅ1, ๐
=โ ๐ด 0 ๐ด 1 + ๐ด 0 ๐๐ผ โ1 =โ๐ ๐ด 1 +๐๐๐ผ โ1 Sherman-Morrison formula gives that, ๐ฅ=๐/(๐+๐), ๐
= 1โ๐ฅ ๐ฅ 1 โฆ 0 โฑ 0 โฎ โฑ ๐ฅ ๐โ1 โฏ โฑ 0 ๐ฅ โ๐ฅ ๐ฅ ๐ 1โ๐ฅ 1โ ๐ฅ 2 โฎ 1โ ๐ฅ ๐ ๐ฅ ๐โ1 โฆ 1 Note for any M/PH/1 queue we have that ๐ด 2 is a rank one matrix (product of a column and row vector). So, ๐
can be found in closed form Sherman-Morrison for inverse of a sum of a nonsingular matrix and a rank one matrix ๐ด + ๐ข ๐ฃ ๐ โ1 = ๐ด โ1 โ ๐ด โ1 ๐ข ๐ฃ ๐ ๐ด โ ๐ฃ ๐ ๐ด โ1 ๐ข . Similarly to finding R. The inverse of I-R can be found in closed form. Lecture 3: M/M/1 type models
29
Phase-Type Distribution
Consider a continuous time absorbing Markov chain (AMC) with {1,โฆ,๐} transient states and one absorption state ๐+1, i.e., ๐ ๐+1๐+1 =0. Let ๐ denote the transition rate matrix between transient states, and ๐ผ the initial state probability. Let ๐ 0 denote the transition rate vector of the transient states to absorption state. ๐๐+ ๐ 0 =0โ โ ๐ โ1 ๐ 0 =๐ Definition: A probability distribution ๐น(.) on [0,โ) is a phase type distribution (PH-distribution) if it is the distribution of the time to absorption of AMC. The pair (๐ผ,๐ป) is called a representation ๐น(.) Let Ta denote the time until absorption occurs, given initial distribution ฮฑ, then ๐(๐๐<๐ฅ)=1โ๐ผexp(๐๐ฅ)๐, ๐ธ[๐๐]=โ๐ผ๐โ1๐, Lecture 3: M/M/1 type models
30
Phase-Type Distribution
Examples of phase-type distribution are Erlang-n, Hyper-exponential, and Coxian distributions Hyper-exponential distribution of n phases each of rate ๐๐ with ๐ผ= ๐1,โฆ,๐๐ Coxian distribution of ๐ phases each of rate ๐๐, where ๐๐+๐๐=1, ๐=1,..,๐โ1, and ๐๐=1, and ๐ผ=(1,0,โฆ,0) 1 2 n ฮผ1 ฮผ2 ฮผn pn p2 p1 Let Ta denote the time until absorption occurs, given initial distribution ฮฑ, then ๐(๐๐<๐ฅ)=1โ๐ผexp(๐๐ฅ)๐, ๐ธ[๐๐]=โ๐ผ๐โ1๐, 1 2 n p1ฮผ1 q1ฮผ1 p2ฮผ2 pn-1ฮผn-1 q2ฮผ2 ฮผn Lecture 3: M/M/1 type models
31
PH/PH/1 queue Inter-arrival times distribution is phase-type with n phases denoted ๐ผ,๐ and with mean โ๐ผ ๐ โ1 ๐. Let ๐ 0 =โ๐๐ Service time distribution is of Phase type with ๐ phases denoted (๐ฝ,๐) and with mean โ๐ฝ ๐ โ1 ๐. Let ๐ 0 =โ๐๐ Assume that customers are served as FIFO The queue is stable if โ๐ผ ๐ โ1 ๐> โ๐ฝ ๐ โ1 ๐ Let ๐ ๐ก , ๐ด ๐ก , and ๐ ๐ก denote number of jobs in the system, phase of inter-arrival, and phase of job in service at time t Lecture 3: M/M/1 type models
32
PH/PH/1 model The process ๐ ๐ก , ๐ด ๐ก , ๐ ๐ก is continuous-time Quasi-Death- Process For Cox2/Cox2/1 queue, transitions between level ๐ states, level ๐ to ๐+1, and level ๐ to ๐โ1 are as follows: In this figure we consider ๐= โ ๐ 1 ๐ ๐ โ๐ 2 and S= โ ๐ 1 ๐ ๐ ๐ โ๐ Note p+q=1 and p_s+q_s=1 Lecture 3: M/M/1 type models
33
PH/PH/1 model Note if Q is generator of joint process of two independent Markov chains of size ๐1and ๐2. Then, Q is sum of two kronecker products, i.e., ๐= ๐ 1 โ ๐ผ ๐1 + ๐ผ ๐2 โ ๐ 2 where ๐ดโB means every element of A is multiplied by B whole. The generator of the PH/PH/1 ๐= ๐ต 00 ๐ต โฎ โฎ ๐ต 01 ๐ด 1 ๐ด 2 โฑ โฑ 0 ๐ด 0 ๐ด 1 ๐ด 2 โฑ ๐ด 0 ๐ด 1 โฑ โฆ โฑ โฑ โฑ โฑ , where ๐ด 1 =๐โ ๐ผ ๐ + ๐ผ ๐ โ๐, ๐ด 0 = ๐ 0 ๐ผโ ๐ผ ๐ , ๐ด 2 = ๐ผ ๐ โ ๐ 0 ๐ฝ, ๐ต 00 =๐, ๐ต 01 = ๐ 0 ๐ผโ๐ฝ, and ๐ต 10 =๐ผโ ๐ 0 . ๐ดโB: means every element of A is multiplied by matrix B as whole. Lecture 3: M/M/1 type models
34
The iterative scheme needs about 40 iterations for 10 โ5 precision
PH/PH/1 model The rate matrix ๐
is the minimal solution of the quadratic equation ๐ด 0 +๐
๐ด 1 + ๐
2 A 2 =0, ๐ 0 ๐ผโ ๐ผ ๐ +๐
(๐โ ๐ผ ๐ + ๐ผ ๐ โ๐)+ ๐
2 ๐ผ ๐ โ ๐ 0 ๐ฝ=0, Example: consider the Cox2/Cox2/1 queue with mean inter- arrival time 6/5, mean service time 5/6, ๐ผ= , ๐= โ โ2 and ๐ฝ= , ๐= โ โ2 The iterative scheme needs about 40 iterations for 10 โ5 precision ๐
= ๐ 0 = , ๐ธ ๐ = For kronecker product you can use the built-in function in Matlab kron(X,Y) Lecture 3: M/M/1 type models
35
References R. Nelson. Matrix geometric solutions in Markov models: a mathematical tutorial. IBM Technical Report 1991. G. Latouche and V. Ramaswami (1999), Introduction to Matrix Analytic Methods in Stochastic Modeling. SIAM. I. Mitrani and D. Mitra, A spectral expansion method for random walks on semi-infinite strips, in: R. Beauwens and P. de Groen (eds.), Iterative methods in linear algebra. North-Holland, Amsterdam (1992), 141โ149. M.F. Neuts (1981), Matrix-geometric solutions in stochastic models. The John Hopkins University Press, Baltimore. Lecture 3: M/M/1 type models
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.