25 #ifndef PAGMO_MIGRATION_BASE_POLICY_H
26 #define PAGMO_MIGRATION_BASE_POLICY_H
31 #include "../config.h"
32 #include "../population.h"
33 #include "../serialization.h"
74 std::string human_readable()
const;
77 virtual std::string human_readable_extra()
const;
87 template <
class ForwardIterator,
class T>
88 static void iota(ForwardIterator first, ForwardIterator last, T value)
90 for (; first != last; ++first, ++value)
102 friend class boost::serialization::access;
103 template <
class Archive>
104 void serialize(Archive &ar,
const unsigned int)
111 std::ostream __PAGMO_VISIBLE_FUNC &
operator<<(std::ostream &,
const base &);
std::ostream & operator<<(std::ostream &s, const base &p)
Overload stream operator for migration::base.
Migration rate is interpreted as the fraction of individuals to migrate with respect to the orign/des...
static void iota(ForwardIterator first, ForwardIterator last, T value)
Iota function, usefull to fill iterator range with increasing values.
container_type::size_type size_type
Population size type.
rate_type m_type
Migration rate type.
double m_rate
Migration rate.
Migration rate is interpreted as the absolute number of individuals to migrate.
rate_type
Type of migration rate.