40 #ifndef SHARK_OBJECTIVEFUNCTIONS_BENCHMARK_IHR6_H 41 #define SHARK_OBJECTIVEFUNCTIONS_BENCHMARK_IHR6_H 61 IHR6(std::size_t numVariables = 0)
62 : m_handler(numVariables,-1,1 ){
91 m_ymax = 1.0/norm_inf(row(m_rotationMatrix,0));
101 value[0] = 1 - std::exp(-4 * std::abs(y(0))) * std::pow(std::sin(6 * M_PI * y(0)), 6);
108 value[1] = g *
hf(1. -
sqr( value[0] / g ), y( 0 ));
113 double h(
double x )
const {
117 double hf(
double x,
double y0)
const {
118 if( std::abs(y0) <= m_ymax )
120 return std::abs( y0 ) + 1.;
123 double hg(
double x)
const {
124 return sqr(x) / ( std::abs(x) + 0.1 );
129 RealMatrix m_rotationMatrix;