25 #ifndef PAGMO_MIGRATION_RANDOM_S_POLICY_H
26 #define PAGMO_MIGRATION_RANDOM_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 {
50 std::vector<population::individual_type> select(
population &)
const;
53 friend class boost::serialization::access;
54 template <
class Archive>
55 void serialize(Archive &ar,
const unsigned int)
57 ar & boost::serialization::base_object<base_s_policy>(*this);
Base class for migration selection policies.
Random migration selection 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.