40 #ifndef SHARK_OBJECTIVEFUNCTIONS_BENCHMARK_IHR4_H 41 #define SHARK_OBJECTIVEFUNCTIONS_BENCHMARK_IHR4_H 59 IHR4(std::size_t numVariables = 0) : m_handler(numVariables,-5,5){
88 m_ymax = 1.0/norm_inf(row(m_rotationMatrix,0));
98 value[0] = std::abs( y( 0 ) );
102 g +=
sqr( y( i ) ) - 10 * std::cos( 4 * M_PI * y( i ) );
105 value[1] = g *
hf(1. - std::sqrt(
h( y( 0 )) / g ), y( 0 ));
110 double h(
double x )
const {
114 double hf(
double x,
double y0)
const {
115 if( std::abs(y0) <= m_ymax )
117 return std::abs( y0 ) + 1.;
122 RealMatrix m_rotationMatrix;