Function argmin_testfunctions::himmelblau
source ยท pub fn himmelblau<T>(param: &[T; 2]) -> Twhere
T: Float + FromPrimitive,
Expand description
Himmelblau test function
Defined as
f(x_1, x_2) = (x_1^2 + x_2 - 11)^2 + (x_1 + x_2^2 - 7)^2
where x_i \in [-5, 5]
.
The global minima are at
f(x_1, x_2) = f(3, 2) = 0
.f(x_1, x_2) = f(-2.805118, 3.131312) = 0
.f(x_1, x_2) = f(-3.779310, -3.283186) = 0
.f(x_1, x_2) = f(3.584428, -1.848126) = 0
.