OptimizationAlgorithms II
OptimizationAlgorithms II
Shirish Shevade
Computer Science and Automation
Indian Institute of Science
Bangalore 560 012, India.
min f (x)
s.t. x ∈ X
where X ∈ Rn .
Idea:
Approximation by an unconstrained problem
Solve a sequence of unconstrained optimization problems
Penalty Methods
Penalize for violating a constraint
Barrier Methods
Penalize for reaching the boundary of an inequality constraint
Shirish Shevade Numerical Optimization
min f (x)
s.t. x ∈ X
Define a function,
0 if x ∈ X
ψ(x) =
+∞ if x ∈
/X
min f (x)
s.t. x ∈ X
Let x∗ be a local minimum
Let X = {hj (x) ≤ 0, j = 1, . . . , l}
Define
l
1X
P(x) = [max(0, hj (x)]2
2 j=1
Define q(x, c) = f (x) + cP(x)
Define a sequence {ck } such that ck ≥ 0 and ck+1 > ck
∀ k.
Let xk = argminx q(x, ck )
Ideally, {xk } → x∗ as {ck } → +∞
Shirish Shevade Numerical Optimization
Nonlinear Program (NLP)
min f (x)
s.t. hj (x) ≤ 0, j = 1, . . . , l
ei (x) = 0, i = 1, . . . , m
Define
l m
1X 1X 2
P(x) = [max(0, hj (x)]2 + e (x)
2 j=1 2 i=1 i
and
q(x, c) = f (x) + cP(x).
Proof.
f (xk ) ≤ f (xk ) + ck P(xk )
≤ f (x∗ ) + ck P(x∗ ) = f (x∗ )
Theorem
Any limit point of the sequence, {xk } generated by the penalty
method is a solution to the problem (P1).
Shirish Shevade Numerical Optimization
Nonlinear Program (NLP)
min f (x)
s.t. hj (x) ≤ 0, j = 1, . . . , l
ei (x) = 0, i = 1, . . . , m
1 c
q(x, c) = [(x1 − 3)2 + (x2 − 2)2 ] + [(max(0, −x1 + x2 ))2
2 2
+(max(0, x1 + x2 − 1))2 + (max(0, −x2 ))2 ]
Let x0 = (3, 2)T (Violates the constraint x1 + x2 ≤ 1 )
At x0 ,
1 c
q(x, c) = [(x1 − 3)2 + (x2 − 2)2 ] + [(x1 + x2 − 1)2 ].
2 2 2c+3
∇x q(x, c) = 0 ⇒ x1 (c) = 2c+1
2 = x∗ (c)
2c+1
Shirish Shevade Numerical Optimization
1
min 2
[(x1 − 3)2 + (x2 − 2)2 ]
s.t. −x1 + x2 ≤ 0
x1 + x2 ≤ 1
−x2 ≤ 0
At x0 = (3, 2)T ,
1 c
q(x, c) = [(x1 − 3)2 + (x2 − 2)2 ] + [(x1 + x2 − 1)2 ].
2 2
2c+3
1
∇x q(x, c) = 0 ⇒ x (c) = 2c+1
2 = x∗ (c)
2c+1
Taking limit as c → ∞, x∗ = (1, 0)T
min f (x)
s.t. e(x) = 0
min f (x)
s.t. hj (x) ≤ 0, j = 1, . . . , l
ei (x) = 0, i = 1, . . . , m
Easy to extend the Augmented Lagrangian Method to NLP
Rewrite the inequality constraint, h(x) ≤ 0 as an equality
constraint,
h(x) + y2 = 0
min f (x)
s.t. hj (x) ≤ 0, j = 1, . . . , l
Let X = {x : hj (x) ≤ 0, j = 1, . . . , l}
Some Barrier functions (defined on the interior of X)
l l
X 1 X
B(x) = − or B(x) = − log(−hj (x))
j=1
hj (x) j=1
min f (x)
max θ(λ, µ)
s.t. hj (x) ≤ 0, j = 1, . . . , l
ei (x) = 0, i = 1, . . . , m s.t. λ ≥ 0
x∈X
X is a compact set.
Dual Function: z = θ(λ, µ) = minx∈X f (x) + λT h(x) + µT e(x)
Equivalent Dual problem
max z
z,µ,λ
max z
z,µ,λ
T T
min f (x) + λk h(x) + µk e(x)
s.t. x∈X
and let xk be an optimal solution to this problem.
Shirish Shevade Numerical Optimization
T T
min f (x) + λk h(x) + µk e(x)
s.t. x∈X
and let xk be an optimal solution to this problem.
T T
If zk ≤ f (xk ) + λk h(xk ) + µk e(xk ), then (λk , µk ) is an
optimal solution to the Lagrangian dual problem.
T T
If zk > f (xk ) + λk h(xk ) + µk e(xk ), then add the
constraint, z ≤ f (xk ) + λT h(xk ) + µT e(xk ) to the
approximate dual problem.
λ≥0
T T
argminx f (x) + λk h(x) + µk e(x)
xk =
x∈X
T T
Stop if zk ≤ f (xk ) + λk h(xk ) + µk e(xk ). Else, k := k + 1.
Shirish Shevade Numerical Optimization