Question
use matlab From the previous optimization, you may find one minimum value of the banana function. Now, please try the so-called Branin function, which has
use matlab
From the previous optimization, you may find one minimum value of the banana function. Now, please try the so-called Branin function, which has three global minima. The Branin function is written as f(x,y)=a(x_(2)-bx_(1)^(2)+cx_(1)-r)^(2)+s(1-t)cos(x_(1))+s where a=1,b=5.1(4pi^(2)),c=5//pi,quadr=6,s=10,t=1//(8pi).
In this problem you use the optimization toolbox (optimtool) in Matlab to find the three minima of Branin function by trying different starting guess. (a) Create a figure to show the graphic representation of f, on the square x1in[-5,10],x2in[0,15] (using: Surf, Contour, or others). (b) Find the three minima of the Banana function f using the Matlab optimization algorithm fminunc, fmincon, or fminsearch. (e.g. one of the global minima x^(**)=(-pi,12.275f(x^(**)) = 0.397887)
Step 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