Math 2.0

Calculus of variations and optimal control; optimization Definition

Direct collocation

Builds on Trajectory optimizationPolynomial interpolationRunge–Kutta methods

Definition

Consider a trajectory optimization problem on a fixed interval [t0,tf][t_0, t_f]: minimise ϕ(x(tf))+∫t0tfL(x,u,t) dt\phi(x(t_f)) + \int_{t_0}^{t_f} L(x, u, t) \, dt subject to x′=f(x,u,t)x' = f(x, u, t), path constraints c(x,u,t)≤0c(x, u, t) \le 0 and boundary conditions b(x(t0),x(tf))=0b(x(t_0), x(t_f)) = 0. Choose a mesh t0=τ0<τ1<⋯<τN=tft_0 = \tau_0 < \tau_1 < \cdots < \tau_N = t_f and an integer s≥1s \ge 1. On each interval [τk,τk+1][\tau_k, \tau_{k+1}] choose ss collocation points τk≤τk,1<⋯<τk,s≤τk+1\tau_k \le \tau_{k,1} < \cdots < \tau_{k,s} \le \tau_{k+1}. The direct collocation method replaces the problem by the following finite nonlinear program.

  1. The unknowns are the states xkx_k at the mesh points and the controls at the collocation points. On each interval the state is a polynomial pkp_k of degree at most ss with pk(τk)=xkp_k(\tau_k) = x_k.
  2. The dynamics are imposed only at the collocation points: pk′(τk,j)=f(pk(τk,j),u(τk,j),τk,j)p_k'(\tau_{k,j}) = f(p_k(\tau_{k,j}), u(\tau_{k,j}), \tau_{k,j}) for all kk and jj, and the pieces join continuously, pk(τk+1)=xk+1p_k(\tau_{k+1}) = x_{k+1}.
  3. The path constraints hold at the collocation points and the boundary conditions at x0x_0 and xNx_N. The integral of LL becomes a quadrature sum.

The solution of this program is an approximate optimal trajectory.

Remarks

Each choice of collocation points corresponds to an implicit Runge–Kutta method; the state on each interval is a polynomial interpolant of its values. With s=2s = 2 and the endpoints τk,τk+1\tau_k, \tau_{k+1} as collocation points, clause 2 becomes the trapezoidal rule xk+1−xk=hk2(f(xk,uk,τk)+f(xk+1,uk+1,τk+1))x_{k+1} - x_k = \frac{h_k}{2} \left( f(x_k, u_k, \tau_k) + f(x_{k+1}, u_{k+1}, \tau_{k+1}) \right) with hk=τk+1−τkh_k = \tau_{k+1} - \tau_k. Hermite–Simpson collocation uses the endpoints and the midpoint with a cubic state. The nonlinear program is large but sparse, and it is usually solved by sequential quadratic programming or by interior-point methods.

Example: minimise ∫0112u2 dt\int_0^1 \frac{1}{2} u^2 \, dt with x′=ux' = u, x(0)=0x(0) = 0, x(1)=1x(1) = 1, using trapezoidal collocation on a uniform mesh of step h=1/Nh = 1/N. The program is: minimise ∑k=0N−1h4(uk2+uk+12)\sum_{k=0}^{N-1} \frac{h}{4} (u_k^2 + u_{k+1}^2) subject to xk+1−xk=h2(uk+uk+1)x_{k+1} - x_k = \frac{h}{2} (u_k + u_{k+1}), x0=0x_0 = 0, xN=1x_N = 1. The choice uk=1u_k = 1, xk=khx_k = k h satisfies all constraints. It also satisfies the optimality conditions, with all multipliers of the dynamics constraints equal to one constant (11 or −1-1, by sign convention). It reproduces the exact solution u=1u = 1, x(t)=tx(t) = t at the grid points.

Non-example: direct single shooting integrates the dynamics forward from a guessed control and optimises only over the control values. It is not collocation, because the states are not unknowns of the program.

Reading path

To understand this page from the ground up, read these 4 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. Polynomial interpolation concept
  2. Runge–Kutta methods concept
  3. Trajectory optimization concept
  4. Direct collocation definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Collocation_method
About this page
TagDT45YNKWSQ
URIm2://DT45YNKWSQ
Kinddefinition
WritingW0 stub
MSC49M37, 49M25, 65L60
DefinesDirect collocation
UsesTrajectory optimization, Polynomial interpolation, Runge–Kutta methods

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.