1 | // settings for pmsm_estim.cpp |
---|
2 | |
---|
3 | experiment={ |
---|
4 | ndat = 100000; |
---|
5 | }; |
---|
6 | |
---|
7 | system= { |
---|
8 | class= "pmsmDS"; |
---|
9 | params = "pmsm107@../cfg/zcu.cfg"; |
---|
10 | tstep = 1; // steps for profile in [s] |
---|
11 | profileW = [0, 0, -30, -200, -90, -60, -30, 0, 30, 200]; |
---|
12 | // profileW = [30, 30, 30, 60, 90, 60, 30, 0, -30, -60, -30]; |
---|
13 | // profileW = [0,0,1, 1, 5, 2, 2, 3, 0, 0, -3, -3, -1, -1, -4, 0, 0]; |
---|
14 | // profileM = [0, 30, 0, 0, 30, 0, 0, 0, 0, 0, 10, 0, 0]; |
---|
15 | profileM = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; |
---|
16 | }; |
---|
17 | |
---|
18 | estimators = ( |
---|
19 | {class="EKFfixedCh"; |
---|
20 | IM = {class="IMpmsmStat"; |
---|
21 | params = "pmsm107@../cfg/zcu.cfg"; |
---|
22 | }; |
---|
23 | OM = {class="OMpmsm";}; |
---|
24 | // dQ=[0.01, 0.01, 0.0005, 0.001]; |
---|
25 | dQ=[289., 289., 12630., 0.009]; // 0.01*170^2, 0.0005*5026^2, 0.001*3.14^2 |
---|
26 | dR=[1445, 1445]; |
---|
27 | // dR=[0.05., 0.05.]; |
---|
28 | dP0=[14450., 144500., 157000000., 10.]; |
---|
29 | //connect |
---|
30 | yrv = {class="RV"; names=("o_ia","o_ib");}; // observed u |
---|
31 | rvc = {class="RV"; names=("o_ua","o_ub");}; // observed u |
---|
32 | rv = {class="RV"; names=("ia","ib","om","th");}; |
---|
33 | log_level="logmean,logevidence,logU,logG,logD"; |
---|
34 | name = "Est0"; |
---|
35 | }, |
---|
36 | {class="EKFfixedUD"; |
---|
37 | //connect |
---|
38 | yrv = {class="RV"; names=("o_ia","o_ib");}; // observed u |
---|
39 | rvc = {class="RV"; names=("o_ua","o_ub");}; // observed u |
---|
40 | rv = {class="RV"; names=("fix_ia","fix_ib","fix_om","fix_th","fix_M");}; |
---|
41 | log_level="logmean,logevidence,logbounds,logU,logG,logD"; |
---|
42 | name = "Est1"; |
---|
43 | } |
---|
44 | ); |
---|
45 | estimator0=( |
---|
46 | {class="EKF_UDfix"; |
---|
47 | IM = {class="IMpmsmMz"; |
---|
48 | params = "pmsm107@../cfg/zcu.cfg"; |
---|
49 | }; |
---|
50 | OM = {class="OMpmsmRO";}; |
---|
51 | //dQ=[0.0, 0.0, 0.0000, 1e-10, 0.0]; |
---|
52 | dQ=[0.05, 0.05, 0.001, 0.000001, 0.1]; ///////// <====== OK |
---|
53 | // dQ=[0.017, 0.017, 0.0004, 1e-5, 1e-1]; |
---|
54 | dR=[0.025, 0.025]; |
---|
55 | dP0=[0.1, 0.1, 0.1, 0.1, 0.1]; |
---|
56 | //connect |
---|
57 | yrv = {class="RV"; names=("o_ia","o_ib");}; // observed u |
---|
58 | rvc = {class="RV"; names=("t_ua","t_ub");}; // observed u |
---|
59 | //drv = {class="RV"; names=("o_ia","o_ib","t_ua","t_ub");}; // true u |
---|
60 | rv = {class="RV"; names=("UKFMz_ia","UKFMz_ib","UKFMz_om","UKFMz_th","UKFMz_M");}; |
---|
61 | log_level="logmean,logevidence,logbounds,logU,logG,logD"; |
---|
62 | } |
---|
63 | ); |
---|
64 | |
---|
65 | logger= { |
---|
66 | class="dirfilelog"; |
---|
67 | maxlen = 100; |
---|
68 | dirname = "exp/fix"; |
---|
69 | }; |
---|