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
Constant.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 
19 class Constant
20  :public error.initial.Base {
39  private:
40 
41  e0;
42 
43 
44  public:
45 
47  fs = rm.FullModel.System;
48  x0 = fs.x0.evaluate([]) ./ fs.StateScaling;
49  /* Only project if projection is used */
50  if ~isempty(rm.V)
51  W = rm.W;
52  if isempty(W)
53  W = rm.V;
54  end
55  x0 = x0 - rm.V*(W^t*x0);
56  end
57  this.e0= Norm.LG(x0,rm.G);
58  }
59 
60 
61  function e0 = getE0(colvec<double> mu) {
62  e0 = this.e0;
63  }
64 
65 
66 };
67 }
68 }
69 
function prepareForReducedModel(models.ReducedModel rm)
Sets the effectively used reduced model.
Definition: Constant.m:46
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
matrix< double > G
The custom scalar product matrix .
Definition: BaseModel.m:132
The KerMor reduced model class.
Definition: ReducedModel.m:18
virtual function x0 = evaluate(mu)
Evaluates the initial value for a given mu.
matrix< double > V
The matrix that has been used for projection.
Definition: ReducedModel.m:72
function e0 = getE0(colvec< double > mu)
Returns the initial value error for given parameter .
Definition: Constant.m:61
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