Problemcore
Optimal control problem
Also called Bolza problem, dynamic optimization problem.
Find the input over a horizon that minimizes a cost of the state and input, subject to the dynamics and to constraints.
An optimal control problem asks for an input signal on a time interval that makes a cost as small as possible. The state must follow a differential equation from a given start, the input must stay in an allowed set, and the end of the motion may be fixed or free. The cost adds a running cost, integrated along the motion, and a terminal cost on the final state. This is the problem behind the Pontryagin maximum principle, the Hamilton-Jacobi-Bellman equation, the LQR problem and model predictive control.
In plain words
You steer a system, for example a car, a rocket or a chemical reactor, for some time. At each moment you choose a setting of the controls. The settings change the motion, and the motion is fixed by physics once you choose the settings. Each choice of settings over time has a price: fuel used, time taken, distance from a target, or a mix of these. The task is to find the plan of settings with the lowest total price. The plan must obey the limits of the controls, and the system may have to end at a given place. The answer is a whole function of time, not one number, so the problem is much larger than an ordinary minimization.
Definition
Data. A time interval , with fixed and fixed or free. A state space and an input set . A vector field , continuous, and in , so that each piecewise continuous input gives a unique solution on a short interval (the Lipschitz condition and the Picard-Lindelöf theorem). A running cost and a terminal cost , both continuous and in . An initial state , and a target set for the final state. Time-varying data and are also allowed.
Admissible inputs. An input is admissible if it is a piecewise continuous (in the general theory, measurable and bounded) function such that the solution of
exists on the whole interval and ends in the target, .
The question. Among all admissible inputs, find one that minimizes the cost
and find the minimum value. A cost with both terms is the Bolza form. With it is the Lagrange form, and with it is the Mayer form. The three forms are equivalent; the Reductions section gives the conversions.
Output. An optimal input , its trajectory and the value . A local answer is also of interest: an input that is optimal against nearby inputs. The maximum principle gives necessary conditions for such an input. The HJB equation describes the optimal cost from every start, the value function .
Variants
- Fixed or free final time. With free, the final time is one more unknown. The time-optimal control problem is the case , , so the cost is .
- Fixed, free or constrained final state. fixes the end point, leaves it free, and a smooth surface constrains it. Each case gives its own boundary condition on the costate, the transversality conditions.
- Input constraints. is the unconstrained case. A box such as leads to bang-bang and singular controls.
- State constraints. A path constraint at all times. The necessary conditions then contain a measure as a multiplier and are harder to use.
- Infinite horizon. with no terminal cost. The cost may be infinite for some inputs, and the transversality condition at infinity needs care.
- Discrete time. and the cost for a horizon of steps. This is a finite-dimensional nonlinear program and the form that model predictive control solves at each sampling instant.
- Stochastic problems. Noise in the dynamics turns the problem into a Markov decision process in discrete time, or a controlled diffusion in continuous time.
Examples
A scalar problem with a free end. Let , , , and
Try constant inputs . Then and , which is smallest at with . The input costs , and the input , which brings the state exactly to 0, also costs . A constant input is in fact optimal here: for a given end value , the Cauchy-Schwarz inequality gives , with equality only for a constant . So the minimum is at . The pages on the costate and the HJB equation find the same answer by their own methods.
A problem with no optimal input. Let , , , and . An input that switches between and every seconds keeps , so , and the infimum of is 0. But needs on the whole interval, so , which is not in . No admissible input reaches the infimum. If is replaced by its convex hull , the input is optimal. This is why existence theorems ask for convex sets of velocities.
The linear quadratic regulator. With , and , the problem is the LQR problem, and its answer is a linear feedback from a Riccati equation.
Known algorithms
- Indirect methods apply the maximum principle first. This gives a two-point boundary value problem for the state and the costate, solved by shooting or multiple shooting with Newton's method (indirect method).
- Direct methods discretize the input, or the input and the state, and solve the resulting finite nonlinear program by sequential quadratic programming or an interior point method. Direct single shooting, direct multiple shooting and collocation are the main forms (Betts 1998).
- Dynamic programming solves the HJB equation on a grid, or its discrete form, the Bellman equation, by value iteration. It gives a global answer and a feedback, but the grid grows exponentially with the state dimension .
- Special structure. The LQ problem reduces to a Riccati equation (finite-horizon LQR). Linear time-optimal problems reduce to the search for a switching function (bang-bang principle). Convex discrete-time problems with linear dynamics are convex optimization problems.
Bounds
The problem in continuous time has infinitely many unknowns, so there is no general operation count. What is known:
- Existence. Filippov's theorem gives an optimal input when is compact, the set of velocities (with the running cost added as one more coordinate) is convex for every , all trajectories stay bounded, and some admissible input exists (Liberzon, Section 4.5). The second example above shows that convexity cannot be dropped.
- Necessary conditions hold under the smoothness stated in the Definition: the maximum principle. They are not sufficient in general.
- Sufficient conditions come from a solution of the HJB equation (a verification theorem) or from convexity: for a fixed final time and a fixed or free final state, if is affine in , is convex and and are convex, every input that satisfies the maximum principle in the normal form is optimal.
- Hardness after discretization. The discrete-time problem with general and contains every nonconvex nonlinear program, for example nonconvex quadratic programming, which is NP-hard. So no polynomial-time method for the global minimum is known in general. The LQ case costs operations per step of the Riccati recursion, in the real-ram model.
Reductions
Lagrange to Mayer. Add a state with and . Then , and the cost becomes a terminal cost of the augmented state. A Bolza cost becomes , also in Mayer form.
Mayer to Lagrange. If is , then along every trajectory
The first term is a constant, so minimizing is the same as minimizing the integral of . With the two conversions, the Bolza, Lagrange and Mayer forms are equivalent. In the scalar example above, the Mayer form uses the states with , , and the cost .
Time-varying to time-invariant. Add the state with . Then becomes a function of the augmented state.
Free final time to fixed final time. Write with and treat as one more state with . The dynamics become , on a fixed interval.
Calculus of variations. With and , the input is the derivative of the state, and the problem is the basic problem of the calculus of variations, minimize . Its first-order condition is the Euler-Lagrange equation.
Discrete time to nonlinear programming. With the inputs as unknowns, the discrete-time problem is a nonlinear program with variables. The KKT conditions of that program, with the multipliers of the dynamics as a discrete costate, are the discrete maximum principle for an unconstrained input.
Applications
- Trajectories for aircraft, rockets and spacecraft, which motivated much of the theory in the 1950s and 1960s.
- Robot motion planning, with costs of time, energy or smoothness.
- Chemical processes, for example the temperature profile of a batch reactor.
- Economics, where optimal growth models are infinite-horizon problems.
- Feedback design through receding horizons: model predictive control solves a discrete-time optimal control problem at every sampling instant.
References
- Daniel Liberzon, Calculus of Variations and Optimal Control Theory, A Concise Introduction, Princeton University Press, 2012, Section 3.3 (the formulation of the optimal control problem and the forms of the cost) and Section 4.5 (existence of optimal controls)
- Donald E. Kirk, Optimal Control Theory, An Introduction, Prentice-Hall, 1970 (Dover reprint, 2004), Chapter 1 (the statement of the problem and the performance measures)
- Arthur E. Bryson and Yu-Chi Ho, Applied Optimal Control, Optimization, Estimation, and Control, Hemisphere, 1975 (revised printing of the 1969 edition)
- John T. Betts, Survey of numerical methods for trajectory optimization, Journal of Guidance, Control, and Dynamics 21(2), 193-207, 1998
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 65XJN8 Edit this page History Report an error Markdown