 Optimal control

Optimal control theory, an extension of the calculus of variations, is a mathematical optimization method for deriving control policies. The method is largely due to the work of Lev Pontryagin and his collaborators in the Soviet Union^{[1]} and Richard Bellman in the United States.
Contents
General method
Optimal control deals with the problem of finding a control law for a given system such that a certain optimality criterion is achieved. A control problem includes a cost functional that is a function of state and control variables. An optimal control is a set of differential equations describing the paths of the control variables that minimize the cost functional. The optimal control can be derived using Pontryagin's maximum principle (a necessary condition also known as Pontryagin's minimum principle or simply Pontryagin's Principle^{[2]}), or by solving the HamiltonJacobiBellman equation (a sufficient condition).
We begin with a simple example. Consider a car traveling on a straight line through a hilly road. The question is, how should the driver press the accelerator pedal in order to minimize the total traveling time? Clearly in this example, the term control law refers specifically to the way in which the driver presses the accelerator and shifts the gears. The "system" consists of both the car and the road, and the optimality criterion is the minimization of the total traveling time. Control problems usually include ancillary constraints. For example the amount of available fuel might be limited, the accelerator pedal cannot be pushed through the floor of the car, speed limits, etc.
A proper cost functional is a mathematical expression giving the traveling time as a function of the speed, geometrical considerations, and initial conditions of the system. It is often the case that the constraints are interchangeable with the cost functional.
Another optimal control problem is to find the way to drive the car so as to minimize its fuel consumption, given that it must complete a given course in a time not exceeding some amount. Yet another control problem is to minimize the total monetary cost of completing the trip, given assumed monetary prices for time and fuel.
A more abstract framework goes as follows. Minimize the continuoustime cost functional
subject to the firstorder dynamic constraints
the algebraic path constraints
and the boundary conditions
where is the state, is the control, t is the independent variable (generally speaking, time), t_{0} is the initial time, and t_{f} is the terminal time. The terms Φ and are called the endpoint cost and Lagrangian, respectively. Furthermore, it is noted that the path constraints are in general inequality constraints and thus may not be active (i.e., equal to zero) at the optimal solution. It is also noted that the optimal control problem as stated above may have multiple solutions (i.e., the solution may not be unique). Thus, it is most often the case that any solution to the optimal control problem is locally minimizing.
Linear quadratic control
A special case of the general nonlinear optimal control problem given in the previous section is the linear quadratic (LQ) optimal control problem. The LQ problem is stated as follows. Minimize the quadratic continuoustime cost functional
Subject to the linear firstorder dynamic constraints
and the initial condition
A particular form of the LQ problem that arises in many control system problems is that of the linear quadratic regulator (LQR) where all of the matrices (i.e., , , , and ) are constant, the initial time is arbitrarily set to zero, and the terminal time is taken in the limit (this last assumption is what is known as infinite horizon). The LQR problem is stated as follows. Minimize the infinite horizon quadratic continuoustime cost functional
Subject to the linear timeinvariant firstorder dynamic constraints
and the initial condition
In the finitehorizon case the matrices are restricted in that and are positive semidefinite and positive definite, respectively. In the infinitehorizon case, however, the matrices and are not only positivesemidefinite and positivedefinite, respectively, but are also constant. These additional restrictions on and in the infinitehorizon case are enforced to ensure that the cost functional remains positive. Furthermore, in order to ensure that the cost function is bounded, the additional restriction is imposed that the pair is controllable. Note that the LQ or LQR cost functional can be thought of physically as attempting to minimize the control energy (measured as a quadratic form).
The infinite horizon problem (i.e., LQR) may seem overly restrictive and essentially useless because it assumes that the operator is driving the system to zerostate and hence driving the output of the system to zero. This is indeed correct. However the problem of driving the output to a desired nonzero level can be solved after the zero output one is. In fact, it can be proved that this secondary LQR problem can be solved in a very straightforward manner. It has been shown in classical optimal control theory that the LQ (or LQR) optimal control has the feedback form
where is a properly dimensioned matrix, given as
and is the solution of the differential Riccati equation. The differential Riccati equation is given as
For the finite horizon LQ problem, the Riccati equation is integrated backward in time using the terminal boundary condition
For the infinite horizon LQR problem, the differential Riccati equation is replaced with the algebraic Riccati equation (ARE) given as
Understanding that the ARE arises from infinite horizon problem, the matrices , , , and are all constant. It is noted that there are in general two solutions to the algebraic Riccati equation and the positive definite (or positive semidefinite) solution is the one that is used to compute the feedback gain. It is noted that the LQ (LQR) problem was elegantly solved by Rudolf Kalman.^{[3]}
Numerical methods for optimal control
Optimal control problems are generally nonlinear and therefore, generally do not have analytic solutions (e.g., like the linearquadratic optimal control problem). As a result, it is necessary to employ numerical methods to solve optimal control problems. In the early years of optimal control (circa 1950s to 1980s) the favored approach for solving optimal control problems was that of indirect methods. In an indirect method, the calculus of variations is employed to obtain the firstorder optimality conditions. These conditions result in a twopoint (or, in the case of a complex problem, a multipoint) boundaryvalue problem. This boundaryvalue problem actually has a special structure because it arises from taking the derivative of a Hamiltonian. Thus, the resulting dynamical system is a Hamiltonian system of the form
where
is the augmented Hamiltonian and in an indirect method, the boundaryvalue problem is solved (using the appropriate boundary or transversality conditions). The beauty of using an indirect method is that the state and adjoint (i.e., ) are solved for and the resulting solution is readily verified to be an extremal trajectory. The disadvantage of indirect methods is that the boundaryvalue problem is often extremely difficult to solve (particularly for problems that span large time intervals or problems with interior point constraints). A wellknown software program that implements indirect methods is BNDSCO.^{[4]}
The approach that has risen to prominence in numerical optimal control over the past two decades (i.e., from the 1980s to the present) is that of so called direct methods. In a direct method, the state and/or control are approximated using an appropriate function approximation (e.g., polynomial approximation or piecewise constant parameterization). Simultaneously, the cost functional is approximated as a cost function. Then, the coefficients of the function approximations are treated as optimization variables and the problem is "transcribed" to a nonlinear optimization problem of the form:
Minimize
subject to the algebraic constraints
Depending upon the type of direct method employed, the size of the nonlinear optimization problem can be quite small (e.g., as in a direct shooting or quasilinearization method) or may be quite large (e.g., a direct collocation method^{[5]}). In the latter case (i.e., a collocation method), the nonlinear optimization problem may be literally thousands to tens of thousands of variables and constraints. Given the size of many NLPs arising from a direct method, it may appear somewhat counterintuitive that solving the nonlinear optimization problem is easier than solving the boundaryvalue problem. It is, however, the fact that the NLP is easier to solve than the boundaryvalue problem. The reason for the relative ease of computation, particularly of a direct collocation method, is that the NLP is sparse and many wellknown software programs exist (e.g., SNOPT^{[6]}) to solve large sparse NLPs. As a result, the range of problems that can be solved via direct methods (particularly direct collocation methods which are very popular these days) is significantly larger than the range of problems that can be solved via indirect methods. In fact, direct methods have become so popular these days that many people have written elaborate software programs that employ these methods. In particular, many such programs written in FORTRAN include DIRCOL,^{[7]} SOCS,^{[8]} OTIS,^{[9]} GESOP/ASTOS^{[10]} and DITAN.^{[11]} In recent years, due to the advent of the MATLAB programming language, optimal control software in MATLAB has become more common. Examples of academically developed MATLAB software tools implementing direct methods include RIOTS,^{[12]}DIDO,^{[13]} DIRECT,^{[14]} and GPOPS,^{[15]} while an example of an industry developed MATLAB tool is PROPT.^{[16]} These software tools have increased significantly the opportunity for people to explore complex optimal control problems both for academic research and industrialstrength problems. Finally, it is noted that generalpurpose MATLAB optimization environments such as TOMLAB have made coding complex optimal control problems significantly easier than was previously possible in languages such as C and FORTRAN.
Discretetime optimal control
The examples thus far have shown continuous time systems and control solutions. In fact, as optimal control solutions are now often implemented digitally, contemporary control theory is now primarily concerned with discrete time systems and solutions. The Theory of Consistent Approximations^{[17]} provides conditions under which solutions to a series of increasingly accurate discretized optimal control problem converge to the solution of the original, continuoustime problem. Not all discretization methods have this property, even seemingly obvious ones. For instance, using a variable stepsize routine to integrate the problem's dynamic equations may generate a gradient which does not converge to zero (or point in the right direction) as the solution is approached. The direct method RIOTS is based on the Theory of Consistent Approximation.
Examples
A common solution strategy in many optimal control problems is to solve for the costate (sometimes called the shadow price) λ(t). The costate summarizes in one number the marginal value of expanding or contracting the state variable next turn. The marginal value is not only the gains accruing to it next turn but associated with the duration of the program. It is nice when λ(t) can be solved analytically, but usually the most one can do is describe it sufficiently well that the intuition can grasp the character of the solution and an equation solver can solve numerically for the values.
Having obtained λ(t), the turnt optimal value for the control can usually be solved as a differential equation conditional on knowledge of λ(t). Again it is infrequent, especially in continuoustime problems, that one obtains the value of the control or the state explicitly. Usually the strategy is to solve for thresholds and regions that characterize the optimal control and use a numerical solver to isolate the actual choice values in time.
Finite time
Consider the problem of a mine owner who must decide at what rate to extract ore from his mine. He owns rights to the ore from date 0 to date T. At date 0 there is x_{0} ore in the ground, and the instantaneous stock of ore x(t) declines at the rate the mine owner extracts it u(t). The mine owner extracts ore at cost u(t)^{2} / x(t) and sells ore at a constant price p. He does not value the ore remaining in the ground at time T (there is no "scrap value"). He chooses the rate of extraction in time u(t) to maximize profits over the period of ownership with no time discounting.
1. Discretetime version The manager maximizes profit Π:
subject to the law of evolution for the state variable x_{t}
Form the Hamiltonian and differentiate:
As the mine owner does not value the ore remaining at time T,
Using the above equations, it is easy to solve for the x_{t} and λ_{t} series
and using the initial and turnT conditions, the x_{t} series can be solved explicitly, giving u_{t}.
2. Continuoustime version The manager maximizes profit Π:
subject to the law of evolution for the state variable x(t)
Form the Hamiltonian and differentiate:
As the mine owner does not value the ore remaining at time T,

 λ(T) = 0
Using the above equations, it is easy to solve for the differential equations governing u(t) and λ(t)
and using the initial and turnT conditions, the functions can be solved numerically.
See also
 Dynamic programming
 Bellman equation
 Linearquadratic regulator
 Stochastic control
 Trajectory optimization
 Gauss pseudospectral method
 Pseudospectral optimal control
 Pursuitevasion games
 DIDO
 PROPT (Optimal Control Software for MATLAB)
 SNOPT
 Sliding mode control
 DNSS point
 Brachistochrone
References
 ^ L. S. Pontryagin, 1962. The Mathematical Theory of Optimal Processes.
 ^ I. M. Ross, 2009. A Primer on Pontryagin's Principle in Optimal Control, Collegiate Publishers. ISBN 9780984357109.
 ^ Kalman, Rudolf. A new approach to linear filtering and prediction problems. Transactions of the ASME, Journal of Basic Engineering, 82:34–45, 1960
 ^ Oberle, H. J. and Grimm, W., "BNDSCOA Program for the Numerical Solution of Optimal Control Problems," Institute for Flight Systems Dynamics, DLR, Oberpfaffenhofen, 1989
 ^ Betts, J. T., Practical Methods for Optimal Control Using Nonlinear Programming, SIAM Press, Philadelphia, Pennsylvania, 2001
 ^ Gill, P. E., Murray, W. M., and Saunders, M. A., User's Manual for SNOPT Version 7: Software for LargeScale Nonlinear Programming, University of California, San Diego Report, 24 April 2007
 ^ von Stryk, O., User's Guide for DIRCOL (version 2.1): A Direct Collocation Method for the Numerical Solution of Optimal Control Problems, Fachgebiet Simulation und Systemoptimierung (SIM), Technische Universität Darmstadt (2000, Version of November 1999).
 ^ Betts, J.T. and Huffman, W. P., Sparse Optimal Control Software, SOCS, Boeing Information and Support Services, Seattle, Washington, July 1997
 ^ Hargraves, C. R. and Paris, S. W., "Direct Trajectory Optimization Using Nonlinear Programming and Collocation", Journal of Guidance, Control, and Dynamics, Vol. 10, No. 4., 1987, pp. 338342
 ^ Gath, P.F., Well, K.H., "Trajectory Optimization Using a Combination of Direct Multiple Shooting and Collocation", AIAA 20014047, AIAA Guidance, Navigation, and Control Conference, Montréal, Québec, Canada, 6–9 August 2001
 ^ Vasile M., BernelliZazzera F., Fornasari N., Masarati P., "Design of Interplanetary and Lunar Missions Combining LowThrust and Gravity Assists", Final Report of the ESA/ESOC Study Contract No. 14126/00/D/CS, September 2002
 ^ Schwartz, Adam, Theory and Implementation of Methods based on RungeKutta Integration for Solving Optimal Control Problems, University of California at Berkeley, PhD Dissertation, 1996.
 ^ Ross, I. M. and Fahroo, F., User's Manual for DIDO: A MATLAB Package for Dynamic Optimization, Dept. of Aeronautics and Astronautics, Naval Postgraduate School Technical Report, 2002
 ^ Williams, P., User's Guide to DIRECT, Version 2.00, Melbourne, Australia, 2008
 ^ Rao, A. V., Benson, D. A., Huntington, G. T., Francolin, C., Darby, C. L., and Patterson, M. A., User's Manual for GPOPS: A MATLAB Package for Dynamic Optimization Using the Gauss Pseudospectral Method, University of Florida Report, August 2008.
 ^ Rutquist, P. and Edvall, M. M, PROPT  MATLAB Optimal Control Software," 1260 S.E. Bishop Blvd Ste E, Pullman, WA 99163, USA: Tomlab Optimization, Inc.
 ^ E. Polak, On the use of consistent approximations in the solution of semiinfinite optimization and optimal control problems Math. Prog. 62 pp. 385415 (1993).
Further reading
 Books
 Athans, M. A. and Falb, P. L., Optimal Control, McGrawHill, New York, 1966.
 Becerra, V.M., 2008, Optimal control. Scholarpedia, 3(1):5354
 Bryson, A. E., 1969. Applied Optimal Control: Optimization, Estimation, & Control.
 Evans, L.C., An Introduction to Optimal Control Theory (available free online)
 Ross, I. M. A Primer on Pontryagin's Principle in Optimal Control, Collegiate Publishers, 2009. ISBN 9780984357109. (http://www.ElissarGlobal.com free chapter available online)
 H. O. Fattorini and S. S. Sritharan, "Existence of Optimal Controls for Viscous Flow Problems," Proceedings of the Royal Society of London Series A, Vol. 439, 1992, pp. 81–102.
 H. O. Fattorini and S. S. Sritharan, "Necessary and Sufficient Conditions for Optimal Controls in Viscous Flow," Proceedings of the Royal Society of Edinburgh, Series A, Vol. 124A, 1994, pp. 211–251.
 H. O. Fattorini and S. S. Sritharan, "Optimal chattering controls for viscous flow," Nonlinear analysis, Theory, Methods and Applications, Vol. 25, No. 8, pp. 763–797, 1995.
 H. O. Fattorini and S. S. Sritharan,"Optimal control problems with state constraints in fluid mechanics and combustion," Applied Mathematics and Optimization, Vol. 38(2), 1998, pp. 159–192.
 Kirk, D. E., 2004. Optimal Control Theory: An Introduction.
 Lebedev, L. P., and Cloud, M. J., 2003. The Calculus of Variations and Functional Analysis with Optimal Control and Applications in Mechanics. World Scientific. Especially chpt. 2.
 Lewis, F. L., and Syrmos, V. L., 19nn. Optimal Control, 2nd ed. John Wiley & Sons.
 S. S. Sritharan, "Optimal Control of Viscous Flow", SIAM, 1998. (http://www.ecsecurehost.com/SIAM/ot59.html)
 S. S. Sritharan, "An Optimal Control Problem in Exterior Hydrodynamics," Proceedings of the Royal Society of Edinburgh, Series 121A, 1992, pp. 5–32.
 S. S. Sritharan,"Deterministic and stochastic control of viscous flow with linear, monotone and hyper viscosities," Applied Mathematics and Optimization, Vol. 41(2), pp. 255–308, 2000.
 Stengel, R. F., 1994. Optimal Control and Estimation. Dover.
 Sethi, S. P., and Thompson, G. L., 2000. Optimal Control Theory: Applications to Management Science and Economics, 2nd edition, Springer (ISBN 0387280928 and ISBN 0792386086). Slides are available at http://www.utdallas.edu/~sethi/OPRE7320presentation.html
 Sontag, Eduardo D. Mathematical Control Theory: Deterministic Finite Dimensional Systems. Second Edition. Springer. (ISBN 0387984895) (available free online)
 Brogan, William L. 1990. Modern Control Theory. ISBN 0135897637
 Bryson, A.E.; Ho, Y.C. (1975). Applied optimal control. Washington, DC: Hemisphere.
 Journals
 Optimal Control Applications and Methods. John Wiley & Sons, Inc.
 SIAM Journal of Control and Optimization.
External links
 ACADO Toolkit  Open Source Toolkit for Automatic Control and Dynamic Optimization (C++, MATLAB interface available)
 Dr. Benoît CHACHUAT: Automatic Control Laboratory  Nonlinear Programming, Calculus of Variations and Optimal Control.
 Flood: An open source neural networks C++ library
 GPOPS  Open Source Pseudospectral Optimal Control Solver in MATLAB
 Elmer G. Wiens: Optimal Control  Applications of Optimal Control Theory Using the Pontryagin Maximum Principle with interactive models.
 PPOPT  MATLAB Optimal Control Software
 PSOPT  Open Source Pseudospectral Optimal Control Solver in C++
 GESOP  Graphical Environment for Simulation and OPtimization
Categories: 
Wikimedia Foundation. 2010.
Look at other dictionaries:
optimal control — optimalusis valdymas statusas T sritis automatika atitikmenys: angl. optimal control vok. optimale Regelung, f; optimale Steuerung, f rus. оптимальное управление, n pranc. commande optimale, f … Automatikos terminų žodynas
optimal control — optimalusis reguliavimas statusas T sritis automatika atitikmenys: angl. optimal control vok. optimale Regelung, m rus. оптимальное регулирование, n pranc. régulation optimale, m … Automatikos terminų žodynas
Pseudospectral optimal control — Pseudospectral (PS) optimal control is a computational method for solving optimal control problems. PS optimal controllers have beenextensively used to solve a wide range of problems such as those arising in UAV trajectory generation, missile… … Wikipedia
DIDO (optimal control) — DIDO is a user friendly MATLAB program for solving hybrid optimal control problems. The general purpose program is named after Dido, the legendary founder and first queen of Carthage who is famous in mathematics for her remarkable solution to a… … Wikipedia
timeoptimal control — optimalusis greitaveikos valdymas statusas T sritis automatika atitikmenys: angl. time optimal control vok. zeitoptimale Regelung, f; zeitoptimale Steuerung, f rus. оптимальное по быстродействию управление, n pranc. régulation brachystochrone, f … Automatikos terminų žodynas
Control engineering — Control systems play a critical role in space flight Control engineering or Control systems engineering is the engineering discipline that applies control theory to design systems with predictable behaviors. The practice uses sensors to measure… … Wikipedia
Optimal design — This article is about the topic in the design of experiments. For the topic in optimal control theory, see shape optimization. Gustav Elfving developed the optimal design of experiments, and so minimized surveyors need for theodolite measurements … Wikipedia
Optimal projection equations — In control, the Linear Quadratic Gaussian (LQG) control problem is one of the most fundamental optimal control problems. It concerns uncertain linear systems disturbed by additive white Gaussian noise, incomplete state information (i.e. not all… … Wikipedia
Control theory — For control theory in psychology and sociology, see control theory (sociology) and Perceptual Control Theory. The concept of the feedback loop to control the dynamic behavior of the system: this is negative feedback, because the sensed value is… … Wikipedia
control theory — Field of applied mathematics relevant to the control of certain physical processes and systems. It became a field in its own right in the late 1950s and early 60s. After World War II, problems arising in engineering and economics were recognized… … Universalium