32 #ifndef SHARK_OBJECTIVEFUNCTIONS_BENCHMARKS_CIGAR_H 33 #define SHARK_OBJECTIVEFUNCTIONS_BENCHMARKS_CIGAR_H 55 return m_numberOfVariables;
69 for (std::size_t i = 0; i < x.size(); i++) {
78 double sum = m_alpha *
sqr(p(0));
79 for (std::size_t i = 1; i < p.size(); i++)
85 derivative.resize(p.size());
86 noalias(derivative) = 2* p;
87 derivative(0) = 2 * m_alpha * p(0);
101 std::size_t m_numberOfVariables;
105 #endif // SHARK_EA_CIGAR_H