Types#

#include <pagmo/types.hpp>

typedef std::vector<double> pagmo::vector_double#

Alias for an std::vector of doubles.

typedef std::vector<std::pair<vector_double::size_type, vector_double::size_type>> pagmo::sparsity_pattern#

Alias for an std::vector of std::pairs of the size type of pagmo::vector_double.

typedef std::vector<vector_double>::size_type pagmo::pop_size_t#

Population size type.

This unsigned integral types is used to represent the size of a pagmo::population, and, more generally, of collections of decision vectors, fitness vectors, etc.

using individuals_group_t = std::tuple<std::vector<unsigned long long>, std::vector<vector_double>, std::vector<vector_double>>#

New in version 2.11.

Group of individuals.

This tuple represents a group of individuals via:

  • a vector of unsigned long long representing the IDs of the individuals,

  • a vector of vector_double representing the decision vectors (or chromosomes) of the individuals,

  • another vector of vector_double representing the fitness vectors of the individuals.

In other words, individuals_group_t is a stripped-down version of population without the problem. individuals_group_t is used to exchange individuals between the islands of an archipelago during migration.