2 % Model data implementation
for the
ARE
4 % The model data stores all components
for the data matrices A,B,C,E,R and
5 % Q. They are generated by the constructor, which simply gets the model
6 %
class implementation. It then calls the functions model.A_comp(),
7 % model.B_comp, ... and so on in order to generate the matrices.
9 % @author Andreas Schmidt, 2016
25 elements = {
'A',
'B',
'C',
'E',
'R',
'Q'};
26 for i = 1:length(elements)
27 thisName = [elements{i},
'_comp'];
29 if isa(m.(thisName),
'cell')
30 obj.(thisName) = m.(thisName);
33 obj.(thisName) = ptr(m);
36 % If the problem size is not yet set, set it here:
37 if isempty(m.n) && strcmp(elements{i},
'A')
38 m.n = size(obj.(thisName){1},1);
Abstract OOP model implementation interface.
Model data implementation for the ARE.
Implementation of the parametric algebraic Riccati equation.
Struct with high dimensional data needed for a high dimensional simulation.