Professional Documents
Culture Documents
Advance Engineering Math
Advance Engineering Math
Advance Engineering Math
UET, Lahore
November 2, 2023
Outline
Least Squares
Duality
Lagrange Condition
Karush-Kuhn-Tucker Condition
Least Squares 2
Least Squares Analysis
▶ If b ∈
/ R(A
A), then it is an overdetermined system with no solution
∇f (x A⊤Ax − 2A
x) = 2A A⊤b = 0
▶ The solution is x∗ = (A
A⊤A)−1A⊤b
Least Squares 3
Geometric Interpretation of LS
Least Squares 4
Orthogonal Projectors
▶ What will be P if V = N (A
A)?
Least Squares 5
Outline
Least Squares
Duality
Lagrange Condition
Karush-Kuhn-Tucker Condition
Duality 6
Dual Linear Programs
minimize c ⊤x
subject to Ax ≥ b .
x ≥0
maximize λ ⊤b
subject to λ ⊤A ≤ c ⊤ .
λ ≥0
minimize c ⊤x
subject to Ax = b .
x ≥0
▶ Ax = b is equivalent to
Ax ≥ b
−Ax
Ax ≥ −bb
Thus, the original program becomes
minimize c⊤x
A b
subject to x≥
−AA −bb
x ≥0
▶ This is a primal problem in the symmetric form of duality
Duality 8
Converting an LP to its Dual Form
maximize u − v )⊤ b
(u
subject to u − v )⊤ A ≤ c ⊤
(u
u, v ≥ 0
Let λ = u − v
maximize λ ⊤b
subject to λ ⊤A ≤ c ⊤
Duality 9
Outline
Least Squares
Duality
Lagrange Condition
Karush-Kuhn-Tucker Condition
minimize x)
f (x
subject to h(xx) = 0
where x ∈ Rn , f : Rn → R, h : Rn → Rm , and m ≤ n.
▶ If Jacobian matrix of h at x ∗ is
x∗ )⊤
∇h1 (x
Dh x∗ ) =
h(x
..
.
∇hm (x x∗ )
Least Squares
Duality
Lagrange Condition
Karush-Kuhn-Tucker Condition
x ∈ R3 : h1 (x
Example: Let S = {x x) = x1 − x2 = 0}
x) = x1 = 0, h2 (x
▶ We have
x)⊤
∇h1 (x 1 0 0
Dh h(x
x) = =
∇h2 (xx) 1 −1 0
x)
T (x = {y x)⊤y
y : ∇h1 (x ∇h
= 0, x)⊤
2 (x y = 0}
y1
1 0 0
= y: y2 = 0
1 −1 0
y3
⊤
= {[0, 0, α] : α ∈ R}
= the x3 -axis in R3
d
x(t)) = Dh(x
h(x x(t))ẋ
x(t) = 0
dt
for all t ∈ (a, b). Therefore at t∗ we get Dh(x
x∗ )yy = 0 and hence
∗
y ∈ T (xx )
Tangent and Normal Spaces 20
Normal Space
x∗ )
N (x = x∗ ), ..., ∇hm (x
span[∇h1 (x x∗ )]
n ∗ x∗ ), z ∈ Rm }
= {x
x ∈ R : x = z1 ∇h1 (x x ) + · · · + zm ∇hm (x
Least Squares
Duality
Lagrange Condition
Karush-Kuhn-Tucker Condition
Lagrange Condition 23
Conditions for Optimality
Lagrange Condition 24
Lagrange Theorem
x∗ ) is orthogonal to ẋ
▶ ∇h(x x(t)
– h is constant on the curve {x x(t) : t ∈ (a, b)}, we have h(x
x(t)0
d
– Hence, for all t ∈ (a, b) we have dt x(t)) = 0.
h(x
– Applying the chain rule,
d
h(x x(t))⊤ẋ
x(t)) = ∇h(x x(t) = 0
dt
Lagrange Condition 25
Lagrange Condition
Lagrange Condition 26
Lagrange Theorem for n = 2, m = 1
x∗ ) + λ∗ ∇h(x
∇f (x x∗ ) = 0
∇f (xx∗ ) + λ∗ ∇h(x
x∗ ) = 0
∗
x )
h(x = 0
Lagrange Condition 27
Lagrange Theorem
Lagrange
Figure: Condition
Four examples where the Lagrange condition is satisfied: (a) 28
maximizer, (b) minimizer, (c) minimizer, (d) not an extremizer
Lagrange Theorem
x∗ ) + λ∗⊤ Dh(x
Df (x x∗ ) = 0 ⊤
Lagrange Condition 29
Outline
Least Squares
Duality
Lagrange Condition
Karush-Kuhn-Tucker Condition
Karush-Kuhn-Tucker Condition 30
KKT Condition
Consider the problem
minimize x)
f (x
subject to h(xx) = 0 .
x) ≤ 0
g(x
x∗ ) = {j : gj (x
J(x x∗ ) = 0}
x∗ ), ∇gj (x
∇hi (x x∗ ), 1 ≤ i ≤ m, j ∈ J(x
x∗ )
Karush-Kuhn-Tucker Condition 32
KKT Condition
Karush-Kuhn-Tucker Condition 33