KerMor
0.9
Model order reduction for nonlinear dynamical systems and nonlinear approximation
|
TPWLLocalLipEstimator: Local-Lipschitz estimation based error estimator for reduced models obtained using the TPWL Approx class. More...
TPWLLocalLipEstimator: Local-Lipschitz estimation based error estimator for reduced models obtained using the TPWL Approx class.
Details about the math can be obtained upon contacting the author.
This class is part of the framework
Homepage
http://www.morepas.org/software/index.htmlDocumentation
http://www.morepas.org/software/kermor/index.htmlLicense
KerMor license conditions Definition at line 18 of file TPWLLocalLipEstimator.m.
Public Member Functions | |
TPWLLocalLipEstimator () | |
function copy = | clone () |
function p = | prepareForReducedModel (models.ReducedModel rmodel) |
Overrides the setReducedModel method from error.BaseEstimator and performs additional offline computations. More... | |
function e = | evalODEPart (colvec x,double t,double ut) |
Evaluates the auxiliary ode part for the TPWL estimator. More... | |
function ct = | postProcess (double t,colvec< double > x,integer inputidx) |
function e0 = | init (colvec< double > mu) |
Returns the initial error at \(t=0\) of the integral part. More... | |
function | clear () |
Public Member Functions inherited from error.BaseEstimator | |
function | offlineComputations (models.BaseFullModel model) |
Performs a validity check for the given model and sets up the estimator for use with the specified model. More... | |
function double ct = | postProcess (unused1,rowvec t, unused2) |
Post-processes the error estimator ODE part after reduced simulation computation. More... | |
function | clear () |
Clears the last error set by the estimator. More... | |
function copy = | clone (copy) |
Creates a copy of this error estimator. Call only allowed from subclasses. More... | |
function e0 = | getE0 (colvec< double > mu) |
Calls the inner initial error computation strategy. More... | |
function ct = | prepareConstants (colvec< double > mu, unused1) |
function
prepared = | prepareForReducedModel (models.ReducedModel rmodel) |
Default implementation which simply clones this (subclass!)instance and returns the copy to use in reduced models. More... | |
Public Member Functions inherited from KerMorObject | |
KerMorObject () | |
Constructs a new KerMor object. More... | |
function | display () |
disp(object2str(this)); More... | |
function bool = | eq (B) |
Checks equality of two KerMor objects. More... | |
function bool = | ne (B) |
Checks if two KerMorObjects are different. More... | |
function cn = | getClassName () |
Returns the simple class name of this object without packages. More... | |
Public Member Functions inherited from DPCMObject | |
DPCMObject () | |
Creates a new DPCM object. More... | |
DPCMObject () | |
Static Public Member Functions | |
static function errmsg = | validModelForEstimator (models.ReducedModel rmodel) |
Validations. More... | |
Static Public Member Functions inherited from error.BaseEstimator | |
static function est = | getEstimator (models.BaseFullModel model) |
Factory method that creates a suitable error estimator for the given model. More... | |
Public Attributes | |
UseTimeDiscreteC = true | |
Determines how many postprocessing iterations for the estimator are performed. For the local Lipschitz constant estimation the parameter C can be chosen to equal the error from the last time step. This has to be investigated more thoroughly as integration errors from the solver may lead to a loss of rigorousity. More... | |
Public Attributes inherited from error.BaseEstimator | |
Enabled | |
Flag that indicates whether error estimation is used or not. More... | |
StateError = "[]" | |
The reduction state-space error from the last simulation. More... | |
ExtraODEDims = 0 | |
The dimensions added to the ODE function by the estimator. More... | |
OutputError = "[]" | |
The output error from the last simulation. More... | |
models.ReducedModel | ReducedModel = "[]" |
The reduced model associated with the error estimator. More... | |
mu | |
Public Attributes inherited from DPCMObject | |
WorkspaceVariableName = "" | |
The workspace variable name of this class. Optional. More... | |
ID = "[]" | |
An ID that allows to uniquely identify this DPCMObject (at least within the current MatLab session/context). More... | |
PropertiesChanged = "[]" | |
The Dictionary containing all the property settings as key/value pairs. More... | |
Public Attributes inherited from handle | |
addlistener | |
Creates a listener for the specified event and assigns a callback function to execute when the event occurs. More... | |
notify | |
Broadcast a notice that a specific event is occurring on a specified handle object or array of handle objects. More... | |
delete | |
Handle object destructor method that is called when the object's lifecycle ends. More... | |
disp | |
Handle object disp method which is called by the display method. See the MATLAB disp function. More... | |
display | |
Handle object display method called when MATLAB software interprets an expression returning a handle object that is not terminated by a semicolon. See the MATLAB display function. More... | |
findobj | |
Finds objects matching the specified conditions from the input array of handle objects. More... | |
findprop | |
Returns a meta.property objects associated with the specified property name. More... | |
fields | |
Returns a cell array of string containing the names of public properties. More... | |
fieldnames | |
Returns a cell array of string containing the names of public properties. See the MATLAB fieldnames function. More... | |
isvalid | |
Returns a logical array in which elements are true if the corresponding elements in the input array are valid handles. This method is Sealed so you cannot override it in a handle subclass. More... | |
eq | |
Relational functions example. See details for more information. More... | |
transpose | |
Transposes the elements of the handle object array. More... | |
permute | |
Rearranges the dimensions of the handle object array. See the MATLAB permute function. More... | |
reshape | |
hanges the dimensions of the handle object array to the specified dimensions. See the MATLAB reshape function. More... | |
sort | |
ort the handle objects in any array in ascending or descending order. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from KerMorObject | |
function | checkType (obj, type) |
Object typechecker. More... | |
Protected Member Functions inherited from DPCMObject | |
function | registerProps (varargin) |
Call this method at any class that defines DPCM observed properties. More... | |
function | registerProps (varargin) |
Static Protected Member Functions inherited from DPCMObject | |
static function obj = | loadobj (obj, from) |
Re-register any registered change listeners! More... | |
static function obj = | loadobj (obj, from) |
error.TPWLLocalLipEstimator.TPWLLocalLipEstimator | ( | ) |
Definition at line 89 of file TPWLLocalLipEstimator.m.
References error.BaseEstimator.ExtraODEDims.
function error.TPWLLocalLipEstimator.clear | ( | ) |
Definition at line 323 of file TPWLLocalLipEstimator.m.
function copy = error.TPWLLocalLipEstimator.clone | ( | ) |
Definition at line 94 of file TPWLLocalLipEstimator.m.
Evaluates the auxiliary ode part for the TPWL estimator.
x | The full extended state variable vector. Extended means that the last ExtraODEDims rows contain the error estimators own data. If not used, implementers must take care to ditch those values if any function evaluations are performed within the integral part. |
t | The current time \(t\) |
ut | The value of the input function \(u(t)\) if given, [] else. |
mu | The current parameter \(\mu\) |
e | The auxiliary ode part value. extract current error |
Implements error.BaseEstimator.
Definition at line 190 of file TPWLLocalLipEstimator.m.
References all(), error.BaseEstimator.ExtraODEDims, models.BaseFirstOrderSystem.f, k, error.BaseEstimator.mu, error.BaseEstimator.ReducedModel, handle.reshape, models.BaseModel.System, t, UseTimeDiscreteC, and models.ReducedModel.V.
Returns the initial error at \(t=0\) of the integral part.
mu | The currently used parameter \(\vmu\). Set to \([]\) if not used. |
Definition at line 310 of file TPWLLocalLipEstimator.m.
References error.BaseEstimator.ReducedModel.
function ct = error.TPWLLocalLipEstimator.postProcess | ( | double | t, |
colvec< double > | x, | ||
integer | inputidx | ||
) |
Definition at line 278 of file TPWLLocalLipEstimator.m.
References all(), models.BaseFirstOrderSystem.C, handle.disp, dscomponents.LinearOutputConv.evaluate(), error.BaseEstimator.ExtraODEDims, models.ReducedModel.FullModel, error.BaseEstimator.mu, error.BaseEstimator.ReducedModel, error.BaseEstimator.StateError, and models.BaseModel.System.
function p = error.TPWLLocalLipEstimator.prepareForReducedModel | ( | models.ReducedModel | rmodel | ) |
Overrides the setReducedModel method from error.BaseEstimator and performs additional offline computations.
rmodel | A KerMor reduced model |
Definition at line 99 of file TPWLLocalLipEstimator.m.
References all(), models.BaseFirstOrderSystem.B, dscomponents.AInputConv.evaluate(), models.BaseFirstOrderSystem.f, models.ReducedModel.FullModel, G, models.BaseModel.getRandomParam(), k, handle.reshape, models.BaseModel.System, t, models.ReducedModel.V, and models.ReducedModel.W.
|
staticvirtual |
Validations.
rmodel | A KerMor reduced model |
Implements error.BaseEstimator.
Definition at line 333 of file TPWLLocalLipEstimator.m.
References models.BaseFullModel.Approx, models.BaseFirstOrderSystem.C, models.ReducedModel.FullModel, and models.BaseModel.System.
error.TPWLLocalLipEstimator.UseTimeDiscreteC = true |
Determines how many postprocessing iterations for the estimator are performed. For the local Lipschitz constant estimation the parameter C can be chosen to equal the error from the last time step. This has to be investigated more thoroughly as integration errors from the solver may lead to a loss of rigorousity.
Has computationally no effect if UseTimeDiscreteC is switched on.
Default: 0 Iterations = 0; Defaults to true. (As is best estimator atm)
Default: true
Definition at line 42 of file TPWLLocalLipEstimator.m.
Referenced by evalODEPart().