A widely used multimodal test function characterized by a nearly flat outer region with a large central hole at the origin. It poses a risk for optimization algorithms to be trapped in local minima.
F10(x)Numeric scalar representing the function value.
Formula: $$f(x) = -20\exp\left(-0.2\sqrt{\frac{1}{n}\sum_{i=1}^{n}x_i^2}\right) - \exp\left(\frac{1}{n}\sum_{i=1}^{n}\cos(2\pi x_i)\right) + 20 + e$$
Global minimum: \(f(0, 0, ..., 0) = 0\)
Characteristics:
Type: Multimodal
Separable: No
Differentiable: Yes
Default bounds: \([-32, 32]^n\)
Default dimensions: 50
The Ackley function has an exponential term covering its surface with numerous local minima. The function poses a risk of premature convergence for hill-climbing algorithms.
test-functions for an overview of all test functions,
get_function_details to retrieve function parameters.