Function 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) = 2x_1^2 - 1.05x_1^4 + \frac{x_1^6}{6} + x_1x_2 + x_2^2 $$

where $x_i \in [-5, 5]$.

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