Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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, 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started