A method of solving a dynamic optimization problem formulated in continuous time. Mathematically, it is a solution of a set of differential equations describing the paths of the control variables which minimize the cost functional associated with the control policy. The solution is derived by using Pontryagin’s maximum principle (a necessary condition) or by solving the Hamilton–Jacobi–Bellman equation (a sufficient condition).