25 #ifndef PAGMO_MIGRATION_HV_BEST_S_POLICY_H
26 #define PAGMO_MIGRATION_HV_BEST_S_POLICY_H
30 #include "../config.h"
31 #include "../population.h"
32 #include "../serialization.h"
34 #include "base_s_policy.h"
36 namespace pagmo {
namespace migration {
53 std::vector<population::individual_type> select(
population &)
const;
55 const double m_nadir_eps;
56 static bool sort_point_pairs_desc(
const std::pair<unsigned int, double> &,
const std::pair<unsigned int, double> &);
58 friend class boost::serialization::access;
59 template <
class Archive>
60 void serialize(Archive &ar,
const unsigned int)
62 ar & boost::serialization::base_object<base_s_policy>(*this);
63 ar &
const_cast<double &
>(m_nadir_eps);
Base class for migration selection policies.
Choose 'n' greatest contributors migration policy.
boost::shared_ptr< base_s_policy > base_s_policy_ptr
Shared pointer to base selection policy.
Migration rate is interpreted as the absolute number of individuals to migrate.
rate_type
Type of migration rate.