MATLAB: Optimization of Branin function

braninoptimizationoptimtool

The problem goes as follows:
find the optima for Branin's function using MATLAB
f=@(x1,x2) (x2-(5.1/(4*pi^2))*x1^2+(5/pi)*x1-6)^2+10*(1-(1/(8*pi)))*cos(x1)+10;
where -5<=x1<=10, 0<=x2<=15
How do I optimize (minimize) this multivariable constraint function?
Thanks for the help

Best Answer

FMINCON would be applicable.