The Hamiltonian is a
function used to solve a problem of
optimal control for a
dynamical system
In mathematics, a dynamical system is a system in which a function describes the time dependence of a point in an ambient space. Examples include the mathematical models that describe the swinging of a clock pendulum, the flow of water i ...
. It can be understood as an instantaneous increment of the
Lagrangian expression of the problem that is to be optimized over a certain time period. Inspired by, but distinct from, the
Hamiltonian of classical mechanics, the Hamiltonian of optimal control theory was developed by
Lev Pontryagin as part of his
maximum principle
In the mathematical fields of partial differential equations and geometric analysis, the maximum principle is any of a collection of results and techniques of fundamental importance in the study of elliptic and parabolic differential equations. ...
. Pontryagin proved that a necessary condition for solving the optimal control problem is that the control should be chosen so as to optimize the Hamiltonian.
Problem statement and definition of the Hamiltonian
Consider a
dynamical system
In mathematics, a dynamical system is a system in which a function describes the time dependence of a point in an ambient space. Examples include the mathematical models that describe the swinging of a clock pendulum, the flow of water i ...
of
first-order
differential equation
In mathematics, a differential equation is an equation that relates one or more unknown functions and their derivatives. In applications, the functions generally represent physical quantities, the derivatives represent their rates of change, a ...
s
:
where
denotes a vector of state variables, and
a vector of control variables. Once initial conditions
and controls
are specified, a solution to the differential equations, called a ''trajectory''
, can be found. The problem of optimal control is to choose
(from some set
) so that
maximizes or minimizes a certain
objective function
In mathematical optimization and decision theory, a loss function or cost function (sometimes also called an error function) is a function that maps an event or values of one or more variables onto a real number intuitively representing some "cos ...
between an initial time
and a terminal time
(where
may be
infinity
Infinity is that which is boundless, endless, or larger than any natural number. It is often denoted by the infinity symbol .
Since the time of the ancient Greeks, the philosophical nature of infinity was the subject of many discussions am ...
). Specifically, the goal is to optimize a performance index
at each point in time,
:
subject to the above equations of motion of the state variables. The solution method involves defining an ancillary function known as the control Hamiltonian
which combines the objective function and the state equations much like a
Lagrangian
Lagrangian may refer to:
Mathematics
* Lagrangian function, used to solve constrained minimization problems in optimization theory; see Lagrange multiplier
** Lagrangian relaxation, the method of approximating a difficult constrained problem with ...
in a static optimization problem, only that the multipliers
, referred to as ''costate variables'', are functions of time rather than constants.
The goal is to find an optimal control policy function
and, with it, an optimal trajectory of the state variable
, which by
Pontryagin's maximum principle are the arguments that maximize the Hamiltonian,
:
for all
The first-order necessary conditions for a maximum are given by
:
which is the maximum principle,
:
which generates the state transition function
,
:
which generates