IT WORKS WITH 5 PHASES!!!!
This commit is contained in:
@@ -23,7 +23,8 @@
|
|||||||
search_patience=sp, drill_patience=dp, verbose=true)
|
search_patience=sp, drill_patience=dp, verbose=true)
|
||||||
|
|
||||||
# Again, we're going to test a simple case first
|
# Again, we're going to test a simple case first
|
||||||
# This one seems to converge really easily, so we don't run it much
|
# This one seems to converge really easily, so we don't search much
|
||||||
|
# For all of these, this is a test, not actual optimization, so we don't drill much either
|
||||||
launch_window = DateTime(1992,11,1), DateTime(1992,12,1)
|
launch_window = DateTime(1992,11,1), DateTime(1992,12,1)
|
||||||
latest_arrival = DateTime(1993,6,1)
|
latest_arrival = DateTime(1993,6,1)
|
||||||
planets = [ Earth, Venus ]
|
planets = [ Earth, Venus ]
|
||||||
@@ -42,4 +43,15 @@
|
|||||||
p = plot(best, title="MBH Test Solution")
|
p = plot(best, title="MBH Test Solution")
|
||||||
savefig(p,"../plots/mbh_test_2_phase.html")
|
savefig(p,"../plots/mbh_test_2_phase.html")
|
||||||
|
|
||||||
|
# Now for a real stress test - the old ten-year, 5-phase Jovian mission
|
||||||
|
# This is known to have a solution... tough to find though
|
||||||
|
# I'll give it a tight launch window to be nice
|
||||||
|
planets = [Earth, Venus, Earth, Mars, Earth, Jupiter]
|
||||||
|
launch_window = DateTime(2023,4,1), DateTime(2023,7,1)
|
||||||
|
latest_arrival = DateTime(2033,1,1)
|
||||||
|
best, archive = mbh(planets, launch_window, latest_arrival, 100, 3)
|
||||||
|
@test typeof(best) == Mission
|
||||||
|
p = plot(best, title="MBH Test Solution")
|
||||||
|
savefig(p,"../plots/mbh_test_5_phase.html")
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -14,9 +14,9 @@ catch
|
|||||||
end
|
end
|
||||||
|
|
||||||
@testset "All Tests" begin
|
@testset "All Tests" begin
|
||||||
include("plotting.jl")
|
# include("plotting.jl")
|
||||||
include("inner_loop/laguerre-conway.jl")
|
# include("inner_loop/laguerre-conway.jl")
|
||||||
include("inner_loop/propagator.jl")
|
# include("inner_loop/propagator.jl")
|
||||||
include("inner_loop/nlp_solver.jl")
|
# include("inner_loop/nlp_solver.jl")
|
||||||
include("inner_loop/monotonic_basin_hopping.jl")
|
include("inner_loop/monotonic_basin_hopping.jl")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user