Function argmin_testfunctions::rosenbrock
source ยท pub fn rosenbrock<T>(param: &[T]) -> T
Expand description
Multidimensional Rosenbrock test function
Defined as
f(x_1, x_2, ..., x_n) = \sum_{i=1}^{n-1} \left[ (a - x_i)^2 + b * (x_{i+1} - x_i^2)^2 \right]
where x_i \in (-\infty, \infty)
. The parameters a and b are: a = 1
and b = 100
.
The global minimum is at f(x_1, x_2, ..., x_n) = f(1, 1, ..., 1) = 0
.