[Paper Review] Trajectory Optimization Algorithm Studies
This paper compares Differential Dynamic Programming (DDP) and Gauss Pseudospectral Optimal Control (GPOC) for trajectory optimization in nonlinear dynamical systems. DDP uses forward-backward passes to iteratively refine control sequences via local quadratic approximations, while GPOC transcribes optimal control problems into nonlinear programs using Legendre-Gauss-Lobatto collocation. For short horizons, DDP achieves lower control effort and faster convergence; for longer horizons, GPOC is more efficient but requires deeper problem structure insight.
In complex engineered systems, completing an objective is sometimes not enough. The system must be able to reach a set performance characteristic, such as an unmanned aerial vehicle flying from point A to point B, extit{under 10 seconds}. This introduces the notion of optimality, what is the most efficient, the fastest, the cheapest way to complete a task. This report explores the two pillars of optimal control, Bellman's Dynamic Programming and Pontryagin's Maximum Principle, and compares implementations of both theories onto simulated systems. Dynamic Programming is realized through a Differential Dynamic Programming Algorithm, where utilizes a forward-backward pass to iteratively optimize a control sequence and trajectory. The Maximum Principle is realized via Gauss Pseudospectral Optimal Control, where the optimal control problem is first approximated through polynomial basis functions, then solved, with optimality being achieved through the costate equations of the Maximum Principle. The results of the report show that, for short time Horizons, DDP can optimize quickly and can generate a trajectory that utilizes less control effort for the same problem formulation. On the other hand Pseudospectral methods can optimize faster for longer time horizons, but require a key understanding of the problem structure. Future work involves completing an implementation of DDP in a C++ code, and testing the speed of convergence for both methods, as well as extended the Pseudospectral Optimal Control framework in to the world of stochastic optimal control.
Motivation & Objective
- To compare the performance of Differential Dynamic Programming (DDP) and Gauss Pseudospectral Optimal Control (GPOC) in solving optimal control problems under complex dynamic and algebraic constraints.
- To evaluate the trade-offs between computational speed, convergence rate, and optimality of control effort across different time horizons.
- To assess the sensitivity of each method to discretization parameters, cost function weighting, and problem structure.
- To explore the feasibility of extending DDP and GPOC to stochastic optimal control and contact dynamics.
- To validate both methods on benchmark systems: double cart-pole and quadrotor, with realistic state and control constraints.
Proposed method
- Implement DDP using a forward-backward iterative scheme that linearizes the dynamics and cost function around a nominal trajectory, then computes feedback gains and improved control sequences.
- Apply Gauss Pseudospectral Optimal Control (GPOC) by transcribing the continuous optimal control problem into a nonlinear program using Legendre-Gauss-Lobatto collocation points.
- Use the Hamilton-Jacobi-Bellman equation as the theoretical foundation for DDP, deriving necessary conditions for optimality via dynamic programming.
- Leverage Pontryagin’s Maximum Principle to derive the costate equations that inform the optimality conditions in GPOC.
- Discretize time horizons into fixed intervals and solve both methods using sequential quadratic programming (SQP) solvers with gradient-based optimization.
- Incorporate state and control constraints into both frameworks by enforcing bounds and using penalty terms in the cost function.
Experimental results
Research questions
- RQ1How do DDP and GPOC compare in terms of convergence speed and final cost for short-horizon optimal control problems?
- RQ2What is the trade-off between control effort and computation time when using DDP versus GPOC across varying time horizons?
- RQ3How sensitive are DDP and GPOC to discretization time step size and cost function weighting parameters?
- RQ4In what scenarios does DDP outperform GPOC in terms of solution optimality, particularly regarding control effort and trajectory smoothness?
- RQ5Can GPOC achieve higher solution quality than DDP when control effort is penalized, even if it requires longer computation time?
Key findings
- For the double cart-pole system, DDP achieved a final cost of 0.3632 in 59 seconds, while GPOC reached a lower cost of 0.187 in 15 seconds, indicating GPOC's superior optimality when control effort is penalized.
- DDP utilized the full 4-second time horizon to swing up the pendulum, whereas GPOC reached the target faster and maintained the state with lower deviation, reflecting its ability to exploit early convergence.
- In the quadrotor experiment, DDP converged with a cost of 44.6182 in 41 seconds, while GPOC achieved a cost of 47.9891 in 18 seconds, demonstrating GPOC’s faster runtime despite higher cost.
- GPOC showed higher maximum and minimum control inputs than DDP, especially in the quadrotor case, indicating greater control activity to reach the target more quickly.
- DDP was highly sensitive to time step size and cost function weights, often failing to converge precisely to the target state, while GPOC enforced exact final state constraints more robustly.
- The cost trajectory for DDP exhibited oscillations during optimization, reflecting its iterative policy improvement process, while GPOC’s cost decreased monotonically, indicating stable convergence.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.