






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







RAPHAEL HAUSER MATHEMATICAL INSTITUTE, UNIVERSITY OF OXFORD
(NLP) min x∈Rn^
f (x)
s.t. gi(x) = 0, (i ∈ E), gj (x) ≥ 0 (j ∈ I)
mirror the situation in unconstrained optimisation, that is,
F :=
(x, f (x)) : x ∈ Rn
without friction, see Figure 2.1. The external forces acting on the point mass are the gravity force m~g =
−mg
and the reaction force
N^ ~f = mg 1 + ‖∇f (x)‖^2
( (^) −∇f (x) 1
acting in normal direction away from the surface and countering the normal gravity component, so that the resulting total external force is
R^ ~ = m~g + N~f = mg 1 + ‖∇f (x)‖^2
−∇f (x) −‖∇f (x)‖^2
⊥ N~f.
f (x)
N^ ~f
m~g
R~
x
Fig. 2.1. Mechanistic interpretation of unconstrained optimality conditions
This total force equals zero if and only if ∇f (x) = 0, and if the test mass is placed at such a point then it will not move away, which is why we call such points stationary points of f. When the test mass is slightly moved from a local maximiser, then the external forces will pull it further away, whereas in a neighbourhood of a local minimiser they will restore the point mass to its former position. This is expressed by the second order optimality conditions: an equilibrium position is stable if D^2 f (x) ≻ 0 and instable if D^2 f (x) ≺ 0. This mechanistic interpretation extends to constrained optimisation: we can in- terpret an inequality constraint g(x) ≥ 0 as a hard smooth surface
G :=
(x, z) ∈ Rn^ × R : g(x) = 0
which is parallel to the z-axis everywhere and keeps the point mass from rolling into the domain where g(x) < 0. Such a surface can exert only a normal force that points towards the domain {x : gj (x) > 0 }. Therefore, the reaction force must be of the form N^ ~g = μg^ (^ ∇g(x) 0
, where μg ≥ 0. In the case depicted in Figure 2.2 where there is only one inequality constraint, the point mass is at rest and does not roll to lower terrain if the sum of external forces is zero, that is, N~f + N~g + m~g = 0. Since N~f = μf
( (^) −∇f (x) 1
for some μf ≥ 0, we find
μf
−∇f (x) 1
∇g(x) 0
−mg
from where it follows that μf = mg and
∇f (x) = λ∇g(x) (2.1)
with λ = μ/mg ≥ 0. In other words, N~f is determined by the condition that its vertical component counter-balances the force of gravity, and N~g by the condition
that it counter-balances the horizontal component of N~f. This second condition is expressed in the balance equation (2.1). When multiple inequality constraints are present, then the horizontal component of N~f must be counter-balanced by the sum of the reaction forces excerted by the
where we replaced the difference λ+ i −λ− i of the bound-constrained variables λ+ i , λ− i ≥ 0 by a single unconstrained variable λi = λ+ i −λ− i. Note that in this case the conditions λ+ i gi(x) = 0, λ− i (−gi(x)) = 0 are satisfied automatically, since gi(x) = 0 if x is feasible. In summary, our mechanistic motivation suggests that if x is a local minimiser of (NLP), then there exist Lagrange multipliers λ ∈ R|I∪E|^ such that
∇f (x) −
i∈I∪E
λi∇gi(x) = 0
gi(x) = 0 (i ∈ E) gj (x) ≥ 0 (j ∈ I) λj gj (x) = 0 (j ∈ I) λj ≥ 0 (j ∈ I).
These are the so-called Karush-Kuhn-Tucker (KKT) conditions. Our intuitive mo- tivation cannot replace a rigorous proof, but the physical interpretation provides an easy explanation and provides a jog for memory.
2.2. Constraint Qualification. Before we start deriving the KKT conditions more rigorously, we introduce a few technical concepts and some notation.
Definition 2.1. Let x∗^ ∈ Rn^ be feasible for the problem (NLP). We say that the inequality constraint gj (x) ≥ 0 is active at x∗^ if g(x∗) = 0. We write A(x∗) := {j ∈ I : gj (x∗) = 0} for the set of indices corresponding to active inequality constraints.
Of course, equality constraints are always active, but we will account for their indices separately. If J ⊂ E ∪ I is a subset of indices, we will write gJ for the vector- valued map that has gi (i ∈ J ) as components in some specific order. Furthermore, we write g for gE∪I. There are situations in which our mechanical picture does not apply: if two in- equality constraints have first order contact at a local minimiser, as in Figure 2.4, then they cannot annul the horizontal part of N~f. In this case the mechanistic inter- pretation is flawed. When there are more constraints constraints, then generalisations of this situation can occur. In order to prove the KKT conditions, we must therefore make a regularity assumption on the constraints:
Definition 2.2. If {∇gi : i ∈ E ∪ A(x∗)} is a linearly independent set of vectors, we say that the linear independence constraint qualification (LICQ) holds at x∗.
The LICQ assumption guarantees that the linearisation of (NLP) around x∗^ is differential-topologically equivalent to (NLP) in a neighbourhood of x∗: the dimension of the manifold formed by the strictly feasible points in a neighbourhood of x∗^ must remain the same after replacing each of the constraint surfaces by their tangent plane at x∗, see Figure 2.6. We illustrate two situations in which the dimension of the strictly feasible set changes in the linearised problem:
G 1
G 2 F
N~f N^ ~g 1
N^ ~g 2
x 1
x 2
f (x)
x∗
Fig. 2.4. The mechanistic interpretation breaks down because the surfaces G 1 and G 2 are tangential to one another at x∗.
lapses. Figure 2.6 shows that this doesn’t happen when the constraint surfaces intersect properly.
{x : g 1 (x) > 0 }
{x : g 2 (x) > 0 } {x : ∇g 1 (x∗)(x − x∗) > 0 }
{x : ∇g 2 (x∗)(x − x∗) > 0 }
x∗ x∗
Fig. 2.5. Two active inequality constraints do not intersect properly
Lemma 2.3. Consider the problem (NLP) where f and gi (i ∈ E ∪ I) are Ck functions with k ≥ 1. Let x∗^ be a feasible point where the LICQ holds and let d ∈ Rn be a vector such that
d 6 = 0, dT∇gi(x∗) = 0, (i ∈ E), dT∇gj (x∗) ≥ 0 , (j ∈ A(x∗)).
Then for ǫ > 0 small enough there exists a path x ∈ Ck
(−ǫ, +ǫ), Rn
such that
x(0) = x∗, d dt x(0) = d,
gi(x(t)) = tdT∇gi(x∗) (i ∈ E ∪ A(x∗), t ∈ (−ǫ, ǫ)), gi(x(t)) = 0, (i ∈ E, t ∈ (−ǫ, ǫ)), gj (x(t)) ≥ 0 (j ∈ I, t ≥ 0).
Proof. Let l = |A(x∗) ∪ E|. Since the LICQ holds, it is possible to choose Z ∈ R(n−l)×n^ such that
[ (^) DgA(x∗)∪E (x∗) Z
is a nonsingular n×n matrix. Let h : Rn^ ×R → Rn be defined by
(x, t) 7 →
[ (^) gA(x∗)∪E (x)−tDgA(x∗)∪E (x∗)d Z(x−x∗−td)
Then h′(x∗, 0) = [ Dxh(x∗,0)^ Dth(x∗,0)^ ], where where
Dxh(x∗, 0) =
[ (^) DgA(x∗)∪E (x∗) Z
and Dth(x∗, 0) = −
[ (^) DgA(x∗)∪E (x∗)d Zd
= −Dxh(x∗, 0)d
are the leading n × n and trailing n × 1 block respectively. Since Dxh(x∗, 0) is nonsingular, the Implicit Function Theorem (see Lecture 8) implies that for ˜ǫ > 0 small enough there exists a unique Ck^ function x : (−ǫ,˜ ˜ǫ) → Rn and a neighbourhood V(x∗) such that for x ∈ V(x∗), t ∈ (−˜ǫ, ˜ǫ),
h(x, t) = 0 ⇔ x = x(t).
In particular, we have x(0) = x∗^ and gi(x(t)) = tdT∇g(x∗) for all i ∈ A(x∗) ∪ E and t ∈ (−˜ǫ, ˜ǫ). (2.2) therefore implies that gi(x(t)) = 0 (i ∈ E) and gi(x(t)) ≥ 0 (i ∈ A(x∗), t ∈ [0, ˜ǫ)). On the other hand, since gi(x∗) > 0 (i /∈ A(x∗)), the continuity of x(t) implies that there exists ǫ ∈ (0, ˜ǫ) such that gj (x(t)) > 0 (j ∈ I \ A(x∗), t ∈ (−ǫ, ǫ)). Finally,
d dt
x(0) = −
Dxh(x∗, 0)
Dth(x∗, 0) = d
follows from the second part of the Implicit Function Theorem.
2.4. KKT Conditions. We are ready to prove a theorem which shows that if x∗^ is a local minimiser for (NLP) and if the LICQ holds at x∗^ then x∗^ is a minimiser of the linear programming problem obtained by linearising (NLP) around x∗.
Theorem 2.4. If x∗^ is a local minimiser of (NLP) where the LICQ holds then
∇f (x∗) ∈ cone ({±∇gi(x∗) : i ∈ E} ∪ {∇gj (x∗) : j ∈ A(x∗)}).
Proof. Suppose our claim is wrong. Then the fundamental theorem of linear inequalities implies that there exists a vector d ∈ Rn^ such that
dT∇gj (x∗) ≥ 0 , (j ∈ A(x∗)), ±dT∇gi(x∗) ≥ 0 , (i.e., dT∇gi(x∗) = 0) (i ∈ E), dT∇f (x∗) < 0.
Since d satisfies (2.2), Lemma 2.3 implies that there exists a path x : (−ǫ, ǫ) → Rn that satisfies (2.3). Taylor’s theorem then implies that
f (x(t)) = f (x∗) + td∇f (x∗) + O(t^2 ) < f (x∗)
for 0 < t ≪ 1. Since (2.3) shows that x(t) is feasible for t ∈ [0, ǫ), this contradicts the assumption that x∗^ is a local minimiser.
Note that the condition
∇f (x∗) ∈ cone ({±∇gi(x∗) : i ∈ E} ∪ {∇gj (x∗) : j ∈ A(x∗)})
is equivalent to the existence of λ ∈ R|E∪I|^ such that
∇f (x∗) =
i∈E∪I
λi∇gi(x∗), (2.4)
where λj ≥ 0 (j ∈ A(x∗)) and λj = 0 for (j ∈ I \ A(x∗)). Moreover, x∗^ must be feasible. Thus, Theorem 2.4 shows that when x∗^ is a local minimiser where the LICQ holds, then the KKT conditions must hold. We can formulate this result in slightly more abstract form in terms of the La- grangian associated with (NLP):
L : Rn^ × Rm^ → R
(x, λ) 7 → f (x) −
∑^ m
i=
λigi(x).
Equation (2.4) says that the derivative of the Lagrangian with respect to the x coor- dinates is zero. Putting all the pieces together, we obtain the following theorem:
(2.6) and (2.7) together imply 18x∗ 14 − 18 x∗ 12 + 1 = 0, which shows that x∗ 12 ∈ { 0. 941 , 0. 059 }. Since we have assumed x∗ 1 > 0 this leaves the two possible solutions
x[1]^ =
, x[2]^ =
with function values f (x[1]) = 0.7002, f (x[2]) = 1.0845. In the second case where A(x∗) = { 2 } we have x∗ 1 = 0. We need to find λ∗ 1 ∈ R and λ∗ 2 ≥ 0 such that
[ 0 1
= λ∗ 1
4 x∗ 2
This implies λ∗ 2 = 0. Moreover, since x∗^ must be feasible and hence 2x∗ 22 = 1 6 = 0, we have λ∗ 1 = (4x∗ 2 )−^1 and x 2 = ± 1 /
x[3], x[4]^ = ±
√^1 2
At these points we have ∇g 1 (x∗) =
± 2 √ 2
and ∇g 2 (x∗) =
0
, and hence, the LICQ
holds. The objective function values are f (x[3]) = 0.7071, f (x[4]) = − 0 .7071. Overall we find four candidate points where the KKT conditions hold. Among these four points, x[4]^ has the smallest objective value, and this must be the global minimiser of our problem.