Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 1 ( up to Lecture 5 ) Unconstrained Optimization Methods. a ) Code a routine in Matlab that can execute the Golden Section Search

Exercise 1(up to Lecture 5) Unconstrained Optimization Methods.
a) Code a routine in Matlab that can execute the Golden Section Search (GSS) method. The function should take as inputs the initial triplet of points (a,b,c), the function f, and the tolerance lon. It should return the solution in terms of x and y value. Clearly name this function.
b) Solve for the local maximum of f(x)=e-x2 using your routine from a). Set (a,b,c)=(-10,2,8) and lon=10-8. Report the x and the f(x) value at the local maximum.
Hint: it should converge to the true solution!
c) Code a routine in Matlab that can execute Newton's method for optimization. The function should take as inputs the initial point x0, the function f, it's gradient gradf, the Hessian Hf, two tolerances ,lon, and the maximum number of iterations I. It should return the solution as well as an exit flag. Clearly name this function.
d) Solve for the local maximum of f(x,y)=e-x2-y2 using your routine from c). Set x0=[0.3,0.3]T,lon=10-8,=10-8,I=100. What happens with x0=[0.4,0.4]T?
Hint: it should converge to the true solution!
e) Code a routine in Matlab that can execute the BFGS method. The function should take as inputs the initial point x0, the function f, it's gradient gradf, the initial guess for the Hessian tilde(H)f, two tolerances ,lon, and the maximum number of iterations I. It should return the solution as well as an exit flag. Clearly name this function.
f) Solve for the local maximum of f(x,y)=e-x2-y2 using your routine from e). Set x0=[0.3,0.3]T, tilde(H)f=[-1.30.30.3-1.3],lon=10-8,=10-8,I=100.
Hint: it should converge to the true solution!
g*) Repeat f) but now use tilde(H)f=[1001]. For which initial guess of the Hessian does the algorithm converge (in fewer iterations)? Argue why.
h) Using any of the three methods above, find all local minima of f(x)=x4-12x3+15x2+56x-55. What is the global minimum? Why? Also argue why there cannot be any other local minimum.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases With Application To GIS

Authors: Philippe Rigaux, Michel Scholl, Agnès Voisard

1st Edition

1558605886, 978-1558605886

More Books

Students also viewed these Databases questions

Question

clarify and articulate your research methodology;

Answered: 1 week ago

Question

consider how to build on prior learning.

Answered: 1 week ago