Consider the following problem in deterministic optimal control over the time period [ 0 , T ] {\displaystyle [0,T]} :
where C [ ⋅ ] {\displaystyle C[\cdot ]} is the scalar cost rate function and D [ ⋅ ] {\displaystyle D[\cdot ]} is a function that gives the bequest value at the final state, x ( t ) {\displaystyle x(t)} is the system state vector, x ( 0 ) {\displaystyle x(0)} is assumed given, and u ( t ) {\displaystyle u(t)} for 0 ≤ t ≤ T {\displaystyle 0\leq t\leq T} is the control vector that we are trying to find. Thus, V ( x , t ) {\displaystyle V(x,t)} is the value function.
The system must also be subject to
where F [ ⋅ ] {\displaystyle F[\cdot ]} gives the vector determining physical evolution of the state vector over time.
For this simple system, the Hamilton–Jacobi–Bellman partial differential equation is
subject to the terminal condition
As before, the unknown scalar function V ( x , t ) {\displaystyle V(x,t)} in the above partial differential equation is the Bellman value function, which represents the cost incurred from starting in state x {\displaystyle x} at time t {\displaystyle t} and controlling the system optimally from then until time T {\displaystyle T} .
Intuitively, the HJB equation can be derived as follows. If V ( x ( t ) , t ) {\displaystyle V(x(t),t)} is the optimal cost-to-go function (also called the 'value function'), then by Richard Bellman's principle of optimality, going from time t to t + dt, we have
Note that the Taylor expansion of the first term on the right-hand side is
where o ( d t ) {\displaystyle {\mathcal {o}}(dt)} denotes the terms in the Taylor expansion of higher order than one in little-o notation. Then if we subtract V ( x ( t ) , t ) {\displaystyle V(x(t),t)} from both sides, divide by dt, and take the limit as dt approaches zero, we obtain the HJB equation defined above.
The HJB equation is usually solved backwards in time, starting from t = T {\displaystyle t=T} and ending at t = 0 {\displaystyle t=0} .11
When solved over the whole of state space and V ( x ) {\displaystyle V(x)} is continuously differentiable, the HJB equation is a necessary and sufficient condition for an optimum when the terminal state is unconstrained.12 If we can solve for V {\displaystyle V} then we can find from it a control u {\displaystyle u} that achieves the minimum cost.
In general case, the HJB equation does not have a classical (smooth) solution. Several notions of generalized solutions have been developed to cover such situations, including viscosity solution (Pierre-Louis Lions and Michael Crandall),13 minimax solution (Andrei Izmailovich Subbotin [ru]), and others.
Approximate dynamic programming has been introduced by D. P. Bertsekas and J. N. Tsitsiklis with the use of artificial neural networks (multilayer perceptrons) for approximating the Bellman function in general.14 This is an effective mitigation strategy for reducing the impact of dimensionality by replacing the memorization of the complete function mapping for the whole space domain with the memorization of the sole neural network parameters. In particular, for continuous-time systems, an approximate dynamic programming approach that combines both policy iterations with neural networks was introduced.15 In discrete-time, an approach to solve the HJB equation combining value iterations and neural networks was introduced.16
Alternatively, it has been shown that sum-of-squares optimization can yield an approximate polynomial solution to the Hamilton–Jacobi–Bellman equation arbitrarily well with respect to the L 1 {\displaystyle L^{1}} norm.17
The idea of solving a control problem by applying Bellman's principle of optimality and then working out backwards in time an optimizing strategy can be generalized to stochastic control problems. Consider similar as above
now with ( X t ) t ∈ [ 0 , T ] {\displaystyle (X_{t})_{t\in [0,T]}\,\!} the stochastic process to optimize and ( u t ) t ∈ [ 0 , T ] {\displaystyle (u_{t})_{t\in [0,T]}\,\!} the steering. By first using Bellman and then expanding V ( X t , t ) {\displaystyle V(X_{t},t)} with Itô's rule, one finds the stochastic HJB equation
where A {\displaystyle {\mathcal {A}}} represents the stochastic differentiation operator, and subject to the terminal condition
Note that the randomness has disappeared. In this case a solution V {\displaystyle V\,\!} of the latter does not necessarily solve the primal problem, it is a candidate only and a further verifying argument is required. This technique is widely used in Financial Mathematics to determine optimal investment strategies in the market (see for example Merton's portfolio problem).
As an example, we can look at a system with linear stochastic dynamics and quadratic cost. If the system dynamics is given by
and the cost accumulates at rate C ( x t , u t ) = r ( t ) u t 2 / 2 + q ( t ) x t 2 / 2 {\displaystyle C(x_{t},u_{t})=r(t)u_{t}^{2}/2+q(t)x_{t}^{2}/2} , the HJB equation is given by
with optimal action given by
Assuming a quadratic form for the value function, we obtain the usual Riccati equation for the Hessian of the value function as is usual for Linear-quadratic-Gaussian control.
Kirk, Donald E. (1970). Optimal Control Theory: An Introduction. Englewood Cliffs, NJ: Prentice-Hall. pp. 86–90. ISBN 0-13-638098-0. 0-13-638098-0 ↩
Yong, Jiongmin; Zhou, Xun Yu (1999). "Dynamic Programming and HJB Equations". Stochastic Controls : Hamiltonian Systems and HJB Equations. Springer. pp. 157–215 [p. 163]. ISBN 0-387-98723-1. 0-387-98723-1 ↩
Naidu, Desineni S. (2003). "The Hamilton–Jacobi–Bellman Equation". Optimal Control Systems. Boca Raton: CRC Press. pp. 277–283 [p. 280]. ISBN 0-8493-0892-5. 0-8493-0892-5 ↩
Bellman, R. E. (1954). "Dynamic Programming and a new formalism in the calculus of variations". Proc. Natl. Acad. Sci. 40 (4): 231–235. Bibcode:1954PNAS...40..231B. doi:10.1073/pnas.40.4.231. PMC 527981. PMID 16589462. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC527981 ↩
Bellman, R. E. (1957). Dynamic Programming. Princeton, NJ: Princeton University Press. ↩
Bellman, R.; Dreyfus, S. (1959). "An Application of Dynamic Programming to the Determination of Optimal Satellite Trajectories". J. Br. Interplanet. Soc. 17: 78–83. ↩
Kálmán, Rudolf E. (1963). "The Theory of Optimal Control and the Calculus of Variations". In Bellman, Richard (ed.). Mathematical Optimization Techniques. Berkeley: University of California Press. pp. 309–331. OCLC 1033974. /wiki/OCLC_(identifier) ↩
Kemajou-Brown, Isabelle (2016). "Brief History of Optimal Control Theory and Some Recent Developments". In Budzban, Gregory; Hughes, Harry Randolph; Schurz, Henri (eds.). Probability on Algebraic and Geometric Structures. Contemporary Mathematics. Vol. 668. pp. 119–130. doi:10.1090/conm/668/13400. ISBN 9781470419455. 9781470419455 ↩
Chang, Fwu-Ranq (2004). Stochastic Optimization in Continuous Time. Cambridge, UK: Cambridge University Press. pp. 113–168. ISBN 0-521-83406-6. 0-521-83406-6 ↩
Bardi, Martino; Capuzzo-Dolcetta, Italo (1997). Optimal Control and Viscosity Solutions of Hamilton–Jacobi–Bellman Equations. Boston: Birkhäuser. ISBN 0-8176-3640-4. 0-8176-3640-4 ↩
Lewis, Frank L.; Vrabie, Draguna; Syrmos, Vassilis L. (2012). Optimal Control (3rd ed.). Wiley. p. 278. ISBN 978-0-470-63349-6. 978-0-470-63349-6 ↩
Bertsekas, Dimitri P. (2005). Dynamic Programming and Optimal Control. Athena Scientific. ↩
Bardi, Martino; Capuzzo-Dolcetta, Italo (1997). Optimal Control and Viscosity Solutions of Hamilton-Jacobi-Bellman Equations. Boston: Birkhäuser. ISBN 0-8176-3640-4. 0-8176-3640-4 ↩
Bertsekas, Dimitri P.; Tsitsiklis, John N. (1996). Neuro-dynamic Programming. Athena Scientific. ISBN 978-1-886529-10-6. 978-1-886529-10-6 ↩
Abu-Khalaf, Murad; Lewis, Frank L. (2005). "Nearly optimal control laws for nonlinear systems with saturating actuators using a neural network HJB approach". Automatica. 41 (5): 779–791. doi:10.1016/j.automatica.2004.11.034. S2CID 14757582. /wiki/Doi_(identifier) ↩
Al-Tamimi, Asma; Lewis, Frank L.; Abu-Khalaf, Murad (2008). "Discrete-Time Nonlinear HJB Solution Using Approximate Dynamic Programming: Convergence Proof". IEEE Transactions on Systems, Man, and Cybernetics - Part B: Cybernetics. 38 (4): 943–949. doi:10.1109/TSMCB.2008.926614. PMID 18632382. S2CID 14202785. /wiki/Doi_(identifier) ↩
Jones, Morgan; Peet, Matthew (2020). "Polynomial Approximation of Value Functions and Nonlinear Controller Design with Performance Bounds". arXiv:2010.06828 [math.OC]. /wiki/ArXiv_(identifier) ↩