25 #ifndef PAGMO_MIGRATION_HV_GREEDY_R_POLICY_H
26 #define PAGMO_MIGRATION_HV_GREEDY_R_POLICY_H
31 #include "../config.h"
32 #include "../population.h"
33 #include "../serialization.h"
35 #include "base_r_policy.h"
37 namespace pagmo {
namespace migration {
60 std::vector<std::pair<population::size_type,std::vector<population::individual_type>::size_type> >
61 select(
const std::vector<population::individual_type> &,
const population &)
const;
63 static bool ind_cmp(
const std::pair<unsigned int, double> &,
const std::pair<unsigned int, double> &);
64 const double m_nadir_eps;
66 friend class boost::serialization::access;
67 template <
class Archive>
68 void serialize(Archive &ar,
const unsigned int)
70 ar & boost::serialization::base_object<base_r_policy>(*this);
71 ar &
const_cast<double &
>(m_nadir_eps);
Base class for migration replacement policies.
boost::shared_ptr< base_r_policy > base_r_policy_ptr
Shared pointer to base replacement policy.
Replace the 'n' successive least contributors with the incoming set.
Migration rate is interpreted as the absolute number of individuals to migrate.
rate_type
Type of migration rate.