31 #ifndef SHARK_OBJECTIVEFUNCTIONS_BENCHMARK_CONSTRAINEDSPHERE_H 32 #define SHARK_OBJECTIVEFUNCTIONS_BENCHMARK_CONSTRAINEDSPHERE_H 58 {
return "ConstrainedSphere"; }
61 return m_numberOfVariables;
75 for (std::size_t i = 0; i < m_constraints; i++) {
78 for (std::size_t i = m_constraints; i < x.size(); i++) {
85 for (std::size_t i = 0; i < m_constraints; i++) {
86 if(input(i) < 1)
return false;
93 return norm_sqr(p)-m_constraints;
96 std::size_t m_numberOfVariables;
97 std::size_t m_constraints;