Griewank¶ class gob.benchmarks.griewank.Griewank[source]¶ Bases: Benchmark The Griewank function. \(f(x) = \sum_{i = 1}^d \frac{x_i^2}{4000} - \prod_{i = 1}^d \cos \left( \frac{x_i^2}{\sqrt{i}} \right) + 1\). Its minimum is \(0\) achieved at \(x = 0\). expr(x)[source]¶ The expression of the function. Parameters: x (array-like) – The point at which to evaluate the function. Returns: The value of the function at x. Return type: float