Pseudospectral Method
Author: Tianjiang Shuo
Website: https://cislunarspace.cn
Definition
A pseudospectral method (also called spectral collocation) is a family of direct methods in which the whole time interval is mapped to and a single high-order global Lagrange polynomial approximates state and control . Dynamics are enforced at orthogonal nodes. Nodes are placed at the roots of Legendre polynomials (or roots + endpoints); is typically 20–100 per phase — far fewer total nodes than direct collocation. Spectral (exponential) convergence holds for any smooth solution (Canuto et al. 1988; Fornberg 1998).
Mathematical form
Map continuous time to :
Take orthogonal nodes . State values are NLP variables; the state approximation is
The derivative at the nodes is given by a single differentiation matrix :
The pseudospectral defect constraint is
Unlike direct collocation, the Jacobian here is dense — every defect couples to all state variables. This is the price of the global polynomial.
Node families
| Method | Nodes | Notes |
|---|---|---|
| LPM (Lobatto) | LGL: roots of plus endpoints | Boundary weighting needed for costate mapping at endpoints |
| GPM (Gauss) | LG: roots of (no endpoints) | Cleanest costate mapping; endpoints become extra variables (Benson 2005; Huntington 2007) |
| RPM (Radau) | LGR: roots of (one endpoint) | More stable integration structure; flipped Radau (FRPM) preferred in SCP for sparsity (Garg et al. 2011) |
The covector mapping theorem differs in form across the three: GPM and RPM KKT multipliers map directly to the continuous costate, while LPM requires additional endpoint weighting (Benson et al. 2006; Garg et al. 2010). This is the main reason recent tools (GPOPS-II) moved to RPM/FRPM.
A separate family on Chebyshev nodes — Chebyshev pseudospectral method (CPM) — has closed-form nodes and differentiation matrix, hence higher computational efficiency; conformal mapping plus barycentric rational interpolation can significantly mitigate the ill-conditioning of the standard CPM differentiation matrix (Kosloff & Tal-Ezer 1993; Cai et al. 2016).
Spectral convergence and hp-adaptivity
Spectral convergence: for analytic solutions, error decays like with — faster than any polynomial order. But for non-smooth solutions (e.g. bang-bang controls in fuel-optimal problems), global polynomials exhibit Gibbs oscillations and spectral convergence is lost.
The engineering remedy is hp-adaptivity:
- h-type: split the phase at control discontinuities; pseudospectral discretization on each sub-phase with state/control continuity across.
- p-type: increase node count per segment based on error estimates.
GPOPS-II and SPARTAN implement hp-adaptivity. For strongly bang-bang problems, the flipped Radau + switching-time extraction of Hofmann & Topputo (2021) locates switching instants precisely, then optimizes with piecewise-constant control.
Covector mapping theorem
The central theoretical result is the covector mapping theorem (Benson 2005; Benson, Huntington, Rao 2006): under an appropriate linear transformation, the KKT multipliers of the GPM/RPM discretized NLP correspond exactly to the continuous costate at the nodes.
Practical consequences:
- Pseudospectral solutions yield a costate time history without analytic derivation of the maximum principle.
- Hamiltonian conservation becomes a built-in accuracy check.
- Pseudospectral costates seed indirect methods or homotopy methods — pseudospectral-indirect hybrid solves (Cai et al. 2016).
Tools
| Tool | Algorithm | Reference |
|---|---|---|
| GPOPS-II | hp-adaptive LGR + Ipopt/SNOPT | Patterson & Rao 2014, MATLAB |
| DIDO | Legendre pseudospectral | Ross et al., MATLAB |
| GPOPS (original) | Gauss pseudospectral | Rao et al. 2010 |
| SPARTAN | flipped Radau | Sagliano 2017 |
| CasADi + custom | arbitrary | symbolic framework |
Applications
- Libration-point transfers. Low-thrust Halo ↔ NRHO and within-family Halo transfers — pseudospectral methods are a top choice thanks to low node counts and accurate costates (Liu et al. 2025; Kayama et al. 2022).
- Multi-phase problems. Launch / stage separation / orbit insertion / re-entry are handled naturally via phase-event constraints in GPOPS-II.
- As the discretization back-end of SCP. In sequential convex programming, FRPM is preferred over GPM for its superior sparsity (Hofmann & Topputo 2021).
- When not to use. Strongly bang-bang fuel-optimal problems without hp-refinement suffer Gibbs oscillations; rapidly changing states (e.g. 6DOF rotational-translational coupling) are better served by direct collocation.
Related concepts
- Direct Methods
- Direct Collocation
- Sequential Convex Programming (SCP)
- Costate Variable
- Pontryagin's Maximum Principle
- Homotopy Method
- Legendre-Clebsch Condition
References
- Benson, D. A. (2005). A Gauss pseudospectral transcription for optimal control. PhD thesis, MIT.
- Benson, D. A., Huntington, G. T., Thorvaldsen, T. P., & Rao, A. V. (2006). Direct trajectory optimization and costate estimation via an orthogonal collocation method. J. Guidance, Control, and Dynamics, 29(6), 1435–1440.
- Garg, D., Patterson, M. A., Hager, W. W., Rao, A. V., Benson, D. A., & Huntington, G. T. (2010). A unified framework for the numerical solution of optimal control problems using pseudospectral methods. Automatica, 46(11), 1843–1851.
- Garg, D., Patterson, M. A., Darby, C. L., Francolin, C., Huntington, G. T., Hager, W. W., & Rao, A. V. (2011). Direct trajectory optimization and costate estimation via a Radau pseudospectral method. Computational Optimization and Applications, 49(2), 335–358.
- Huntington, G. T. (2007). Advancement and analysis of a Gauss pseudospectral transcription for optimal control. PhD thesis, MIT.
- Darby, C. L., Hager, W. W., & Rao, A. V. (2011). An hp-adaptive pseudospectral method for solving optimal control problems. Optimal Control Applications and Methods, 32(4), 476–502.
- Patterson, M. A., & Rao, A. V. (2014). GPOPS-II. ACM Trans. Math. Softw., 41(1), 1:1–1:37.
- Fornberg, B. (1998). A Practical Guide to Pseudospectral Methods. Cambridge University Press.
- Canuto, C., Hussaini, M. Y., Quarteroni, A., & Zang, T. A. (1988). Spectral Methods in Fluid Dynamics. Springer.
- Kosloff, D., & Tal-Ezer, H. (1993). A modified Chebyshev pseudospectral method with time step restriction. J. Computational Physics, 104(2), 457–469.
- Cai, Z., et al. (2016). Bang-bang optimal control for differentially flat systems using mapped pseudospectral method and analytic homotopic approach. Optimal Control Applications and Methods.
- Hofmann, C., & Topputo, F. (2021). Rapid low-thrust trajectory optimization in deep space based on convex programming. J. Guidance, Control, and Dynamics.
- Sagliano, M. (2017). On the Radau pseudospectral method: theoretical and implementation advances. CEAS Space Journal, 9(3), 313–331.
