Question: function [y] = camel6(xx) % INPUTS: % % xx = [x1, x2] x1 = xx(1); x2 = xx(2); term1 = (4-2.1*x1^2+(x1^4)/3) * x1^2; term2 =

 function [y] = camel6(xx) % INPUTS: % % xx = [x1,

function [y] = camel6(xx)
% INPUTS: % % xx = [x1, x2] 
x1 = xx(1); x2 = xx(2); term1 = (4-2.1*x1^2+(x1^4)/3) * x1^2; term2 = x1*x2; term3 = (-4+4*x2^2) * x2^2; y = term1 + term2 + term3; end

Input Domain: x1 [-3, 3], x2 [-2, 2].

1. for the function given above find the approximated minimum using random walk method

2. use Gradient Descent Method to find (global optimum), initial point [-2,1] (we can select another initial point)

please the answer must be a matlab code, thanks

$(x) = (4 2.1c} + ? )2 = 1) 24+22 f 4 + z +21%+(-4+4.23)x 3

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!