PaGMO  1.1.5
Data Structures | Typedefs | Enumerations | Functions
pagmo::migration Namespace Reference

Migration policies namespace. More...

Data Structures

class  base
 Base migration class. More...
 
class  base_r_policy
 Base class for migration replacement policies. More...
 
class  base_s_policy
 Base class for migration selection policies. More...
 
class  best_kill_s_policy
 "Choose best and kill him" migration selection policy. More...
 
class  best_s_policy
 "Choose best" migration selection policy. More...
 
class  fair_r_policy
 Fair replacement policy. More...
 
class  hv_best_s_policy
 Choose 'n' greatest contributors migration policy. More...
 
class  hv_fair_r_policy
 Replace the 'n' least contributors with the incoming set. More...
 
class  hv_greedy_r_policy
 Replace the 'n' successive least contributors with the incoming set. More...
 
class  hv_greedy_s_policy
 Choose 'n' successive greatest contributors migration policy. More...
 
class  random_r_policy
 Random replacement policy. More...
 
class  random_s_policy
 Random migration selection policy. More...
 
class  worst_r_policy
 Worst replacement policy. More...
 

Typedefs

typedef boost::shared_ptr< base_r_policybase_r_policy_ptr
 Shared pointer to base replacement policy.
 
typedef boost::shared_ptr< base_s_policybase_s_policy_ptr
 Shared pointer to base selection policy.
 

Enumerations

enum  rate_type { absolute = 0, fractional = 1 }
 Type of migration rate. More...
 

Functions

std::ostream & operator<< (std::ostream &s, const base &p)
 Overload stream operator for migration::base. More...
 

Detailed Description

Migration policies namespace.

This namespace contains selection/replacement policies used during migration in the archipelago class.

Enumeration Type Documentation

Type of migration rate.

Used both by selection and replacement migration policies.

Enumerator
absolute 

Migration rate is interpreted as the absolute number of individuals to migrate.

fractional 

Migration rate is interpreted as the fraction of individuals to migrate with respect to the orign/destination population.

Definition at line 47 of file migration/base.h.

Function Documentation

std::ostream & pagmo::migration::operator<< ( std::ostream &  s,
const base p 
)

Overload stream operator for migration::base.

Equivalent to printing migration::base::human_readable() to stream.

Parameters
[out]sstd::ostream to which the policy will be streamed.
[in]pmigration::base to be inserted into the stream.
Returns
reference to s.

Definition at line 132 of file migration/base.cpp.