|
119 | 119 | r = [15]
|
120 | 120 | moveinput!(mpc7, r)
|
121 | 121 | ΔU_diff = diff(getinfo(mpc7)[:U])
|
122 |
| - @test ΔU_diff[[2, 4, 5, 7, 8, 9]] ≈ zeros(6) |
| 122 | + @test ΔU_diff[[2, 4, 5, 7, 8, 9]] ≈ zeros(6) atol=1e-9 |
123 | 123 |
|
124 | 124 | @test_throws DimensionMismatch moveinput!(mpc1, [0,0,0])
|
125 | 125 | @test_throws DimensionMismatch moveinput!(mpc1, [0], [0,0])
|
|
488 | 488 | preparestate!(mpc5, y)
|
489 | 489 | moveinput!(mpc5, r)
|
490 | 490 | ΔU_diff = diff(getinfo(mpc5)[:U])
|
491 |
| - @test ΔU_diff[[2, 4, 5, 7, 8, 9]] ≈ zeros(6) |
| 491 | + @test ΔU_diff[[2, 4, 5, 7, 8, 9]] ≈ zeros(6) atol=1e-9 |
492 | 492 |
|
493 | 493 | @test_nowarn ModelPredictiveControl.info2debugstr(info)
|
494 | 494 | end
|
|
795 | 795 | moveinput!(nmpc11, [10], [0])
|
796 | 796 | ΔU_diff = diff(getinfo(nmpc11)[:U])
|
797 | 797 | println(ΔU_diff)
|
798 |
| - @test ΔU_diff[[2, 4, 5, 7, 8, 9]] ≈ zeros(6) |
| 798 | + @test ΔU_diff[[2, 4, 5, 7, 8, 9]] ≈ zeros(6) atol=1e-9 |
799 | 799 |
|
800 | 800 | @test_nowarn ModelPredictiveControl.info2debugstr(info)
|
801 | 801 | end
|
|
0 commit comments