Skip to content

Commit d43ab01

Browse files
committed
test: smarter MHE test with constant
1 parent aee82af commit d43ab01

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/2_test_state_estim.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,14 +871,14 @@ end
871871
covestim = SteadyKalmanFilter(linmodel)
872872
σP_0 = 1:4
873873
σPint_ym_0 = 5:6
874-
mhe14 = MovingHorizonEstimator(linmodel; He=5, σP_0, σPint_ym_0, covestim)
874+
mhe14 = MovingHorizonEstimator(linmodel; He=1, σP_0, σPint_ym_0, covestim)
875875
@test mhe14.cov.invP̄ inv(diagm((1:6).^2))
876876
preparestate!(mhe14, linmodel.yop, linmodel.dop)
877877
@test mhe14.cov.invP̄ inv(diagm((1:6).^2))
878878

879879
covestim = SteadyKalmanFilter(linmodel)
880880
σP_0 = nothing
881-
mhe15 = MovingHorizonEstimator(linmodel; He=5, σP_0, covestim)
881+
mhe15 = MovingHorizonEstimator(linmodel; He=1, σP_0, covestim)
882882
@test mhe15.cov.invP̄ inv(covestim.cov.P̂)
883883

884884
function gcl(X̂e, _ , _ , _ , _ , _ , _ , _ , nx, ε)

0 commit comments

Comments
 (0)