PaGMO  1.1.5
Namespaces | Data Structures | Typedefs | Functions | Variables
pagmo Namespace Reference

Root PaGMO namespace. More...

Namespaces

 algorithm
 Algorithm namespace.
 
 migration
 Migration policies namespace.
 
 problem
 Problem namespace.
 
 topology
 Topology namespace.
 
 util
 util namespace.
 

Data Structures

class  archipelago
 Archipelago class. More...
 
class  base_island
 Base island class. More...
 
class  island
 Local island class. More...
 
class  mpi_environment
 MPI environment class. More...
 
class  mpi_island
 MPI island class. More...
 
class  population
 Population class. More...
 
class  rng_double
 This rng returns a double in the [0,1[ range. More...
 
class  rng_generator
 Generic thread-safe generator of pseudo-random number generators. More...
 
class  rng_uint32
 This rng returns an unsigned integer in the [0,2**32-1] range. More...
 

Typedefs

typedef boost::shared_ptr< base_islandbase_island_ptr
 Alias for the shared pointer to a pagmo::base_island.
 
typedef std::vector< double > decision_vector
 Decision vector type.
 
typedef std::vector< double > fitness_vector
 Fitness vector type.
 
typedef std::vector< double > constraint_vector
 Constraint vector type.
 
typedef boost::numeric::converter< int, double, boost::numeric::conversion_traits< int, double >, boost::numeric::def_overflow_handler, boost::numeric::RoundEven< double > > double_to_int
 Double to int converter. More...
 

Functions

std::ostream & operator<< (std::ostream &s, const archipelago &a)
 Overload stream operator for pagmo::archipelago. More...
 
std::ostream & operator<< (std::ostream &s, const base_island &isl)
 Overload stream operator for pagmo::base_island. More...
 
void custom_gsl_error_handler (const char *reason, const char *file, int line, int gsl_errno)
 
bool const individual_type &i2 const if (!(&i1 >=&m_pop.m_container.front()&&&i1<=&m_pop.m_container.back()))
 
 if (!(&i2 >=&m_pop.m_container.front()&&&i2<=&m_pop.m_container.back()))
 
 if (m_pop.m_pareto_rank[idx1]==m_pop.m_pareto_rank[idx2])
 
std::ostream & operator<< (std::ostream &, const population &)
 
std::ostream & operator<< (std::ostream &, const population::individual_type &)
 
std::ostream & operator<< (std::ostream &, const population::champion_type &)
 
template<class Archive >
void custom_vector_double_save (Archive &ar, const std::vector< double > &v, const unsigned int)
 Custom save function for the serialization of vector of doubles that handle also inf and NaN.
 
template<class Archive >
void custom_vector_double_load (Archive &ar, std::vector< double > &v, const unsigned int)
 Custom load function for the serialization of vector of doubles that handle also inf and NaN.
 

Variables

const size_type idx1 = &i1 - &m_pop.m_container.front()
 
const size_type idx2 = &i2 - &m_pop.m_container.front()
 
 else
 

Detailed Description

Root PaGMO namespace.

Typedef Documentation

typedef boost::numeric::converter<int,double,boost::numeric::conversion_traits<int,double>, boost::numeric::def_overflow_handler,boost::numeric::RoundEven<double> > pagmo::double_to_int

Double to int converter.

Will round a double to the nearest integer using "round half to even" for tie-breaking. Usage example:

int i = double_to_int::convert(1.23); 
See also
http://www.boost.org/doc/libs/release/libs/numeric/conversion/doc/html/index.html
http://en.wikipedia.org/wiki/Rounding

Definition at line 54 of file types.h.

Function Documentation

std::ostream & pagmo::operator<< ( std::ostream &  s,
const base_island isl 
)

Overload stream operator for pagmo::base_island.

Equivalent to printing base_island::human_readable() to stream.

Parameters
[in]sstream to which the island will be sent.
[in]islisland to be sent to stream.
Returns
reference to s.

Definition at line 610 of file base_island.cpp.

std::ostream & pagmo::operator<< ( std::ostream &  s,
const archipelago a 
)

Overload stream operator for pagmo::archipelago.

Equivalent to printing archipelago::human_readable() to stream.

Parameters
[in]sstream to which the archipelago will be sent.
[in]aarchipelago to be sent to stream.
Returns
reference to s.

Definition at line 803 of file archipelago.cpp.

Variable Documentation

pagmo::else
Initial value:
{
return (m_pop.m_pareto_rank[idx1] < m_pop.m_pareto_rank[idx2])

Definition at line 589 of file population.cpp.