Function argmin_testfunctions::threehumpcamel

source ยท
pub fn threehumpcamel<T>(param: &[T; 2]) -> T
where T: Float + FromPrimitive,
Expand description

Three-hump camel test function

Defined as

f(x_1, x_2) = 2*x_1^2 - 1.05*x_1^4 + x_1^6/6 + x_1*x_2 + x_2^2

where x_i \in [-5, 5].

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