Math 2.0

Calculus of variations and optimal control; optimization Definition

Pseudospectral optimal control

Builds on Direct collocationTrajectory optimizationLagrange interpolationLegendre polynomials

Definition

Consider a trajectory optimization problem on [t0,tf][t_0, t_f] with dynamics x′=f(x,u,t)x' = f(x, u, t), cost ϕ(x(tf))+∫t0tfL(x,u,t) dt\phi(x(t_f)) + \int_{t_0}^{t_f} L(x, u, t) \, dt, and boundary conditions. Map the interval to [−1,1][-1, 1] by t=tf−t02τ+tf+t02t = \frac{t_f - t_0}{2} \tau + \frac{t_f + t_0}{2}. Let N≥2N \ge 2 and let −1=τ0<τ1<⋯<τN=1-1 = \tau_0 < \tau_1 < \cdots < \tau_N = 1 be the Legendre–Gauss–Lobatto nodes, where τ1,…,τN−1\tau_1, \dots, \tau_{N-1} are the zeros of PN′P_N' and PNP_N is the Legendre polynomial of degree NN. Let w0,…,wNw_0, \dots, w_N be the corresponding quadrature weights, and let ℓ0,…,ℓN\ell_0, \dots, \ell_N be the Lagrange basis polynomials of the nodes. Let DD be the (N+1)×(N+1)(N + 1) \times (N + 1) matrix with Dkj=ℓj′(τk)D_{kj} = \ell_j'(\tau_k). The Legendre pseudospectral method replaces the problem by the nonlinear program with unknowns x0,…,xN∈ℝnx_0, \dots, x_N \in \R^n and u0,…,uN∈ℝmu_0, \dots, u_N \in \R^m:

  1. minimise ϕ(xN)+tf−t02∑k=0NwkL(xk,uk,t(τk))\phi(x_N) + \frac{t_f - t_0}{2} \sum_{k=0}^N w_k L(x_k, u_k, t(\tau_k));
  2. subject to ∑j=0NDkjxj=tf−t02f(xk,uk,t(τk))\sum_{j=0}^N D_{kj} x_j = \frac{t_f - t_0}{2} f(x_k, u_k, t(\tau_k)) for k=0,…,Nk = 0, \dots, N;
  3. and to the boundary conditions on x0x_0 and xNx_N and the path constraints at the nodes.

The state is then approximated by x(τ)≈∑jxjℓj(τ)x(\tau) \approx \sum_j x_j \ell_j(\tau). Pseudospectral optimal control is the family of such methods, with Legendre, Chebyshev or other Gaussian nodes.

Remarks

It is direct collocation with one interval and the nodes of a Gaussian rule as collocation points. The Lobatto rule with N+1N + 1 nodes integrates polynomials of degree up to 2N−12N - 1 exactly. Variants use Legendre–Gauss nodes, which omit both endpoints, or Legendre–Gauss–Radau nodes, which omit one endpoint.

Example: N=2N = 2 gives P2′(τ)=3τP_2'(\tau) = 3\tau, so the nodes are −1,0,1-1, 0, 1, with weights 13,43,13\frac{1}{3}, \frac{4}{3}, \frac{1}{3} (Simpson's rule). The differentiation matrix is D=(−3/22−1/2−1/201/21/2−23/2).D = \begin{pmatrix} -3/2 & 2 & -1/2 \\ -1/2 & 0 & 1/2 \\ 1/2 & -2 & 3/2 \end{pmatrix}. For instance, the first row gives the derivative at −1-1 of the parabola through (−1,a)(-1, a), (0,b)(0, b), (1,c)(1, c), which is (−3a+4b−c)/2(-3a + 4b - c) / 2.

Non-example: collocation at equally spaced nodes with one global polynomial of high degree is not a pseudospectral method, and it suffers from the Runge phenomenon.

Reading path

To understand this page from the ground up, read these 5 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Direct collocation concept
  2. Lagrange interpolation concept
  3. Legendre polynomials concept
  4. Trajectory optimization concept
  5. Pseudospectral optimal control definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Pseudospectral_optimal_control
About this page
Tag8N5CYXWXDV
URIm2://8N5CYXWXDV
Kinddefinition
WritingW0 stub
MSC49M37, 49M25, 65M70
DefinesPseudospectral optimal control
UsesDirect collocation, Trajectory optimization, Lagrange interpolation, Legendre polynomials

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.