LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
MinimalRepFromRAP.m
1% [D0, D1] = MinimalRepFromRAP(H0, H1, how, precision)
2%
3% Returns the minimal representation of a rational arrival
4% process.
5%
6% Parameters
7% ----------
8% H0 : matrix, shape (M,M)
9% The H0 matrix of the rational arrival process
10% H1 : matrix, shape (M,M)
11% The H1 matrix of the rational arrival process
12% how : {"obs", "cont", "obscont"}, optional
13% Determines how the representation is minimized. "cont"
14% means controllability, "obs" means observability,
15% "obscont" means that the rational arrival process is
16% minimized in both respects. The default value is
17% "obscont"
18% precision : double, optional
19% Precision used by the Staircase algorithm. The default
20% value is 1e-12.
21%
22% Returns
23% -------
24% D0 : matrix, shape (M,M)
25% The D0 matrix of the minimal representation
26% D1 : matrix, shape (M,M)
27% The D1 matrix of the minimal representation
28%
29% References
30% ----------
31% .. [1] P. Buchholz, M. Telek, "On minimal representation of
32% rational arrival processes." Madrid Conference on
33% Qeueuing theory (MCQT), June 2010.
34
35function [D0, D1] = MinimalRepFromRAP (H0, H1, how, precision)
36
37 if ~exist('precision','var')
38 precision = 1e-12;
39 end
40
41 if ~exist('how','var')
42 how = 'obscont';
43 end
44
45 global BuToolsCheckInput;
46 if isempty(BuToolsCheckInput)
47 BuToolsCheckInput = true;
48 end
49
50 if BuToolsCheckInput && ~CheckRAPRepresentation (H0, H1)
51 error('MinimalRepFromRAP: Input isn''t a valid MRAP representation');
52 end
53
54 D = MinimalRepFromMRAP ({H0,H1}, how, precision);
55 D0 = D{1};
56 D1 = D{2};
57end
58