28 #include "himmelblau.h"
30 namespace pagmo {
namespace problem {
45 const double x = xv[0], y = xv[1];
46 f[0] = ((x * x + y - 11) * (x * x + y - 11) + (x + y * y - 7) * (x + y * y - 7));
Himmelblau function minimisation problem.
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base problem.
std::vector< double > decision_vector
Decision vector type.
void objfun_impl(fitness_vector &, const decision_vector &) const
Implementation of the objective function.
size_type get_dimension() const
Return global dimension.
himmelblau()
Default constructor.
std::string get_name() const
Get problem's name.
std::vector< double > fitness_vector
Fitness vector type.
base_ptr clone() const
Clone method.