egg changed the topic of #principia to: Logs: https://esper.irclog.whitequark.org/principia | <scott_manley> anyone that doubts the wisdom of retrograde bop needs to get the hell out | https://xkcd.com/323/ | <egg> calculating the influence of lamont on Pluto is a bit silly…
<queqiao-->
Reply to "egg: I would think automatic differentiation cannot even begin to be applied to the function a..."
<queqiao-->
<lamont> You can't do AD on an IVP problem integrated with an ODE solver, but you can numerically integrate the gradient/jacobian with the ODE solver.
<queqiao-->
<lamont> I did it here for the kepler two body problem:
<queqiao-->
<lamont> I don't seem to have the bv78.m integrator kicking around any more so that'll fail, but I think the rest of it should be there. The stm2.m file is the analytic precise solution to the problem which should be "ground truth". Jacobianest is a matlab library for precise numerical finite differentiation (but it is super slow). I've forgotten what all the incantations in jacobian_matlab() are doing...
<queqiao-->
<lamont> Of course I just started at PVG for 2 years after figuring that out and never bothered to implemented it, and just went with collocation instead
<queqiao-->
<lamont> Yeah i've got dual numbers and operator overloading in C# implemented in MJ already, but getting more 'transparent' ForwardDiff.jl functionality with automatically running through all the variables with chunking, etc would take some more effort and that's where the better payoff is.
<queqiao-->
<lamont> So, @ISO i've got the collocation solver working fairly well in MJ so far, but it is at least 10x as slow as PVG. I'm definitely going to have to switch to SCP at some point.
<queqiao-->
<ISO> Hmm. I have a little bit of code I can share for SCP in Julia but it's quite entangled with other things (I typically work with low thrust trajectories once in space). Just a small question here, what solver do you use for the collocation? Is it an SQP problem?