In mathematical optimization, the Rosenbrock function is a non-convex function used as a performance test problem for optimization algorithms introduced by Howard H. Rosenbrock in 1960. It is also known as Rosenbrock's valley or Rosenbrock's banana function.
It is defined by
It has a global minimum at where . A different coefficient of the second term is sometimes given, but this does not affect the position of the global minimum.
Multidimensional generalisations 
Two variants are commonly encountered. One is the sum of uncoupled 2D Rosenbrock problems,
This variant is only defined for even and has predictably simple solutions.
A more involved variant is
This variant has been shown to have exactly one minimum for (at ) and exactly two minima for -- the global minimum of all ones and a local minimum near . This result is obtained by setting the gradient of the function equal to zero, noticing that the resulting equation is a rational function of . For small the polynomials can be determined exactly and Sturm's theorem can be used to determine the number of real roots, while the roots can be bounded in the region of . For larger this method breaks down due to the size of the coefficients involved.
Stationary points 
Many of the stationary points of the function exhibit a regular pattern when plotted. This structure can be exploited to locate them.
An example of optimization 
The Rosenbrock function can be efficiently optimized by adapting appropriate coordinate system without using any gradient information and without building local approximation models (in contrast to many derivate-free optimizers). The following figure illustrates an example of 2-dimensional Rosenbrock function optimization by Adaptive coordinate descent from starting point . The solution with the function value can be found after 325 function evaluations.
See also 
- Rosenbrock, H.H. (1960). "An automatic method for finding the greatest or least value of a function". The Computer Journal 3: 175–184. doi:10.1093/comjnl/3.3.175. ISSN 0010-4620.
- L C W Dixon, D J Mills. Effect of Rounding errors on the Variable Metric Method. Journal of Optimization Theory and Applications 80, 1994. 
- "Generalized Rosenbrock's function". Retrieved 2008-09-16.
- Schalk Kok, Carl Sandrock. Locating and Characterizing the Stationary Points of the Extended Rosenbrock Function. Evolutionary Computation 17, 2009. 
- Rosenbrock, H. H. (1960), "An automatic method for finding the greatest or least value of a function", The Computer Journal 3: 175–184, doi:10.1093/comjnl/3.3.175, ISSN 0010-4620, MR0136042