Answered step by step
Verified Expert Solution
Link Copied!

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)

image text in transcribed

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

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

Database Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions

Question

OUTCOME 2 Identify and explain the privacy rights of employees.

Answered: 1 week ago