@@ -1013,7 +1013,7 @@ end
10131013 mhe15 = MovingHorizonEstimator (linmodel; He= 1 , σP_0, covestim)
10141014 @test mhe15. cov. invP̄ ≈ inv (covestim. cov. P̂)
10151015
1016- function gcl (X̂e, _ , _ , _ , _ , _ , _ , _ , nc, ε)
1016+ function gcl (X̂e, _ , _ , _ , _ , _ , _ , _ , _ , nc, ε)
10171017 gc = X̂e .- 100 .- ε
10181018 return [gc; zeros (nc .- length (X̂e))]
10191019 end
@@ -1892,7 +1892,7 @@ end
18921892
18931893 linmodel2 = LinModel (sys, Ts, i_u= [1 ,2 ], i_d= [3 ])
18941894 linmodel2 = setop! (linmodel2, uop= [10 ,50 ], yop= [50 ,30 ], dop= [5 ])
1895- function gclv! (LHS, X̂e, _, _, _, _, _, _, _, nx̂, _ )
1895+ function gclv! (LHS, X̂e, _, _, _, _, _, _, _, _, nx̂, _ )
18961896 nc_Nk = length (X̂e) ÷ nx̂
18971897 LHS .= 0 # for when Nk < He, fill unused values with 0s
18981898 for i in 1 : nc_Nk
@@ -1907,7 +1907,7 @@ end
19071907 x̂ = updatestate! (mhe, [10 , 50 ], [50 , 30 ], [5 ])
19081908 @test x̂[1 ] ≈ 0.5 atol = 5e-2
19091909
1910- function gcln! (LHS, _, _, Ŵe, _, _, _, _,_, nx̂, _)
1910+ function gcln! (LHS, _, _, _, Ŵe, _, _, _, _,_, nx̂, _)
19111911 LHS .= Ŵe[1 : nx̂]
19121912 return nothing
19131913 end
@@ -1980,7 +1980,7 @@ end
19801980 h = (x,d,model) -> model. C* x + model. Dd* d
19811981 nonlinmodel2 = NonLinModel (f, h, Ts, 2 , 4 , 2 , 1 , solver= nothing , p= linmodel2)
19821982 nonlinmodel2 = setop! (nonlinmodel2, uop= [10 ,50 ], yop= [50 ,30 ], dop= [5 ])
1983- function gcnlv! (LHS, X̂e, _, _, _, _, _, _, _, nx̂, _)
1983+ function gcnlv! (LHS, X̂e, _, _, _, _, _, _, _, _, nx̂, _)
19841984 nc_Nk = length (X̂e) ÷ nx̂
19851985 LHS .= 0 # for when Nk < He, fill unused values with 0s
19861986 for i in 1 : nc_Nk
@@ -1995,7 +1995,7 @@ end
19951995 x̂ = updatestate! (mhe2, [10 , 50 ], [50 , 30 ], [5 ])
19961996 @test x̂[1 ] ≈ 0.5 atol = 5e-2
19971997
1998- function gclnl! (LHS, _, _, Ŵe, _, _, _, _,_, nx̂, _)
1998+ function gclnl! (LHS, _, _, _, Ŵe, _, _, _, _,_, nx̂, _)
19991999 LHS .= Ŵe[1 : nx̂]
20002000 return nothing
20012001 end
0 commit comments