25 #ifndef PAGMO_MIGRATION_WORST_R_POLICY_H
26 #define PAGMO_MIGRATION_WORST_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 {
51 std::vector<std::pair<population::size_type,std::vector<population::individual_type>::size_type> >
52 select(
const std::vector<population::individual_type> &,
const population &)
const;
54 friend class boost::serialization::access;
55 template <
class Archive>
56 void serialize(Archive &ar,
const unsigned int)
58 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.
Worst replacement policy.
Migration rate is interpreted as the absolute number of individuals to migrate.
rate_type
Type of migration rate.