Docsity

Approximation and Fitting-Convex Optimization-Lecture Slides, Slides of Convex Optimization

Partial preview of the text

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

Convex Optimization — Boyd & Vandenberghe

6. Approximation and fitting

norm approximation

least-norm problems

regularized approximation

robust approximation

6–

Norm approximation

minimize

Ax

b

A

R

m

×

n

with

m

n

is a norm on

R

m

interpretations of solution

x

⋆

= argmin

x

Ax

b

geometric

Ax

⋆

is point in

R

A

closest to

b

estimation

: linear measurement model

y

Ax

v

y

are measurements,

x

is unknown,

v

is measurement error

given

y

b

, best guess of

x

is

x

⋆

optimal design

x

are design variables (input),

Ax

is result (output)

x

⋆

is design that best approximates desired result

b

Approximation and fitting

6–

Penalty function approximation

minimize

φ

r

1

φ

r

m

subject to

r

Ax

b

A

R

m

×

n

φ

R

R

is a convex penalty function)

examples

quadratic:

φ

u

u

2

deadzone-linear with width

a

φ

u

) = max

u

a

log-barrier with limit

a

φ

u

a

2

log(

u/a

2

u

< a

otherwise

u

)u(φ

quadratic deadzone-linear

log barrier

−

1

.

5

−

1

−

0

.

5

0

0

.

5

1

1

.

5

0

0

.

1 5

1

.

2 5

Approximation and fitting

6–

example

m

n

): histogram of residuals for penalties

φ

u

u

φ

u

u

2

φ

u

) = max

u

a

φ

u

log(

u

2

= 1 p = 2 p Deadzone Log barrier

r

−

2

−

2

−

2

−

2

−

1

−

1

−

1

−

1

0 0 0 0

1 1 1 1

2 2 2 2

0 40

0 10

0 20

0 10

shape of penalty function has large effect on distribution of residuals Approximation and fitting

6–

docsity.com

Least-norm problems

minimize

x

subject to

Ax

b

A

R

m

×

n

with

m

n

is a norm on

R

n

interpretations of solution

x

⋆

= argmin

Ax

=

b

x

geometric:

x

⋆

is point in affine set

x

Ax

b

with minimum

distance to

estimation:

b

Ax

are (perfect) measurements of

x

x

⋆

is smallest

(’most plausible’) estimate consistent with measurements

design:

x

are design variables (inputs);

b

are required results (outputs)

x

⋆

is smallest (’most efficient’) design that satisfies requirements

Approximation and fitting

6–

examples

least-squares solution of linear equations (

2

can be solved via optimality conditions

x

A

T

ν

Ax

b

minimum sum of absolute values (

1

): can be solved as an LP

minimize

T

y

subject to

y

x

y,

Ax

b

tends to produce sparse solution

x

⋆

extension: least-penalty problem

minimize

φ

x

1

φ

x

n

subject to

Ax

b

φ

R

R

is convex penalty function

Approximation and fitting

6–

Scalarized problem

minimize

Ax

b

γ

x

solution for

γ >

traces out optimal trade-off curve

other common method: minimize

Ax

b

2

δ

x

2

with

δ >

Tikhonov regularization

minimize

Ax

b

22

δ

x

22

can be solved as a least-squares problem

minimize

[

A

δI

]

x

[

b 0

]∥

2 2

solution

x

⋆

A

T

A

δI

−

1

A

T

b

Approximation and fitting

6–

Optimal input design

linear dynamical system

with impulse response

h

y

t

t

∑ τ

=

h

τ

u

t

τ

t

,... , N

input design problem:

multicriterion problem with 3 objectives

  1. tracking error with desired output

y

des

J

track

Nt

=

y

t

y

des

t

2

  1. input magnitude:

J

mag

Nt

=

u

t

2

  1. input variation:

J

der

N

−

1

t

=

u

t

u

t

2

track desired output using a small and slowly varying input signal regularized least-squares formulation

minimize

J

track

δJ

der

ηJ

mag

for fixed

δ, η

, a least-squares problem in

u

u

N

Approximation and fitting

6–

Signal reconstruction

minimize (w.r.t.

R

2 +

ˆx

x

cor

2

, φ

x

x

R

n

is unknown signal

x

cor

x

v

is (known) corrupted version of

x

, with additive noise

v

variable

ˆx

(reconstructed signal) is estimate of

x

φ

R

n

R

is regularization function or smoothing objective

examples:

quadratic smoothing, total variation smoothing:

φ

quad

x

n

−

1

∑^ i

=

x

i

ˆx

i

2

φ

tv

x

n

−

1

∑^ i

=

ˆx

i

ˆx

i

Approximation and fitting

6–

quadratic smoothing example

i

x corx

0 0

1000 1000

2000 2000

3000 3000

4000 4000

−

0

.

5

−

0

.

0 5 0

0

.

5

0

.

5

i

ˆx ˆx ˆx

0 0 0

1000 1000 1000

2000 2000 2000

3000 3000 3000

4000 4000 4000

−

0

.

5

−

0

.

5

−

0

.

0 5 0 0

0

.

5

0

.

5

0

.

5

original signal

x

and noisy

signal

x

cor

three solutions on trade-off curve

ˆx

x

cor

2

versus

φ

quad

x

Approximation and fitting

6–

i

x corx

0 0

500 500

1000 1000

1500 1500

2000 2000

−

2

−

2

−

1

−

2 1 0 1 2 1 0

i

ˆx ˆx ˆx

0 0 0

500 500 500

1000 1000 1000

1500 1500 1500

2000 2000 2000

−

2

−

2

−

2 0 2 2 0 2 0

original signal

x

and noisy

signal

x

cor

three solutions on trade-off curve

ˆx

x

cor

2

versus

φ

tv

x

total variation smoothing preserves sharp transitions in signal Approximation and fitting

6–

Robust approximation

minimize

Ax

b

with uncertain

A

two approaches:

stochastic

: assume

A

is random, minimize

E

Ax

b

worst-case:

set

A

of possible values of

A

, minimize

sup

A

∈A

Ax

b

tractable only in special cases (certain norms

, distributions, sets

A

example

A

u

A

0

uA

1

x

nom

minimizes

A

0

x

b

22

x

stoch

minimizes

E

A

u

x

b

22

with

u

uniform on

[

1]

x

wc

minimizes

sup

−

1

≤

u

≤

1

A

u

x

b

22

figure shows

r

u

A

u

x

b

2

u

)u(r

x

nom

x

stoch

x

wc

−

2

−

1

0

1

2

8 6 4 2 0 12 10

Approximation and fitting

6–

docsity.com

worst-case robust LS

with

A

A

u

1

A

1

u

p

A

p

u

2

minimize

sup

A

∈A

Ax

b

22

= sup

‖

u

‖

2

≤

1

P

x

u

q

x

22

where

P

x

[

A

1

x

A

2

x

A

p

x

]

q

x

Ax

b

from page 5–14, strong duality holds between the following problems

maximize

P u

q

22

subject to

u

22

minimize

t

λ

subject to

I

P

q

P

T

λI

q

T

t

hence, robust LS problem is equivalent to SDP

minimize

t

λ

subject to

I

P

x

q

x

P

x

T

λI

q

x

T

t

Approximation and fitting

6–

example:

histogram of residuals

r

u

A

0

u

1

A

1

u

2

A

2

x

b

2

with

u

uniformly distributed on unit disk, for three values of

x

r

(

u

)

x

ls

x

tik

x

rls

frequency

0

1

2

3

4

5

0

0

.

05 0

.

1

0

.

15 0

.

2

0

.

25

x

ls

minimizes

A

0

x

b

2

x

tik

minimizes

A

0

x

b

22

δ

x

22

(Tikhonov solution)

x

wc

minimizes

sup

‖

u

‖

2

≤

1

A

0

x

b

22

x

22

Approximation and fitting

6–