Skip to contents

Matyas function

Usage

f_matyas(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/Test_functions_for_optimization

Examples

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