25 #include <boost/math/constants/constants.hpp>
28 #include "../exceptions.h"
33 namespace pagmo {
namespace problem {
53 pagmo_assert(f.size() == 2 && x.size() == 1);
55 f[1] = (x[0]-2) * (x[0]-2);
60 return "Shaffer's Study";
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base problem.
std::vector< double > decision_vector
Decision vector type.
std::string get_name() const
Get problem's name.
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.
void set_bounds(const decision_vector &, const decision_vector &)
Bounds setter from pagmo::decision_vector.