Function holder_table

Source
pub fn holder_table<T>(param: &[T; 2]) -> T
where T: Float + FromPrimitive,
Expand description

Holder table test function.

Defined as

$$ f(x_1,\,x_2) = -\left|\sin(x_1)\cos(x_2)\exp\left(\left|1- \frac{\sqrt{x_1^2+x_2^2}}{\pi}\right|\right)\right| $$

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

The global minima are at

  • $f(x_1,\,x_2) = f(8.05502,\,9.66459) = -19.2085$.
  • $f(x_1,\,x_2) = f(8.05502,\,-9.66459) = -19.2085$.
  • $f(x_1,\,x_2) = f(-8.05502,\,9.66459) = -19.2085$.
  • $f(x_1,\,x_2) = f(-8.05502,\,-9.66459) = -19.2085$.