Revision 1249, 1.8 kB
(checked in by zimamiro, 14 years ago)
|
|
Line | |
---|
1 | function [system,apriori,regulator_parameters, compare_parameters]=nastav |
---|
2 | eps=0.001; |
---|
3 | |
---|
4 | %parametry systemu |
---|
5 | system.P=[1 20 20]; |
---|
6 | system.I=[0.00375 0.5 0.5]; |
---|
7 | system.S=zeros(1,3); |
---|
8 | |
---|
9 | system.a=0.9898; |
---|
10 | system.b=0.0072; |
---|
11 | system.c=0.0361; |
---|
12 | system.d=1; |
---|
13 | system.e=0.0149; |
---|
14 | system.deltat=0.000125; |
---|
15 | system.Q=diag([0.0013,0.0013,5*10^(-6),10^(-10)],0); |
---|
16 | system.R=diag([0.0006,0.0006],0); |
---|
17 | system.ksi=[0 0 0 0 |
---|
18 | 0 0 0 0 |
---|
19 | 0 0 1 0 |
---|
20 | 0 0 0 0]; |
---|
21 | v=0.1; |
---|
22 | system.gamma=[v 0 |
---|
23 | 0 v]; |
---|
24 | system.B=[system.c 0 |
---|
25 | 0 system.c |
---|
26 | 0 0 |
---|
27 | 0 0]; |
---|
28 | system.C=[1 0 0 0 |
---|
29 | 0 1 0 0]; |
---|
30 | system.horizont_rizeni=500; |
---|
31 | system.x_opt=[0; 0; 1.1; 0]; |
---|
32 | system.x=[0; 0; 0; pi/4]; |
---|
33 | system.pozorovani=[0 0]; |
---|
34 | |
---|
35 | %apriorni informace |
---|
36 | apriori.H=[0 0.01 0 0 0 |
---|
37 | 0 0 0.01 0 0 |
---|
38 | 0 0 0 1 0 |
---|
39 | 0 0 0 0 10]; |
---|
40 | apriori.Hmin=[-0.5 0.01 0 0 0 |
---|
41 | -0.5 0 0.01 0 0 |
---|
42 | 0 0 0.01 0 |
---|
43 | 0 0 0 0 0.01]; |
---|
44 | apriori.Hmax=[0.5 0.01 0 0 0 |
---|
45 | 0.5 0 0.01 0 0 |
---|
46 | 2 0 0 0.5 0 |
---|
47 | 2*pi 0 0 0 10]; |
---|
48 | |
---|
49 | |
---|
50 | %parametry regulatoru |
---|
51 | regulator_parameters.horizont_simulace=20; |
---|
52 | regulator_parameters.H_tilde_on=[0 0 0 0 0 |
---|
53 | 0 0 0 0 0 |
---|
54 | 0 0 0 0 0 |
---|
55 | 0 0 0 0 1]; %H=[x_hat S] |
---|
56 | regulator_parameters.n_iter=8; |
---|
57 | regulator_parameters.num_of_candidates=7; |
---|
58 | regulator_parameters.generate_candidates_mode='norm'; |
---|
59 | regulator_parameters.search_region_init=3; |
---|
60 | regulator_parameters.gama=0.4; |
---|
61 | regulator_parameters.n_grid=10; |
---|
62 | |
---|
63 | |
---|
64 | system.H_tilde_on=regulator_parameters.H_tilde_on; |
---|
65 | %Parametry RSSS |
---|
66 | compare_parameters.n0=20; |
---|
67 | compare_parameters.delta=0; %nevim |
---|
68 | compare_parameters.alpha=0.05; |
---|
69 | compare_parameters.on=0; |
---|
70 | |
---|
71 | end |
---|