Docsity

Steepest Descent Method: Finding the Direction of Maximum Rate of Increase, Study notes of Design

Toggle sidebar
bg1
Steepest Descent Method
Kefu Liu
Properties of Gradient Vector
The gradient vector of a scalar function 12
(, , , )
n
f
xx x" is defined as a column vector
12
T
n
ff f
fxx x
⎡⎤
∂∂ ∂
∇= =
⎢⎥
∂∂ ∂
⎣⎦
c"
For example
22
12 1 2
(, ) 25
f
xx x x=+
at the point
**
12
.6, 4xx==
*
1
*
2
2(25)(.6) 30
2(25)
2(4) 8
2
x
fx
⎡⎤
⎡⎤⎡
=∇ = = =
⎢⎥
⎢⎥⎢
⎣⎦⎣
⎣⎦
c⎤
⎥
⎦
The normalized gradient vector
T
=c
ccc
For example, at the point
**
12
.6, 4xx==
22
30 .96625
1
8 .2577
30 8
⎡⎤⎡ ⎤
==
⎢⎥⎢ ⎥
+⎣⎦⎣ ⎦
c
Property 1. The gradient vector represents a direction of maximum rate of increase for
the function ()
f
x at . For example,
*
x
22
(.6,4) 25(.6) 4 25f=+=
If we increase in the direction
xc by a step size of .5
α
=
(1) (0 ) .6 .96625 1.083125
.5
4 .2577 4.12885
α
⎡⎤ ⎡ ⎤ ⎡ ⎤
=+= + =
⎢⎥ ⎢ ⎥ ⎢ ⎥
⎣⎦ ⎣ ⎦ ⎣ ⎦
xx c
The function value becomes
1
pf3
pf4
pf5

Partial preview of the text

Download Steepest Descent Method: Finding the Direction of Maximum Rate of Increase and more Study notes Design in PDF only on Docsity!

Steepest Descent Method

Kefu Liu

Properties of Gradient Vector

The gradient vector of a scalar function f ( x 1 (^) , x 2 , " , xn )is defined as a column vector

1 2

T

n

f f f f x x x

⎣ ∂^ ∂^ ∂ ⎦

" c

For example

2 2 f ( x 1 (^) , x 2 (^) ) = 25 x 1 (^) + x 2

at the point

x 1 (^) = .6, x 2 = 4

1

2

x f x

⎣ ⎦ ⎣^ ⎦^ ⎣

c

The normalized gradient vector

T

c c c c

For example, at the point

x 1 (^) = .6, x 2 = 4

2 2

c

Property 1. The gradient vector represents a direction of maximum rate of increase for

the function f ( ) x at. For example,

x

2 2 f (.6, 4) = 25(.6) + 4 = 25

If we increase x in the direction c by a step size of α =.

(1) (0) .6^ .96625^ 1.

x x c

The function value becomes

(1) 2 2 f ( x ) = 25(1.083125) + (4.122885) =46.

If we move in a direction [ 1 0 ]

T

(1) (0) .6^1 1.

x x c

The function value becomes

(1) 2 2 f ( x ) = 25(1.1) + (4) =46.

If we move in a direction [ 0 1 ]

T

(1) (0) .6^0.

x x c

The function value becomes

(1) 2 2 f ( x ) = 25(.6) + (4.5) =29.

We can see that moving along the gradient direction results in the maximum increase in

the function.

Property 2. The gradient vector c of f^ (^ x 1^ ,^ x 2^ ,^ "^ ,^ xn )at the point is orthogonal

(normal) to the tangent plane for the surface. For example,

the slope at

x

f ( x ) =constant 2 2 f ( x 1 (^) , x 2 (^) ) = 25 x 1 (^) + x 2 = 25

x 1 (^) = .6, x 2 = 4 can be found to be

2(25) x dx 1 1 (^) + 2 x dx 2 2 = 0

2 1

1 2

slope 3. 4

dx x

dx x

The direction of the tangent line is given by

t

c and t are normal each other as

(3) (2) (2) .0166^ .1453^.

⎡ ⎤ ⎡ ⎤ ⎡^ −

x x c

(3) 2 2 f ( x ) = 25( .0561)− + (2.332) =5.

(3) 2.805^ (3).

⎡^ − ⎤ ⎡−

c c

(4) (3) (3) .0561^ .5154^.

⎡ −^ ⎤ ⎡− ⎤ ⎡

x x c

(4) 2 2 f ( x ) = 25(.2016) + (1.9035) =4.

(4) 10.08^ (4).

c c

(5) (4) (4) .2016^ .9355^ -.

x x c

(5) 2 2 f ( x ) = 25( .2662)− + (1.7269) =4.

It is noted that the function values start to oscillate, i.e., not monotonically reduce. This is

caused by the constant step size. When the search is near the minimum, a smaller step

size should be used. Otherwise, an “overshoot” will occur. Overshoot means that we

move along the steepest direction more than needed. As a matter of fact, we are supposed

to find the best step size at each iteration by conducting a one-D optimization in the

steepest descent direction. For example, the new point can be expressed as a function of

step size α , i.e.,

(1) (0) (0) 1 .9929^1.

⎡ ⎤ ⎡ ⎤ ⎡^ −

x x c ⎦

(1) 2 2 f ( x ) = 25(1 − .9929 α ) + (3 −.1191 α )

(1) f ( x )is a function of α. Using the analytical approach, we get

( ) (^) (0) (0) 2(25)(1 .9929 )( .9929) 2(3 .1191 )( .1191) 0

df

d

α α α α

= − − + − − =

(0) 2 2

25(.9929) 3(.1191)

25(.9929 ).

α

= =

(1) (0) (0) (0) 1 .9929^ -.

3 .1191 2.

α

⎡ ⎤ ⎡ ⎤ ⎡ ⎤ = − = (^) ⎢ ⎥ − (^) ⎢ ⎥ =⎢ ⎥ ⎣ ⎦ ⎣ ⎦ ⎣ ⎦

x x c

(1) 2 2 f ( x ) = 25( .0139)− + 2.8784 =8.

f = 8.29is the minimum value we can find at this iteration.

Steepest descent algorithm

Step 1. Estimate a starting design and set the iteration counter

(0) x k = 0. Select a

convergence parameter ε > 0.

Step 2. Calculate the gradient of f ( ) x at the point as. Calculate

( k ) x (^) c (^ k )^^ = ∇ f ( x (^ k ))

T c = c c. If c < ε, then stop the iteration process as

  • ( k ) x = x is a minimum

point. Otherwise, go to Step 3.

Step 3. Let the search direction at the current point as.

( k ) x (^) d (^ k^ )^ = − c (^ k )

Step 4. Calculate a step size

( k ) α to minimize. A one-dimensional

search is used to determine

( ) ( ) ( ) (

k k k f x + α d ) ( k ) α.

Step 5. Update the design as. Set

( k 1) ( k ) ( k ) ( ) α

x = x + d

k (^) k = k + 1 and go to Step 2.