Skip to content

Commit c332bda

Browse files
committed
test: uncomment block of code
1 parent 279c38d commit c332bda

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎test/2_test_state_estim.jl‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,7 +2021,7 @@ end
20212021
p = [0.001]
20222022
as_0, xs_0 = [-1.0], [1.0]
20232023
dae = NonLinModelDAE(fq!, h!, 1000.0, 1, 1, 1, 1, 1; p, xs_0, as_0)
2024-
#=
2024+
20252025
transcription = TrapezoidalCollocation()
20262026
mhe2 = MovingHorizonEstimator(dae, He=1, nint_ym=0; transcription)
20272027

@@ -2038,8 +2038,8 @@ end
20382038

20392039
info = getinfo(mhe2)
20402040
@test info[:â] ≈ [-1.0] atol=5e-2
2041-
=#
2042-
transcription = TrapezoidalCollocation()#OrthogonalCollocation(0, 2, roots=:gausslegendre)
2041+
2042+
transcription = OrthogonalCollocation(0, 2, roots=:gausslegendre)
20432043
mhe3 = MovingHorizonEstimator(dae; He=1, nint_ym=0, Cwt=1e4, transcription)
20442044

20452045
setconstraint!(mhe3, c_âmin=[1], c_âmax=[1])
@@ -2049,15 +2049,13 @@ end
20492049
updatestate!(mhe3, [10.0], [0.0], [0.0])
20502050

20512051
info = getinfo(mhe3)
2052-
@show info[:ε]
20532052
@test info[:â] ≈ [1.0] atol=5e-2
20542053

20552054
setconstraint!(mhe3, âmin=[-100], âmax=[-1])
20562055
preparestate!(mhe3, [0.0], [0.0])
20572056
updatestate!(mhe3, [10.0], [0.0], [0.0])
20582057

20592058
info = getinfo(mhe3)
2060-
@show info[:ε]
20612059
@test info[:â] ≈ [-1.0] atol=5e-2
20622060

20632061
end

0 commit comments

Comments
 (0)