25 #include <boost/math/constants/constants.hpp>
33 namespace pagmo {
namespace problem {
38 const double lb[] = {-5,0};
39 const double ub[] = {10,15};
52 const double x1 = x[0], x2 = x[1];
53 const double a = 1, b = 5.1 / (4 * boost::math::constants::pi<double>() * boost::math::constants::pi<double>()),
54 c = 5 / boost::math::constants::pi<double>(), d = 6, e = 10, f = 1 / (8 * boost::math::constants::pi<double>());
55 fv[0] = a * (x2 - b * x1 * x1 + c * x1 - d) * (x2 - b * x1 * x1 + c * x1 - d) + e * (1 - f) * std::cos(x1) + e;
std::string get_name() const
Get problem's name.
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.
Branin rcos test function.
void objfun_impl(fitness_vector &, const decision_vector &) const
Implementation of the objective function.
std::vector< double > fitness_vector
Fitness vector type.
void set_bounds(const decision_vector &, const decision_vector &)
Bounds setter from pagmo::decision_vector.