25 #ifndef PAGMO_MIGRATION_FAIR_R_POLICY_H
26 #define PAGMO_MIGRATION_FAIR_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 {
54 std::vector<std::pair<population::size_type,std::vector<population::individual_type>::size_type> >
55 select(
const std::vector<population::individual_type> &,
const population &)
const;
57 friend class boost::serialization::access;
58 template <
class Archive>
59 void serialize(Archive &ar,
const unsigned int)
61 ar & boost::serialization::base_object<base_r_policy>(*this);
Base class for migration replacement policies.
boost::shared_ptr< base_r_policy > base_r_policy_ptr
Shared pointer to base replacement policy.
Migration rate is interpreted as the absolute number of individuals to migrate.
rate_type
Type of migration rate.