Skip to content

Commit 57bb619

Browse files
committed
debug mhe tests
1 parent 89e455f commit 57bb619

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/test_state_estim.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,11 +667,13 @@ end
667667
linmodel1 = setop!(LinModel(sys,Ts,i_u=[1,2]), uop=[10,50], yop=[50,30])
668668
mhe1 = MovingHorizonEstimator(linmodel1, He=1, nint_ym=0)
669669
setconstraint!(mhe1, x̂min=[-51,-52], x̂max=[53,54])
670-
@test all((mhe1.X̂min, mhe1.X̂max) .≈ ([-51,-52,-51,-52], [53,54,53,54]))
670+
@test all((mhe1.con.X̂min, mhe1.con.X̂max) .≈ ([-51,-52], [53,54]))
671+
@test all((mhe1.con.x̂min, mhe1.con.x̂max) .≈ ([-51,-52], [53,54]))
671672

672673
mhe2 = MovingHorizonEstimator(linmodel1, He=4, nint_ym=0)
673674
setconstraint!(mhe2, X̂min=-1(1:10), X̂max=1(1:10))
674-
@test all((mhe2.X̂min, mhe2.X̂max) .≈ (-1(1:10), 1(1:10)))
675+
@test all((mhe2.con.X̂min, mhe2.con.X̂max) .≈ (-1(3:10), 1(3:10)))
676+
@test all((mhe2.con.x̂min, mhe2.con.x̂max) .≈ (-1(1:2), 1(1:2)))
675677

676678
@test_throws ArgumentError setconstraint!(mhe2, x̂min=[-1])
677679
@test_throws ArgumentError setconstraint!(mhe2, x̂max=[+1])

0 commit comments

Comments
 (0)