32 #ifndef SHARK_OBJECTIVEFUNCTIONS_BENCHMARKS_ACKLEY_H 33 #define SHARK_OBJECTIVEFUNCTIONS_BENCHMARKS_ACKLEY_H 53 return m_numberOfVariables;
68 x.resize(m_numberOfVariables);
70 for (std::size_t i = 0; i < x.size(); i++) {
81 const double C = 2* M_PI;
83 std::size_t n = p.size();
84 double a = 0., b = 0.;
86 for (std::size_t i = 0; i < n; ++i) {
91 return -A * std::exp(-B * std::sqrt(a / n)) - std::exp(b / n) + A + M_E;
94 std::size_t m_numberOfVariables;