Question: Must Be solved using matlab please no handwritten solutions and please solve using the given instructions 2D optimization Consider the following two-dimensional function: c(x,y)=(7.30.02x0.38y+0.4x20.08y20.004xy)sin(0.8x)sin(y) a)

 Must Be solved using matlab please no handwritten solutions and please

Must Be solved using matlab please no handwritten solutions and please solve using the given instructions

2D optimization Consider the following two-dimensional function: c(x,y)=(7.30.02x0.38y+0.4x20.08y20.004xy)sin(0.8x)sin(y) a) Use an anonymous function for c(x,y) and MATLAB's mesh function. Create a 3D plot of the function from 7x6, and 5y3. b) Use an initial guess of [2-2], find the maximum using MATLAB's built-in function fminsearch. Use the fprintf function to print the results with 6 digits to the right of the decimal point fe.g. "The maximum. value of c,X.XXXXXX, occurs at x =XXXXXXX and y=XXXXXXX.) c) Using MATLAB's plot 3 and hold commands, plot a red asterisk at the maximum in the plot from part a). d) Repeat parts b and c with an initial guess of [72] and a black asterisk. e) In text answer the question: "What changes between the two different initial guesses and why

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!