\section{moBestImprSelect$<$ M $>$ Class Template Reference} \label{classmo_best_impr_select}\index{moBestImprSelect@{moBestImprSelect}} One of the possible \doxyref{moMoveSelect}{p.}{classmo_move_select}. {\tt \#include $<$moBestImprSelect.h$>$} Inheritance diagram for moBestImprSelect$<$ M $>$::\begin{figure}[H] \begin{center} \leavevmode \includegraphics[height=4cm]{classmo_best_impr_select} \end{center} \end{figure} \subsection*{Public Types} \begin{CompactItemize} \item typedef M::EOType::Fitness {\bf Fitness}\label{classmo_best_impr_select_c4ae17435221fb0a8e8acd285210cfcb} \begin{CompactList}\small\item\em Alias for the fitness. \item\end{CompactList}\end{CompactItemize} \subsection*{Public Member Functions} \begin{CompactItemize} \item void {\bf init} (const {\bf Fitness} \&\_\-fitness) \begin{CompactList}\small\item\em Procedure which initialise the exploration. \item\end{CompactList}\item bool {\bf update} (const M \&\_\-move, const {\bf Fitness} \&\_\-fitness) \begin{CompactList}\small\item\em {\bf Function} that indicates if the current move has not improved the fitness. \item\end{CompactList}\item void {\bf operator()} (M \&\_\-move, {\bf Fitness} \&\_\-fitness) \begin{CompactList}\small\item\em Procedure which saved the best move and fitness. \item\end{CompactList}\end{CompactItemize} \subsection*{Private Attributes} \begin{CompactItemize} \item bool {\bf first\_\-time}\label{classmo_best_impr_select_352b14d206b0772eb9f40efb7beb0f13} \begin{CompactList}\small\item\em Allowing to know if at least one move has been generated. \item\end{CompactList}\item M {\bf best\_\-move}\label{classmo_best_impr_select_bd86f70519f954c07ff0d8a2a3a8ff6a} \begin{CompactList}\small\item\em The best move. \item\end{CompactList}\item {\bf Fitness} {\bf best\_\-fitness}\label{classmo_best_impr_select_e51345fe28ca7cbaca65bdad1aa8ecb7} \begin{CompactList}\small\item\em The best fitness. \item\end{CompactList}\end{CompactItemize} \subsection{Detailed Description} \subsubsection*{template$<$class M$>$ class moBestImprSelect$<$ M $>$} One of the possible \doxyref{moMoveSelect}{p.}{classmo_move_select}. All neighbors are considered, and the movement which enables the best improvement is selected. Definition at line 47 of file moBestImprSelect.h. \subsection{Member Function Documentation} \index{moBestImprSelect@{moBestImprSelect}!init@{init}} \index{init@{init}!moBestImprSelect@{moBestImprSelect}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class M$>$ void {\bf moBestImprSelect}$<$ M $>$::init (const {\bf Fitness} \& {\em \_\-fitness})\hspace{0.3cm}{\tt [inline, virtual]}}\label{classmo_best_impr_select_83f961549986b8ad94692e433aa79114} Procedure which initialise the exploration. \begin{Desc} \item[Parameters:] \begin{description} \item[{\em \_\-fitness}]The current fitness. \end{description} \end{Desc} Implements {\bf moMoveSelect$<$ M $>$} \doxyref{}{p.}{classmo_move_select_58038bd859632c1bd022d23d9792bdca}. Definition at line 58 of file moBestImprSelect.h. References moBestImprSelect$<$ M $>$::first\_\-time.\index{moBestImprSelect@{moBestImprSelect}!update@{update}} \index{update@{update}!moBestImprSelect@{moBestImprSelect}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class M$>$ bool {\bf moBestImprSelect}$<$ M $>$::update (const M \& {\em \_\-move}, const {\bf Fitness} \& {\em \_\-fitness})\hspace{0.3cm}{\tt [inline, virtual]}}\label{classmo_best_impr_select_5c0729fd316b0ef78406bce5ca91de2a} {\bf Function} that indicates if the current move has not improved the fitness. If the given fitness enables an improvment, the move (\doxyref{moMove}{p.}{classmo_move}) and the fitness linked to this move are saved. \begin{Desc} \item[Parameters:] \begin{description} \item[{\em \_\-move}]a move. \item[{\em \_\-fitness}]a fitness linked to the move. \end{description} \end{Desc} \begin{Desc} \item[Returns:]TRUE if the move does not improve the fitness. \end{Desc} Implements {\bf moMoveSelect$<$ M $>$} \doxyref{}{p.}{classmo_move_select_5b4d3b2f030cca80c563c3db0c4af404}. Definition at line 76 of file moBestImprSelect.h. References moBestImprSelect$<$ M $>$::best\_\-fitness, moBestImprSelect$<$ M $>$::best\_\-move, and moBestImprSelect$<$ M $>$::first\_\-time.\index{moBestImprSelect@{moBestImprSelect}!operator()@{operator()}} \index{operator()@{operator()}!moBestImprSelect@{moBestImprSelect}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class M$>$ void {\bf moBestImprSelect}$<$ M $>$::operator() (M \& {\em \_\-move}, {\bf Fitness} \& {\em \_\-fitness})\hspace{0.3cm}{\tt [inline, virtual]}}\label{classmo_best_impr_select_33b3de7bd322f737eb97cce9a5404527} Procedure which saved the best move and fitness. \begin{Desc} \item[Parameters:] \begin{description} \item[{\em \_\-move}]the current move (result of the procedure). \item[{\em \_\-fitness}]the current fitness (result of the procedure). \end{description} \end{Desc} Implements {\bf eoBF$<$ M \&, M::EOType::Fitness \&, void $>$}. Definition at line 94 of file moBestImprSelect.h. References moBestImprSelect$<$ M $>$::best\_\-fitness, moBestImprSelect$<$ M $>$::best\_\-move, and moBestImprSelect$<$ M $>$::first\_\-time. The documentation for this class was generated from the following file:\begin{CompactItemize} \item moBestImprSelect.h\end{CompactItemize}