04Embedded optimisation for space systems
Why spacecraft increasingly solve an optimisation problem in flight rather than follow a trajectory computed on the ground, and what has to be true before one is allowed to fly.
T minus 00:08:00 THE SHIFT
For most of spaceflight, the trajectory was computed on the ground and uploaded. The spacecraft followed it. That works while the world matches the plan, and it fails the moment it does not: a target that has drifted, a thruster that underperforms, a landing site that turns out to be strewn with boulders.
Embedded optimisation replaces the stored trajectory with a problem statement. The vehicle carries the objective, the constraints and a solver, and works out what to do from where it actually is. The appeal is obvious. The difficulty is that a solver on a spacecraft has to return an answer every time, within a fixed budget, on a processor a laptop would embarrass.
T minus 00:05:00 WHAT MAKES IT POSSIBLE
Convexity. A convex problem has one minimum, and interior-point methods reach it in a predictable number of iterations. That predictability is the whole argument: you can state a worst-case solve time and defend it, which you cannot do for a general non-linear search.
Lossless convexification. Some genuinely non-convex constraints, such as a thruster that must fire between a minimum and a maximum or not at all, can be relaxed into convex ones in a way that provably does not change the answer. The relaxed problem’s optimum is the original problem’s optimum. This is what made powered-descent guidance solvable in real time.
Successive convexification. Where the problem cannot be made convex outright, it is linearised about a reference and solved repeatedly, each solution becoming the next reference, with a trust region to stop it wandering. Most practical descent and rendezvous guidance now works this way.
Code generation. A solver generated for one specific problem structure, with no dynamic memory allocation and no branching on data, can be certified in a way a general-purpose library cannot. Because the dimensions and the sparsity pattern are fixed when the code is generated, the memory footprint is known at compile time, the loop bounds are constant, and the linear algebra reduces to a fixed sequence of operations. What the reviewer gets is flat, readable source that can be checked against a coding standard line by line, rather than a templated library whose control flow depends on the data it is handed.
T minus 00:02:00 THE HARD PART
An optimiser that is usually fast is not a flight system. What makes it one is a bound you can defend to a reviewer: this problem, this processor, this many iterations, this worst case, and a defined answer for what happens if the problem turns out infeasible.
This is the area we work in directly. Our capabilities are here.
T minus 00:00:20 SOURCES
Boyd, Stephen, and Lieven Vandenberghe. Convex Optimization. Cambridge: Cambridge University Press, 2004. Full text.
Açıkmeşe, Behçet, and Scott R. Ploen. “Convex Programming Approach to Powered Descent Guidance for Mars Landing.” Journal of Guidance, Control, and Dynamics 30, no. 5 (2007): 1353–1366.
Açıkmeşe, Behçet, John M. Carson and Lars Blackmore. “Lossless Convexification of Nonconvex Control Bound and Pointing Constraints of the Soft Landing Optimal Control Problem.” IEEE Transactions on Control Systems Technology 21, no. 6 (2013): 2104–2113.
Blackmore, Lars, Behçet Açıkmeşe, and Daniel P. Scharf. “Minimum-Landing-Error Powered-Descent Guidance for Mars Landing Using Convex Optimization.” Journal of Guidance, Control, and Dynamics 33, no. 4 (2010): 1161–1171.
Malyuta, Danylo, Taylor P. Reynolds, Michael Szmuk, Thomas Lew, Riccardo Bonalli, Marco Pavone and Behçet Açıkmeşe. “Convex Optimization for Trajectory Generation: A Tutorial on Generating Dynamically Feasible Trajectories Reliably and Efficiently.” IEEE Control Systems Magazine 42, no. 5 (2022): 40–113.
Mattingley, Jacob, and Stephen Boyd. “CVXGEN: A Code Generator for Embedded Convex Optimization.” Optimization and Engineering 13, no. 1 (2012): 1–27.
Rawlings, James B., David Q. Mayne and Moritz M. Diehl. Model Predictive Control: Theory, Computation, and Design. 2nd ed. Madison, Wisconsin: Nob Hill Publishing, 2017. Book site.