File: types.rst

package info (click to toggle)
pagmo 2.19.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 85,228 kB
  • sloc: cpp: 1,753,592; makefile: 223; sh: 121; python: 46
file content (32 lines) | stat: -rw-r--r-- 1,110 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Types
=====

*#include <pagmo/types.hpp>*

.. doxygentypedef:: pagmo::vector_double

.. doxygentypedef:: pagmo::sparsity_pattern

.. doxygentypedef:: pagmo::pop_size_t

.. cpp:namespace-push:: pagmo

.. cpp:type:: individuals_group_t = std::tuple<std::vector<unsigned long long>, std::vector<vector_double>, std::vector<vector_double>>

   .. versionadded:: 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 :cpp:type:`~pagmo::vector_double` representing the decision vectors
     (or chromosomes) of the individuals,
   * another vector of :cpp:type:`~pagmo::vector_double` representing the fitness
     vectors of the individuals.

   In other words, :cpp:type:`~pagmo::individuals_group_t` is a stripped-down version of
   :cpp:class:`~pagmo::population` without the :cpp:class:`~pagmo::problem`. :cpp:type:`~pagmo::individuals_group_t`
   is used to exchange individuals between the islands of an :cpp:class:`~pagmo::archipelago` during migration.

.. cpp:namespace-pop::