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

Goldstein-Price test function

Defined as

f(x_1, x_2) = [1 + (x_1 + x_2 + 1)^2 * (19 - 14*x_2 + 3*x_1^2 - 14*x_2 6*x_1*x_2 + 3*x_2^2)] * [30 + (2*x_1 - 3*x_2)^2(18 - 32 * x_1 + 12* x_1^2 + 48 * x_2 - 36 * x_1 * x_2 + 27 * x_2^2) ]

where x_i \in [-2, 2].

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