Function argmin_testfunctions::mccorminck
source ยท pub fn mccorminck<T>(param: &[T; 2]) -> Twhere
T: Float + FromPrimitive,
Expand description
McCorminck test function
Defined as
f(x_1, x_2) = sin(x_1 + x_2) + (x_1 - x_2)^2 - 1.5*x_1 + 2.5*x_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
.