Answered step by step
Verified Expert Solution
Link Copied!

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 =

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions

Question

=+5 How does HRM relate to efforts to increase innovation?

Answered: 1 week ago