Skip to contents

Beale function

Usage

f_beale(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 (3, 0.5).

References

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

Examples

f_beale(c(3, 0.5))
#> [1] 0