Professional Documents
Culture Documents
Lagrangian Opt PDF
Lagrangian Opt PDF
Lagrangian Opt PDF
Lagrangian Optimization
f (x)
subject to
h(x) = b
over
x X.
(P)
optimization of the form (P) can be solved over variables (x, z) X Rp+ . The variables z are called slack variables.
maxxX (b) f (x) = minxX (b) f (x), so maximizing is the same as minimizing.
The set X could incorporate the functional constraints {x : h(x) = b}, but generally we assume X is a set where the
unconstrained optimization, minxX f (x), is easier to solve. For example, X might be Rp+ and minxX f (x) might be
solved by dierentiating and nding local minima. What makes the problem dicult is the functional constraints. To
get some solution, we might penalize going over these constraints. If so, we could remove these constraints and solve a
dierent optimization
d
minimize f (x) +
j (bj hj (x)) over x X .
(L )
j=1
xX
Proof.
min L(x; ) min L(x; ) = min
xX
xX (b)
(9)
xX (b)
xX (b)
In fact, if we can make the two solutions equal then we have optimality.
Theorem 1 (Lagrangian Suciency Theorem). If there exists Lagrange multipliers and a solution x ( ) to (L )
such that x ( ) is feasible for (P) then x ( ) solves the optimization problem (P).
NSW Notes
(as x ( ) is feasible)
min f (x).
(by (9))
= min L(x; )
xX
xX (b)
minimize
x2 + 2y 2
subject to
x+y =1
over
x 0, y 0.
L
= 0 and
= 0 which implies x () =
and y () = .
x
y
2
4
For feasibility, we need x () + y () = 1. So = 4/3. Thus by the Lagrangian Suciency Theorem x = 2/3 and
y = 1/3 is the optimal solution.
Example 2.
minimize
and
L
=0
y
1
which implies = 0
x
and
1
= 0.
y
So x () = 1/2 and y () = 1/. We, now, require a feasible solution x () + y () + z () = b. We may exclude the
possibility that z () > 0, because by complementary slackness z () = 0, so if z () > 0 then = 0 and so we cannot
nd a nite optimum for the Lagrangian problem. So, noting that x () = 1/2 , y () = 1/ and z () = 0, feasibility
reduces to 1/2 1/ = b, or equivalently the quadratic equation b2 + 1 = 0. Recalling that we must have 0
for a nite solution to the Lagrangian optimization, this quadratic has one negative solution, namely,
1 1 + 4b
1 + 1 + 4b
2b + 1 1 + 4b
=
, and thus y =
, x =
.
2b
2
2