function y=testfunc(x) % x is assumed to be dimension x number of points % Un-comment the function desired % Basic 2-d paraboloid %y=x(1,:).^2+x(2,:).^2; %Rosenbrock's parabolic valley (Benchmark start: (-1.2, 1) %y=100*(x(2,:)-x(1,:).^2).^2+(1-(x(1,:))).^2; %Powell's Quartic (Benchmark start: (3,-1,0,1) y=(x(1,:)+10*x(2,:)).^2+5*(x(3,:)-x(4,:)).^2+(x(2,:)-2*x(3,:)).^4+10*(x(1,:)-x(4,:)).^4;