27 #include "../exceptions.h"
32 namespace pagmo {
namespace problem {
58 pagmo_assert(f.size() == 2);
59 pagmo_assert(x.size() == n);
64 for(
unsigned int i = 0; i < n-1; ++i) {
65 f[0] += -10 * exp( -0.2 * sqrt(x[i]*x[i] + x[i+1]*x[i+1]));
66 f[1] += pow(std::abs(x[i]),0.8) + 5 * sin(pow(x[i],3));
68 f[1] += pow(std::abs(x[n-1]),0.8) + 5 * sin(pow(x[n-1],3));
73 return "Kursawe's study";
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base problem.
std::vector< double > decision_vector
Decision vector type.
size_type get_dimension() const
Return global dimension.
void set_lb(const decision_vector &)
Set lower bounds from pagmo::decision_vector.
std::string get_name() const
Get problem's name.
void set_ub(const decision_vector &)
Set upper bounds from pagmo::decision_vector.
base_ptr clone() const
Clone method.
std::vector< double > fitness_vector
Fitness vector type.
void objfun_impl(fitness_vector &, const decision_vector &) const
Implementation of the objective function.
decision_vector::size_type size_type
Problem's size type: the same as pagmo::decision_vector's size type.