# Optimization problem

For a broader coverage related to this topic, see Mathematical optimization.

In mathematics and computer science, an optimization problem is the problem of finding the best solution from all feasible solutions. Optimization problems can be divided into two categories depending on whether the variables are continuous or discrete. An optimization problem with discrete variables is known as a combinatorial optimization problem. In a combinatorial optimization problem, we are looking for an object such as an integer, permutation or graph from a finite (or possibly countable infinite) set. Problems with continuous variables include constrained problems and multimodal problems.

## Continuous optimization problem

The standard form of a (continuous) optimization problem is[1]

{\displaystyle {\begin{aligned}&{\underset {x}{\operatorname {minimize} }}&&f(x)\\&\operatorname {subject\;to} &&g_{i}(x)\leq 0,\quad i=1,\dots ,m\\&&&h_{i}(x)=0,\quad i=1,\dots ,p\end{aligned}}}

where

• ${\displaystyle f(x):\mathbb {R} ^{n}\to \mathbb {R} }$ is the objective function to be minimized over the variable ${\displaystyle x}$,
• ${\displaystyle g_{i}(x)\leq 0}$ are called inequality constraints, and
• ${\displaystyle h_{i}(x)=0}$ are called equality constraints.

By convention, the standard form defines a minimization problem. A maximization problem can be treated by negating the objective function.

## Combinatorial optimization problem

Formally, a combinatorial optimization problem ${\displaystyle A}$ is a quadruple ${\displaystyle (I,f,m,g)}$, where

• ${\displaystyle I}$ is a set of instances;
• given an instance ${\displaystyle x\in I}$, ${\displaystyle f(x)}$ is the set of feasible solutions;
• given an instance ${\displaystyle x}$ and a feasible solution ${\displaystyle y}$ of ${\displaystyle x}$, ${\displaystyle m(x,y)}$ denotes the measure of ${\displaystyle y}$, which is usually a positive real.
• ${\displaystyle g}$ is the goal function, and is either ${\displaystyle \min }$ or ${\displaystyle \max }$.

The goal is then to find for some instance ${\displaystyle x}$ an optimal solution, that is, a feasible solution ${\displaystyle y}$ with

${\displaystyle m(x,y)=g\{m(x,y')\mid y'\in f(x)\}.}$

For each combinatorial optimization problem, there is a corresponding decision problem that asks whether there is a feasible solution for some particular measure ${\displaystyle m_{0}}$. For example, if there is a graph ${\displaystyle G}$ which contains vertices ${\displaystyle u}$ and ${\displaystyle v}$, an optimization problem might be "find a path from ${\displaystyle u}$ to ${\displaystyle v}$ that uses the fewest edges". This problem might have an answer of, say, 4. A corresponding decision problem would be "is there a path from ${\displaystyle u}$ to ${\displaystyle v}$ that uses 10 or fewer edges?" This problem can be answered with a simple 'yes' or 'no'.

In the field of approximation algorithms, algorithms are designed to find near-optimal solutions to hard problems. The usual decision version is then an inadequate definition of the problem since it only specifies acceptable solutions. Even though we could introduce suitable decision problems, the problem is more naturally characterized as an optimization problem.[2]

### NP optimization problem

An NP-optimization problem (NPO) is a combinatorial optimization problem with the following additional conditions.[3] Note that the below referred polynomials are functions of the size of the respective functions' inputs, not the size of some implicit set of input instances.

• the size of every feasible solution ${\displaystyle \scriptstyle y\in f(x)}$ is polynomially bounded in the size of the given instance ${\displaystyle x}$,
• the languages ${\displaystyle \scriptstyle \{\,x\,\mid \,x\in I\,\}}$ and ${\displaystyle \scriptstyle \{\,(x,y)\,\mid \,y\in f(x)\,\}}$ can be recognized in polynomial time, and
• m is polynomial-time computable.

This implies that the corresponding decision problem is in NP. In computer science, interesting optimization problems usually have the above properties and are therefore NPO problems. A problem is additionally called a P-optimization (PO) problem, if there exists an algorithm which finds optimal solutions in polynomial time. Often, when dealing with the class NPO, one is interested in optimization problems for which the decision versions are NP-complete. Note that hardness relations are always with respect to some reduction. Due to the connection between approximation algorithms and computational optimization problems, reductions which preserve approximation in some respect are for this subject preferred than the usual Turing and Karp reductions. An example of such a reduction would be the L-reduction. For this reason, optimization problems with NP-complete decision versions are not necessarily called NPO-complete.[4]

NPO is divided into the following subclasses according to their approximability:[3]

• NPO(I): Equals FPTAS. Contains the Knapsack problem.
• NPO(II): Equals PTAS. Contains the Makespan scheduling problem.
• NPO(III): :The class of NPO problems that have polynomial-time algorithms which computes solutions with a cost at most c times the optimal cost (for minimization problems) or a cost at least ${\displaystyle 1/c}$ of the optimal cost (for maximization problems). In Hromkovič's book, excluded from this class are all NPO(II)-problems save if P=NP. Without the exclusion, equals APX. Contains MAX-SAT and metric TSP.
• NPO(IV): :The class of NPO problems with polynomial-time algorithms approximating the optimal solution by a ratio that is polynomial in a logarithm of the size of the input. In Hromkovic's book, all NPO(III)-problems are excluded from this class unless P=NP. Contains the set cover problem.
• NPO(V): :The class of NPO problems with polynomial-time algorithms approximating the optimal solution by a ratio bounded by some function on n. In Hromkovic's book, all NPO(IV)-problems are excluded from this class unless P=NP. Contains the TSP and Max Clique problems.

Another class of interest is NPOPB, NPO with polynomially bounded cost functions. Problems with this condition have many desirable properties.

## References

1. ^ Boyd, Stephen P.; Vandenberghe, Lieven (2004). Convex Optimization (pdf). Cambridge University Press. p. 129. ISBN 978-0-521-83378-3.
2. ^ Ausiello, Giorgio; et al. (2003), Complexity and Approximation (Corrected ed.), Springer, ISBN 978-3-540-65431-5
3. ^ a b Hromkovic, Juraj (2002), Algorithmics for Hard Problems, Texts in Theoretical Computer Science (2nd ed.), Springer, ISBN 978-3-540-44134-2
4. ^ Kann, Viggo (1992), On the Approximability of NP-complete Optimization Problems, Royal Institute of Technology, Sweden, ISBN 91-7170-082-X