Additional display functions and section 6 draft done

This commit is contained in:
Connor
2022-02-20 22:10:56 -07:00
parent 472662fb60
commit 700f7e28cf
169 changed files with 810 additions and 944 deletions

View File

@@ -20,7 +20,12 @@ function easy_cost(m::Union{Mission, Mission_Guess}, C3::Float64, v∞::Float64)
norm_mass = (m.start_mass - prop(m)[7]) / m.start_mass
norm_C3 = ( m.launch_v∞ m.launch_v∞ ) / C3
norm_v∞ = norm(m.phases[end].v∞_in) / v∞
return 3norm_mass + norm_C3# + norm_v∞
tof = 0.0
for phase in m.phases
tof += phase.tof
end
tof = tof/(20Thesis.year)
return 3norm_mass + norm_C3 + tof
end
sc = Sc("mySat", 200., 3200., 0.00025, 1, 1.0)
@@ -56,7 +61,7 @@ end
log(_::Nothing, _::Vector{Mission}, _::Vector{Body}) = println("No Mission Found...")
planets = [Earth, Venus, Venus, Jupiter, Saturn]
planets = [Earth, Mars, Mars, Jupiter, Saturn]
best, archive = mbh(planets)
log(best, archive, planets)