Skip to content

Commit

Permalink
debug julia 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
franckgaga committed Dec 8, 2023
1 parent 9edf6aa commit 9f6c7ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_state_estim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,9 @@ end
@test mhe8.nint_u == [1, 1]
@test mhe8.nint_ym == [0, 0]

mhe9 = MovingHorizonEstimator(nonlinmodel, 5, 1:2, 0, [1, 1], I(6), I(6), I(2), Model(Ipopt.Optimizer))
I_6 = Matrix{Float64}(I, 6, 6)
I_2 = Matrix{Float64}(I, 2, 2)
mhe9 = MovingHorizonEstimator(nonlinmodel, 5, 1:2, 0, [1, 1], I_6, I_6, I_2, Model(Ipopt.Optimizer))
@test mhe9.P̂0 I(6)
@test mhe9. I(6)
@test mhe9. I(2)
Expand All @@ -619,7 +621,7 @@ end
linmodel1 = LinModel(sys,Ts,i_u=[1,2])
f(x,u,_) = linmodel1.A*x + linmodel1.Bu*u
h(x,_) = linmodel1.C*x
nonlinmodel = setop!(NonLinModel(f, h, Ts, 2, 2, 2), uop=[10,50], yop=[50,30])
nonlinmodel = setop!(NonLinModel(f, h, 1000*Ts, 2, 2, 2), uop=[10,50], yop=[50,30])
mhe1 = MovingHorizonEstimator(nonlinmodel, He=2)
@test updatestate!(mhe1, [10, 50], [50, 30]) zeros(4) atol=1e-9
@test updatestate!(mhe1, [10, 50], [50, 30], Float64[]) zeros(4) atol=1e-9
Expand Down

2 comments on commit 9f6c7ff

@franckgaga
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

Release notes:

  • added: MovingHorizonEstimator that can handle constraints on estimation
  • added: tests for MovingHorizonEstimator

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/96781

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.14.0 -m "<description of version>" 9f6c7ff0dbba00d310880ba4a73d1e44a44724c3
git push origin v0.14.0

Please sign in to comment.