Convex Optimization for Trajectory Generation: A Tutorial on Reliable Onboard Guidance
Introduction
Autonomous vehicles, ranging from planetary landers and delivery drones to orbital robots, face a critical challenge: they must compute safe, dynamically feasible trajectories in real-time. In safety-critical applications, a failure to generate a valid path can lead to catastrophic loss of the vehicle or human life. This task is further complicated by the fact that these vehicles often operate on computationally constrained, radiation-hardened hardware, such as the decades-old CPUs used on Mars rovers.
Mathematically, trajectory generation is framed as an optimal control problem. However, real-world physics—such as aerodynamic drag, obstacle avoidance, and minimum-thrust constraints—render these problems non-convex. Traditional non-convex solvers are often too computationally heavy and lack the deterministic convergence guarantees required for flight-critical software. This tutorial explores how to bridge this gap by reformulating non-convex problems into tractable convex ones using three primary algorithms: Lossless Convexification (LCvx), SCvx, and GuSTO.
The Control Architecture
Trajectory generation does not exist in a vacuum; it is a core component of a larger guidance, navigation, and control (GNC) system. As illustrated in the control loop below, trajectory generation processes input data to create a reference path, which is then managed by feedback control systems to ensure the physical system follows the intended course.
Methodology: Bridging the Non-Convex Gap
The paper synthesizes years of research into two main strategies for handling non-convexity:
- Lossless Convexification (LCvx): This "surgical" approach is highly effective for specific classes of problems, such as rocket landing. It involves relaxing non-convex constraints (e.g., replacing a minimum engine thrust requirement with a slack variable) to create a convex problem. Using Pontryagin’s Maximum Principle, LCvx proves that the optimal solution to the relaxed problem will naturally satisfy the original non-convex constraints, finding a global optimum in a single computational pass.
- Sequential Convex Programming (SCP): For more general problems where LCvx does not apply, SCP serves as a robust "sledgehammer." It iteratively linearizes non-convex dynamics and constraints around a current reference trajectory. Modern variants like SCvx and GuSTO introduce safeguards like "virtual controls" and trust regions to prevent mathematical issues like artificial infeasibility, guiding the solver toward feasible, locally optimal trajectories.
The Significance of Convexity
The fundamental insight of this work is that the boundary between "easy" and "hard" optimization is defined by convexity, not linearity. A set is convex if, for any two points within the set, the line segment connecting them also lies entirely within the set.
By framing trajectory generation as a convex optimization problem, engineers gain access to solvers with polynomial-time complexity. This provides a mathematical guarantee that the solver will return a solution within a predictable timeframe—a "safety net" essential for autonomous flight.
Evaluation and Results
The algorithms were evaluated across three distinct simulated environments:
- Planetary Rocket Landing: LCvx successfully computed globally optimal, minimum-fuel trajectories for a 3-DoF model in a single shot.
- Quadrotor Navigation: SCP methods successfully navigated obstacle fields, transforming impossible straight-line initial guesses into feasible paths.
- Space Station Free-Flyer: In a complex 6-DoF environment (modeled after the ISS Astrobee), the solvers handled over 2,000 variables, converging in just a few seconds.
Across these tests, SCP algorithms typically converged in approximately 15 iterations. The speed and reliability demonstrated make these methods viable for onboard execution on low-power aerospace processors.
Conclusion and Future Outlook
While powerful, these methods have limitations. LCvx requires specific mathematical structures, and SCP methods only guarantee local optimality. Furthermore, numerical stability is highly sensitive to variable scaling. Future research aims to extend LCvx to hybrid systems with discrete logic and to improve the theoretical convergence guarantees of SCP in stochastic or uncertain environments. Despite these challenges, convex optimization remains the most promising path toward truly autonomous and reliable robotic exploration.
Summary updated