Mexican hat test function generator.
The Mexican hat function is defined slightly differently by different people. The definition used here is
Size of parameter space.
f(x) = -(1 - x'x) * exp(-0.5 * x'x)
Note that we have flipped the sign of the function so that it is a minimization problem like all other SOO functions.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.