Docsity

Duality-Convex Optimization-Lecture Slides, Slides of Convex Optimization

Partial preview of the text

Download Duality-Convex Optimization-Lecture Slides and more Slides Convex Optimization in PDF only on Docsity!

Convex Optimization — Boyd & Vandenberghe

5. Duality

Lagrange dual problem

weak and strong duality

geometric interpretation

optimality conditions

perturbation and sensitivity analysis

examples

generalized inequalities

5–

Lagrangian

standard form problem

(not necessarily convex)

minimize

f

0

x

subject to

f

i

x

i

,... , m

h

i

x

i

,... , p

variable

x

R

n

, domain

D

, optimal value

p

⋆

Lagrangian:

L

R

n

×

R

m

×

R

p

R

, with

dom

L

D ×

R

m

×

R

p

L

x, λ, ν

f

0

x

m

i

=

λ

i

f

i

x

p

i

=

ν

i

h

i

x

weighted sum of objective and constraint functions

λ

i

is Lagrange multiplier associated with

f

i

x

ν

i

is Lagrange multiplier associated with

h

i

x

Duality

5–

Least-norm solution of linear equations

minimize

x

T

x

subject to

Ax

b

dual function

Lagrangian is

L

x, ν

x

T

x

ν

T

Ax

b

to minimize

L

over

x

, set gradient equal to zero:

x

L

x, ν

x

A

T

ν

x

A

T

ν

plug in in

L

to obtain

g

g

ν

L

A

T

ν, ν

ν

T

AA

T

ν

b

T

ν

a concave function of

ν

lower bound property

p

⋆

ν

T

AA

T

ν

b

T

ν

for all

ν

Duality

5–

Standard form LP

minimize

c

T

x

subject to

Ax

b,

x

dual function

Lagrangian is

L

x, λ, ν

c

T

x

ν

T

Ax

b

λ

T

x

b

T

ν

c

A

T

ν

λ

T

x

L

is affine in

x

, hence

g

λ, ν

) = inf

x

L

x, λ, ν

b

T

ν

A

T

ν

λ

c

otherwise

g

is linear on affine domain

λ, ν

A

T

ν

λ

c

, hence concave

lower bound property

p

⋆

b

T

ν

if

A

T

ν

c

Duality

5–

Two-way partitioning

minimize

x

T

W x

subject to

x

2 i

i

,... , n

a nonconvex problem; feasible set contains

n

discrete points

interpretation: partition

,... , n

in two sets;

W

ij

is cost of assigning

i

j

to the same set;

W

ij

is cost of assigning to different sets

dual function

g

ν

) = inf

x

x

T

W x

i

ν

i

x

2 i

inf

x

x

T

W

diag

ν

x

T

ν

T

ν

W

diag

ν

otherwise

lower bound property

p

⋆

T

ν

if

W

diag

ν

example:

ν

λ

min

W

gives bound

p

⋆

nλ

min

W

Duality

5–

Lagrange dual and conjugate function

minimize

f

0

x

subject to

Ax

b,

Cx

d

dual function

g

λ, ν

inf

x

∈

dom

f

0

f

0

x

A

T

λ

C

T

ν

T

x

b

T

λ

d

T

ν

f

∗

0

A

T

λ

C

T

ν

b

T

λ

d

T

ν

recall definition of conjugate

f

∗

y

) = sup

x

∈

dom

f

y

T

x

f

x

simplifies derivation of dual if conjugate of

f

0

is known

example: entropy maximization

f

0

x

n

i

=

x

i

log

x

i

f

∗

0

y

n

i

=

e

y

i

−

1

Duality

5–

Weak and strong duality

weak duality:

d

⋆

p

⋆

always holds (for convex and nonconvex problems)

can be used to find nontrivial lower bounds for difficult problemsfor example, solving the SDP

maximize

T

ν

subject to

W

diag

ν

gives a lower bound for the two-way partitioning problem on page 5–

strong duality:

d

⋆

p

⋆

does not hold in general

(usually) holds for convex problems

conditions that guarantee strong duality in convex problems are called constraint qualifications

Duality

5–

Slater’s constraint qualification

strong duality holds for a convex problem

minimize

f

0

x

subject to

f

i

x

i

,... , m

Ax

b

if it is strictly feasible,

i.e.

x

int

D

f

i

x

i

,... , m,

Ax

b

also guarantees that the dual optimum is attained (if

p

⋆

can be sharpened:

e.g.

, can replace

int

D

with

relint

D

(interior

relative to affine hull); linear inequalities do not need to hold with strictinequality,...

there exist many other types of constraint qualifications

Duality

5–

Quadratic program

primal problem

(assume

P

S

n ++

minimize

x

T

P x

subject to

Ax

b

dual function

g

λ

) = inf

x

x

T

P x

λ

T

Ax

b

λ

T

AP

−

1

A

T

λ

b

T

λ

dual problem

maximize

λ

T

AP

−

1

A

T

λ

b

T

λ

subject to

λ

from Slater’s condition:

p

⋆

d

⋆

if

A

x

b

for some

x

in fact,

p

⋆

d

⋆

always

Duality

5–

A nonconvex problem with strong duality

minimize

x

T

Ax

b

T

x

subject to

x

T

x

A

, hence nonconvex

dual function:

g

λ

) = inf

x

x

T

A

λI

x

b

T

x

λ

unbounded below if

A

λI

or if

A

λI

and

b

∈ R

A

λI

minimized by

x

A

λI

†

b

otherwise:

g

λ

b

T

A

λI

†

b

λ

dual problem

and equivalent SDP:

maximize

b

T

A

λI

†

b

λ

subject to

A

λI

b

∈ R

A

λI

maximize

t

λ

subject to

[

A

λI

b

b

T

t

]

strong duality although primal problem is not convex (not easy to show) Duality

5–

epigraph variation:

same interpretation if

G

is replaced with

A

u, t

f

1

x

u, f

0

x

t

for some

x

∈ D}

A

p

⋆

g

(

λ

)

λu

t

=

g

(

λ

)

t

u

strong duality

holds if there is a non-vertical supporting hyperplane to

A

at

, p

⋆

for convex problem,

A

is convex, hence has supp. hyperplane at

, p

⋆

Slater’s condition: if there exist

u,

˜t

∈ A

with

u <

, then supporting

hyperplanes at

, p

⋆

must be non-vertical

Duality

5–

Complementary slackness

assume strong duality holds,

x

⋆

is primal optimal,

λ

⋆

, ν

⋆

is dual optimal

f

0

x

⋆

g

λ

⋆

, ν

⋆

inf

x

f

0

x

m

i

=

λ

⋆i

f

i

x

p

i

=

ν

⋆

i

h

i

x

f

0

x

⋆

m

i

=

λ

⋆ i

f

i

x

⋆

p

i

=

ν

⋆

i

h

i

x

⋆

f

0

x

⋆

hence, the two inequalities hold with equality

x

⋆

minimizes

L

x, λ

⋆

, ν

⋆

λ

⋆i

f

i

x

⋆

for

i

,... , m

(known as complementary slackness):

λ

⋆ i

f

i

x

⋆

f

i

x

⋆

λ

⋆ i

Duality

5–

KKT conditions for convex problem

if

x

˜λ

ν

satisfy KKT for a convex problem, then they are optimal:

from complementary slackness:

f

0

x

L

x,

λ,

ν

from 4th condition (and convexity):

g

λ,

ν

L

x,

λ,

ν

hence,

f

0

x

g

λ,

ν

if

Slater’s condition

is satisfied:

x

is optimal if and only if there exist

λ

ν

that satisfy KKT conditions

recall that Slater implies strong duality, and dual optimum is attained

generalizes optimality condition

f

0

x

for unconstrained problem

Duality

5–

example: water-filling

(assume

α

i

minimize

n i

=

log(

x

i

α

i

subject to

x

T

x

x

is optimal iff

x

T

x

, and there exist

λ

R

n

ν

R

such that

λ

λ

i

x

i

x

i

α

i

λ

i

ν

if

ν <

/α

i

λ

i

and

x

i

/ν

α

i

if

ν

/α

i

λ

i

ν

/α

i

and

x

i

determine

ν

from

T

x

n i

=

max

/ν

α

i

interpretation

n

patches; level of patch

i

is at height

α

i

flood area with unit amount of water

resulting level is

/ν

⋆

i

1

/ν

⋆

x

i

α

i

Duality

5–

docsity.com