# Dynamic programming

A branch of mathematics studying the theory and the methods of solution of multi-step problems of optimal control.

In dynamic programming of controlled processes the objective is to find among all possible controls a control that gives the extremal (maximal or minimal) value of the objective function — some numerical characteristic of the process. A multi-stage process is one the structure of which consists of several steps, or else a process in which the control is subdivided into a sequence of successive stages (steps), which usually correspond to different moments in time. In a number of problems the multi-stage nature is dictated by the process itself (for example, in the determination of the optimal dimensions of the steps of a multi-stage rocket or in finding the most economical way of flying an aircraft), but it may also be artificially introduced in order to be able to apply methods of dynamic programming. Thus, the meaning of "programming" in dynamic programming is making decisions and planning, while the word "dynamic" indicates the importance of time and of the sequence of execution of the operations in the process and methods under study.

The methods of dynamic programming are a part of the methods of operations research, and are utilized in optimal planning problems (e.g. in problems of the optimal distribution of available resources, in the theory of inventory management, replacement of equipment, etc.), and in solving numerous technical problems (e.g. control of successive chemical processes, optimal design of structural highway layers, etc.).

The basic idea will now be illustrated. Let the process of controlling a given system $X$ consist of $m$ stages; at the $i$- th step let the control $y _ {i}$ convert the system from the state $x _ {i-} 1$ attained during the $( i- 1)$- th step to the new state $x _ {i}$. This transition process is realized by a given function $f _ {i} ( x , y )$, and the new state is determined by the values $x _ {i-} 1$, $y _ {i}$:

$$x _ {i} = f _ {i} ( x _ {i-} 1 , y _ {i} ) .$$

Thus, the control operations $y _ {1} \dots y _ {m}$ convert the system from its initial state $x _ {0} \in X _ {0}$ into the final state $x _ {m} \in X _ {m}$, where $X _ {0}$ and $X _ {m}$ are the sets of feasible initial and final states of $X$. A possible way of stating the extremal problem is given below. The initial state $x _ {0}$ is known. The task is to select controls $y _ {1} \dots y _ {m}$ so that the system $X$ is converted to a feasible final state and, at the same time, the objective function $F ( x _ {0} , y _ {1} \dots x _ {m-} 1 , y _ {m} , x _ {m} )$ attains its maximal value $F ^ { * }$, i.e.

$$F ^ { * } = \max _ {y _ {1} \dots y _ {m} } \ F ( x _ {0} , y _ {1} \dots x _ {m-} 1 , y _ {m} , x _ {m} ) .$$

An important feature of dynamic programming is that it is applicable to additive objective functions only. In the example above, this means that

$$F = \sum _ {i = 1 } ^ { m } \phi _ {i} ( x _ {i-} 1 , y _ {i} ) .$$

Another requirement of the method is the absence of "after-effects" in the problem, i.e. the solutions (controls) selected for a given step may only affect the state $x _ {i}$ of the system at the moment $i$. In other words, processes of the type

$$x _ {i} = f _ {i} ( x _ {i-} 1 , y _ {i} \dots y _ {1} , x _ {0} ) ,$$

are not considered. Both these restrictions may be weakened, but only by unduly complicating the method.

Conventional methods of mathematical analysis are altogether inapplicable to problems of dynamic programming or else involve very laborious computations. The method of dynamic programming is based on the optimality principle formulated by R. Bellman: Assume that, in controlling a discrete system $X$, a certain control on the discrete system $y _ {1} \dots y _ {k}$, and hence the trajectory of states $x _ {0} \dots x _ {k}$, have already been selected, and suppose it is required to terminate the process, i.e. to select $y _ {k+} 1 \dots y _ {m}$( and hence $x _ {k+} 1 \dots x _ {m}$); then, if the terminal part of the process is not optimal, i.e. if the maximum of the function

$$F _ {k} = \sum _ {i = k + 1 } ^ { m } \phi _ {i} ( x _ {i-} 1 , y _ {i} ) ,$$

is not attained by it, the process as a whole will not be optimal.

By using the optimality principle, the basic functional relationship is readily obtained. One determines the sequence of functions of the variable $x$:

$$\omega _ {m} ( x) = 0 ,\ \omega _ {k-} 1 ( x) = \ \max _ { y } [ \phi _ {k} ( x , y ) + \omega _ {k} ( f _ {k} ( x , y ) ) ] ,$$

$k= 1 \dots m$. Here, the maximum is taken over all the control operations feasible at step $k$. The relation defining the dependence of $\omega _ {k-} 1$ on $\omega _ {k}$ is known as the Bellman equation. The meaning of the functions $\omega _ {k-} 1 ( x)$ is clear: If, in step $k - 1$, the system appears to be in state $x$, then $\omega _ {k-} 1 ( x)$ is the maximum possible value of the function $F$. Simultaneously with the construction of the functions $\omega _ {k-} 1 ( x)$ one also finds the conditional optimal controls $y _ {k} ( x)$ at each step (i.e. the values of the optimal controls under the assumption that the system is in the state $x$ at the step $k - 1$). The final optimal controls are found by successively computing the values

$$\omega _ {0} ( x _ {0} ) = F ^ { * } ,\ y _ {1} , x _ {1} \dots y _ {m} , x _ {m} .$$

The following property of the method of dynamic programming is evident from the above: It solves not merely one specific problem for a given $x _ {0}$, but all problems of this type, for all initial states. Since the numerical realization of the method of dynamic programming is laborious, i.e. requires a large storage capacity of the computer, it is expediently employed whenever certain typical problems have to be solved a large number of times (e.g. the optimum flight conditions for an aircraft under changing weather conditions). Even though dynamic programming problems are formulated for discrete processes, the method may often be successfully employed in solving problems with continuous parameters.

Dynamic programming furnished a novel approach to many problems of variational calculus.

An important branch of dynamic programming is constituted by stochastic problems, in which the state of the system and the objective function are affected by random factors. Such problems include, for example, optimal inventory control with allowance of random inventory replenishment. Controlled Markov processes are the most natural domains of application of dynamic programming in such cases.

The method of dynamic programming was first proposed by Bellman. Rigorous foundations of the method were laid by L.S. Pontryagin and his school, who studied the mathematical theory of control process (cf. Optimal control, mathematical theory of).

Even though the method of dynamic programming considerably simplifies the initial problems, its explicit utilization is usually very laborious. Attempts are made to overcome this difficulty by developing approximation methods.

How to Cite This Entry:
Dynamic programming. Encyclopedia of Mathematics. URL: http://encyclopediaofmath.org/index.php?title=Dynamic_programming&oldid=46785
This article was adapted from an original article by S.A. AshmanovV.G. Karmanov (originator), which appeared in Encyclopedia of Mathematics - ISBN 1402006098. See original article