For the function, f (x) = X2-4X + 2XY + 2Y2 + 2Y +14 Plot the surface function for X over [5 6]. and Y over [-4. -2],. Draw the contour plot for X…

For the function, f (x) = X2-4X + 2XY + 2Y2 + 2Y +14 Plot the surface function for X over [5 6]. and Y over [-4. -2],. Draw the contour plot for X over [0 10]. and Y over [-4. -2] and values for the contours of V=[1 1.25 1.5 2 2.5 3]; Write a m-file to find the minimum of the function using the gradient descent method. Use a starting value of [4. -4].

Leave a Reply