4 % This
class represents a simple model which can be used for prototyping
6 % You can set up a
new model by passing a descr structure, which should
7 % contain information about all the data matrices.
9 % Note that the data matrices
for Q,R and E have
default values and are
10 % set to identity matrices with the correct dimensions by
default.
12 % Andreas Schmidt, 2016
23 function this = DefaultModel(descr)
26 if ~isfield(descr, 'p'), descr.p = size(descr.C_comp{1},1); end
27 if ~isfield(descr,
'm'), descr.m = size(descr.B_comp{1},2); end
34 if ~isfield(descr,
'mu_ranges') || ~isfield(descr,
'mu_names')
35 error('Please provide valid values for mu_ranges and mu_names');
38 this.mu_names = descr.mu_names;
39 this.mu_ranges = descr.mu_ranges;
42 function A = A_coeff(this)
43 A = this.descr.A_coeff(this);
45 function A = A_comp(this, md)
46 A = this.descr.A_comp;
48 function B = B_coeff(this)
49 B = this.descr.B_coeff(this);
51 function B = B_comp(this, md)
52 B = this.descr.B_comp;
54 function C = C_coeff(this)
55 C = this.descr.C_coeff(this);
57 function C = C_comp(this, md)
58 C = this.descr.C_comp;
61 function E = E_coeff(this)
62 if isfield(this.descr, 'E_coeff')
63 E = this.descr.E_coeff(this);
65 E = E_coeff@
ARE.Model(this);
68 function E = E_comp(this,md)
69 if isfield(this.descr, 'E_comp')
70 E = this.descr.E_comp;
72 E = E_comp@
ARE.Model(this);
76 function Q = Q_coeff(this)
77 if isfield(this.descr, 'Q_coeff')
78 Q = this.descr.Q_coeff(this);
80 Q = Q_coeff@
ARE.Model(this);
83 function Q = Q_comp(this,md)
84 if isfield(this.descr, 'Q_comp')
85 Q = this.descr.Q_comp;
87 Q = Q_comp@
ARE.Model(this);
91 function R = R_coeff(this)
92 if isfield(this.descr, 'R_coeff')
93 R = this.descr.R_coeff(this);
95 R = R_coeff@
ARE.Model(this);
98 function R = R_comp(this,md)
99 if isfield(this.descr, 'R_comp')
100 R = this.descr.R_comp;
102 R = R_comp@
ARE.Model(this);
MODEL Class that defines the assemble method which is used by both, the DetailedModel and the Reduced...
Implementation of the parametric algebraic Riccati equation.