Time-Optimal Control & Switching Surfaces

Full phase-plane synthesis for bounded minimum-time control: the double integrator's one-switch proof, parabolic switching curve, exact feedback and travel time, plus harmonic-oscillator arcs, repeated switches, and tracking-coordinate translations.

Minimum-time control is the cleanest place to see how the maximum principle becomes feedback geometry. With no running penalty beyond elapsed time, the optimizer uses all available authority except at isolated switches. The hard part is not guessing “full throttle”; it is finding when to reverse it so the state reaches the target with the required terminal velocity.

Double integrator: problem and PMP #

Normalize the acceleration bound to one:

x˙1=x2,x˙2=u,∣u∣≤1,\dot x_1=x_2,\qquad \dot x_2=u,\qquad |u|\le1,

with initial state (x10,x20)(x_{10},x_{20}), target (0,0)(0,0), free terminal time, and

J=tf−t0=∫t0tf1 dt.J=t_f-t_0=\int_{t_0}^{t_f}1\,dt.

Using H=p1x2+p2u−1H=p_1x_2+p_2u-1, the costate equations are

p˙1=0,qquadp˙2=−p1.\dot p_1=0,qquad \dot p_2=-p_1.

Therefore

p1=c1,qquadp2(t)=c2−c1t.p_1=c_1,qquad p_2(t)=c_2-c_1t.

Hamiltonian maximization gives

u∗(t)=sgnp2(t)u^*(t)=\mathop{\mathrm{sgn}}p_2(t)

away from a zero of p2p_2. A nonzero affine function has at most one zero. If it vanished identically, then p1=p2=0p_1=p_2=0, violating nontriviality. Hence every normal time-optimal trajectory has at most one switch.

Constant-control phase curves #

On an interval with constant u∈{−1,+1}u\in\{-1,+1\},

dx2dx1=ux2.\frac{dx_2}{dx_1}=\frac{u}{x_2}.

Multiplying by x2x_2 and integrating gives

12x22=ux1+C,\frac12x_2^2=ux_1+C,

or

x22−2ux1=C.\boxed{x_2^2-2ux_1=C.}

The final arc must pass through the origin, so C=0C=0. If x2>0x_2>0, braking requires u=−1u=-1 and the final arc is x1=−x22/2x_1=-x_2^2/2. If x2<0x_2<0, braking requires u=+1u=+1 and the final arc is x1=x22/2x_1=x_2^2/2. Both branches are

s(x)=x1+12x2∣x2∣=0.\boxed{s(x)=x_1+\frac12x_2|x_2|=0.}

This is the switching curve.

Double-integrator time-optimal switching curve The phase plane contains two parabolic final arcs meeting at the origin. Example trajectories approach the curve under one saturated acceleration and then follow it to the origin under the opposite acceleration. x₁ x₂ s(x)=0 first bang arc first bang arc target
The first saturated arc drives the state to the switching parabola; the second uses the opposite acceleration and terminates at the origin with zero velocity.

Exact state-feedback law #

Off the switching curve, define

s(x)=x1+12x2∣x2∣.s(x)=x_1+\frac12x_2|x_2|.

The time-optimal feedback is

u∗(x)=−sgns(x),s(x)≠0.\boxed{u^*(x)=-\mathop{\mathrm{sgn}}s(x),\qquad s(x)\ne0.}

On s(x)=0s(x)=0 and away from the origin, take the final braking action

u∗(x)=−sgnx2.\boxed{u^*(x)=-\mathop{\mathrm{sgn}}x_2.}

At the origin the control can be set to zero. The on-curve clause matters because a generic implementation of sgn(0)\mathop{\mathrm{sgn}}(0) does not encode which parabolic branch leads to the target.

Switching time and minimum travel time #

Let

σ=sgns(x0)\sigma=\mathop{\mathrm{sgn}}s(x_0)

for an initial state off the switching curve. The first control is u1=−σu_1=-\sigma. Let its duration be τ\tau. At the switch,

x2s=x20−στ,x_{2s}=x_{20}-\sigma\tau,

x1s=x10+x20τ−12στ2.x_{1s}=x_{10}+x_{20}\tau-\frac12\sigma\tau^2.

The second control is u2=σu_2=\sigma, and the switch point must lie on its final arc:

x1s=12σx2s2.x_{1s}=\frac12\sigma x_{2s}^2.

Substitution produces

τ2−2σx20τ+12x202−σx10=0.\tau^2-2\sigma x_{20}\tau +\frac12x_{20}^2-\sigma x_{10}=0.

The physically valid root is

τ=σx20+12x202+σx10.\boxed{\tau=\sigma x_{20} +\sqrt{\frac12x_{20}^2+\sigma x_{10}}.}

At that instant,

x2s=−σ12x202+σx10.x_{2s}=-\sigma \sqrt{\frac12x_{20}^2+\sigma x_{10}}.

The final braking duration is ∣x2s∣|x_{2s}|, hence

T∗(x0)=σx20+212x202+σx10,s(x0)≠0.\boxed{T^*(x_0)=\sigma x_{20} +2\sqrt{\frac12x_{20}^2+\sigma x_{10}}, \qquad s(x_0)\ne0.}

If s(x0)=0s(x_0)=0, the state is already on a final arc and

T∗(x0)=∣x20∣.\boxed{T^*(x_0)=|x_{20}|.}

For an acceleration limit ∣u∣≤amax⁡|u|\le a_{\max}, replace the switching curve by

x1+x2∣x2∣2amax⁡=0x_1+\frac{x_2|x_2|}{2a_{\max}}=0

and scale each time formula consistently by amax⁡a_{\max}.

Worked state #

Take x0=(10,0)x_0=(10,0) and ∣u∣≤1|u|\le1. Then s=10s=10, so σ=1\sigma=1 and

τ=10,xs=(5,−10).\tau=\sqrt{10},\qquad x_s=(5,-\sqrt{10}).

The controller applies u=−1u=-1 for 10\sqrt{10} seconds, then u=+1u=+1 for another 10\sqrt{10} seconds. Thus

T∗=210.T^*=2\sqrt{10}.

Accelerating toward the origin until x1=0x_1=0 would be too late: the state would cross the origin with nonzero velocity. The switching parabola encodes the distance needed to cancel that velocity exactly.

Harmonic oscillator: circular arcs and repeated switches #

Consider

x˙1=x2,x˙2=−ω2x1+u,∣u∣≤umax⁡.\dot x_1=x_2, \qquad \dot x_2=-\omega^2x_1+u, \qquad |u|\le u_{\max}.

For a constant uu, shift the equilibrium to x1=u/ω2x_1=u/\omega^2. Direct differentiation shows that

Eu=x22+ω2(x1−uω2)2E_u=x_2^2+\omega^2 \left(x_1-\frac{u}{\omega^2}\right)^2

is constant. Each saturated arc is therefore an ellipse in (x1,x2)(x_1,x_2), or a circle in the scaled plane (ωx1,x2)(\omega x_1,x_2), centered at (u/ω,0)(u/\omega,0).

The costate satisfies

p˙1=ω2p2,p˙2=−p1,\dot p_1=\omega^2p_2, \qquad \dot p_2=-p_1,

and hence

p¨2+ω2p2=0.\ddot p_2+\omega^2p_2=0.

Thus

p2(t)=Acos⁡ωt+Bsin⁡ωt,p_2(t)=A\cos\omega t+B\sin\omega t,

and u∗=umax⁡sgnp2u^*=u_{\max}\mathop{\mathrm{sgn}}p_2. Consecutive simple zeros of p2p_2 are separated by π/ω\pi/\omega. Unlike the double integrator, the switching function can cross zero repeatedly, so the global switching set is a piecewise chain of alternating constant-control arcs.

Alternating constant-input arcs of a bounded oscillator Two shifted circular families correspond to positive and negative saturated input. A trajectory switches between arcs centered at the two forced equilibria. u=−uₘₐₓ center u=+uₘₐₓ center switch switch ωx₁ x₂
With constant saturated input, the oscillator rotates around one of two shifted equilibria. Switching transfers the state to an arc centered at the opposite equilibrium.

Tracking is a coordinate translation, when the reference is an equilibrium #

Suppose the desired constant state xrx_r is maintained by uru_r:

0=Axr+Bur.0=Ax_r+Bu_r.

With e=x−xre=x-x_r and v=u−urv=u-u_r,

e˙=Ae+Bv.\dot e=Ae+Bv.

The regulator switching geometry applies in ee coordinates, while the physical control is u=v+uru=v+u_r. The admissible set also shifts: if u∈[umin⁡,umax⁡]u\in[u_{\min},u_{\max}], then

v∈[umin⁡−ur, umax⁡−ur].v\in[u_{\min}-u_r,\,u_{\max}-u_r].

If that interval is asymmetric, the two constant-control arcs have different curvature and duration. Merely drawing the origin-centered symmetric curve around the reference would be wrong.

Implementation limits #

The ideal feedback is discontinuous. Real actuators introduce sampling, delay, rate limits, deadband, and unmodeled modes. A naive sampled sign law can chatter around the curve. A boundary layer or hysteresis may reduce switching, but it changes the exact minimum-time problem and creates a nonzero terminal region. Its width must be chosen from actuator and estimation limits, then the achieved time and terminal error must be verified on the real constrained model.

Sources

  1. bookOptimal Control Methods: Lectures 2–6pdfnotes
  2. bookCalculus of Variations and Optimal Control Theory: A Concise Introductionpdfnotes
  3. paperTheory of Optimal Processes. I. The Maximum Principlepdfnotes

Searches titles, aliases, headings, summaries, and full text.↑↓ move ↵ open esc close