Skip to content

Commit 9f6c7ff

Browse files
committed
debug julia 1.6
1 parent 9edf6aa commit 9f6c7ff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/test_state_estim.jl

+4-2
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,9 @@ end
599599
@test mhe8.nint_u == [1, 1]
600600
@test mhe8.nint_ym == [0, 0]
601601

602-
mhe9 = MovingHorizonEstimator(nonlinmodel, 5, 1:2, 0, [1, 1], I(6), I(6), I(2), Model(Ipopt.Optimizer))
602+
I_6 = Matrix{Float64}(I, 6, 6)
603+
I_2 = Matrix{Float64}(I, 2, 2)
604+
mhe9 = MovingHorizonEstimator(nonlinmodel, 5, 1:2, 0, [1, 1], I_6, I_6, I_2, Model(Ipopt.Optimizer))
603605
@test mhe9.P̂0 I(6)
604606
@test mhe9. I(6)
605607
@test mhe9. I(2)
@@ -619,7 +621,7 @@ end
619621
linmodel1 = LinModel(sys,Ts,i_u=[1,2])
620622
f(x,u,_) = linmodel1.A*x + linmodel1.Bu*u
621623
h(x,_) = linmodel1.C*x
622-
nonlinmodel = setop!(NonLinModel(f, h, Ts, 2, 2, 2), uop=[10,50], yop=[50,30])
624+
nonlinmodel = setop!(NonLinModel(f, h, 1000*Ts, 2, 2, 2), uop=[10,50], yop=[50,30])
623625
mhe1 = MovingHorizonEstimator(nonlinmodel, He=2)
624626
@test updatestate!(mhe1, [10, 50], [50, 30]) zeros(4) atol=1e-9
625627
@test updatestate!(mhe1, [10, 50], [50, 30], Float64[]) zeros(4) atol=1e-9

0 commit comments

Comments
 (0)