Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 whyStep 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