We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89e455f commit 57bb619Copy full SHA for 57bb619
test/test_state_estim.jl
@@ -667,11 +667,13 @@ end
667
linmodel1 = setop!(LinModel(sys,Ts,i_u=[1,2]), uop=[10,50], yop=[50,30])
668
mhe1 = MovingHorizonEstimator(linmodel1, He=1, nint_ym=0)
669
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]))
+ @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]))
672
673
mhe2 = MovingHorizonEstimator(linmodel1, He=4, nint_ym=0)
674
setconstraint!(mhe2, X̂min=-1(1:10), X̂max=1(1:10))
- @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)))
677
678
@test_throws ArgumentError setconstraint!(mhe2, x̂min=[-1])
679
@test_throws ArgumentError setconstraint!(mhe2, x̂max=[+1])
0 commit comments