Convex Optimization ( EE227A: UC Berkeley ) Lecture 8 Weak duality - - PowerPoint PPT Presentation

convex optimization
SMART_READER_LITE
LIVE PREVIEW

Convex Optimization ( EE227A: UC Berkeley ) Lecture 8 Weak duality - - PowerPoint PPT Presentation

Convex Optimization ( EE227A: UC Berkeley ) Lecture 8 Weak duality 14 Feb, 2013 Suvrit Sra Primal problem Let f i : R n R ( 0 i m ). Generic nonlinear program min f 0 ( x ) s.t. f i ( x ) 0 , 1 i m, (P) x {


slide-1
SLIDE 1

Convex Optimization

(EE227A: UC Berkeley)

Lecture 8

Weak duality 14 Feb, 2013

  • Suvrit Sra
slide-2
SLIDE 2

Primal problem

Let fi : Rn → R (0 ≤ i ≤ m). Generic nonlinear program min f0(x) s.t. fi(x) ≤ 0, 1 ≤ i ≤ m, x ∈ {dom f0 ∩ dom f1 · · · ∩ dom fm} . (P)

2 / 9

slide-3
SLIDE 3

Primal problem

Let fi : Rn → R (0 ≤ i ≤ m). Generic nonlinear program min f0(x) s.t. fi(x) ≤ 0, 1 ≤ i ≤ m, x ∈ {dom f0 ∩ dom f1 · · · ∩ dom fm} . (P)

  • Def. Domain: The set D := {dom f0 ∩ dom f1 · · · ∩ dom fm}

2 / 9

slide-4
SLIDE 4

Primal problem

Let fi : Rn → R (0 ≤ i ≤ m). Generic nonlinear program min f0(x) s.t. fi(x) ≤ 0, 1 ≤ i ≤ m, x ∈ {dom f0 ∩ dom f1 · · · ∩ dom fm} . (P)

  • Def. Domain: The set D := {dom f0 ∩ dom f1 · · · ∩ dom fm}

◮ We call (P) the primal problem ◮ The variable x is the primal variable

2 / 9

slide-5
SLIDE 5

Primal problem

Let fi : Rn → R (0 ≤ i ≤ m). Generic nonlinear program min f0(x) s.t. fi(x) ≤ 0, 1 ≤ i ≤ m, x ∈ {dom f0 ∩ dom f1 · · · ∩ dom fm} . (P)

  • Def. Domain: The set D := {dom f0 ∩ dom f1 · · · ∩ dom fm}

◮ We call (P) the primal problem ◮ The variable x is the primal variable ◮ We will attach to (P) a dual problem

2 / 9

slide-6
SLIDE 6

Primal problem

Let fi : Rn → R (0 ≤ i ≤ m). Generic nonlinear program min f0(x) s.t. fi(x) ≤ 0, 1 ≤ i ≤ m, x ∈ {dom f0 ∩ dom f1 · · · ∩ dom fm} . (P)

  • Def. Domain: The set D := {dom f0 ∩ dom f1 · · · ∩ dom fm}

◮ We call (P) the primal problem ◮ The variable x is the primal variable ◮ We will attach to (P) a dual problem ◮ In our initial derivation: no restriction to convexity.

2 / 9

slide-7
SLIDE 7

Lagrangian

To the primal problem, associate Lagrangian L : Rn × Rm → R, L(x, λ) := f0(x) + m

i=1 λifi(x).

3 / 9

slide-8
SLIDE 8

Lagrangian

To the primal problem, associate Lagrangian L : Rn × Rm → R, L(x, λ) := f0(x) + m

i=1 λifi(x).

♠ Variables λ ∈ Rm called Lagrange multipliers

3 / 9

slide-9
SLIDE 9

Lagrangian

To the primal problem, associate Lagrangian L : Rn × Rm → R, L(x, λ) := f0(x) + m

i=1 λifi(x).

♠ Variables λ ∈ Rm called Lagrange multipliers ♠ Suppose x is feasible, and λ ≥ 0. Then, we get the lower-bound: f0(x) ≥ L(x, λ) ∀x ∈ X, λ ∈ Rm

+.

3 / 9

slide-10
SLIDE 10

Lagrangian

To the primal problem, associate Lagrangian L : Rn × Rm → R, L(x, λ) := f0(x) + m

i=1 λifi(x).

♠ Variables λ ∈ Rm called Lagrange multipliers ♠ Suppose x is feasible, and λ ≥ 0. Then, we get the lower-bound: f0(x) ≥ L(x, λ) ∀x ∈ X, λ ∈ Rm

+.

♠ Lagrangian helps write problem in unconstrained form

3 / 9

slide-11
SLIDE 11

Lagrangian

Claim: Since, f0(x) ≥ L(x, λ) ∀x ∈ X, λ ∈ Rm

+, primal optimal

p∗ = inf

x∈X sup λ≥0

L(x, λ).

4 / 9

slide-12
SLIDE 12

Lagrangian

Claim: Since, f0(x) ≥ L(x, λ) ∀x ∈ X, λ ∈ Rm

+, primal optimal

p∗ = inf

x∈X sup λ≥0

L(x, λ). Proof: ♠ If x is not feasible, then some fi(x) > 0

4 / 9

slide-13
SLIDE 13

Lagrangian

Claim: Since, f0(x) ≥ L(x, λ) ∀x ∈ X, λ ∈ Rm

+, primal optimal

p∗ = inf

x∈X sup λ≥0

L(x, λ). Proof: ♠ If x is not feasible, then some fi(x) > 0 ♠ In this case, inner sup is +∞, so claim true by definition

4 / 9

slide-14
SLIDE 14

Lagrangian

Claim: Since, f0(x) ≥ L(x, λ) ∀x ∈ X, λ ∈ Rm

+, primal optimal

p∗ = inf

x∈X sup λ≥0

L(x, λ). Proof: ♠ If x is not feasible, then some fi(x) > 0 ♠ In this case, inner sup is +∞, so claim true by definition ♠ If x is feasible, each fi(x) ≤ 0, so supλ

  • i λifi(x) = 0

4 / 9

slide-15
SLIDE 15

Lagrange dual function

  • Def. We define the Lagrangian dual as

g(λ) := infx L(x, λ).

5 / 9

slide-16
SLIDE 16

Lagrange dual function

  • Def. We define the Lagrangian dual as

g(λ) := infx L(x, λ). Observations: ◮ g is pointwise inf of affine functions of λ ◮ Thus, g is concave; it may take value −∞

5 / 9

slide-17
SLIDE 17

Lagrange dual function

  • Def. We define the Lagrangian dual as

g(λ) := infx L(x, λ). Observations: ◮ g is pointwise inf of affine functions of λ ◮ Thus, g is concave; it may take value −∞ ◮ Recall: f0(x) ≥ L(x, λ) ∀x ∈ X; thus

5 / 9

slide-18
SLIDE 18

Lagrange dual function

  • Def. We define the Lagrangian dual as

g(λ) := infx L(x, λ). Observations: ◮ g is pointwise inf of affine functions of λ ◮ Thus, g is concave; it may take value −∞ ◮ Recall: f0(x) ≥ L(x, λ) ∀x ∈ X; thus ◮ ∀x ∈ X, f0(x) ≥ infx′ L(x′, λ) = g(λ)

5 / 9

slide-19
SLIDE 19

Lagrange dual function

  • Def. We define the Lagrangian dual as

g(λ) := infx L(x, λ). Observations: ◮ g is pointwise inf of affine functions of λ ◮ Thus, g is concave; it may take value −∞ ◮ Recall: f0(x) ≥ L(x, λ) ∀x ∈ X; thus ◮ ∀x ∈ X, f0(x) ≥ infx′ L(x′, λ) = g(λ) ◮ Now minimize over x on lhs, to obtain ∀ λ ∈ Rm

+

p∗ ≥ g(λ).

5 / 9

slide-20
SLIDE 20

Lagrange dual problem

sup

λ

g(λ) s.t. λ ≥ 0.

6 / 9

slide-21
SLIDE 21

Lagrange dual problem

sup

λ

g(λ) s.t. λ ≥ 0. ◮ dual feasible: if λ ≥ 0 and g(λ) > −∞ ◮ dual optimal: λ∗ if sup is achieved

6 / 9

slide-22
SLIDE 22

Lagrange dual problem

sup

λ

g(λ) s.t. λ ≥ 0. ◮ dual feasible: if λ ≥ 0 and g(λ) > −∞ ◮ dual optimal: λ∗ if sup is achieved ◮ Lagrange dual is always concave, regardless of original

6 / 9

slide-23
SLIDE 23

Weak duality

  • Def. Denote dual optimal value by d∗, i.e.,

d∗ := sup

λ≥0

g(λ).

7 / 9

slide-24
SLIDE 24

Weak duality

  • Def. Denote dual optimal value by d∗, i.e.,

d∗ := sup

λ≥0

g(λ). Theorem (Weak-duality): For problem (P), we have p∗ ≥ d∗.

7 / 9

slide-25
SLIDE 25

Weak duality

  • Def. Denote dual optimal value by d∗, i.e.,

d∗ := sup

λ≥0

g(λ). Theorem (Weak-duality): For problem (P), we have p∗ ≥ d∗. Proof: We showed that for all λ ∈ Rm

+, p∗ ≥ g(λ).

Thus, it follows that p∗ ≥ sup g(λ) = d∗.

7 / 9

slide-26
SLIDE 26

Equality constraints

min f0(x) s.t. fi(x) ≤ 0, i = 1, . . . , m, hi(x) = 0, i = 1, . . . , p. Exercise: Show that we get the Lagrangian dual g : Rm

+ × Rp : (λ, ν) → inf x

L(x, λ, ν), where the Lagrange variable ν corresponding to the equality constraints is unconstrained. Hint: Represent hi(x) = 0 as hi(x) ≤ 0 and −hi(x) ≤ 0.

8 / 9

slide-27
SLIDE 27

Equality constraints

min f0(x) s.t. fi(x) ≤ 0, i = 1, . . . , m, hi(x) = 0, i = 1, . . . , p. Exercise: Show that we get the Lagrangian dual g : Rm

+ × Rp : (λ, ν) → inf x

L(x, λ, ν), where the Lagrange variable ν corresponding to the equality constraints is unconstrained. Hint: Represent hi(x) = 0 as hi(x) ≤ 0 and −hi(x) ≤ 0. Again, we see that p∗ ≥ supλ≥0,ν g(λ, ν) = d∗

8 / 9

slide-28
SLIDE 28

Some duals

◮ Least-norm solution of linear equations: min xT x s.t. Ax = b ◮ Linear programming standard form ◮ Study example (5.7) in BV (binary QP)

9 / 9