Docsity

Decomposition Methods for Convex Optimization: Primal and Dual Decomposition, Slides of Convex Optimization

Partial preview of the text

Download Decomposition Methods for Convex Optimization: Primal and Dual Decomposition and more Slides Convex Optimization in PDF only on Docsity!

Decomposition Methods

separable problems, complicating variables

primal decomposition

dual decomposition

complicating constraints

general decomposition structures

Prof. S. Boyd, EE364b, Stanford University

docsity.com

Separable problem

minimize

f

1

x

1

f

2

x

2

subject to

x

1

∈ C

1

x

2

∈ C

2

we can solve for

x

1

and

x

2

separately (in parallel)

even if they are solved sequentially, this gives advantage ifcomputational effort is superlinear in problem size

called

separable

or

trivially parallelizable

generalizes to any objective of form

f

1

, f

2

with

nondecreasing

e.g.

max

Prof. S. Boyd, EE364b, Stanford University

1

docsity.com

Primal decomposition

fix

y

and define

subproblem 1:

minimize

x

1

f

1

x

1

, y

subproblem 2:

minimize

x

2

f

2

x

2

, y

with optimal values

φ

1

y

and

φ

2

y

original problem is equivalent to

master problem

minimize

y

φ

1

y

φ

2

y

with variable

y

called

primal decomposition

since master problem manipulates primal

(complicating) variables Prof. S. Boyd, EE364b, Stanford University

3

docsity.com

if original problem is convex, so is master problem

can solve master problem using –

bisection (if

y

is scalar)

gradient or Newton method (if

φ

i

differentiable)

subgradient, cutting-plane, or ellipsoid method

each iteration of master problem requires solving the two subproblems

if master algorithm converges fast enough and subproblems aresufficiently easier to solve than original problem, we get savings

Prof. S. Boyd, EE364b, Stanford University

4

docsity.com

Example

x

1

, x

2

R

20

y

R

f

i

are PWL (max of

affine functions each);

f

⋆

−

−0.

0

1

1

2

3

y

φ

1

(

y

)

φ

2

(

y

)

φ

1

(

y

) +

φ

2

(

y

)

Prof. S. Boyd, EE364b, Stanford University

6

docsity.com

primal decomposition, using bisection on

y

1

2

3

4

5

6

7

8

10

−

10

−

10

−

10

−

10

0

k

f

)k(

f −

⋆

Prof. S. Boyd, EE364b, Stanford University

7

docsity.com

Step 2: form dual problem

L

x

1

, y

1

, x

2

, y

2

f

1

x

1

, y

1

f

2

x

2

, y

2

ν

T

y

1

y

2

separable

; can minimize over

x

1

, y

1

and

x

2

, y

2

separately

g

1

ν

inf

x

1

,y

1

f

1

x

1

, y

1

ν

T

y

1

f

∗

1

ν

g

2

ν

inf

x

2

,y

2

f

2

x

2

, y

2

ν

T

y

2

f

∗

2

, ν

dual problem is:

maximize

g

ν

g

1

ν

g

2

ν

computing

g

i

ν

are the

dual subproblems

can be done in parallel

a subgradient of

g

is

y

2

y

1

(from solutions of subproblems)

Prof. S. Boyd, EE364b, Stanford University

9

docsity.com

Dual decomposition algorithm

(using subgradient algorithm for master) repeat

  1. Solve the dual subproblems.

Find

x

1

y

1

that minimize

f

1

x

1

, y

1

ν

T

y

1

Find

x

2

y

2

that minimize

f

2

x

2

, y

2

ν

T

y

2

  1. Update dual variables (prices).

ν

ν

α

k

y

2

y

1

step length

α

k

can be chosen in standard ways

at each step we have a lower bound

g

ν

on

p

⋆

iterates are generally infeasible,

i.e.

y

1

y

2

Prof. S. Boyd, EE364b, Stanford University

10 docsity.com

(Same) example

−

−0.

0

1

0

1

2

ν

g

1

(

ν

)

g

2

(

ν

)

g

1

(

ν

) +

g

2

(

ν

)

Prof. S. Boyd, EE364b, Stanford University

12 docsity.com

dual decomposition convergence (using bisection on

ν

0

5

10

15

1.9 1.8 1.7 1.

2

2.6 2.5 2.4 2.3 2.2 2.

k

better bound worse bound

g

(

ν

)

Prof. S. Boyd, EE364b, Stanford University

13 docsity.com

Recovering the primal solution from the dual

iterates in dual decomposition:

ν

(

k

)

x

(

k

)

1

, y

(

k

)

1

x

(

k

)

2

, y

(

k

)

2

x

(

k

)

1

, y

(

k

)

1

is minimizer of

f

1

x

1

, y

1

ν

(

k

)

T

y

1

found in subproblem 1

x

(

k

)

2

, y

(

k

)

2

is minimizer of

f

2

x

2

, y

2

ν

(

k

)

T

y

2

found in subproblem 2

ν

(

k

)

ν

⋆

i.e.

, we have price convergence)

subtlety: we need not have

y

(

k

)

1

y

(

k

)

2

the hammer: if

f

i

strictly convex, we have

y

(

k

)

1

y

(

k

)

2

can fix allocation (

i.e.

, compute

φ

i

), or add regularization terms

ǫ

x

i

2

Prof. S. Boyd, EE364b, Stanford University

15 docsity.com

Decomposition with constraints

can also have

complicating constraints

, as in

minimize

f

1

x

1

f

2

x

2

subject to

x

1

∈ C

1

x

2

∈ C

2

h

1

x

1

h

2

x

2

f

i

h

i

C

i

convex

h

1

x

1

h

2

x

2

is a set of

p

complicating or coupling constraints,

involving both

x

1

and

x

2

can interpret coupling constraints as limits on resources shared betweentwo subproblems

Prof. S. Boyd, EE364b, Stanford University

16 docsity.com

Primal decomposition algorithm

repeat

  1. Solve the subproblems.

Solve subproblem 1, finding

x

1

and

λ

1

Solve subproblem 2, finding

x

2

and

λ

2

  1. Update resource allocation.

t

t

α

k

λ

2

λ

1

λ

i

is an optimal Lagrange multiplier associated with resource constraint

in subproblem

i

λ

2

λ

1

φ

1

φ

2

t

α

k

is an appropriate step size

all iterates are feasible (when subproblems are feasible)

Prof. S. Boyd, EE364b, Stanford University

18 docsity.com

Example

x

1

, x

2

R

20

t

R

2

f

i

are quadratic,

h

i

are affine,

C

i

are polyhedra

defined by

inequalities;

p

⋆

α

k

/k

0

20

40

60

80

100

10

−

10

−

10

−

10

−

10

0

k

f

)k(

p −

⋆

Prof. S. Boyd, EE364b, Stanford University

19 docsity.com