pub fn goldsteinprice<T>(param: &[T; 2]) -> Twhere
T: Float + FromPrimitive,
Expand description
Goldstein-Price test function.
Defined as
$$ \begin{aligned} f(x_1,\,x_2) &= [1 + (x_1 + x_2 + 1)^2(19 - 14 x_1 + 3 x_1^2 - 14 x_2 + 6 x_1 x_2 + 3 x_2^2)] \\ &\times [30 + (2 x_1 - 3 x_2)^2(18 - 32 x_1 + 12 x_1^2 + 48 x_2 - 36x_1 x_2 + 27 x_2^2) ] \end{aligned} $$
where $x_i \in [-2,\,2]$.
The global minimum is at $f(x_1,\,x_2) = f(0,\,-1) = 3$.