Op Tim Ization
Op Tim Ization
S. M. Shafkat Raihan
December 6, 2020
Exercise 1
Question:
By taking account of any optimization problem demonstrate the use of various functions
available in the MatLab optimization Toolbox.
Answer:
The Rosenbrock function is a non-convex function, introduced by Howard H. Rosenbrock
in 1960, which is used as a performance test problem for optimization algorithms. It is also
known as Rosenbrock’s valley or Rosenbrock’s banana function. The global minimum is inside
a long, narrow, parabolic shaped flat valley. To find the valley is trivial. To converge to the
global minimum, however, is difficult. The function is defined by
It has a global minimum at (𝑥, 𝑦) = (𝑎, 𝑎2 ), where f (𝑥, 𝑦) = 0. Usually these parameters are set
such that 𝑎 = 1, 𝑏 = 100. Only in the trivial case where 𝑎 = 0 the function is symmetric and the
minimum is at the origin. To optimize it, we apply various MATLAB optimization functions.
Unconstrained minimization: Unconstrained minimization - fminunc,for unconstrained
multivariable function
%Optimizing Rosenbrock function
%Unconstrained minimization - fminunc(for unconstrained multivariable
%function),fminsearch(for unconstrained multivariable function using derivative-f
1
x = fminsearch(fun,x0);
fprintf(’Unconstrained Minimum with derivative-free method is %f,%f \n’,x(1),x(2)
2
end