Theoremcore
Hamilton-Jacobi-Bellman equation
Also called HJB equation.
The optimal cost-to-go of a continuous-time problem solves a partial differential equation, and its minimizer gives an optimal feedback.
The Hamilton-Jacobi-Bellman (HJB) equation is the partial differential equation
for the value function of an optimal control problem, the smallest cost that can still be reached from state at time . It is the continuous-time form of the Bellman equation and follows from the principle of optimality. This page proves two statements: a solution of the equation is the value function and gives an optimal feedback (the verification theorem), and a value function that is solves the equation. In general the value function is not differentiable, and then it is the unique viscosity solution; that statement is cited, not proved.
Statement
Setting. A horizon , a compact input set , and continuous functions , and . is bounded and satisfies a Lipschitz condition in uniformly in , so each piecewise continuous input gives a unique trajectory from any (Picard-Lindelöf theorem). The cost and the value function are
Theorem.
- Verification. Let satisfy for all , and . Then for every admissible , so . If, from , an admissible input attains the minimum at for every except finitely many, then is optimal and .
- Necessity. If is on an open set , then satisfies the HJB equation at every point of .
- Viscosity solutions (cited). If in addition and are bounded and uniformly continuous and is Lipschitz in , then is bounded and uniformly continuous, and it is the unique such viscosity solution of
(Crandall and Lions 1983; Fleming and Soner 2006). The equation is the HJB equation multiplied by inside the maximum. The order matters: a viscosity solution of need not be one of .
In plain words
Suppose you knew, for every place and every moment, the least cost you could still achieve from there. Then the best move now is easy to find: pick the move that minimizes the cost of this short step plus the least cost from where the step takes you. Writing this for steps of length tending to zero gives one equation for the table of least costs. If you can solve the equation, you can check that a plan is optimal and you get the best action as a function of the current state, a feedback. The catch is that the table often has kinks, and then the equation only holds in a weaker sense.
Proof
Part 1. Let be admissible from and its trajectory. The function is continuous and piecewise , with
because the equation says for every . Integrate from to and use :
For the inequality is an equality at all but finitely many , so . Since , all three are equal, and is optimal.
Part 2, the inequality . Fix , a value and a small . Use on and then any input from . Taking the infimum over the second part (the principle of optimality),
Subtract , divide by and let . Since is near , the limit is . This holds for every , so .
Part 2, the inequality . For each small take an input with . Its tail from costs at least , so
Write the difference of as and divide by :
Because is bounded, on the interval. and are continuous, and and are uniformly continuous on compact sets, so the integrand differs from by at most with . That expression is at least . Hence , and letting gives .
Consequences
A worked example. For , (the problem is still fine without compactness here), and , try . Then at , and the equation becomes , so with . The solution is , and
Check: and , so equals the minimum. From the feedback gives the constant input and the cost . For , this is the cost found on the optimal control problem page.
- Feedback. The minimizer in the equation is an optimal feedback for all initial states at once, not only an open-loop input from one start.
- LQR. For , and , the guess gives and the Riccati differential equation , (finite-horizon LQR). By Part 1 this feedback is optimal.
- The costate. Where is , is a costate of the maximum principle, and the right side of the equation is the minimized Hamiltonian . The characteristics of the HJB equation are the extremals of the maximum principle.
- Infinite horizon. For and data that do not depend on time, solves the stationary equation , under conditions that make the cost finite.
- Discrete time and computation. The discrete form is the Bellman equation, solved backward or by value iteration. On a grid with points per axis, one sweep touches points, so the cost grows exponentially with the state dimension . The same equations, with a target set instead of a cost, compute reachable sets (Hamilton-Jacobi reachability).
Tightness
The value function is often not differentiable. Take , , on the interval , and let be the least time to reach the set . Then , which has a kink at . The stationary equation with is . Both and satisfy at every and the boundary values, and so do many zigzag functions, so "solution almost everywhere" does not determine . In the form of Part 3, . At the kink of , every smooth function that touches it from above has a slope there, and , so the subsolution test holds; no smooth function touches it from below, so the supersolution test is empty. So is a viscosity solution. For , the function touches it from below at 0 with slope 0, and fails, so it is not one. The time-optimal double integrator has a value function that is not differentiable on its switching curve, for the same reason.
The value function can be discontinuous or infinite. Without controllability, some states cannot reach the target, and the minimum time is there. Part 3 needs its hypotheses.
A solution need not exist. Part 1 is a sufficient condition. It applies only when a solution is known, as for the LQR problem.
History
Hamilton and Jacobi wrote the equation of the calculus of variations that carries their names in the 1830s, and Carathéodory used it as a sufficient condition in the 1930s. Bellman developed dynamic programming at RAND in the early 1950s and wrote the equation for control problems; his book appeared in 1957. Kalman used it for the linear quadratic problem around 1960. The question of nonsmooth value functions stayed open until Crandall and Lions (1983) defined viscosity solutions and proved uniqueness. Fleming and Soner (2006) give the theory for deterministic and stochastic control.
References
- Richard Bellman, Dynamic Programming, Princeton University Press, 1957 (Dover reprint, 2003)
- Daniel Liberzon, Calculus of Variations and Optimal Control Theory, A Concise Introduction, Princeton University Press, 2012, Section 5.1.3 (the HJB equation), Section 5.1.4 (the sufficient condition), Section 5.2 (the HJB equation and the maximum principle, with a value function that is not differentiable) and Section 5.3 (viscosity solutions)
- Michael G. Crandall and Pierre-Louis Lions, Viscosity solutions of Hamilton-Jacobi equations, Transactions of the American Mathematical Society 277(1), 1-42, 1983
- Wendell H. Fleming and H. Mete Soner, Controlled Markov Processes and Viscosity Solutions, second edition, Springer, 2006, the chapters on deterministic optimal control and on viscosity solutions
- Lawrence C. Evans, An Introduction to Mathematical Optimal Control Theory, lecture notes, University of California, Berkeley, Chapter 5 (dynamic programming)
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 | W4 complete |
|
Tag H499AQ Edit this page History Report an error Markdown