Question: Use MATLAB to solve the following problem The following function is known as the Himmelblau's function: f ( z 1 , z 2 ) =

Use MATLAB to solve the following problem
The following function is known as the Himmelblau's function:
f(z1,z2)=(z12+z2-11)2+(z1+z22-7)2
a) Use fminunc to minimize the function with the following starting points and report the
optimized objective function value:
i.,z(0)=[0.51]T
ii.,z(0)=[4-5]T
iii. ,z(0)=[-10]T
iv.,z(0)=[-3-0.5]T
Create two figure, such that figure 1 shows a surface plot of the function and figure 2 shows the
contour plot of the function. Use the figures to explain the results obtained in parts (i)-(iv).
Note: Use the following options to run fminume:
options = optimoptions('fminunc','Algorithm', 'quasi-newton','Display', 'off');
b) Use the fminuncBFGs from Problem 4 to solve parts (i)-(iv) from part (a). Comment on the
difference between the results obtained with fminuncBFGS and fminunc.
Use MATLAB

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!