25 #ifndef PAGMO_MIGRATION_BASE_S_POLICY_H
26 #define PAGMO_MIGRATION_BASE_S_POLICY_H
28 #include <boost/shared_ptr.hpp>
31 #include "../config.h"
32 #include "../population.h"
33 #include "../serialization.h"
36 namespace pagmo {
namespace migration {
69 virtual base_s_policy_ptr clone()
const = 0;
80 virtual std::vector<population::individual_type> select(
population &pop)
const = 0;
82 friend class boost::serialization::access;
83 template <
class Archive>
84 void serialize(Archive &ar,
const unsigned int)
86 ar & boost::serialization::base_object<base>(*this);
Base class for migration selection policies.
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.