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

The replacement strategy (random, tournament...) for the vita::evolution_strategy class. More...

#include <evolution_replacement.h>

Inherited by vita::replacement::alps< T >, vita::replacement::family_competition< T >, vita::replacement::pareto< T >, and vita::replacement::tournament< T >.

Public Types

using offspring_t = typename recombination::strategy< T >::offspring_t
 
using parents_t = typename selection::strategy< T >::parents_t
 

Public Member Functions

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

Protected Attributes

evaluator< T > & eva_
 
population< T > & pop_
 

Detailed Description

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

The replacement strategy (random, tournament...) for the vita::evolution_strategy class.

Template Parameters
Ttype of program (individual/team).

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

See also

Definition at line 33 of file evolution_replacement.h.

Member Typedef Documentation

◆ offspring_t

template<class T >
using vita::replacement::strategy< T >::offspring_t = typename recombination::strategy<T>::offspring_t

Definition at line 36 of file evolution_replacement.h.

◆ parents_t

template<class T >
using vita::replacement::strategy< T >::parents_t = typename selection::strategy<T>::parents_t

Definition at line 37 of file evolution_replacement.h.

Member Data Documentation

◆ eva_

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

Definition at line 43 of file evolution_replacement.h.

◆ pop_

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

Definition at line 42 of file evolution_replacement.h.


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