Mathematical optimization
Mathematical optimization or mathematical programming is the selection of a best element from some set of available alternatives. Optimization problems of sorts arise in all quantitative disciplines from computer science and engineering to operations research and economics, and the development of solution methods has been of interest in mathematics for centuries.
In the simplest case, an optimization problem consists of maximizing or minimizing a real function by systematically choosing input values from within an allowed set and computing the value of the function. The generalization of optimization theory and techniques to other formulations constitutes a large area of applied mathematics. More generally, optimization includes finding "best available" values of some objective function given a defined domain, including a variety of different types of objective functions and different types of domains.
Optimization problems
An optimization problem can be represented in the following way:Such a formulation is called an optimization problem or a mathematical programming problem. Many real-world and theoretical problems may be modeled in this general framework.
Since the following is valid
with
it is more convenient to solve minimization problems. However, the opposite perspective would be valid, too.
Problems formulated using this technique in the fields of physics may refer to the technique as energy minimization, speaking of the value of the function as representing the energy of the system being modeled. In machine learning, it is always necessary to continuously evaluate the quality of a data model by using a cost function where a minimum implies a set of possibly optimal parameters with an optimal error.
Typically, is some subset of the Euclidean space, often specified by a set of constraints, equalities or inequalities that the members of have to satisfy. The domain of is called the search space or the choice set, while the elements of are called candidate solutions or feasible solutions.
The function is called, variously, an objective function, a loss function or cost function, a utility function or fitness function, or, in certain fields, an energy function or energy functional. A feasible solution that minimizes the objective function is called an optimal solution.
In mathematics, conventional optimization problems are usually stated in terms of minimization.
A local minimum is defined as an element for which there exists some such that
the expression holds;
that is to say, on some region around all of the function values are greater than or equal to the value at that element.
Local maxima are defined similarly.
While a local minimum is at least as good as any nearby elements, a global minimum is at least as good as every feasible element.
Generally, unless the objective function is convex in a minimization problem, there may be several local minima.
In a convex problem, if there is a local minimum that is interior, it is also the global minimum, but a nonconvex problem may have more than one local minimum not all of which need be global minima.
A large number of algorithms proposed for solving the nonconvex problems – including the majority of commercially available solvers – are not capable of making a distinction between locally optimal solutions and globally optimal solutions, and will treat the former as actual solutions to the original problem. Global optimization is the branch of applied mathematics and numerical analysis that is concerned with the development of deterministic algorithms that are capable of guaranteeing convergence in finite time to the actual optimal solution of a nonconvex problem.
Notation
Optimization problems are often expressed with special notation. Here are some examples:Minimum and maximum value of a function
Consider the following notation:This denotes the minimum value of the objective function, when choosing from the set of real numbers. The minimum value in this case is 1, occurring at.
Similarly, the notation
asks for the maximum value of the objective function, where may be any real number. In this case, there is no such maximum as the objective function is unbounded, so the answer is "infinity" or "undefined".
Optimal input arguments
Consider the following notation:or equivalently
This represents the value of the argument in the interval that minimizes the objective function . In this case, the answer is, since is infeasible, that is, it does not belong to the feasible set.
Similarly,
or equivalently
represents the pair that maximizes the value of the objective function, with the added constraint that lie in the interval . In this case, the solutions are the pairs of the form and, where ranges over all integers.
Operators and are sometimes also written as and, and stand for argument of the minimum and argument of the maximum.
History
and Lagrange found calculus-based formulae for identifying optima, while Newton and Gauss proposed iterative methods for moving towards an optimum.The term "linear programming" for certain optimization cases was due to George B. Dantzig, although much of the theory had been introduced by Leonid Kantorovich in 1939. Dantzig published the Simplex algorithm in 1947, and John von Neumann developed the theory of duality in the same year.
Other notable researchers in mathematical optimization include the following:
- Richard Bellman
- Roger Fletcher
- Ronald A. Howard
- Fritz John
- Narendra Karmarkar
- William Karush
- Leonid Khachiyan
- Bernard Koopman
- Harold Kuhn
- László Lovász
- Arkadi Nemirovski
- Yurii Nesterov
- Lev Pontryagin
- R. Tyrrell Rockafellar
- Naum Z. Shor
- Albert Tucker
Major subfields
- Convex programming studies the case when the objective function is convex or concave and the constraint set is convex. This can be viewed as a particular case of nonlinear programming or as generalization of linear or convex quadratic programming.
- * Linear programming, a type of convex programming, studies the case in which the objective function f is linear and the constraints are specified using only linear equalities and inequalities. Such a constraint set is called a polyhedron or a polytope if it is bounded.
- * Second order cone programming is a convex program, and includes certain types of quadratic programs.
- * Semidefinite programming is a subfield of convex optimization where the underlying variables are semidefinite matrices. It is a generalization of linear and convex quadratic programming.
- * Conic programming is a general form of convex programming. LP, SOCP and SDP can all be viewed as conic programs with the appropriate type of cone.
- * Geometric programming is a technique whereby objective and inequality constraints expressed as posynomials and equality constraints as monomials can be transformed into a convex program.
- Integer programming studies linear programs in which some or all variables are constrained to take on integer values. This is not convex, and in general much more difficult than regular linear programming.
- Quadratic programming allows the objective function to have quadratic terms, while the feasible set must be specified with linear equalities and inequalities. For specific forms of the quadratic term, this is a type of convex programming.
- Fractional programming studies optimization of ratios of two nonlinear functions. The special class of concave fractional programs can be transformed to a convex optimization problem.
- Nonlinear programming studies the general case in which the objective function or the constraints or both contain nonlinear parts. This may or may not be a convex program. In general, whether the program is convex affects the difficulty of solving it.
- Stochastic programming studies the case in which some of the constraints or parameters depend on random variables.
- Robust optimization is, like stochastic programming, an attempt to capture uncertainty in the data underlying the optimization problem. Robust optimization aims to find solutions that are valid under all possible realizations of the uncertainties defined by an uncertainty set.
- Combinatorial optimization is concerned with problems where the set of feasible solutions is discrete or can be reduced to a discrete one.
- Stochastic optimization is used with random function measurements or random inputs in the search process.
- Infinite-dimensional optimization studies the case when the set of feasible solutions is a subset of an infinite-dimensional space, such as a space of functions.
- Heuristics and metaheuristics make few or no assumptions about the problem being optimized. Usually, heuristics do not guarantee that any optimal solution need be found. On the other hand, heuristics are used to find approximate solutions for many complicated optimization problems.
- Constraint satisfaction studies the case in which the objective function f is constant.
- * Constraint programming is a programming paradigm wherein relations between variables are stated in the form of constraints.
- Disjunctive programming is used where at least one constraint must be satisfied but not all. It is of particular use in scheduling.
- Space mapping is a concept for modeling and optimization of an engineering system to high-fidelity model accuracy exploiting a suitable physically meaningful coarse or surrogate model.
- Calculus of variations seeks to optimize an action integral over some space to an extremum by varying a function of the coordinates.
- Optimal control theory is a generalization of the calculus of variations which introduces control policies.
- Dynamic programming is the approach to solve the stochastic optimization problem with stochastic, randomness, and unknown model parameters. It studies the case in which the optimization strategy is based on splitting the problem into smaller subproblems. The equation that describes the relationship between these subproblems is called the Bellman equation.
- Mathematical programming with equilibrium constraints is where the constraints include variational inequalities or complementarities.
Multi-objective optimization
A design is judged to be "Pareto optimal" if it is not dominated by any other design: If it is worse than another design in some respects and no better in any respect, then it is dominated and is not Pareto optimal.
The choice among "Pareto optimal" solutions to determine the "favorite solution" is delegated to the decision maker. In other words, defining the problem as multi-objective optimization signals that some information is missing: desirable objectives are given but combinations of them are not rated relative to each other. In some cases, the missing information can be derived by interactive sessions with the decision maker.
Multi-objective optimization problems have been generalized further into vector optimization problems where the ordering is no longer given by the Pareto ordering.
Multi-modal or global optimization
Optimization problems are often multi-modal; that is, they possess multiple good solutions. They could all be globally good or there could be a mix of globally good and locally good solutions. Obtaining all the multiple solutions is the goal of a multi-modal optimizer.Classical optimization techniques due to their iterative approach do not perform satisfactorily when they are used to obtain multiple solutions, since it is not guaranteed that different solutions will be obtained even with different starting points in multiple runs of the algorithm.
Common approaches to global optimization problems, where multiple local extrema may be present include evolutionary algorithms, Bayesian optimization and simulated annealing.
Classification of critical points and extrema
Feasibility problem
The satisfiability problem, also called the feasibility problem, is just the problem of finding any feasible solution at all without regard to objective value. This can be regarded as the special case of mathematical optimization where the objective value is the same for every solution, and thus any solution is optimal.Many optimization algorithms need to start from a feasible point. One way to obtain such a point is to relax the feasibility conditions using a slack variable; with enough slack, any starting point is feasible. Then, minimize that slack variable until the slack is null or negative.
Existence
The extreme value theorem of Karl Weierstrass states that a continuous real-valued function on a compact set attains its maximum and minimum value. More generally, a lower semi-continuous function on a compact set attains its minimum; an upper semi-continuous function on a compact set attains its maximum point or view.Necessary conditions for optimality
states that optima of unconstrained problems are found at stationary points, where the first derivative or the gradient of the objective function is zero. More generally, they may be found at critical points, where the first derivative or gradient of the objective function is zero or is undefined, or on the boundary of the choice set. An equation stating that the first derivative equal zero at an interior optimum is called a 'first-order condition' or a set of first-order conditions.Optima of equality-constrained problems can be found by the Lagrange multiplier method. The optima of problems with equality and/or inequality constraints can be found using the 'Karush–Kuhn–Tucker conditions'.
Sufficient conditions for optimality
While the first derivative test identifies points that might be extrema, this test does not distinguish a point that is a minimum from one that is a maximum or one that is neither. When the objective function is twice differentiable, these cases can be distinguished by checking the second derivative or the matrix of second derivatives in unconstrained problems, or the matrix of second derivatives of the objective function and the constraints called the bordered Hessian in constrained problems. The conditions that distinguish maxima, or minima, from other stationary points are called 'second-order conditions'. If a candidate solution satisfies the first-order conditions, then the satisfaction of the second-order conditions as well is sufficient to establish at least local optimality.Sensitivity and continuity of optima
The envelope theorem describes how the value of an optimal solution changes when an underlying parameter changes. The process of computing this change is called comparative statics.The maximum theorem of Claude Berge describes the continuity of an optimal solution as a function of underlying parameters.
Calculus of optimization
For unconstrained problems with twice-differentiable functions, some critical points can be found by finding the points where the gradient of the objective function is zero. More generally, a zero subgradient certifies that a local minimum has been found for minimization problems with convex functions and other locally Lipschitz functions.Further, critical points can be classified using the definiteness of the Hessian matrix: If the Hessian is positive definite at a critical point, then the point is a local minimum; if the Hessian matrix is negative definite, then the point is a local maximum; finally, if indefinite, then the point is some kind of saddle point.
Constrained problems can often be transformed into unconstrained problems with the help of Lagrange multipliers. Lagrangian relaxation can also provide approximate solutions to difficult constrained problems.
When the objective function is a convex function, then any local minimum will also be a global minimum. There exist efficient numerical techniques for minimizing convex functions, such as interior-point methods.
Computational optimization techniques
To solve problems, researchers may use algorithms that terminate in a finite number of steps, or iterative methods that converge to a solution, or heuristics that may provide approximate solutions to some problems.Optimization algorithms
- Simplex algorithm of George Dantzig, designed for linear programming.
- Extensions of the simplex algorithm, designed for quadratic programming and for linear-fractional programming.
- Variants of the simplex algorithm that are especially suited for network optimization.
- Combinatorial algorithms
- Quantum optimization algorithms
Iterative methods
One major criterion for optimizers is just the number of required function evaluations as this often is already a large computational effort, usually much more effort than within the optimizer itself, which mainly has to operate over the N variables.
The derivatives provide detailed information for such optimizers, but are even harder to calculate, e.g. approximating the gradient takes at least N+1 function evaluations. For approximations of the 2nd derivatives, the number of function evaluations is in the order of N². Newton's method requires the 2nd order derivatives, so for each iteration, the number of function calls is in the order of N², but for a simpler pure gradient optimizer it is only N. However, gradient optimizers need usually more iterations than Newton's algorithm. Which one is best with respect to the number of function calls depends on the problem itself.
- Methods that evaluate Hessians :
- * Newton's method
- * Sequential quadratic programming: A Newton-based method for small-medium scale constrained problems. Some versions can handle large-dimensional problems.
- * Interior point methods: This is a large class of methods for constrained optimization. Some interior-point methods use only gradient information and others of which require the evaluation of Hessians.
- Methods that evaluate gradients, or approximate gradients in some way :
- * Coordinate descent methods: Algorithms which update a single coordinate in each iteration
- * Conjugate gradient methods: Iterative methods for large problems.
- * Gradient descent : A method of historical and theoretical interest, which has had renewed interest for finding approximate solutions of enormous problems.
- * Subgradient methods - An iterative method for large locally Lipschitz functions using generalized gradients. Following Boris T. Polyak, subgradient–projection methods are similar to conjugate–gradient methods.
- * Bundle method of descent: An iterative method for small–medium-sized problems with locally Lipschitz functions, particularly for convex minimization problems.
- * Ellipsoid method: An iterative method for small problems with quasiconvex objective functions and of great theoretical interest, particularly in establishing the polynomial time complexity of some combinatorial optimization problems. It has similarities with Quasi-Newton methods.
- * Conditional gradient method for approximate minimization of specially structured problems with linear constraints, especially with traffic networks. For general unconstrained problems, this method reduces to the gradient method, which is regarded as obsolete.
- * Quasi-Newton methods: Iterative methods for medium-large problems.
- * Simultaneous perturbation stochastic approximation method for stochastic optimization; uses random gradient approximation.
- Methods that evaluate only function values: If a problem is continuously differentiable, then gradients can be approximated using finite differences, in which case a gradient-based method can be used.
- * Interpolation methods
- * Pattern search methods, which have better convergence properties than the Nelder–Mead heuristic, which is listed below.
Global convergence
Heuristics
Besides algorithms and iterative methods, there are heuristics. A heuristic is any algorithm which is not guaranteed to find the solution, but which is nevertheless useful in certain practical situations. List of some well-known heuristics:- Memetic algorithm
- Differential evolution
- Evolutionary algorithms
- Dynamic relaxation
- Genetic algorithms
- Hill climbing with random restart
- Nelder-Mead simplicial heuristic: A popular heuristic for approximate minimization
- Particle swarm optimization
- Gravitational search algorithm
- Simulated annealing
- Stochastic tunneling
- Tabu search
- Reactive Search Optimization implemented in LIONsolver
Applications
Mechanics
Problems in rigid body dynamics often require mathematical programming techniques, since you can view rigid body dynamics as attempting to solve an ordinary differential equation on a constraint manifold; the constraints are various nonlinear geometric constraints such as "these two points must always coincide", "this surface must not penetrate any other", or "this point must always lie somewhere on this curve". Also, the problem of computing contact forces can be done by solving a linear complementarity problem, which can also be viewed as a QP problem.Many design problems can also be expressed as optimization programs. This application is called design optimization. One subset is the engineering optimization, and another recent and growing subset of this field is multidisciplinary design optimization, which, while useful in many problems, has in particular been applied to aerospace engineering problems.
This approach may be applied in cosmology and astrophysics.
Economics and finance
is closely enough linked to optimization of agents that an influential definition relatedly describes economics qua science as the "study of human behavior as a relationship between ends and scarce means" with alternative uses. Modern optimization theory includes traditional optimization theory but also overlaps with game theory and the study of economic equilibria. The Journal of Economic Literature codes classify mathematical programming, optimization techniques, and related topics under.In microeconomics, the utility maximization problem and its dual problem, the expenditure minimization problem, are economic optimization problems. Insofar as they behave consistently, consumers are assumed to maximize their utility, while firms are usually assumed to maximize their profit. Also, agents are often modeled as being risk-averse, thereby preferring to avoid risk. Asset prices are also modeled using optimization theory, though the underlying mathematics relies on optimizing stochastic processes rather than on static optimization. International trade theory also uses optimization to explain trade patterns between nations. The optimization of portfolios is an example of multi-objective optimization in economics.
Since the 1970s, economists have modeled dynamic decisions over time using control theory. For example, dynamic search models are used to study labor-market behavior. A crucial distinction is between deterministic and stochastic models. Macroeconomists build dynamic stochastic general equilibrium models that describe the dynamics of the whole economy as the result of the interdependent optimizing decisions of workers, consumers, investors, and governments.