Small fix

This commit is contained in:
Connor
2021-09-12 19:43:28 -06:00
parent e83a705e77
commit 926233f1c9

View File

@@ -32,24 +32,6 @@ function nlp_solve(start::Vector{Float64},
F[1:6, 1] .= prop_nlsolve(tanh.(x), start, craft, μ, tf-t0) .- final F[1:6, 1] .= prop_nlsolve(tanh.(x), start, craft, μ, tf-t0) .- final
end end
# return nlsolve(f!, atanh.(x0), ftol=tol, autodiff=:forward, iterations=num_iters) return nlsolve(f!, atanh.(x0), ftol=tol, autodiff=:forward, iterations=num_iters)
return nlsolve(f!, atanh.(x0), ftol=tol, iterations=num_iters)
# p = addprocs(1)
# response = Channel(1)
# @async put!(response, remotecall_fetch(nlsolve, 2, f!, atanh.(x0), ftol=tol, autodiff=:forward, iterations=1_000))
# start=time()
# while !isready(response) && (time() - start) < 30.
# sleep(0.1)
# end
# if isready(response)
# return fetch(response)
# else
# rmprocs(p);
# return "error"
# end
end end