Question: Write a MATLAB script without using an if statement called hw4_p2a.m to use the gradient-descent method to minimize f(x) = 20(x1)^2 20(x2)^2 Then write a

Write a MATLAB script without using an "if statement" called hw4_p2a.m to use the gradient-descent method to minimize f(x) = 20(x1)^2 20(x2)^2 Then write a MATLAB script called hw4_p2b.m to minimize f(x) = (x1)^2 20(x2)^2 For each script, use x(0) = [420, 68]^T as the starting point and f(x) < 106 as the stopping criterion. Notation note: x (0) denotes the initial x vector (bold to denote vector; 0 to denote iteration number). Do not confuse this with xi (a scalar), which denotes an individual component (the ith one) of the vector, x

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 Mathematics Questions!