I think I'm pretty much at 2b now

This commit is contained in:
Connor
2021-09-12 19:25:40 -06:00
parent 9de9af2dde
commit e83a705e77
8 changed files with 81 additions and 60 deletions

View File

@@ -8,7 +8,7 @@
phase1 = Phase("Earth",
"Mars",
3600*24*365*1.5,
3600*24*365*1.85,
[1., 0.3, 0.],
[3., 3., 0.])
@@ -18,8 +18,12 @@
[2., 3.7416573867739413, 0.],
[0.3, 1., 0.])
inner_loop(DateTime(2024,3,5), sc, [phase1, phase2], verbose=true, mbh_specs=(5,100))
result = inner_loop(DateTime(2024,3,5),
sc,
[phase1, phase2],
verbose=true,
mbh_specs=(5,50,100))
@test true
@test result == "One path did not converge"
end

View File

@@ -1,5 +1,7 @@
@testset "Monotonic Basin Hopping" begin
using PlotlyJS, NLsolve
println("Testing Monotonic Basin Hopper")
# Initial Setup
@@ -32,7 +34,8 @@
prop_time,
n,
num_iters=5,
patience_level=50,
search_patience_lim=50,
drill_patience_lim=100,
verbose=true)
# Test and plot

View File

@@ -14,11 +14,11 @@ end
# Tests
@testset "All Tests" begin
# include("spacecraft.jl")
# include("plotting.jl")
# include("inner_loop/laguerre-conway.jl")
# include("inner_loop/propagator.jl")
# include("inner_loop/find_closest.jl")
include("spacecraft.jl")
include("plotting.jl")
include("inner_loop/laguerre-conway.jl")
include("inner_loop/propagator.jl")
include("inner_loop/find_closest.jl")
include("inner_loop/monotonic_basin_hopping.jl")
include("inner_loop/inner_loop.jl")
end