EO_Chapter 8_Constrained Problems-Optimality Criteria
EO_Chapter 8_Constrained Problems-Optimality Criteria
Engineering Optimization
Chapter 8 : Constrained Problems -
Optimality Criteria
● Today’s topic:
optimality conditions for constrained problems
g2 f
f Interior
x2 optimum
min f ( x) g1
x
s. t. g ( x) 0
h ( x) = 0
Boundary
optima
x1
Engineering Optimization – Constrained Problems : Optimality Criteria 3
Feasible perturbations / directions
● Feasible perturbation: x | x + x X , x X
● Feasible direction s: g2
x2
line in direction s remains y X g1
in X for some finite length: x
s | y + s X
y X , 0, , 0
x1
– Simplest case!
min f ( x) x n
x
s. t. hi (x) = 0 i = 1 m
● Simplest approach:
– Graphical solution
– Direct substitution
– Reduced gradient
– Lagrangian multipliers
– Sufficiency conditions
– Inequality constraints
– Linear programming
Engineering Optimization – Constrained Problems : Optimality Criteria 12
Graphical solution
– Graphical solution
– Direct substitution
– Reduced gradient
– Lagrangian multipliers
– Sufficiency conditions
– Inequality constraints
– Linear programming
Engineering Optimization – Constrained Problems : Optimality Criteria 14
Direct substitution: Example
Solution:
● Corners of the box lie on the surface of the sphere of unit radius:
– Graphical solution
– Direct substitution
– Lagrangian multipliers
– Sufficiency conditions
– Inequality constraints
– Linear programming
Engineering Optimization – Constrained Problems : Optimality Criteria 17
Reduced gradient
f n
f
m p
f
f (x) = xi = si + d i
i =1 xi i =1 si i =1 d i
n h j m h j p
h j
h j (x) = xi = 0 = si + d i
i =1 xi i =1 si i =1 d i
dependent independent
Engineering Optimization – Constrained Problems : Optimality Criteria 19
Reduced gradient : Optimality condition
– Graphical solution
– Direct substitution
– Reduced gradient
– Sufficiency conditions
– Inequality constraints
– Linear programming
Engineering Optimization – Constrained Problems : Optimality Criteria 26
Lagrange approach
x L x f + λ T x h T
L = = =0
λ L ( λ λ )h
T
−1
f T h f h
s + λ = 0T
λ T
=−
s s s
−1
f + λ T h = 0T f − f h h = 0T
d d d s s d
Engineering Optimization – Constrained Problems : Optimality Criteria 27
Example
mgL sin x1 = 0
Equilibrium: x1 = 0, , 2 ,
Engineering Optimization – Constrained Problems : Optimality Criteria 28
Geometrical interpretation
f h x2
f
+ = 0T
x x h
Meaning: h
f h
//
x x f
x1
Gradients parallel
tangents parallel h tangent to isolines
x2
● First order optimality f
condition for equality h
constrained problem: h
– Zero reduced gradient:
f f h
−1
h f
− = 0T x1
d s s d
– Equivalent: stationary
Lagrangian: 𝜕𝐿
= 𝟎𝑇
L = f (x) + λ T h(x) 𝜕𝐱
𝜕𝐿
= 𝟎𝑇
𝜕𝛌
Engineering Optimization – Constrained Problems : Optimality Criteria 31
Contents
– Graphical solution
– Direct substitution
– Reduced gradient
– Lagrangian multipliers
– Sufficiency conditions
– Inequality constraints
– Linear programming
Engineering Optimization – Constrained Problems : Optimality Criteria 32
Sufficiency?
f + T h = 0
L = 0 (1)
s.t. h(x) = x1 + 2 x2 − 1 = 0
2 2
x1
L(x) = x + x2 + (x + 2 x2 −1)
2 2 2 2
1 1
dL 2 x1 (1 + )
T
dL
= = + 2 −1
2 2
, x 2 x
dx 2 x2 (1 + 2 ) d
1
𝑥1 = 0, 𝑥2 = ± 1/2, 𝜆𝐴 = −1/2
𝑥2 = 0, 𝑥1 = ±1, 𝜆𝐵 = −1
Engineering Optimization – Constrained Problems : Optimality Criteria 37
Example
𝜕2𝐿 𝜕2𝐿
𝜕𝑥1 2 𝜕𝑥1 𝜕𝑥2 2 + 2𝜆 0
𝐇= =
𝜕2𝐿 𝜕2𝐿 0 2 + 4𝜆
𝜕𝑥2 𝜕𝑥1 𝜕𝑥2 2 (𝑥1∗ ,𝑥2∗ )
● The Hessian is positive definite for the case where 𝜆𝐴 = 2, and therefore 𝑥𝐴
is a minimum. The Hessian is negative definite for 𝜆𝐵 = − 2 so this is not a
minimum; instead, it is a maximum.
– Graphical solution
– Direct substitution
– Reduced gradient
– Lagrangian multipliers
– Sufficiency conditions
– Inequality constraints
– Linear programming
Engineering Optimization – Constrained Problems : Optimality Criteria 41
Inequality constrained problems
min f ( x) x n
x
s. t. g i ( x) 0 i = 1 m
● At optimum, only active constraints matter:
min f ( x) x n
x
s. t. g j ( x) = 0 j = 1 k m
● Active constraints: g j = 0, j 0
Inactive constraints: gi 0
● Formulation including all inequality constraints:
L f T g ii ggii = 0 i = 1 m
= +μ = 0T and Complementarity
x x x μi 0 0
condition (if 𝑔𝑖 < 0,
i =𝜇𝑖1=
0mand
then
vice versa)
– Graphical solution
– Direct substitution
– Reduced gradient
– Lagrangian multipliers
– Sufficiency conditions
– Inequality constraints
– Linear programming
Engineering Optimization – Constrained Problems : Optimality Criteria 49
Karush-Kuhn-Tucker conditions
● Global optimality:
● Pitfall:
– Graphical solution
– Direct substitution
– Reduced gradient
– Lagrangian multipliers
– Sufficiency conditions
– Inequality constraints
– Linear programming
Engineering Optimization – Constrained Problems : Optimality Criteria 61
Linear programming problem
min c1 x1 + c2 x2 + + cn xn = c x T
x
s.t. hi = a i x − bi = 0 i = 1 m1
T
(𝑚1 equalities)
g j = a j x − bj 0 j = m1 + 1 m2
T
(𝑚2 inequalities)
a1T b1
min cT x T b
x
A1 = a2
, b = 2
s.t. h = A1x − b1 = 0 1
g = A2x − b2 0 T
a m1 bm1
x1
● Feasible domain = intersection of convex half-spaces:
X = X1 X 2 X m
● Result: X = convex polyhedron
T 1 2
μ (A 2 x − b 2 ) = 0
λ 0, μ 0
Solution:
The problem is reformulated in the standard negative null form:
1 1 −2 0
→ 𝒄 = −2, −1 𝑇 , 𝒃1 = 𝑨1 = 0, 𝒃2 = 8,1.5, −1, −1 𝑇 , 𝑨𝑇2 =
2 −1 0 −2
Engineering Optimization – Constrained Problems : Optimality Criteria 65
Example (2)
The geometric representation of the feasible space and the contours of 𝑓 are
shown by:
𝒄 = −2, −1 𝑇 , 𝒃1 = 𝑨1 = 0,
1 1 −2 0
𝒃2 = 8,1.5, −1, −1 𝑇 , 𝑨𝑇2 =
2 −1 0 −2
● KKT conditions: 𝐿 = 𝐜 𝑇 𝐱 + 𝛌𝑇 𝐀1 𝐱 − 𝐛1 + 𝛍𝑇 𝐀2 𝐱 − 𝐛2
𝐀1 𝐱 − 𝐛1 = 𝟎, 𝐀2 𝐱 − 𝐛2 ≤ 𝟎
𝐜 𝑇 + 𝛌 𝑇 𝐀 1 + 𝛍𝑇 𝐀 2 = 𝟎 𝑇
𝛍𝑇 𝐀2 𝐱 − 𝐛2 = 0
𝛌 ≠ 𝟎, 𝛍 ≥ 𝟎
−2 1 1 −2 0 0
+ 𝜇1 + 𝜇2 + 𝜇3 + 𝜇4 =
−1 2 −1 0 −2 0
𝜇1 𝑥1 + 2𝑥2 − 8 = 0, 𝜇1 ≥ 0
𝑥1∗ = 3.67
𝜇2 𝑥1 − 𝑥2 − 1.5 = 0, 𝜇2 ≥ 0 ൞ ∗
𝑥2 = 2.17
𝜇3 −2𝑥1 + 1 = 0, 𝜇3 ≥ 0
𝜇4 −2𝑥2 + 1 = 0, 𝜇4 ≥ 0