Example · Undergraduate

Minimize the final time $T$ subject to $\ddot{x} = u$, $\abs{u(t)} \leq 1$, $x(0) = 0$, $\dot{x}(0) = 0$, $x(T) = 1$, and $\dot{x}(T) = 0$.

Terms

TermThis exampleWhy
optimal control ✓ Moving a cart in minimum time with acceleration between $-1$ and $1$ is an optimal control problem with the bounded input $u$. The optimal input is “bang-bang”: $u = 1$ until $t = 1$, then $u = -1$ until the cart stops at $T = 2$.
calculus of variations ✗ Moving a cart in minimum time with acceleration between $-1$ and $1$ is not a calculus of variations problem, because the bound $\abs{\ddot{x}} \leq 1$ constrains the derivatives of the unknown function, and the optimal acceleration jumps from $1$ to $-1$, so the optimal position is not a smooth solution of an Euler–Lagrange equation.

Distinctions using this example

  • Calculus of variations vs. optimal control: Moving a cart in minimum time is an optimal control problem but not a problem in the calculus of variations, because the input is bounded, and the optimal input jumps between its bounds.

All examples · All distinctions · All definitions