#include <moeoEnvironmentalReplacement.h>
Inheritance diagram for moeoEnvironmentalReplacement< MOEOT >:

Public Types | |
| typedef MOEOT::ObjectiveVector | ObjectiveVector |
| The type for objective vector. | |
Public Member Functions | |
| moeoEnvironmentalReplacement (moeoFitnessAssignment< MOEOT > &_evalFitness, moeoDiversityAssignment< MOEOT > &_evalDiversity, moeoComparator< MOEOT > &_comparator) | |
| Full constructor. | |
| moeoEnvironmentalReplacement (moeoFitnessAssignment< MOEOT > &_evalFitness, moeoDiversityAssignment< MOEOT > &_evalDiversity) | |
| Constructor without comparator. | |
| moeoEnvironmentalReplacement (moeoFitnessAssignment< MOEOT > &_evalFitness, moeoComparator< MOEOT > &_comparator) | |
| Constructor without moeoDiversityAssignement. | |
| moeoEnvironmentalReplacement (moeoFitnessAssignment< MOEOT > &_evalFitness) | |
| Constructor without moeoDiversityAssignement nor moeoComparator. | |
| void | operator() (eoPop< MOEOT > &_parents, eoPop< MOEOT > &_offspring) |
| Replaces the first population by adding the individuals of the second one, sorting with a moeoComparator and resizing the whole population obtained. | |
Protected Attributes | |
| moeoFitnessAssignment< MOEOT > & | evalFitness |
| the fitness assignment strategy | |
| moeoDiversityAssignment< MOEOT > & | evalDiversity |
| the diversity assignment strategy | |
| moeoComparator< MOEOT > & | comparator |
| the comparator (used to compare 2 individuals) | |
Classes | |
| class | Cmp |
| This class is used to compare solutions in order to sort the population. More... | |
Definition at line 25 of file moeoEnvironmentalReplacement.h.
| moeoEnvironmentalReplacement< MOEOT >::moeoEnvironmentalReplacement | ( | moeoFitnessAssignment< MOEOT > & | _evalFitness, | |
| moeoDiversityAssignment< MOEOT > & | _evalDiversity, | |||
| moeoComparator< MOEOT > & | _comparator | |||
| ) | [inline] |
Full constructor.
| _evalFitness | the fitness assignment strategy | |
| _evalDiversity | the diversity assignment strategy | |
| _comparator | the comparator (used to compare 2 individuals) |
Definition at line 39 of file moeoEnvironmentalReplacement.h.
| moeoEnvironmentalReplacement< MOEOT >::moeoEnvironmentalReplacement | ( | moeoFitnessAssignment< MOEOT > & | _evalFitness, | |
| moeoDiversityAssignment< MOEOT > & | _evalDiversity | |||
| ) | [inline] |
Constructor without comparator.
A moeoFitThenDivComparator is used as default.
| _evalFitness | the fitness assignment strategy | |
| _evalDiversity | the diversity assignment strategy |
Definition at line 49 of file moeoEnvironmentalReplacement.h.
| moeoEnvironmentalReplacement< MOEOT >::moeoEnvironmentalReplacement | ( | moeoFitnessAssignment< MOEOT > & | _evalFitness, | |
| moeoComparator< MOEOT > & | _comparator | |||
| ) | [inline] |
Constructor without moeoDiversityAssignement.
A dummy diversity is used as default.
| _evalFitness | the fitness assignment strategy | |
| _comparator | the comparator (used to compare 2 individuals) |
Definition at line 59 of file moeoEnvironmentalReplacement.h.
| moeoEnvironmentalReplacement< MOEOT >::moeoEnvironmentalReplacement | ( | moeoFitnessAssignment< MOEOT > & | _evalFitness | ) | [inline] |
Constructor without moeoDiversityAssignement nor moeoComparator.
A moeoFitThenDivComparator and a dummy diversity are used as default.
| _evalFitness | the fitness assignment strategy |
Definition at line 69 of file moeoEnvironmentalReplacement.h.
| void moeoEnvironmentalReplacement< MOEOT >::operator() | ( | eoPop< MOEOT > & | _parents, | |
| eoPop< MOEOT > & | _offspring | |||
| ) | [inline, virtual] |
Replaces the first population by adding the individuals of the second one, sorting with a moeoComparator and resizing the whole population obtained.
| _parents | the population composed of the parents (the population you want to replace) | |
| _offspring | the offspring population |
Implements eoBF< eoPop< MOEOT > &, eoPop< MOEOT > &, void >.
Definition at line 79 of file moeoEnvironmentalReplacement.h.
References moeoEnvironmentalReplacement< MOEOT >::comparator, moeoEnvironmentalReplacement< MOEOT >::evalDiversity, and moeoEnvironmentalReplacement< MOEOT >::evalFitness.
1.5.1