1% pi = MG1StationaryDistr (A, B, G, K)
3% Returns the stationary distribution of the M/G/1 type
4% Markov chain up to a given level K.
8% A : length(M) list of matrices of shape (N,N)
9% Matrix blocks of the M/G/1 type generator in the
10% regular part, from 0 to M-1.
11% B : length(M) list of matrices of shape (N,N)
12% Matrix blocks of the M/G/1 type generator at the
13% boundary, from 0 to M-1.
14% G : matrix, shape (N,N)
15% Matrix G of the M/G/1 type Markov chain
17% The stationary distribution
is returned up to
22% pi : array, shape (1,(K+1)*N)
23% The stationary probability vector up to level K
25function pi = MG1StationaryDistr (A, B, G, K)
27 global BuToolsVerbose;
30 Am = zeros(N, N*length(A));
32 Am(:,(i-1)*N+1:i*N) = A{i};
35 Bm = zeros(N, N*length(B));
37 Bm(:,(i-1)*N+1:i*N) = B{i};
40 pi = MG1_pi(Bm,Am,G,
'MaxNumComp', K+1,
'Verbose',
double(BuToolsVerbose));