IT WORKS WITH 5 PHASES!!!!

This commit is contained in:
Connor
2021-10-12 00:50:45 -06:00
parent a2c1aedc08
commit a13e71860b
2 changed files with 17 additions and 5 deletions

View File

@@ -23,7 +23,8 @@
search_patience=sp, drill_patience=dp, verbose=true)
# 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)
latest_arrival = DateTime(1993,6,1)
planets = [ Earth, Venus ]
@@ -42,4 +43,15 @@
p = plot(best, title="MBH Test Solution")
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