Docsity

Line Search Methods: Convergence and Optimization Algorithms - Prof. P. Blomgren, Study notes of Mathematics

Toggle sidebar
bg1
Line Search Methods
Convergence
Numerical Optimization
Lecture Notes #4
— Unconstrained Optimization; Line Search Methods —
Peter Blomgren,
Department of Mathematics and Statistics
Dynamical Systems Group
Computational Sciences Research Center
San Diego State University
San Diego, CA 92182-7720
http://terminus.sdsu.edu/
Fall 2009
Peter Blomgren, h[email protected]iLine Search Methods — (1/18)
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download Line Search Methods: Convergence and Optimization Algorithms - Prof. P. Blomgren and more Study notes Mathematics in PDF only on Docsity!

Line Search Methods Convergence

Numerical Optimization

Lecture Notes

— Unconstrained Optimization; Line Search Methods —

Peter Blomgren,

〈[email protected]〉

Department of Mathematics and Statistics

Dynamical Systems Group Computational Sciences Research Center

San Diego State University

San Diego, CA 92182-

http://terminus.sdsu.edu/

Fall 2009

Line Search Methods Convergence

Outline

(^1) Line Search Methods

Recap

Example

Example #

(^2) Convergence

The Zoutendijk Condition

Notes & Future Directions

Homework #

Line Search Methods Convergence

Recap Example Example #

Recall — Algorithm: Backtracking Linesearch

Algorithm: Backtracking Linesearch

[0] Find a descent direction ˜pk

[1] Set α > 0 , ρ ∈ (0, 1), c ∈ (0, 1), set α = α

[2] While f (˜xk + α˜pk ) > f (˜xk ) + cα˜p

T

k ∇f^ (˜xk^ ) [3] α = ρα

[4] End-While

[5] Set αk = α

If an algorithm selects the step lengths appropriately (e.g. backtracking),

we do not have to check the second inequality of the Wolfe conditions.

The algorithm above is especially well suited for use with Newton method

(˜pk = ˜pNk ), where α = 1.

The value of the contraction factor ρ can be allowed to vary at each

iteration of the line search. (To be revisited)

Line Search Methods Convergence

Recap Example Example #

Example: Minimizing f (˜x) = (x 1 + x

2 )

In the next few slides we illustrate our findings so far by minimizing

f (˜x) = (x 1 + x 22 )^2 (with ˜x 0 = [1, 1]) using two algorithms:

— 1. Steepest Descent direction with Backtracking Linesearch.

— 2. Newton direction with Backtracking Linesearch.

One thing to notice is that the entire curve where x 1 = −x

2 gives

f (˜x) = 0 — the minimum is not isolated, nor unique.

Recall

˜p

SD

k =^ −

∇f (˜xk )

|∇f (˜xk )|

, ˜p

N

k =^ −

[

∇

f (˜xk )

]− 1

∇f (˜xk )

Line Search Methods Convergence

Recap Example Example #

Steepest Descent with Backtracking Linesearch

−1.

−1^ −0.

0 0.

1

−1.

−

−0.

0

10

1

2

3

4

−1.

−1^ −0.

0 0.

1

−1.

−

−0.

0

10

1

2

3

4

−1.

−1^ −0.

0

0.5^1

−1.

−

−0.

0

10

1

2

3

4

−1.

−1^ −0.

0

0.5^1

−1.

−

−0.

0

10

1

2

3

4

Figure: The iterations #1, #2, #3, and #9 (convergence to 10−^8 ).

Line Search Methods Convergence

Recap Example Example #

Steepest Descent with Backtracking Linesearch

0 2 4 6 8 10 12

10 −

10 −

10 −

10 −

10 −

100

102

Figure: The size of the objective as a function of the iteration number.

Line Search Methods Convergence

Recap Example Example #

Example #2: Minimizing f (˜x) = (x 1 + x

2 )

  • 0.5(x

1 +^ x

2 )

−1.

−

−0.

0

1

−1.

−

−0.

0

1

0

1

2

3

4

−1.

−

−0.

0

1

−1.

−

−0.

0

1

0

1

2

3

4

Figure: Comparison of Newton direction (left) and Steepest Descent direction

(right) with backtracking line search applied to the objective f (˜x) = (x 1 + x 22 )^2 +

0 .5(x 12 + x^22 ) with ˜xT 0 = [1, 1]. In this case, the minimum is unique ˜x∗^ = [0, 0].

The Newton algorithm requires 6 iterations to reach the minimum up to desired

accuracy, and the Steepest Descent algorithm requires 16 iterations.

Line Search Methods Convergence

Recap Example Example #

Example: Minimizing f (˜x) = (x 1 + x

2 )

  • 0.5(x

1 +^ x

2 )

(^100 5 10 ) −

10 −

10 −

10 −

10 −

10 −

100

101 Newton Direction Steepest Descent

Figure: Convergence comparison of Newton direction (blue/solid) and Steepest Descent direction

(red/dash-dotted) with backtracking line search applied to the objective f (˜x) = (x 1 + x^22 )^2 +

0 .5(x 12 +x^22 ) with ˜xT 0 = [1, 1]. We see that the Steepest Descent algorithm is linearly convergent,

and that the Newton algorithm is significantly faster (quadratically convergent).

Line Search Methods Convergence

The Zoutendijk Condition Notes & Future Directions Homework #

Convergence of Line Search Methods the Zoutendijk condition

Theorem (Zoutendijk’s Theorem)

Consider any iteration of the form ˜xk+1 = ˜xk + αk ˜pk , where ˜pk is a descent direction

and αk satisfies the Wolfe conditions

f (˜xk + α˜pk ) ≤ f (˜xk ) + c 1 α˜pTk ∇f (˜x), c 1 ∈ (0, 1)

p ˜Tk ∇f (˜xk + α˜pk ) ≥ c 2 ˜pTk ∇f (˜xk ), c 2 ∈ (c 1 , 1).

Suppose that f is bounded from below in Rn^ and that f is continuously differentiable

in an open set N containing the level set L = {x ∈ Rn^ : f (˜x) ≤ f (˜x 0 )} where ˜x 0 is the

starting point of the iteration. Assume also that the gradient ∇f is Lipschitz

continuous on N, i.e. there exists a constant L such that

‖∇f (˜x) − ∇f (˜y)‖ ≤ L‖˜x − ˜y‖, ∀˜x, ˜y ∈ L

Then

X∞

k= 0

cos^2 θk‖∇f(˜xk)‖^2 < ∞.

Line Search Methods Convergence

The Zoutendijk Condition Notes & Future Directions Homework #

Convergence of Line Search Methods the Zoutendijk Condition

This result seems, at first (and probably second too!) glance, to be

quite technical and obscure...

However, the Zoutendijk condition

∑^ ∞

k=

cos

θk ‖∇f (˜xk )‖

< ∞

implies that

lim

k→∞

cos

θk ‖∇f (˜xk )‖

→ 0

Now, if we have a method for choosing the search directions ˜pk so

that cos θk ≥ δ > 0 for all k, then this shows that ‖∇f (˜xk )‖ → 0.

Line Search Methods Convergence

The Zoutendijk Condition Notes & Future Directions Homework #

The Zoutendijk Condition: Newton Direction

It can be shown that Newton methods are also globally convergent

in this sense, under these additional conditions:

The Hessian must be positive definite, and the condition

numbers must be uniformly bounded, i.e.

∥ ∥ ∥ ∥

[ ∇

f (˜xk )

]

∥ ∥ ∥ ∥ ·

∥ ∥ ∥ ∥

[ ∇

f (˜xk )

]− 1

∥ ∥ ∥ ∥ ≤^ M,^ for some positive^ M

That is, the ratio of the largest and smallest eigenvalues, λ

max k /λ

min

k

must remain bounded. (Think of λ

j

k

as the curvature in the

eigen-directions.)

The proof for the steepest descent direction is given in NW

(pp.43–44) and the key part to the proof for the Newton direction

is exercise #3.5 (NW p.62)

Line Search Methods Convergence

The Zoutendijk Condition Notes & Future Directions Homework #

Notes & Looking Forward

We note that the Zoutendijk condition gives us global convergence,

i.e. a guarantee that we will arrive at a stationary point.

It does, however, not say anything about the rate of convergence.

Next time we will look at the local convergence rates (i.e. the

convergence “speed”) of Steepest descent, Newton, and

Quasi-Newton methods.

The analysis takes a full lecture, and it does not make sense to

split it up... Hence the relative shortness of this lecture.