@@ -26,25 +26,25 @@ nonlinmodel = NonLinModel(f!, h!, Ts, 2, 4, 2, 1, p=linmodel, solver=nothing)
2626nonlinmodel = setop! (nonlinmodel, uop= [10 , 50 ], yop= [50 , 30 ], dop= [5 ])
2727u, d, y = [10 , 50 ], [5 ], [50 , 30 ]
2828
29- SUITE[" SimModel " ][" allocation " ] = BenchmarkGroup ([" allocation" ])
30- SUITE[" SimModel " ][" allocation " ][" LinModel_updatestate!" ] = @benchmarkable (
29+ SUITE[" allocation " ][" SimModel " ] = BenchmarkGroup ([" allocation" ])
30+ SUITE[" allocation " ][" SimModel " ][" LinModel_updatestate!" ] = @benchmarkable (
3131 updatestate! ($ linmodel, $ u, $ d),
3232 samples= 1
3333)
34- SUITE[" SimModel " ][" allocation " ][" LinModel_evaloutput" ] = @benchmarkable (
34+ SUITE[" allocation " ][" SimModel " ][" LinModel_evaloutput" ] = @benchmarkable (
3535 evaloutput ($ linmodel, $ d),
3636 samples= 1
3737)
38- SUITE[" SimModel " ][" allocation " ][" NonLinModel_updatestate!" ] = @benchmarkable (
38+ SUITE[" allocation " ][" SimModel " ][" NonLinModel_updatestate!" ] = @benchmarkable (
3939 updatestate! ($ nonlinmodel, $ u, $ d),
4040 samples= 1
4141)
42- SUITE[" SimModel " ][" allocation " ][" NonLinModel_evaloutput" ] = @benchmarkable (
42+ SUITE[" allocation " ][" SimModel " ][" NonLinModel_evaloutput" ] = @benchmarkable (
4343 evaloutput ($ nonlinmodel, $ d),
4444 samples= 1
4545)
4646
47- SUITE[" SimModel " ][" allocation " ][" NonLinModel_linearize!" ] = @benchmarkable (
47+ SUITE[" allocation " ][" SimModel " ][" NonLinModel_linearize!" ] = @benchmarkable (
4848 linearize! ($ linmodel, $ nonlinmodel),
4949 samples= 1
5050)
@@ -53,77 +53,77 @@ SUITE["SimModel"]["allocation"]["NonLinModel_linearize!"] = @benchmarkable(
5353# # ================== StateEstimator benchmarks =====================================
5454# # ==================================================================================
5555skf = SteadyKalmanFilter (linmodel)
56- SUITE[" StateEstimator " ][" allocation " ] = BenchmarkGroup ([" allocation" ])
57- SUITE[" StateEstimator " ][" allocation " ][" SteadyKalmanFilter_preparestate!" ] = @benchmarkable (
56+ SUITE[" allocation " ][" StateEstimator " ] = BenchmarkGroup ([" allocation" ])
57+ SUITE[" allocation " ][" StateEstimator " ][" SteadyKalmanFilter_preparestate!" ] = @benchmarkable (
5858 preparestate! ($ skf, $ y, $ d),
5959 samples= 1
6060)
61- SUITE[" StateEstimator " ][" allocation " ][" SteadyKalmanFilter_updatestate!" ] = @benchmarkable (
61+ SUITE[" allocation " ][" StateEstimator " ][" SteadyKalmanFilter_updatestate!" ] = @benchmarkable (
6262 updatestate! ($ skf, $ u, $ y, $ d),
6363 setup= preparestate! ($ skf, $ y, $ d),
6464 samples= 1
6565)
66- SUITE[" StateEstimator " ][" allocation " ][" SteadyKalmanFilter_evaloutput" ] = @benchmarkable (
66+ SUITE[" allocation " ][" StateEstimator " ][" SteadyKalmanFilter_evaloutput" ] = @benchmarkable (
6767 evaloutput ($ skf, $ d),
6868 setup= preparestate! ($ skf, $ y, $ d),
6969 samples= 1
7070)
7171
7272kf = KalmanFilter (linmodel, nint_u= [1 , 1 ], direct= false )
73- SUITE[" StateEstimator " ][" allocation " ][" KalmanFilter_preparestate!" ] = @benchmarkable (
73+ SUITE[" allocation " ][" StateEstimator " ][" KalmanFilter_preparestate!" ] = @benchmarkable (
7474 preparestate! ($ kf, $ y, $ d),
7575 samples= 1
7676)
77- SUITE[" StateEstimator " ][" allocation " ][" KalmanFilter_updatestate!" ] = @benchmarkable (
77+ SUITE[" allocation " ][" StateEstimator " ][" KalmanFilter_updatestate!" ] = @benchmarkable (
7878 updatestate! ($ kf, $ u, $ y, $ d),
7979 setup= preparestate! ($ kf, $ y, $ d),
8080 samples= 1
8181)
8282
8383lo = Luenberger (linmodel, nint_u= [1 , 1 ])
84- # SUITE["StateEstimator "]["allocation "]["Luenberger_preparestate!"] = @benchmarkable(
85- # preparestate!($lo, $y, $d),
86- # samples=1
87- # )
88- SUITE[" StateEstimator " ][" allocation " ][" Luenberger_updatestate!" ] = @benchmarkable (
84+ SUITE[" allocation " ][" StateEstimator " ][" Luenberger_preparestate!" ] = @benchmarkable (
85+ preparestate! ($ lo, $ y, $ d),
86+ samples= 1
87+ )
88+ SUITE[" allocation " ][" StateEstimator " ][" Luenberger_updatestate!" ] = @benchmarkable (
8989 updatestate! ($ lo, $ u, $ y, $ d),
9090 setup= preparestate! ($ lo, $ y, $ d),
9191 samples= 1
9292)
9393
9494im = InternalModel (nonlinmodel)
95- SUITE[" StateEstimator " ][" allocation " ][" InternalModel_preparestate!" ] = @benchmarkable (
95+ SUITE[" allocation " ][" StateEstimator " ][" InternalModel_preparestate!" ] = @benchmarkable (
9696 preparestate! ($ im, $ y, $ d),
9797 samples= 1
9898)
99- SUITE[" StateEstimator " ][" allocation " ][" InternalModel_updatestate!" ] = @benchmarkable (
99+ SUITE[" allocation " ][" StateEstimator " ][" InternalModel_updatestate!" ] = @benchmarkable (
100100 updatestate! ($ im, $ u, $ y, $ d),
101101 setup= preparestate! ($ im, $ y, $ d),
102102 samples= 1
103103)
104104
105105ukf = UnscentedKalmanFilter (nonlinmodel)
106- SUITE[" StateEstimator " ][" allocation " ][" UnscentedKalmanFilter_preparestate!" ] = @benchmarkable (
106+ SUITE[" allocation " ][" StateEstimator " ][" UnscentedKalmanFilter_preparestate!" ] = @benchmarkable (
107107 preparestate! ($ ukf, $ y, $ d),
108108 samples= 1
109109)
110- SUITE[" StateEstimator " ][" allocation " ][" UnscentedKalmanFilter_updatestate!" ] = @benchmarkable (
110+ SUITE[" allocation " ][" StateEstimator " ][" UnscentedKalmanFilter_updatestate!" ] = @benchmarkable (
111111 updatestate! ($ ukf, $ u, $ y, $ d),
112112 setup= preparestate! ($ ukf, $ y, $ d),
113113 samples= 1
114114)
115- SUITE[" StateEstimator " ][" allocation " ][" UnscentedKalmanFilter_evaloutput" ] = @benchmarkable (
115+ SUITE[" allocation " ][" StateEstimator " ][" UnscentedKalmanFilter_evaloutput" ] = @benchmarkable (
116116 evaloutput ($ ukf, $ d),
117117 setup= preparestate! ($ ukf, $ y, $ d),
118118 samples= 1
119119)
120120
121121ekf = ExtendedKalmanFilter (linmodel, nint_u= [1 , 1 ], direct= false )
122- SUITE[" StateEstimator " ][" allocation " ][" ExtendedKalmanFilter_preparestate!" ] = @benchmarkable (
122+ SUITE[" allocation " ][" StateEstimator " ][" ExtendedKalmanFilter_preparestate!" ] = @benchmarkable (
123123 preparestate! ($ ekf, $ y, $ d),
124124 samples= 1
125125)
126- SUITE[" StateEstimator " ][" allocation " ][" ExtendedKalmanFilter_updatestate!" ] = @benchmarkable (
126+ SUITE[" allocation " ][" StateEstimator " ][" ExtendedKalmanFilter_updatestate!" ] = @benchmarkable (
127127 updatestate! ($ ekf, $ u, $ y, $ d),
128128 setup= preparestate! ($ ekf, $ y, $ d),
129129 samples= 1
@@ -133,8 +133,8 @@ SUITE["StateEstimator"]["allocation"]["ExtendedKalmanFilter_updatestate!"] = @be
133133# # ================== PredictiveController benchmarks ===============================
134134# # ==================================================================================
135135empc = ExplicitMPC (linmodel, Mwt= [1 , 1 ], Nwt= [0.1 , 0.1 ], Lwt= [0.1 , 0.1 ])
136- SUITE[" PredictiveController " ][" allocation " ] = BenchmarkGroup ([" allocation" ])
137- SUITE[" PredictiveController " ][" allocation " ][" ExplicitMPC_moveinput!" ] = @benchmarkable (
136+ SUITE[" allocation " ][" PredictiveController " ] = BenchmarkGroup ([" allocation" ])
137+ SUITE[" allocation " ][" PredictiveController " ][" ExplicitMPC_moveinput!" ] = @benchmarkable (
138138 moveinput! ($ empc, $ y, $ d),
139139 setup= preparestate! ($ empc, $ y, $ d),
140140 samples= 1
0 commit comments