We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
moveinput!
1 parent 09db93c commit 910952fCopy full SHA for 910952f
test/3_test_predictive_control.jl
@@ -705,13 +705,13 @@ end
705
@test_nowarn geq_end(5.0, 4.0, 3.0, 2.0)
706
nmpc6 = NonLinMPC(linmodel3, Hp=10)
707
preparestate!(nmpc6, [0])
708
- @test moveinput!(nmpc6, [0]) ≈ [0.0]
+ @test moveinput!(nmpc6, [0]) ≈ [0.0] atol=5e-2
709
nonlinmodel2 = NonLinModel{Float32}(f, h, 3000.0, 1, 2, 1, 1, solver=nothing, p=linmodel2)
710
nmpc7 = NonLinMPC(nonlinmodel2, Hp=10)
711
y = similar(nonlinmodel2.yop)
712
nonlinmodel2.solver_h!(y, Float32[0,0], Float32[0], nonlinmodel2.p)
713
preparestate!(nmpc7, [0], [0])
714
- @test moveinput!(nmpc7, [0], [0]) ≈ [0.0]
+ @test moveinput!(nmpc7, [0], [0]) ≈ [0.0] atol=5e-2
715
nmpc8 = NonLinMPC(nonlinmodel, Nwt=[0], Hp=100, Hc=1, transcription=MultipleShooting())
716
preparestate!(nmpc8, [0], [0])
717
u = moveinput!(nmpc8, [10], [0])
0 commit comments