function f = RosenbrockF(X)
% Rosenbrock's function (2D)
% X is a 2D vector.
% K. Ming Leung, 09/25/03

X1 = X(1); X2 = X(2);
f = 100*(X1.*X1-X2).^2+(1-X1).^2;

