1% D = MinimalRepFromMRAP(H, how, precision)
3% Returns the minimal representation of a marked rational
8% H : list of matrices of shape (M,M)
9% The list of H0, H1, ..., HK matrices of the marked
10% rational arrival process
11% how : {
"obs",
"cont",
"obscont"}, optional
12% Determines how the representation
is minimized.
13%
"cont" means controllability,
"obs" means
14% observability,
"obscont" means that the rational arrival
15% process
is minimized in both respects. Default value
17% precision : double, optional
18% Precision used by the Staircase algorithm. The
default
23% D : list of matrices of shape (M,M)
24% The D0, D1, ..., DK matrices of the minimal
29% .. [1]
P. Buchholz, M. Telek,
"On minimal representation of
30% rational arrival processes." Madrid Conference on
31% Qeueuing theory (MCQT), June 2010.
33function D = MinimalRepFromMRAP (H, how, precision)
35 if ~exist(
'precision',
'var')
39 if ~exist('how','var')
43 global BuToolsCheckInput;
44 if isempty(BuToolsCheckInput)
45 BuToolsCheckInput = true;
48 if BuToolsCheckInput && ~CheckMRAPRepresentation (H)
49 error('MinimalRepFromMRAP: Input isn''t a valid MRAP representation');
53 [B, n] = MStaircase (H, ones(size(H{1},1),1), precision);
54 D = cell(1,length(H));
59 elseif strcmp(how,
'obs')
60 [alpha, A] = MarginalDistributionFromMRAP (H);
61 G = cell(1,length(H));
65 [B, n] = MStaircase (G, alpha', precision);
70 elseif strcmp(how,
'obscont')
71 D = MinimalRepFromMRAP(H, 'cont', precision);
72 D = MinimalRepFromMRAP(D, 'obs', precision);