25 #include <boost/math/constants/constants.hpp>
28 #include "../exceptions.h"
33 namespace pagmo {
namespace problem {
54 pagmo_assert(f.size() == 2 && x.size() == 3);
55 f[0] = 1 - std::exp(-(x[0] - 1 / std::sqrt(3.0)) * (x[0] - 1 / std::sqrt(3.0)) - (x[1] - 1 / std::sqrt(3.0)) * (x[1] -
56 1 / std::sqrt(3.0)) - (x[2] - 1 / std::sqrt(3.0)) * (x[2] - 1 / std::sqrt(3.0)));
57 f[1] = 1 - std::exp(-(x[0] + 1 / std::sqrt(3.0)) * (x[0] + 1 / std::sqrt(3.0)) - (x[1] + 1 / std::sqrt(3.0)) * (x[1] +
58 1 / std::sqrt(3.0)) - (x[2] + 1 / std::sqrt(3.0)) * (x[2] + 1 / std::sqrt(3.0)));
63 return "Fonseca and Fleming's study";
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base problem.
std::vector< double > decision_vector
Decision vector type.
base_ptr clone() const
Clone method.
void objfun_impl(fitness_vector &, const decision_vector &) const
Implementation of the objective function.
std::vector< double > fitness_vector
Fitness vector type.
std::string get_name() const
Get problem's name.
Fonseca and Fleming's study.
void set_bounds(const decision_vector &, const decision_vector &)
Bounds setter from pagmo::decision_vector.