# Gauss pseudospectral method

The Gauss pseudospectral method (GPM), one of many topics named after Carl Friedrich Gauss, is a direct transcription method for discretizing a continuous optimal control problem into a nonlinear program (NLP). The Gauss pseudospectral method differs from several other pseudospectral methods in that the dynamics are not collocated at either endpoint of the time interval. This collocation, in conjunction with the proper approximation to the costate, leads to a set of KKT conditions that are identical to the discretized form of the first-order optimality conditions. This equivalence between the KKT conditions and the discretized first-order optimality conditions leads to an accurate costate estimate using the KKT multipliers of the NLP.

## Description

The method is based on the theory of orthogonal collocation where the collocation points (i.e., the points at which the optimal control problem is discretized) are the Legendre–Gauss (LG) points. The approach used in the GPM is to use a Lagrange polynomial approximation for the state that includes coefficients for the initial state plus the values of the state at the N LG points. In a somewhat opposite manner, the approximation for the costate (adjoint) is performed using a basis of Lagrange polynomials that includes the final value of the costate plus the costate at the N LG points. These two approximations together lead to the ability to map the KKT multipliers of the nonlinear program (NLP) to the costates of the optimal control problem at the N LG points PLUS the boundary points. The costate mapping theorem that arises from the GPM has been described in several references including two PhD theses and journal articles that include the theory along with applications

## Background

Pseudospectral methods, also known as orthogonal collocation methods, in optimal control arose from spectral methods which were traditionally used to solve fluid dynamics problems. Seminal work in orthogonal collocation methods for optimal control problems date back to 1979 with the work of Reddien and some of the first work using orthogonal collocation methods in engineering can be found in the chemical engineering literature. More recent work in chemical and aerospace engineering have used collocation at the Legendre–Gauss–Radau (LGR) points. Within the aerospace engineering community, several well-known pseudospectral methods have been developed for solving optimal control problems such as the Chebyshev pseudospectral method (CPM) the Legendre pseudospectral method (LPM) and the Gauss pseudospectral method (GPM). The CPM uses Chebyshev polynomials to approximate the state and control, and performs orthogonal collocation at the Chebyshev–Gauss–Lobatto (CGL) points. An enhancement to the Chebyshev pseudospectral method that uses a Clenshaw–Curtis quadrature was developed. The LPM uses Lagrange polynomials for the approximations, and Legendre–Gauss–Lobatto (LGL) points for the orthogonal collocation. A costate estimation procedure for the Legendre pseudospectral method was also developed. Recent work shows several variants of the standard LPM, The Jacobi pseudospectral method is a more general pseudospectral approach that uses Jacobi polynomials to find the collocation points, of which Legendre polynomials are a subset. Another variant, called the Hermite-LGL method uses piecewise cubic polynomials rather than Lagrange polynomials, and collocates at a subset of the LGL points.