14
Numerical Methods Multidimensional Gradient Methods in Optimization- Example http://nm.mathforcollege.com http://nm.mathforcollege.com

For more details on this topic Go to nm.mathforcollege Click on Keyword

Embed Size (px)

DESCRIPTION

Numerical Methods Multidimensional Gradient Methods in Optimization- Example http://nm.mathforcollege.com. For more details on this topic Go to http://nm.mathforcollege.com Click on Keyword Click on Multidimensional Gradient Methods in Optimization. You are free. - PowerPoint PPT Presentation

Citation preview

Page 1: For more details on this topic  Go to nm.mathforcollege Click on Keyword

Numerical Methods Multidimensional Gradient Methods in Optimization- Example

http://nm.mathforcollege.com

http://nm.mathforcollege.com

Page 2: For more details on this topic  Go to nm.mathforcollege Click on Keyword

For more details on this topic

Go to http://nm.mathforcollege.com Click on Keyword Click on Multidimensional Gradient

Methods in Optimization

Page 3: For more details on this topic  Go to nm.mathforcollege Click on Keyword

You are free

to Share – to copy, distribute, display and perform the work

to Remix – to make derivative works

Page 4: For more details on this topic  Go to nm.mathforcollege Click on Keyword

Under the following conditions Attribution — You must attribute the

work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).

Noncommercial — You may not use this work for commercial purposes.

Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

Page 5: For more details on this topic  Go to nm.mathforcollege Click on Keyword

Example

Determine the minimum of the function

Use the poin (2, 1) as the initial estimate of the optimal solution.

5

42, 22 xyxyxf

)0(

)0()0(

y

xx

http://nm.mathforcollege.com

Page 6: For more details on this topic  Go to nm.mathforcollege Click on Keyword

6

SolutionIteration 1: To calculate the gradient; the partial derivatives must be evaluated asRecalled that

62)2(222

xx

f2)1(22

yy

f

j2i6 f

h

hhx

fhxx

i

ii

21

62

2

6

1

2)1(

)()1(

42),( 22 xyxyxf

http://nm.mathforcollege.com

Page 7: For more details on this topic  Go to nm.mathforcollege Click on Keyword

7

SolutionNow the function can be expressed along the direction of gradient as

To get ,we set

yxf ,

134040)( 2 hhhg

)(4)62(2)21()62()( 221 hghhhxf i

5.040800 hhdh

dgming

http://nm.mathforcollege.com

Page 8: For more details on this topic  Go to nm.mathforcollege Click on Keyword

8

Solution Cont.Iteration 1 continued: This is a simple function and it is easy to determine by taking the first derivative and solving for its roots.

This means that traveling a step size of along the gradient reaches a minimum value for the function in this direction. These values are substituted back to calculate a new value for x and y as follows:

50.0* h

5.0h

0)5.0(21

1)5.0(62

y

x

0.30,1 f 131,2 fNote that http://nm.mathforcollege.com

Page 9: For more details on this topic  Go to nm.mathforcollege Click on Keyword

9

Solution Cont.Iteration 2: The new initial point is .We calculate the gradient at this point as

0) ,1(

02)1(222

xx

f

0)0(22

yy

f

j)0(i)0(f

http://nm.mathforcollege.com

Page 10: For more details on this topic  Go to nm.mathforcollege Click on Keyword

10

Solution Cont.

This indicates that the current location is a local optimum along this gradient and no improvement can be gained by moving in any direction. The minimum of the function is at point (-1,0),and .

34)1(2)0()1( 22min f

http://nm.mathforcollege.com

Page 11: For more details on this topic  Go to nm.mathforcollege Click on Keyword

THE END

http://nm.mathforcollege.com

Page 12: For more details on this topic  Go to nm.mathforcollege Click on Keyword

This instructional power point brought to you byNumerical Methods for STEM undergraduatehttp://nm.mathforcollege.comCommitted to bringing numerical methods to the undergraduate

Acknowledgement

Page 13: For more details on this topic  Go to nm.mathforcollege Click on Keyword

For instructional videos on other topics, go to

http://nm.mathforcollege.com

This material is based upon work supported by the National Science Foundation under Grant # 0717624. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.

Page 14: For more details on this topic  Go to nm.mathforcollege Click on Keyword

The End - Really