40 #ifndef SHARK_OBJECTIVEFUNCTIONS_BENCHMARK_ELLI2_H 41 #define SHARK_OBJECTIVEFUNCTIONS_BENCHMARK_ELLI2_H 60 ELLI2(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)));
104 sum1 += m_coefficients(i) *
sqr( y(i) );
105 sum2 += m_coefficients(i) *
sqr( z(i) - 2.0 );
117 for (std::size_t i = 0; i < x.size(); i++) {
125 RealMatrix m_rotationMatrix1;
126 RealMatrix m_rotationMatrix2;
127 RealVector m_coefficients;