Bang-Bang Optimal Control
A minimum fuel problem that leads to a bang-bang optimal control.
This problem serves as an example of bang-bang control which often arise when the control input u(t) appears linearly in the cost function. We consider a single double integrator moving in one dimension which has two control inputs with end-point constraints. minJ=∫tf0u(t)dts.t.˙x(t)=v(t)˙v(t)=−Gv(t)+u(t)−b(t)0≤u(t)≤umax0≤b(t)≤bmaxx(0)=x0,x(tf)=xfv(0)=0,v(tf)=0 In words, x(t) is the position, v(t) is the velocity, u(t) is the forward force while b(t) is the braking force. We assume that x0<xf. The vehicle starts at some position x0 at rest and arrives at its destination, xf, and stops.
As usual, we write the Hamiltonian of the optimal control problem. H=u(t)+λx(t)v(t)−Gλv(t)v(t)+λv(t)u(t)−λv(t)b(t)+μu(t)u(t)+μb(t)b(t) We first write the stationarity conditions, ∂H∂u=1+λv(t)+μu(t)=0→μu(t)=−1−λv(t) and ∂H∂b=−λv(t)+μb(t)=0→μb(t)=λv(t) The complementarity condition determines when we are accelerating or braking or neither. μu(t){≤0,u(t)=0=0,0<u(t)<umax≥0,u(t)=umax and μb(t){≤0,b(t)=0=0,0<b(t)<bmax≥0,b(t)=bmax The co-position is governed by the dynamics, ˙λx(t)=−∂H∂x=0→λx(t)=λx(tf) which is constant and the co-velocity state is governed by the dynamics, ˙λv(t)=−∂H∂v=−λx(t)+Gλv(t)→λv(t)=eG(tf−t)λv(tf)+∫tfteG(t−τ)λx(tf)dτ=eG(tf−t)λv(tf)+λx(tf)G[1−eG(t−tf)] Note that λv(t) is an exponential function, that is, there does not exist a finite time interval over which λv(t)=0. This means that μu(t)=0 and μb(t)=0 only for single values of t. From the complementarity conditions, this quick switching implies jumps between the minimum input and maximum input. The switching structure we hypothesize is the following: