40 #ifndef SHARK_OBJECTIVEFUNCTIONS_BENCHMARK_ELLI1_H 41 #define SHARK_OBJECTIVEFUNCTIONS_BENCHMARK_ELLI1_H 60 ELLI1(std::size_t numVariables = 0) : m_a( 1E6 ){
74 return m_coefficients.size();
82 m_coefficients.resize(numVariables);
83 for(std::size_t i = 0; i != numVariables; ++i){
84 m_coefficients(i) = std::pow(m_a, 2.0 * (i / (numVariables - 1.0)));
102 sum1 += m_coefficients(i) *
sqr( y(i) );
103 sum2 += m_coefficients(i) *
sqr( y(i) - 2.0 );
115 for (std::size_t i = 0; i < x.size(); i++) {
123 RealMatrix m_rotationMatrix;
124 RealVector m_coefficients;