pub fn booth<T: Float + FromPrimitive>(param: &[T]) -> T
Expand description

Booth test function

Defined as

`f(x_1, x_2) = (x_1 + 2x_2 - 7)^2 + (2x_1 + x_2 - 5)^2

where x_i \in [-10, 10].

The global minimum is at f(x_1, x_2) = f(1, 3) = 0.