[][src]Function argmin::testfunctions::booth

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

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.