1 function f = extended_rosenbrock1(x)
3 % The extended Rosenbrock function. See Dennis & Schnabel, Appendix
6 % This function has a minimum at x=(1,1,...,1) with f(x) == 0. The
7 % suggested starting point is x0=(-1.2, 1,-1.2, 1,...,-1.2, 1).
8 % Since the number of arguments is variable, we take a vector
9 % instead of its individual components.
14 % 'm' below must be an integer.
22 % The extended Rosenbrock is simply a sum of Rosenbrock
27 f_k = rosenbrock(y1, y2);