Orthogonal Collocation and Gaussian Quadrature
This section introduces orthogonal collocation, polynomial state approximations, Gaussian quadrature, and Legendre–Gauss (LG), Legendre–Gauss–Radau (LGR), and Legendre–Gauss–Lobatto (LGL) collocation points.
From Euler Collocation to General Collocation¶
Euler collocation enforces
or equivalently
The left-hand side approximates the derivative while the right-hand side evaluates the dynamics at the same point. This is the fundamental idea of collocation.
Polynomial Approximation¶
Over each mesh interval,
where are basis polynomials.
Differentiating,
The derivative polynomial has degree .
Collocation Conditions¶
Choose collocation points inside each mesh interval,
At every collocation point,
Because the derivative polynomial has degree , these provide equations. One additional condition is required.
Continuity Condition¶
The missing equation is supplied by continuity:
For the first interval,
Thus every interval has exactly the correct number of equations.
Euler as a Special Case¶
Euler forward corresponds to:
a linear state approximation,
a constant derivative approximation,
one collocation point per interval,
one continuity condition.
Quadrature¶
The cost integral
is approximated by
where are quadrature weights satisfying
Choosing Optimal Points¶
Rather than equally spaced points, Gaussian quadrature chooses both the locations and weights to minimize integration error.
LGL Points¶
Endpoints are included:
Interior points are roots of
LGL exactly integrates polynomials of degree
LGR Points¶
Only the left endpoint is fixed. The points are roots of
LGR exactly integrates polynomials of degree
LG Points¶
Neither endpoint is fixed. The points are roots of
LG exactly integrates polynomials of degree
Accuracy Comparison¶
| Method | Endpoints Included | Exact Polynomial Degree |
|---|---|---|
| LGL | Both | |
| LGR | One | |
| LG | None |
Relaxing endpoint constraints increases quadrature accuracy.
Orthogonal Collocation¶
Legendre polynomials satisfy
Because of this orthogonality, collocation at Gaussian points yields highly accurate numerical integration and transcription schemes.
Connection to Optimal Control¶
Within each mesh interval:
Approximate the state by a polynomial.
Differentiate the polynomial.
Enforce the dynamics at Gaussian collocation points.
Use Gaussian quadrature to approximate the integral cost.
Enforce continuity between neighboring mesh intervals.
This produces a sparse nonlinear programming problem.
Summary¶
Euler collocation is the simplest orthogonal collocation method.
Polynomial approximations replace piecewise linear approximations.
Continuity supplies the additional equation needed in each interval.
LG, LGR, and LGL differ only in endpoint constraints.
Gaussian quadrature dramatically improves integration accuracy.
These ideas form the basis of pseudospectral optimal-control methods.
Connection. The polynomial constructions used in orthogonal collocation rest on Legendre orthogonality, Lagrange interpolation, and exactness properties of Gaussian quadrature.