Skip to contents

Ackley function

Usage

f_ackley(x)

Arguments

x

A numeric vector of length 2.

Value

The function value at x, a single numeric.

Details

The function has multiple local minima and one global minimum in the origin.

References

https://en.wikipedia.org/wiki/Ackley_function

Examples

f_ackley(c(0, 0))
#> [1] 0