pub fn mccorminck<T>(param: &[T; 2]) -> Twhere
T: Float + FromPrimitive,
Expand description
McCormick test function.
Defined as
$$ f(x_1,\,x_2) = \sin(x_1 + x_2) + (x_1 - x_2)^2 - 1.5x_1 + 2.5x_2 + 1 $$
where $x_1 \in [-1.5,\,4]$ and $x_2 \in [-3,\,4]$.
The global minimum is at $f(x_1,\,x_2) = f(-0.54719,\,-1.54719) = -1.913228$.