Question: Problem 2 : Write a MATLAB script called hw 4 _ p 2 a . m to use the gradient - descent method to minimize
Problem : Write a MATLAB script called hwpam to use the gradientdescent method to
minimize Then write a MATLAB script called hwpbm to
minimize For each script, use as the starting point
and as the stopping criterion.
Notation note: denotes the initial vector bold to denote vector; to denote
iteration number Do not confuse this with a scalar which denotes an individual
component the one of the vector,
Discuss your results: Why did the algorithm work better for one function and worse
for the other?
Hint: We talked about it in class.
bonus points: Plot the trajectories of your iterates in the plane with lines
and line markers
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
