File tree 4 files changed +9
-11
lines changed
4 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,11 @@ The table below summarizes the names and status of the each problem:
38
38
| insurance | ✅ | ✅ |
39
39
| jackson | ✅ | ✅ |
40
40
| moonlander | ✅ | 🟠 |
41
- | quadrotor | 🟠 | 🟠🟠 |
41
+ | quadrotor | 🟠 | 🟠 |
42
42
| robbins | ✅ | ✅ |
43
43
| robot | ✅ | ✅ |
44
44
| rocket | ✅ | ✅ |
45
- | space_shuttle | ✅ | 🟠🟠 |
45
+ | space_shuttle | ✅ | 🟠 |
46
46
| steering | ✅ | ✅ |
47
47
| truck_trailer | 🟠 | 🟠 |
48
48
| vanderpol | ✅ | ✅ |
@@ -63,6 +63,5 @@ sb = "yes"
63
63
The symbols in the table means:
64
64
65
65
- ✅ locally solved
66
- - 🟠 locally infeasible
67
- - 🟠🟠 maximum of iterations
66
+ - 🟠 locally infeasible or maximum of iterations
68
67
- ❌ error during execution
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ using Test
10
10
#
11
11
@testset verbose = true showtiming = true " OptimalControlProblems tests" begin
12
12
for name in (
13
- # :aqua,
14
- # :JuMP,
13
+ :aqua ,
14
+ :JuMP ,
15
15
:OptimalControl ,
16
16
)
17
17
@testset " $(name) " begin
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ function test_JuMP()
32
32
optimize! (model)
33
33
# Test that the solver found an optimal solution
34
34
if f == :truck_trailer || f == :quadrotor
35
- @test termination_status (model) == MOI. LOCALLY_INFEASIBLE
35
+ @test ( termination_status (model) == MOI. LOCALLY_INFEASIBLE) || ( termination_status (model) == MOI . ITERATION_LIMIT)
36
36
else
37
37
@test termination_status (model) == MOI. LOCALLY_SOLVED
38
38
end
Original file line number Diff line number Diff line change @@ -31,11 +31,10 @@ function test_OptimalControl()
31
31
)
32
32
# Test that the solver found an optimal solution
33
33
if f == :moonlander ||
34
- f == :truck_trailer
35
- @test sol. status == :infeasible
36
- elseif f == :quadrotor ||
34
+ f == :truck_trailer ||
35
+ f == :quadrotor ||
37
36
f == :space_shuttle
38
- @test sol. status == :max_iter
37
+ @test ( sol. status == :infeasible ) || (sol . status == : max_iter)
39
38
else
40
39
@test sol. status == :first_order
41
40
end
You can’t perform that action at this time.
0 commit comments