25 #ifndef PAGMO_MIGRATION_RANDOM_R_POLICY_H
26 #define PAGMO_MIGRATION_RANDOM_R_POLICY_H
31 #include "../config.h"
32 #include "../population.h"
34 #include "../serialization.h"
36 #include "base_r_policy.h"
38 namespace pagmo {
namespace migration {
53 std::vector<std::pair<population::size_type,std::vector<population::individual_type>::size_type> >
54 select(
const std::vector<population::individual_type> &,
const population &)
const;
56 friend class boost::serialization::access;
57 template <
class Archive>
58 void serialize(Archive &ar,
const unsigned int)
60 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.
This rng returns an unsigned integer in the [0,2**32-1] range.
Random replacement policy.
Migration rate is interpreted as the absolute number of individuals to migrate.
rate_type
Type of migration rate.