KerMor  0.9
Model order reduction for nonlinear dynamical systems and nonlinear approximation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AffineParametric.m
Go to the documentation of this file.
1 namespace error{
2 namespace initial{
3 
4 
5 /* (Autoinserted by mtoc++)
6  * This source code has been filtered by the mtoc++ executable,
7  * which generates code that can be processed by the doxygen documentation tool.
8  *
9  * On the other hand, it can neither be interpreted by MATLAB, nor can it be compiled with a C++ compiler.
10  * Except for the comments, the function bodies of your M-file functions are untouched.
11  * Consequently, the FILTER_SOURCE_FILES doxygen switch (default in our Doxyfile.template) will produce
12  * attached source files that are highly readable by humans.
13  *
14  * Additionally, links in the doxygen generated documentation to the source code of functions and class members refer to
15  * the correct locations in the source code browser.
16  * However, the line numbers most likely do not correspond to the line numbers in the original MATLAB source files.
17  */
18 
20  :public error.initial.Base {
42  private:
43 
44  af;
45 
46  m;
47 
48 
49  public:
50 
52  this.m= rm;
53  /* Consider scaling, the state space variables are scaled if set, so need the
54  * correct scaled x0 value here.
55  * s = model.System.StateScaling;
56  * if s ~= 1
57  * warning('KerMor:unchecked','Functionality not yet checked for scaled systems.');
58  * if isscalar(s)
59  * dim = size(model.System.x0.getMatrix(1),2);
60  * s(1:dim,1) = s;
61  * else
62  * dim = length(s);
63  * end
64  * x0 = model.System.x0 * spdiags(1./s,0,dim,dim);
65  * else */
66  x0 = rm.FullModel.System.x0;
67 /* end */
68  this.af= x0 - rm.V*(rm.W^t*x0);
69  }
80  function e0 = getE0(colvec<double> mu) {
81  e0 = this.af.compose(mu);
82  e0 = Norm.LG(e0,this.m.G);
83  }
84 
85 
86 
87 };
88 }
89 }
90 
models.BaseFullModel FullModel
The full model this reduced model was created from.
Definition: ReducedModel.m:53
models.BaseFirstOrderSystem System
The actual dynamical system used in the model.
Definition: BaseModel.m:102
The KerMor reduced model class.
Definition: ReducedModel.m:18
matrix< double > V
The matrix that has been used for projection.
Definition: ReducedModel.m:72
function prepareForReducedModel(models.ReducedModel rm)
Operates on affine-parametric matrices, see general.AffParamMatrix.
matrix< double > W
The biorthogonal matrix for V, i.e. .
Definition: ReducedModel.m:85
dscomponents.AInitialValue x0
Function handle to initial state evaluation.
Base: Interface for initial error computing classes.
Definition: Base.m:19
static function rowvec< double > n = LG(matrix< double > x, G)
Returns the -induced norm for each column vector in .
Definition: Norm.m:87
Norm: Static class for commonly used norms on sets of vectors.
Definition: Norm.m:17
function e0 = getE0(colvec< double > mu)
Returns the initial value error for given parameter .