Question: 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.
 Exercise 1(up to Lecture 5) Unconstrained Optimization Methods. a) Code a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!