![]() |
Ultra 0.9.4
|
#include <evolution_recombination.h>
Public Types | |
| using | scored_t |
Public Member Functions | |
| strategy (E &, const problem &) | |
Protected Attributes | |
| E & | eva_ |
| const problem & | prob_ |
The operation strategy (crossover, recombination, mutation...) adopted in the evolution class.
A recombination acts upon sets of individuals to generate offspring (this definition generalizes the traditional mutation and crossover operators).
Operator application is atomic from the point of view of the evolutionary algorithm and every recombination is applied to a well defined list of individuals, without dependencies upon past history.
In the strategy design pattern, this class is the strategy interface and ultra::evolution is the context.
This is an abstract class: introduction of new operators or redefinition of existing ones is obtained implementing recombination::strategy.
| using ultra::recombination::strategy< E >::scored_t |
| strategy::strategy | ( | E & | eva, |
| const problem & | prob ) |
| [in] | eva | a fitness function |
| [in] | prob | the current problem |