Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

10. In this problem you use the optmization functdon In Matib to ine the minimum of a convex function (14 poins) 1) Create a Aunction

image text in transcribed
10. In this problem you use the optmization functdon In Matib to ine the minimum of a convex function (14 poins) 1) Create a Aunction entited 'newFunc for the convex function as follbws 2) Find the mintmum of the funcion (xy) using the Matab optmizadon algorithm fnincon with an Inequality constraint x+3y 21, and use the sarting guess at the polnt x--1 and y-1 with the bounds on x and y as 102x2-10. 52y2-5 (Hint you shouk create a function for cakuating the function, and call the functon when doing the optmization using fmincon Help of fmincon x fmincon (fun, x0, A, b. Aeq, beq, lb, ub) minimizes fun subject to a set of bwer and upper bounds on the design varables inx so that the solution Is always In the range lbsx S ub, If no equalidies exist, set Aeq [ ] and bega [ ]. If no inequalities exist, set A-[ ] and b-[].) 3) Open a new figure to show the graphic representaton of f with 2 axes side by side, as shown in Figure 3, activate the eft one to create a surface pbt of the functorn using colbr shading properties 'interp' and 'cobrbar' to show cobr scale, and activate the right one to create a contour pbt of the function with 10 contour eves The range for the vector x is from -10 to 10 with an increment 0.4, and the range of y is from-5 to 5 with an increment 0.2. (using: Surf, Contour). Figure 3 Surface and contour potting of newFunc

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions