Vita
Public Types | Public Member Functions | List of all members
vita::evolution< T, ES > Class Template Reference

Progressively evolves a population of programs over a series of generations. More...

#include <evolution.h>

Public Types

using after_generation_callback_t = std::function< void(const population< T > &, const summary< T > &)>
 

Public Member Functions

evolutionafter_generation (after_generation_callback_t)
 
 evolution (const problem &, evaluator< T > &)
 
bool is_valid () const
 
const summary< T > & run (unsigned)
 
template<class S >
const summary< T > & run (unsigned, S)
 

Detailed Description

template<class T, template< class > class ES>
class vita::evolution< T, ES >

Progressively evolves a population of programs over a series of generations.

Template Parameters
Ttype of individual
ESevolution strategy in use

The evolutionary search uses the Darwinian principle of natural selection (survival of the fittest) and analogs of various naturally occurring operations, including crossover (sexual recombination), mutation...

Definition at line 39 of file evolution.h.

Member Typedef Documentation

◆ after_generation_callback_t

template<class T , template< class > class ES>
using vita::evolution< T, ES >::after_generation_callback_t = std::function<void(const population<T> &, const summary<T> &)>

Definition at line 42 of file evolution.h.


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