# Karush–Kuhn–Tucker conditions

(Redirected from Kuhn Tucker)

In mathematical optimization, the Karush–Kuhn–Tucker (KKT) conditions (also known as the Kuhn–Tucker conditions) are first order necessary conditions for a solution in nonlinear programming to be optimal, provided that some regularity conditions are satisfied. Allowing inequality constraints, the KKT approach to nonlinear programming generalizes the method of Lagrange multipliers, which allows only equality constraints. The system of equations corresponding to the KKT conditions is usually not solved directly, except in the few special cases where a closed-form solution can be derived analytically. In general, many optimization algorithms can be interpreted as methods for numerically solving the KKT system of equations.[1]

The KKT conditions were originally named after Harold W. Kuhn, and Albert W. Tucker, who first published the conditions in 1951.[2] Later scholars discovered that the necessary conditions for this problem had been stated by William Karush in his master's thesis in 1939.[3][4]

## Nonlinear optimization problem

Consider the following nonlinear optimization problem:

Minimize ${\displaystyle f(x)}$
subject to
${\displaystyle g_{i}(x)\leq 0,h_{j}(x)=0}$

where x is the optimization variable, ${\displaystyle f}$ is the objective or utility function, ${\displaystyle g_{i}\ (i=1,\ldots ,m)}$ are the inequality constraint functions, and ${\displaystyle h_{j}\ (j=1,\ldots ,l)}$ are the equality constraint functions. The numbers of inequality and equality constraints are denoted m and l, respectively.

## Necessary conditions

Suppose that the objective function ${\displaystyle f:\mathbb {R} ^{n}\rightarrow \mathbb {R} }$ and the constraint functions ${\displaystyle g_{i}:\,\!\mathbb {R} ^{n}\rightarrow \mathbb {R} }$ and ${\displaystyle h_{j}:\,\!\mathbb {R} ^{n}\rightarrow \mathbb {R} }$ are continuously differentiable at a point ${\displaystyle x^{*}}$. If ${\displaystyle x^{*}}$ is a local optimum and the optimization problem satisfies some regularity conditions (see below), then there exist constants ${\displaystyle \mu _{i}\ (i=1,\ldots ,m)}$ and ${\displaystyle \lambda _{j}\ (j=1,\ldots ,l)}$, called KKT multipliers, such that

Inequality constraint diagram for optimization problems
Stationarity
For maximizing f(x): ${\displaystyle \nabla f(x^{*})=\sum _{i=1}^{m}\mu _{i}\nabla g_{i}(x^{*})+\sum _{j=1}^{l}\lambda _{j}\nabla h_{j}(x^{*}),}$
For minimizing f(x): ${\displaystyle -\nabla f(x^{*})=\sum _{i=1}^{m}\mu _{i}\nabla g_{i}(x^{*})+\sum _{j=1}^{l}\lambda _{j}\nabla h_{j}(x^{*}),}$
Primal feasibility
${\displaystyle g_{i}(x^{*})\leq 0,{\mbox{ for all }}i=1,\ldots ,m}$
${\displaystyle h_{j}(x^{*})=0,{\mbox{ for all }}j=1,\ldots ,l\,\!}$
Dual feasibility
${\displaystyle \mu _{i}\geq 0,{\mbox{ for all }}i=1,\ldots ,m}$
Complementary slackness
${\displaystyle \mu _{i}g_{i}(x^{*})=0,{\mbox{for all}}\;i=1,\ldots ,m.}$

In the particular case ${\displaystyle m=0}$, i.e., when there are no inequality constraints, the KKT conditions turn into the Lagrange conditions, and the KKT multipliers are called Lagrange multipliers.

If some of the functions are non-differentiable, subdifferential versions of Karush–Kuhn–Tucker (KKT) conditions are available.[5]

## Regularity conditions (or constraint qualifications)

In order for a minimum point ${\displaystyle x^{*}}$ to satisfy the above KKT conditions, the problem should satisfy some regularity conditions; the most used ones are listed below:

• Linearity constraint qualification: If ${\displaystyle g_{i}}$ and ${\displaystyle h_{j}}$ are affine functions, then no other condition is needed.
• Linear independence constraint qualification (LICQ): the gradients of the active inequality constraints and the gradients of the equality constraints are linearly independent at ${\displaystyle x^{*}}$.
• Mangasarian–Fromovitz constraint qualification (MFCQ): the gradients of the active inequality constraints and the gradients of the equality constraints are positive-linearly independent at ${\displaystyle x^{*}}$.
• Constant rank constraint qualification (CRCQ): for each subset of the gradients of the active inequality constraints and the gradients of the equality constraints the rank at a vicinity of ${\displaystyle x^{*}}$ is constant.
• Constant positive linear dependence constraint qualification (CPLD): for each subset of the gradients of the active inequality constraints and the gradients of the equality constraints, if it is positive-linear dependent at ${\displaystyle x^{*}}$ then it is positive-linear dependent at a vicinity of ${\displaystyle x^{*}}$.
• Quasi-normality constraint qualification (QNCQ): if the gradients of the active inequality constraints and the gradients of the equality constraints are positive-linearly dependent at ${\displaystyle x^{*}}$ with associated multipliers ${\displaystyle \lambda _{i}}$ for equalities and ${\displaystyle \mu _{j}}$ for inequalities, then there is no sequence ${\displaystyle x_{k}\to x^{*}}$ such that ${\displaystyle \lambda _{i}\neq 0\Rightarrow \lambda _{i}h_{i}(x_{k})>0}$ and ${\displaystyle \mu _{j}\neq 0\Rightarrow \mu _{j}g_{j}(x_{k})>0}$.
• Slater condition: for a convex problem, there exists a point ${\displaystyle x}$ such that ${\displaystyle h(x)=0}$ and ${\displaystyle g_{i}(x)<0}$.

(${\displaystyle v_{1},\ldots ,v_{n}}$) is positive-linear dependent if there exists ${\displaystyle a_{1}\geq 0,\ldots ,a_{n}\geq 0}$ not all zero such that ${\displaystyle a_{1}v_{1}+\cdots +a_{n}v_{n}=0}$.

It can be shown that LICQ⇒MFCQ⇒CPLD⇒QNCQ, LICQ⇒CRCQ⇒CPLD⇒QNCQ (and the converses are not true), although MFCQ is not equivalent to CRCQ.[6] In practice weaker constraint qualifications are preferred since they provide stronger optimality conditions.

## Sufficient conditions

In some cases, the necessary conditions are also sufficient for optimality. In general, the necessary conditions are not sufficient for optimality and additional information is necessary, such as the Second Order Sufficient Conditions (SOSC). For smooth functions, SOSC involve the second derivatives, which explains its name.

The necessary conditions are sufficient for optimality if the objective function ${\displaystyle f}$ of a maximization problem is a concave function, the inequality constraints ${\displaystyle g_{j}}$ are continuously differentiable convex functions and the equality constraints ${\displaystyle h_{i}}$ are affine functions.

It was shown by Martin in 1985 that the broader class of functions in which KKT conditions guarantees global optimality are the so-called Type 1 invex functions.[7][8]

### Second Order Sufficient Conditions

For smooth, non-linear optimisation problems, a second order sufficient condition is given as follows. Consider ${\displaystyle x^{*},\lambda ^{*},\rho ^{*}}$ that find a local minimum using the Karush–Kuhn–Tucker conditions above. With ${\displaystyle \rho ^{*}}$ such that strict complementarity is held at ${\displaystyle x^{*}}$(i.e. all ${\displaystyle \mathbb {\rho } _{i}>0}$), then for all ${\displaystyle s\neq 0}$ such that

${\displaystyle \left[{\frac {\partial g(x^{*})}{\partial x}},{\frac {\partial h(x^{*})}{\partial x}}\right]^{T}s=0}$

the following equation must hold;

${\displaystyle s'\nabla _{xx}^{2}L(x^{*},\lambda ^{*},\rho ^{*})s\geq 0}$

If the above condition is strictly met, the function is a strict constrained local minimum.

## Economics

Often in mathematical economics the KKT approach is used in theoretical models in order to obtain qualitative results. For example, consider a firm that maximizes its sales revenue subject to a minimum profit constraint. Letting Q be the quantity of output produced (to be chosen), R(Q) be sales revenue with a positive first derivative and with a zero value at zero output, C(Q) be production costs with a positive first derivative and with a non-negative value at zero output, and ${\displaystyle G_{min}}$ be the positive minimal acceptable level of profit, then the problem is a meaningful one if the revenue function levels off so it eventually is less steep than the cost function. The problem expressed in the previously given minimization form is

Minimize ${\displaystyle -R(Q)}$
subject to
${\displaystyle G_{min}\leq R(Q)-C(Q)}$
${\displaystyle Q\geq 0,}$

and the KKT conditions are

${\displaystyle ({\text{d}}R/{\text{d}}Q)(1+\mu )-\mu ({\text{d}}C/{\text{d}}Q)\leq 0,}$
${\displaystyle Q\geq 0,}$
${\displaystyle Q[({\text{d}}R/{\text{d}}Q)(1+\mu )-\mu ({\text{d}}C/{\text{d}}Q)]=0,}$
${\displaystyle R(Q)-C(Q)-G_{min}\geq 0,}$
${\displaystyle \mu \geq 0,}$
${\displaystyle \mu [R(Q)-C(Q)-G_{min}]=0.}$

Since Q=0 would violate the minimum profit constraint, we have Q>0 and hence the third condition implies that the first condition holds with equality. Solving that equality gives

${\displaystyle {\text{d}}R/{\text{d}}Q={\frac {\mu }{1+\mu }}({\text{d}}C/{\text{d}}Q).}$

Because it was given that ${\displaystyle {\text{d}}R/{\text{d}}Q}$ and ${\displaystyle {\text{d}}C/{\text{d}}Q}$ are strictly positive, this inequality along with the non-negativity condition on ${\displaystyle \mu }$ guarantees that ${\displaystyle \mu }$ is positive and so the revenue-maximizing firm operates at a level of output at which marginal revenue ${\displaystyle {\text{d}}R/{\text{d}}Q}$ is less than marginal cost ${\displaystyle {\text{d}}C/{\text{d}}Q}$ — a result that is of interest because it contrasts with the behavior of a profit maximizing firm, which operates at a level at which they are equal.

## Value function

If we reconsider the optimization problem as a maximization problem with constant inequality constraints,v.

${\displaystyle {\text{Maximize }}\;f(x)}$
${\displaystyle {\text{subject to }}\ }$
${\displaystyle g_{i}(x)\leq a_{i},h_{j}(x)=0.}$

The value function is defined as

${\displaystyle V(a_{1},\ldots ,a_{n})=\sup \limits _{x}f(x)}$
${\displaystyle {\text{subject to }}\ }$
${\displaystyle g_{i}(x)\leq a_{i},h_{j}(x)=0}$
${\displaystyle j\in \{1,\ldots ,l\},i\in \{1,\ldots ,m\}.}$

(So the domain of V is ${\displaystyle \{a\in \mathbb {R} ^{m}|{\text{for some }}x\in X,g_{i}(x)\leq a_{i},i\in \{1,\ldots ,m\}.}$)

Given this definition, each coefficient, ${\displaystyle \mu _{i}}$, is the rate at which the value function increases as ${\displaystyle a_{i}}$ increases. Thus if each ${\displaystyle a_{i}}$ is interpreted as a resource constraint, the coefficients tell you how much increasing a resource will increase the optimum value of our function f. This interpretation is especially important in economics and is used, for instance, in utility maximization problems.

## Generalizations

With an extra constant multiplier ${\displaystyle \mu _{0}}$, which may be zero, in front of ${\displaystyle \nabla f(x^{*})}$ the KKT stationarity conditions turn into

${\displaystyle \mu _{0}\nabla f(x^{*})+\sum _{i=1}^{m}\mu _{i}\nabla g_{i}(x^{*})+\sum _{j=1}^{l}\lambda _{j}\nabla h_{j}(x^{*})=0,}$

which are called the Fritz John conditions.

The KKT conditions belong to a wider class of the First Order Necessary Conditions (FONC), which allow for non-smooth functions using subderivatives.