Learn R Programming

EmiR (version 1.0.4)

rosenbrock_func: Rosenbrock Function

Description

Implementation of n-dimensional Rosenbrock function, with n 2n >= 2.

Usage

rosenbrock_func(x)

Value

The value of the function.

Arguments

x

numeric or complex vector.

Details

On an n-dimensional domain it is defined by

f(x) = _i=1^n-1 [ 100(x_i+1-x_i^2)^2 + (x_i-1)^2 ],, and is usually evaluated on x_i [ -5, 10 ]x_i in [-5, 10], for all i=1,...,ni=1,...,n. The function has one global minimum at f(x)=0f(x)=0 for x_i=1x_i=1 for all i=1,...,ni=1,...,n.

References

Rosenbrock1960EmiR