Vita
Public Types | Public Member Functions | Protected Attributes | List of all members
vita::selection::strategy< T > Class Template Reference

The strategy (tournament, fitness proportional...) for the evolution class. More...

#include <evolution_selection.h>

Inherited by vita::selection::alps< T >, vita::selection::pareto< T >, vita::selection::random< T >, and vita::selection::tournament< T >.

Public Types

using parents_t = std::vector< typename population< T >::coord >
 

Public Member Functions

 strategy (const population< T > &, evaluator< T > &, const summary< T > &)
 

Protected Attributes

evaluator< T > & eva_
 
const population< T > & pop_
 
const summary< T > & sum_
 

Detailed Description

template<class T>
class vita::selection::strategy< T >

The strategy (tournament, fitness proportional...) for the evolution class.

Template Parameters
Tthe type of program (individual/team)

In the strategy design pattern, this class is the strategy interface and evolution is the context.

See also
http://en.wikipedia.org/wiki/Strategy_pattern

Definition at line 35 of file evolution_selection.h.

Member Typedef Documentation

◆ parents_t

template<class T >
using vita::selection::strategy< T >::parents_t = std::vector<typename population<T>::coord>

Definition at line 38 of file evolution_selection.h.

Member Data Documentation

◆ eva_

template<class T >
evaluator<T>& vita::selection::strategy< T >::eva_
protected

Definition at line 44 of file evolution_selection.h.

◆ pop_

template<class T >
const population<T>& vita::selection::strategy< T >::pop_
protected

Definition at line 43 of file evolution_selection.h.

◆ sum_

template<class T >
const summary<T>& vita::selection::strategy< T >::sum_
protected

Definition at line 45 of file evolution_selection.h.


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