25 #ifndef PAGMO_MIGRATION_BEST_KILL_S_POLICY_H
26 #define PAGMO_MIGRATION_BEST_KILL_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 {
52 std::vector<population::individual_type> select(
population &)
const;
55 friend class boost::serialization::access;
56 template <
class Archive>
57 void serialize(Archive &ar,
const unsigned int)
59 ar & boost::serialization::base_object<base_s_policy>(*this);
Base class for migration selection policies.
boost::shared_ptr< base_s_policy > base_s_policy_ptr
Shared pointer to base selection policy.
"Choose best and kill him" migration selection policy.
Migration rate is interpreted as the absolute number of individuals to migrate.
rate_type
Type of migration rate.