40 #ifndef SHARK_OBJECTIVEFUNCTIONS_BENCHMARK_IHR2_H 41 #define SHARK_OBJECTIVEFUNCTIONS_BENCHMARK_IHR2_H 59 IHR2(std::size_t numVariables = 0)
60 : m_handler(numVariables,-1, 1 ){
89 m_ymax = 1.0/norm_inf(row(m_rotationMatrix,0));
99 value[0] = std::abs( y( 0 ) );
107 value[1] = g *
hf(1. -
sqr(y( 0 ) / g), y( 0 ));
112 double hf(
double x,
double y0)
const {
113 if( std::abs(y0) <= m_ymax )
115 return std::abs( y0 ) + 1.;
118 double hg(
double x)
const {
119 return sqr(x) / ( std::abs(x) + 0.1 );
124 RealMatrix m_rotationMatrix;