Samiksha Jaiswal (Editor)

Hamilton–Jacobi–Bellman equation

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

The Hamilton–Jacobi–Bellman (HJB) equation is a partial differential equation which is central to optimal control theory. The solution of the HJB equation is the value function which gives the minimum cost for a given dynamical system with an associated cost function.

Contents

When solved locally, the HJB is a necessary condition, but when solved over the whole of state space, the HJB equation is a necessary and sufficient condition for an optimum. The solution is open loop, but it also permits the solution of the closed loop problem. The HJB method can be generalized to stochastic systems as well.

Classical variational problems, for example the brachistochrone problem, can be solved using this method.

The equation is a result of the theory of dynamic programming which was pioneered in the 1950s by Richard Bellman and coworkers. The corresponding discrete-time equation is usually referred to as the Bellman equation. In continuous time, the result can be seen as an extension of earlier work in classical physics on the Hamilton–Jacobi equation by William Rowan Hamilton and Carl Gustav Jacob Jacobi.

Optimal control problems

Consider the following problem in deterministic optimal control over the time period [ 0 , T ] :

V ( x ( 0 ) , 0 ) = min u { 0 T C [ x ( t ) , u ( t ) ] d t + D [ x ( T ) ] }

where C[ ] is the scalar cost rate function and D[ ] is a function that gives the economic value or utility at the final state, x(t) is the system state vector, x(0) is assumed given, and u(t) for 0 ≤ t ≤ T is the control vector that we are trying to find.

The system must also be subject to

x ˙ ( t ) = F [ x ( t ) , u ( t ) ]

where F[ ] gives the vector determining physical evolution of the state vector over time.

The partial differential equation

For this simple system, the Hamilton–Jacobi–Bellman partial differential equation is

V ˙ ( x , t ) + min u { V ( x , t ) F ( x , u ) + C ( x , u ) } = 0

subject to the terminal condition

V ( x , T ) = D ( x ) ,

where the a b means the dot product of the vectors a and b and is the gradient operator.

The unknown scalar V ( x , t ) in the above PDE is the Bellman value function, which represents the cost incurred from starting in state x at time t and controlling the system optimally from then until time T .

Deriving the equation

Intuitively HJB can be derived as follows. If 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

V ( x ( t ) , t ) = min u { V ( x ( t + d t ) , t + d t ) + t t + d t C ( x ( s ) , u ( s ) ) d s } .

Note that the Taylor expansion of the first term is

V ( x ( t + d t ) , t + d t ) = V ( x ( t ) , t ) + V ˙ ( x ( t ) , t ) d t + V ( x ( t ) , t ) x ˙ ( t ) d t + o ( d t ) ,

where o ( d t ) denotes the terms in the Taylor expansion of higher order than one in little-o notation. Then if we cancel V ( x ( t ) , t ) on both sides, divide by dt, and take the limit as dt approaches zero, we obtain the HJB equation defined above.

Solving the equation

The HJB equation is usually solved backwards in time, starting from t = T and ending at t = 0 .

When solved over the whole of state space, the HJB equation is a necessary and sufficient condition for an optimum. If we can solve for V then we can find from it a control 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), minimax solution (Andrei Izmailovich Subbotin), and others.

Extension to stochastic problems

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

min u E { 0 T C ( t , X t , u t ) d t + D ( X T ) }

now with ( X t ) t [ 0 , T ] the stochastic process to optimize and ( u t ) t [ 0 , T ] the steering. By first using Bellman and then expanding V ( X t , t ) with Itô's rule, one finds the stochastic HJB equation

min u { A V ( x , t ) + C ( t , x , u ) } = 0 ,

where A represents the stochastic differentiation operator, and subject to the terminal condition

V ( x , T ) = D ( x ) .

Note that the randomness has disappeared. In this case a solution 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).

Application to LQG Control

As an example, we can look at a system with linear stochastic dynamics and quadratic cost. If the system dynamics is given by

d x t = ( a x t + b u t ) d t + σ d w t ,

and the cost accumulates at rate C ( x t , u t ) = r ( t ) u t 2 / 2 + q ( t ) x t 2 / 2 , the HJB equation is given by

V ( x , t ) t = 1 2 q ( t ) x 2 + V ( x , t ) x a x b 2 2 r ( t ) ( V ( x , t ) x ) 2 + σ 2 2 2 V ( x , t ) x 2 .

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.

References

Hamilton–Jacobi–Bellman equation Wikipedia