Implementation of n-dimensional Griewank function.
griewank_func(x)
The value of the function.
numeric or complex vector.
On an n-dimensional domain it is defined by
f(x) = 1 + _i=1^n x_i^24000 - _i=1^n(x_ii),f(x) = 1 + _i=1^n x_i^24000 - _i=1^ncos(x_ii), and is usually evaluated on x_i [ -600, 600 ]x_i in [-600, 600], for all i=1,...,ni=1,...,n. The function has global minima at f(x) = 0f(x) = 0 for x_i=0x_i = 0 for all i=1,...,ni=1,...,n.
griewank1981generalizedEmiR