Vita
Public Types | Public Member Functions | Friends | List of all members
vita::team< T > Class Template Reference

A collection of cooperating individuals used as a member of vita::population. More...

#include <team.h>

Public Types

using const_iterator = typename members_t::const_iterator
 
using members_t = std::vector< T >
 
using value_type = typename members_t::value_type
 

Public Member Functions

unsigned active_symbols () const
 
unsigned age () const
 
const_iterator begin () const
 
bool empty () const
 
const_iterator end () const
 
void inc_age ()
 
unsigned individuals () const
 
bool is_valid () const
 
bool load (std::istream &, const symbol_set &)
 
unsigned mutation (double, const problem &)
 
const T & operator[] (unsigned) const
 
bool save (std::ostream &) const
 
hash_t signature () const
 
 team (const problem &)
 
 team (std::vector< T >)
 
 team (unsigned)
 

Friends

template<class U >
team< U > crossover (const team< U > &, const team< U > &)
 

Detailed Description

template<class T>
class vita::team< T >

A collection of cooperating individuals used as a member of vita::population.

Template Parameters
Ttype of the elements of the team (individuals)

In generals teams of individuals can be implemented in different ways.

Note
The team size has to be large enough to cause an improved prediction compared to the traditional approach, i.e. team size one (but the complexity of the search space and the training time, respectively, grow exponentially with the number of coevolved programs).
See also
https://github.com/morinim/vita/wiki/bibliography#16

Definition at line 53 of file team.h.

Member Typedef Documentation

◆ const_iterator

template<class T >
using vita::team< T >::const_iterator = typename members_t::const_iterator

Definition at line 79 of file team.h.

◆ members_t

template<class T >
using vita::team< T >::members_t = std::vector<T>

Definition at line 78 of file team.h.

◆ value_type

template<class T >
using vita::team< T >::value_type = typename members_t::value_type

Definition at line 80 of file team.h.


The documentation for this class was generated from the following files: