\hypertarget{classmoeo_elitist_replacement}{}\doxysection{moeo\+Elitist\+Replacement$<$ M\+O\+E\+OT $>$ Class Template Reference}
\label{classmoeo_elitist_replacement}\index{moeoElitistReplacement$<$ MOEOT $>$@{moeoElitistReplacement$<$ MOEOT $>$}}


{\ttfamily \#include $<$moeo\+Elitist\+Replacement.\+h$>$}



Inheritance diagram for moeo\+Elitist\+Replacement$<$ M\+O\+E\+OT $>$\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classmoeo_elitist_replacement__inherit__graph}
\end{center}
\end{figure}


Collaboration diagram for moeo\+Elitist\+Replacement$<$ M\+O\+E\+OT $>$\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classmoeo_elitist_replacement__coll__graph}
\end{center}
\end{figure}
\doxysubsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class \mbox{\hyperlink{classmoeo_elitist_replacement_1_1_cmp}{Cmp}}
\end{DoxyCompactItemize}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classmoeo_elitist_replacement_a1d91980f3f800833c8e9452cb450ae3e}{moeo\+Elitist\+Replacement}} (\mbox{\hyperlink{classmoeo_fitness_assignment}{moeo\+Fitness\+Assignment}}$<$ M\+O\+E\+OT $>$ \&\+\_\+fitness\+Assignment, \mbox{\hyperlink{classmoeo_diversity_assignment}{moeo\+Diversity\+Assignment}}$<$ M\+O\+E\+OT $>$ \&\+\_\+diversity\+Assignment, \mbox{\hyperlink{classmoeo_comparator}{moeo\+Comparator}}$<$ M\+O\+E\+OT $>$ \&\+\_\+comparator)
\item 
\mbox{\hyperlink{classmoeo_elitist_replacement_ad7122be0519207c7496852284ed24514}{moeo\+Elitist\+Replacement}} (\mbox{\hyperlink{classmoeo_fitness_assignment}{moeo\+Fitness\+Assignment}}$<$ M\+O\+E\+OT $>$ \&\+\_\+fitness\+Assignment, \mbox{\hyperlink{classmoeo_diversity_assignment}{moeo\+Diversity\+Assignment}}$<$ M\+O\+E\+OT $>$ \&\+\_\+diversity\+Assignment)
\item 
\mbox{\hyperlink{classmoeo_elitist_replacement_a81b7b8e0cac6cbed36e47688adf1466c}{moeo\+Elitist\+Replacement}} (\mbox{\hyperlink{classmoeo_fitness_assignment}{moeo\+Fitness\+Assignment}}$<$ M\+O\+E\+OT $>$ \&\+\_\+fitness\+Assignment, \mbox{\hyperlink{classmoeo_comparator}{moeo\+Comparator}}$<$ M\+O\+E\+OT $>$ \&\+\_\+comparator)
\item 
\mbox{\hyperlink{classmoeo_elitist_replacement_a2ef7c199d779d473a9d35cee21556794}{moeo\+Elitist\+Replacement}} (\mbox{\hyperlink{classmoeo_fitness_assignment}{moeo\+Fitness\+Assignment}}$<$ M\+O\+E\+OT $>$ \&\+\_\+fitness\+Assignment)
\item 
void \mbox{\hyperlink{classmoeo_elitist_replacement_a0364c6ef9d16f7eb65caa9edfce69006}{operator()}} (\mbox{\hyperlink{classeo_pop}{eo\+Pop}}$<$ M\+O\+E\+OT $>$ \&\+\_\+parents, \mbox{\hyperlink{classeo_pop}{eo\+Pop}}$<$ M\+O\+E\+OT $>$ \&\+\_\+offspring)
\end{DoxyCompactItemize}
\doxysubsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classmoeo_fitness_assignment}{moeo\+Fitness\+Assignment}}$<$ M\+O\+E\+OT $>$ \& \mbox{\hyperlink{classmoeo_elitist_replacement_aba390ae799848417dc41d0e71b010425}{fitness\+Assignment}}
\item 
\mbox{\hyperlink{classmoeo_diversity_assignment}{moeo\+Diversity\+Assignment}}$<$ M\+O\+E\+OT $>$ \& \mbox{\hyperlink{classmoeo_elitist_replacement_a7dff2c8d871e87a2ba326b69fd0c48d9}{diversity\+Assignment}}
\item 
\mbox{\hyperlink{classmoeo_dummy_diversity_assignment}{moeo\+Dummy\+Diversity\+Assignment}}$<$ M\+O\+E\+OT $>$ \mbox{\hyperlink{classmoeo_elitist_replacement_a0a88fa6ae1cba0eb041b804f86e31ab2}{default\+Diversity}}
\item 
\mbox{\hyperlink{classmoeo_fitness_then_diversity_comparator}{moeo\+Fitness\+Then\+Diversity\+Comparator}}$<$ M\+O\+E\+OT $>$ \mbox{\hyperlink{classmoeo_elitist_replacement_ae4b10eae9d1b048525737fbe47e34215}{default\+Comparator}}
\item 
\mbox{\Hypertarget{classmoeo_elitist_replacement_a25158b63bb3eff85099e6d7b189d57e8}\label{classmoeo_elitist_replacement_a25158b63bb3eff85099e6d7b189d57e8}} 
class \mbox{\hyperlink{classmoeo_elitist_replacement_1_1_cmp}{moeo\+Elitist\+Replacement\+::\+Cmp}} {\bfseries comparator}
\end{DoxyCompactItemize}
\doxysubsection*{Additional Inherited Members}


\doxysubsection{Detailed Description}
\subsubsection*{template$<$class M\+O\+E\+OT$>$\newline
class moeo\+Elitist\+Replacement$<$ M\+O\+E\+O\+T $>$}

Elitist replacement strategy that consists in keeping the N best individuals. 

\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classmoeo_elitist_replacement_a1d91980f3f800833c8e9452cb450ae3e}\label{classmoeo_elitist_replacement_a1d91980f3f800833c8e9452cb450ae3e}} 
\index{moeoElitistReplacement$<$ MOEOT $>$@{moeoElitistReplacement$<$ MOEOT $>$}!moeoElitistReplacement@{moeoElitistReplacement}}
\index{moeoElitistReplacement@{moeoElitistReplacement}!moeoElitistReplacement$<$ MOEOT $>$@{moeoElitistReplacement$<$ MOEOT $>$}}
\doxysubsubsection{\texorpdfstring{moeoElitistReplacement()}{moeoElitistReplacement()}\hspace{0.1cm}{\footnotesize\ttfamily [1/4]}}
{\footnotesize\ttfamily template$<$class M\+O\+E\+OT $>$ \\
\mbox{\hyperlink{classmoeo_elitist_replacement}{moeo\+Elitist\+Replacement}}$<$ M\+O\+E\+OT $>$\+::\mbox{\hyperlink{classmoeo_elitist_replacement}{moeo\+Elitist\+Replacement}} (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classmoeo_fitness_assignment}{moeo\+Fitness\+Assignment}}$<$ M\+O\+E\+OT $>$ \&}]{\+\_\+fitness\+Assignment,  }\item[{\mbox{\hyperlink{classmoeo_diversity_assignment}{moeo\+Diversity\+Assignment}}$<$ M\+O\+E\+OT $>$ \&}]{\+\_\+diversity\+Assignment,  }\item[{\mbox{\hyperlink{classmoeo_comparator}{moeo\+Comparator}}$<$ M\+O\+E\+OT $>$ \&}]{\+\_\+comparator }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

Full constructor. 
\begin{DoxyParams}{Parameters}
{\em \+\_\+fitness\+Assignment} & the fitness assignment strategy \\
\hline
{\em \+\_\+diversity\+Assignment} & the diversity assignment strategy \\
\hline
{\em \+\_\+comparator} & the comparator (used to compare 2 individuals) \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classmoeo_elitist_replacement_ad7122be0519207c7496852284ed24514}\label{classmoeo_elitist_replacement_ad7122be0519207c7496852284ed24514}} 
\index{moeoElitistReplacement$<$ MOEOT $>$@{moeoElitistReplacement$<$ MOEOT $>$}!moeoElitistReplacement@{moeoElitistReplacement}}
\index{moeoElitistReplacement@{moeoElitistReplacement}!moeoElitistReplacement$<$ MOEOT $>$@{moeoElitistReplacement$<$ MOEOT $>$}}
\doxysubsubsection{\texorpdfstring{moeoElitistReplacement()}{moeoElitistReplacement()}\hspace{0.1cm}{\footnotesize\ttfamily [2/4]}}
{\footnotesize\ttfamily template$<$class M\+O\+E\+OT $>$ \\
\mbox{\hyperlink{classmoeo_elitist_replacement}{moeo\+Elitist\+Replacement}}$<$ M\+O\+E\+OT $>$\+::\mbox{\hyperlink{classmoeo_elitist_replacement}{moeo\+Elitist\+Replacement}} (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classmoeo_fitness_assignment}{moeo\+Fitness\+Assignment}}$<$ M\+O\+E\+OT $>$ \&}]{\+\_\+fitness\+Assignment,  }\item[{\mbox{\hyperlink{classmoeo_diversity_assignment}{moeo\+Diversity\+Assignment}}$<$ M\+O\+E\+OT $>$ \&}]{\+\_\+diversity\+Assignment }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

Constructor without comparator. A moeo\+Fit\+Then\+Div\+Comparator is used as default. 
\begin{DoxyParams}{Parameters}
{\em \+\_\+fitness\+Assignment} & the fitness assignment strategy \\
\hline
{\em \+\_\+diversity\+Assignment} & the diversity assignment strategy \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classmoeo_elitist_replacement_a81b7b8e0cac6cbed36e47688adf1466c}\label{classmoeo_elitist_replacement_a81b7b8e0cac6cbed36e47688adf1466c}} 
\index{moeoElitistReplacement$<$ MOEOT $>$@{moeoElitistReplacement$<$ MOEOT $>$}!moeoElitistReplacement@{moeoElitistReplacement}}
\index{moeoElitistReplacement@{moeoElitistReplacement}!moeoElitistReplacement$<$ MOEOT $>$@{moeoElitistReplacement$<$ MOEOT $>$}}
\doxysubsubsection{\texorpdfstring{moeoElitistReplacement()}{moeoElitistReplacement()}\hspace{0.1cm}{\footnotesize\ttfamily [3/4]}}
{\footnotesize\ttfamily template$<$class M\+O\+E\+OT $>$ \\
\mbox{\hyperlink{classmoeo_elitist_replacement}{moeo\+Elitist\+Replacement}}$<$ M\+O\+E\+OT $>$\+::\mbox{\hyperlink{classmoeo_elitist_replacement}{moeo\+Elitist\+Replacement}} (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classmoeo_fitness_assignment}{moeo\+Fitness\+Assignment}}$<$ M\+O\+E\+OT $>$ \&}]{\+\_\+fitness\+Assignment,  }\item[{\mbox{\hyperlink{classmoeo_comparator}{moeo\+Comparator}}$<$ M\+O\+E\+OT $>$ \&}]{\+\_\+comparator }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

Constructor without moeo\+Diversity\+Assignement. A dummy diversity is used as default. 
\begin{DoxyParams}{Parameters}
{\em \+\_\+fitness\+Assignment} & the fitness assignment strategy \\
\hline
{\em \+\_\+comparator} & the comparator (used to compare 2 individuals) \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classmoeo_elitist_replacement_a2ef7c199d779d473a9d35cee21556794}\label{classmoeo_elitist_replacement_a2ef7c199d779d473a9d35cee21556794}} 
\index{moeoElitistReplacement$<$ MOEOT $>$@{moeoElitistReplacement$<$ MOEOT $>$}!moeoElitistReplacement@{moeoElitistReplacement}}
\index{moeoElitistReplacement@{moeoElitistReplacement}!moeoElitistReplacement$<$ MOEOT $>$@{moeoElitistReplacement$<$ MOEOT $>$}}
\doxysubsubsection{\texorpdfstring{moeoElitistReplacement()}{moeoElitistReplacement()}\hspace{0.1cm}{\footnotesize\ttfamily [4/4]}}
{\footnotesize\ttfamily template$<$class M\+O\+E\+OT $>$ \\
\mbox{\hyperlink{classmoeo_elitist_replacement}{moeo\+Elitist\+Replacement}}$<$ M\+O\+E\+OT $>$\+::\mbox{\hyperlink{classmoeo_elitist_replacement}{moeo\+Elitist\+Replacement}} (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classmoeo_fitness_assignment}{moeo\+Fitness\+Assignment}}$<$ M\+O\+E\+OT $>$ \&}]{\+\_\+fitness\+Assignment }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

Constructor without moeo\+Diversity\+Assignement nor \mbox{\hyperlink{classmoeo_comparator}{moeo\+Comparator}}. A moeo\+Fit\+Then\+Div\+Comparator and a dummy diversity are used as default. 
\begin{DoxyParams}{Parameters}
{\em \+\_\+fitness\+Assignment} & the fitness assignment strategy \\
\hline
\end{DoxyParams}


\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classmoeo_elitist_replacement_a0364c6ef9d16f7eb65caa9edfce69006}\label{classmoeo_elitist_replacement_a0364c6ef9d16f7eb65caa9edfce69006}} 
\index{moeoElitistReplacement$<$ MOEOT $>$@{moeoElitistReplacement$<$ MOEOT $>$}!operator()@{operator()}}
\index{operator()@{operator()}!moeoElitistReplacement$<$ MOEOT $>$@{moeoElitistReplacement$<$ MOEOT $>$}}
\doxysubsubsection{\texorpdfstring{operator()()}{operator()()}}
{\footnotesize\ttfamily template$<$class M\+O\+E\+OT $>$ \\
void \mbox{\hyperlink{classmoeo_elitist_replacement}{moeo\+Elitist\+Replacement}}$<$ M\+O\+E\+OT $>$\+::operator() (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classeo_pop}{eo\+Pop}}$<$ M\+O\+E\+OT $>$ \&}]{\+\_\+parents,  }\item[{\mbox{\hyperlink{classeo_pop}{eo\+Pop}}$<$ M\+O\+E\+OT $>$ \&}]{\+\_\+offspring }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}

Replaces the first population by adding the individuals of the second one, sorting with a \mbox{\hyperlink{classmoeo_comparator}{moeo\+Comparator}} and resizing the whole population obtained. 
\begin{DoxyParams}{Parameters}
{\em \+\_\+parents} & the population composed of the parents (the population you want to replace) \\
\hline
{\em \+\_\+offspring} & the offspring population \\
\hline
\end{DoxyParams}


Implements \mbox{\hyperlink{classeo_b_f_aa03c40b95210569b826df79a2237a0d0}{eo\+B\+F$<$ eo\+Pop$<$ M\+O\+E\+O\+T $>$ \&, eo\+Pop$<$ M\+O\+E\+O\+T $>$ \&, void $>$}}.



\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{classmoeo_elitist_replacement_ae4b10eae9d1b048525737fbe47e34215}\label{classmoeo_elitist_replacement_ae4b10eae9d1b048525737fbe47e34215}} 
\index{moeoElitistReplacement$<$ MOEOT $>$@{moeoElitistReplacement$<$ MOEOT $>$}!defaultComparator@{defaultComparator}}
\index{defaultComparator@{defaultComparator}!moeoElitistReplacement$<$ MOEOT $>$@{moeoElitistReplacement$<$ MOEOT $>$}}
\doxysubsubsection{\texorpdfstring{defaultComparator}{defaultComparator}}
{\footnotesize\ttfamily template$<$class M\+O\+E\+OT $>$ \\
\mbox{\hyperlink{classmoeo_fitness_then_diversity_comparator}{moeo\+Fitness\+Then\+Diversity\+Comparator}}$<$ M\+O\+E\+OT $>$ \mbox{\hyperlink{classmoeo_elitist_replacement}{moeo\+Elitist\+Replacement}}$<$ M\+O\+E\+OT $>$\+::default\+Comparator\hspace{0.3cm}{\ttfamily [protected]}}

a fitness then diversity comparator can be used as default \mbox{\Hypertarget{classmoeo_elitist_replacement_a0a88fa6ae1cba0eb041b804f86e31ab2}\label{classmoeo_elitist_replacement_a0a88fa6ae1cba0eb041b804f86e31ab2}} 
\index{moeoElitistReplacement$<$ MOEOT $>$@{moeoElitistReplacement$<$ MOEOT $>$}!defaultDiversity@{defaultDiversity}}
\index{defaultDiversity@{defaultDiversity}!moeoElitistReplacement$<$ MOEOT $>$@{moeoElitistReplacement$<$ MOEOT $>$}}
\doxysubsubsection{\texorpdfstring{defaultDiversity}{defaultDiversity}}
{\footnotesize\ttfamily template$<$class M\+O\+E\+OT $>$ \\
\mbox{\hyperlink{classmoeo_dummy_diversity_assignment}{moeo\+Dummy\+Diversity\+Assignment}}$<$ M\+O\+E\+OT $>$ \mbox{\hyperlink{classmoeo_elitist_replacement}{moeo\+Elitist\+Replacement}}$<$ M\+O\+E\+OT $>$\+::default\+Diversity\hspace{0.3cm}{\ttfamily [protected]}}

a dummy diversity assignment can be used as default \mbox{\Hypertarget{classmoeo_elitist_replacement_a7dff2c8d871e87a2ba326b69fd0c48d9}\label{classmoeo_elitist_replacement_a7dff2c8d871e87a2ba326b69fd0c48d9}} 
\index{moeoElitistReplacement$<$ MOEOT $>$@{moeoElitistReplacement$<$ MOEOT $>$}!diversityAssignment@{diversityAssignment}}
\index{diversityAssignment@{diversityAssignment}!moeoElitistReplacement$<$ MOEOT $>$@{moeoElitistReplacement$<$ MOEOT $>$}}
\doxysubsubsection{\texorpdfstring{diversityAssignment}{diversityAssignment}}
{\footnotesize\ttfamily template$<$class M\+O\+E\+OT $>$ \\
\mbox{\hyperlink{classmoeo_diversity_assignment}{moeo\+Diversity\+Assignment}}$<$ M\+O\+E\+OT $>$\& \mbox{\hyperlink{classmoeo_elitist_replacement}{moeo\+Elitist\+Replacement}}$<$ M\+O\+E\+OT $>$\+::diversity\+Assignment\hspace{0.3cm}{\ttfamily [protected]}}

the diversity assignment strategy \mbox{\Hypertarget{classmoeo_elitist_replacement_aba390ae799848417dc41d0e71b010425}\label{classmoeo_elitist_replacement_aba390ae799848417dc41d0e71b010425}} 
\index{moeoElitistReplacement$<$ MOEOT $>$@{moeoElitistReplacement$<$ MOEOT $>$}!fitnessAssignment@{fitnessAssignment}}
\index{fitnessAssignment@{fitnessAssignment}!moeoElitistReplacement$<$ MOEOT $>$@{moeoElitistReplacement$<$ MOEOT $>$}}
\doxysubsubsection{\texorpdfstring{fitnessAssignment}{fitnessAssignment}}
{\footnotesize\ttfamily template$<$class M\+O\+E\+OT $>$ \\
\mbox{\hyperlink{classmoeo_fitness_assignment}{moeo\+Fitness\+Assignment}}$<$ M\+O\+E\+OT $>$\& \mbox{\hyperlink{classmoeo_elitist_replacement}{moeo\+Elitist\+Replacement}}$<$ M\+O\+E\+OT $>$\+::fitness\+Assignment\hspace{0.3cm}{\ttfamily [protected]}}

the fitness assignment strategy 

The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
moeo/src/replacement/moeo\+Elitist\+Replacement.\+h\end{DoxyCompactItemize}
