rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
descr_default.m
Go to the documentation of this file.
1 function descr = descr_default
2 %function model = descr_default
3 % This function initializes the default settings for the ARE model
4 %
5 % A. Schmidt, 2016
6 
7 descr = AbstractModel.default_description;
8 descr.verbose = 5;
9 descr.debug = 0;
10 descr.rb_problem_type = 'ARE';
11 
12 descr.mu_names = {};
13 descr.mu_ranges = {};
14 
15 descr.decomp_mode = 0; % default: complete evaluation
16 
17 % The data matrices:
18 % The coefficients should be
19 descr.A_comp = {};
20 descr.A_coeff = {};
21 descr.B_comp = {};
22 descr.B_coeff = {};
23 descr.C_comp = {};
24 descr.C_coeff = {};
25 descr.R_comp = @(m) {eye(m.m)};
26 descr.R_coeff = @(m,md) 1;
27 descr.Q_comp = @(m) {eye(m.p)};
28 descr.Q_coeff = @(m,md) 1;
29 descr.E_comp = @(m) {speye(m.n)};
30 descr.E_coeff = @(m,md) 1;
31 
32 % Define the problem dimension:
33 descr.n = 1;
34 descr.m = 1;
35 descr.p = 1;
36 
37 % Some fields for the RB generation:
38 descr.RB_detailed_data_constructor = @ARE.DetailedData.initialize_with_bgen;
39 descr.RB_train_rand_seed = 100;
40 descr.RB_train_size = 1000;
41 descr.RB_orthonormalize_E = true; % Orthonormalize basis w.r.t. to the mass matrix
42 descr.RB_error_indicator = 'normalized_residual'; % Other choices are 'residual'
43 descr.RB_gamma_calculation = @ARE.GammaCalculation.Lyapunov;
44 descr.RB_gamma_enabled = true;
LYAPUNOV This is the default implementation for the calculation of the gamma value.
Definition: Lyapunov.m:19
Abstract OOP model implementation interface.
Implementation of the detailed data interface for the ARE.
Definition: DetailedData.m:18
function ModelDescr descr = descr_default()
This function initializes the default settings for the ARE model.
Definition: descr_default.m:18
static function this = initialize_with_bgen(model,ModelData model_data)
This function is used in the gen_detailed_data function and creates an instance of the DetailedData c...
Definition: DetailedData.m:221
Implementation of the parametric algebraic Riccati equation.