117 lines
8.9 KiB
TeX
117 lines
8.9 KiB
TeX
\hypertarget{classmo_random_best_h_c}{}\doxysection{mo\+Random\+Best\+HC$<$ Neighbor $>$ Class Template Reference}
|
|
\label{classmo_random_best_h_c}\index{moRandomBestHC$<$ Neighbor $>$@{moRandomBestHC$<$ Neighbor $>$}}
|
|
|
|
|
|
{\ttfamily \#include $<$mo\+Random\+Best\+H\+C.\+h$>$}
|
|
|
|
|
|
|
|
Inheritance diagram for mo\+Random\+Best\+HC$<$ Neighbor $>$\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=350pt]{classmo_random_best_h_c__inherit__graph}
|
|
\end{center}
|
|
\end{figure}
|
|
|
|
|
|
Collaboration diagram for mo\+Random\+Best\+HC$<$ Neighbor $>$\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=350pt]{classmo_random_best_h_c__coll__graph}
|
|
\end{center}
|
|
\end{figure}
|
|
\doxysubsection*{Public Types}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
\mbox{\Hypertarget{classmo_random_best_h_c_a5116d37999c1e34d5a5eb7c0ba5c1141}\label{classmo_random_best_h_c_a5116d37999c1e34d5a5eb7c0ba5c1141}}
|
|
typedef \mbox{\hyperlink{classeo_bit}{Neighbor\+::\+E\+OT}} {\bfseries E\+OT}
|
|
\item
|
|
\mbox{\Hypertarget{classmo_random_best_h_c_ae0cb79b8ded647afd990417f044e00b4}\label{classmo_random_best_h_c_ae0cb79b8ded647afd990417f044e00b4}}
|
|
typedef \mbox{\hyperlink{classmo_neighborhood}{mo\+Neighborhood}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$ {\bfseries Neighborhood}
|
|
\end{DoxyCompactItemize}
|
|
\doxysubsection*{Public Member Functions}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
\mbox{\hyperlink{classmo_random_best_h_c_af5765c2f7a31184d2c196dc418b09c12}{mo\+Random\+Best\+HC}} (\mbox{\hyperlink{classmo_neighborhood}{Neighborhood}} \&\+\_\+neighborhood, \mbox{\hyperlink{classeo_eval_func}{eo\+Eval\+Func}}$<$ \mbox{\hyperlink{classeo_bit}{E\+OT}} $>$ \&\+\_\+full\+Eval, \mbox{\hyperlink{classmo_eval}{mo\+Eval}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$ \&\+\_\+eval)
|
|
\item
|
|
\mbox{\hyperlink{classmo_random_best_h_c_a57ebdf5c32a5e0ebcac1bbf5525d9f37}{mo\+Random\+Best\+HC}} (\mbox{\hyperlink{classmo_neighborhood}{Neighborhood}} \&\+\_\+neighborhood, \mbox{\hyperlink{classeo_eval_func}{eo\+Eval\+Func}}$<$ \mbox{\hyperlink{classeo_bit}{E\+OT}} $>$ \&\+\_\+full\+Eval, \mbox{\hyperlink{classmo_eval}{mo\+Eval}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$ \&\+\_\+eval, \mbox{\hyperlink{classmo_continuator}{mo\+Continuator}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$ \&\+\_\+cont)
|
|
\item
|
|
\mbox{\hyperlink{classmo_random_best_h_c_a8975b83a7c905dd9f4f263ccddad3933}{mo\+Random\+Best\+HC}} (\mbox{\hyperlink{classmo_neighborhood}{Neighborhood}} \&\+\_\+neighborhood, \mbox{\hyperlink{classeo_eval_func}{eo\+Eval\+Func}}$<$ \mbox{\hyperlink{classeo_bit}{E\+OT}} $>$ \&\+\_\+full\+Eval, \mbox{\hyperlink{classmo_eval}{mo\+Eval}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$ \&\+\_\+eval, \mbox{\hyperlink{classmo_continuator}{mo\+Continuator}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$ \&\+\_\+cont, \mbox{\hyperlink{classmo_neighbor_comparator}{mo\+Neighbor\+Comparator}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$ \&\+\_\+compN, \mbox{\hyperlink{classmo_sol_neighbor_comparator}{mo\+Sol\+Neighbor\+Comparator}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$ \&\+\_\+comp\+SN)
|
|
\end{DoxyCompactItemize}
|
|
\doxysubsection*{Additional Inherited Members}
|
|
|
|
|
|
\doxysubsection{Detailed Description}
|
|
\subsubsection*{template$<$class Neighbor$>$\newline
|
|
class mo\+Random\+Best\+H\+C$<$ Neighbor $>$}
|
|
|
|
Random Best HC\+: Hill-\/\+Climbing local search
|
|
|
|
At each iteration, one of the random best solution in the neighborhood is selected if the selected neighbor have higher fitness than the current solution then the solution is replaced by the selected neighbor the algorithm stops when there is no higher neighbor
|
|
|
|
\doxysubsection{Constructor \& Destructor Documentation}
|
|
\mbox{\Hypertarget{classmo_random_best_h_c_af5765c2f7a31184d2c196dc418b09c12}\label{classmo_random_best_h_c_af5765c2f7a31184d2c196dc418b09c12}}
|
|
\index{moRandomBestHC$<$ Neighbor $>$@{moRandomBestHC$<$ Neighbor $>$}!moRandomBestHC@{moRandomBestHC}}
|
|
\index{moRandomBestHC@{moRandomBestHC}!moRandomBestHC$<$ Neighbor $>$@{moRandomBestHC$<$ Neighbor $>$}}
|
|
\doxysubsubsection{\texorpdfstring{moRandomBestHC()}{moRandomBestHC()}\hspace{0.1cm}{\footnotesize\ttfamily [1/3]}}
|
|
{\footnotesize\ttfamily template$<$class Neighbor $>$ \\
|
|
\mbox{\hyperlink{classmo_random_best_h_c}{mo\+Random\+Best\+HC}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$\+::\mbox{\hyperlink{classmo_random_best_h_c}{mo\+Random\+Best\+HC}} (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classmo_neighborhood}{Neighborhood}} \&}]{\+\_\+neighborhood, }\item[{\mbox{\hyperlink{classeo_eval_func}{eo\+Eval\+Func}}$<$ \mbox{\hyperlink{classeo_bit}{E\+OT}} $>$ \&}]{\+\_\+full\+Eval, }\item[{\mbox{\hyperlink{classmo_eval}{mo\+Eval}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$ \&}]{\+\_\+eval }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
|
|
|
|
Basic constructor for a hill-\/climber
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em \+\_\+neighborhood} & the neighborhood \\
|
|
\hline
|
|
{\em \+\_\+full\+Eval} & the full evaluation function \\
|
|
\hline
|
|
{\em \+\_\+eval} & neighbor\textquotesingle{}s evaluation function \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
\mbox{\Hypertarget{classmo_random_best_h_c_a57ebdf5c32a5e0ebcac1bbf5525d9f37}\label{classmo_random_best_h_c_a57ebdf5c32a5e0ebcac1bbf5525d9f37}}
|
|
\index{moRandomBestHC$<$ Neighbor $>$@{moRandomBestHC$<$ Neighbor $>$}!moRandomBestHC@{moRandomBestHC}}
|
|
\index{moRandomBestHC@{moRandomBestHC}!moRandomBestHC$<$ Neighbor $>$@{moRandomBestHC$<$ Neighbor $>$}}
|
|
\doxysubsubsection{\texorpdfstring{moRandomBestHC()}{moRandomBestHC()}\hspace{0.1cm}{\footnotesize\ttfamily [2/3]}}
|
|
{\footnotesize\ttfamily template$<$class Neighbor $>$ \\
|
|
\mbox{\hyperlink{classmo_random_best_h_c}{mo\+Random\+Best\+HC}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$\+::\mbox{\hyperlink{classmo_random_best_h_c}{mo\+Random\+Best\+HC}} (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classmo_neighborhood}{Neighborhood}} \&}]{\+\_\+neighborhood, }\item[{\mbox{\hyperlink{classeo_eval_func}{eo\+Eval\+Func}}$<$ \mbox{\hyperlink{classeo_bit}{E\+OT}} $>$ \&}]{\+\_\+full\+Eval, }\item[{\mbox{\hyperlink{classmo_eval}{mo\+Eval}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$ \&}]{\+\_\+eval, }\item[{\mbox{\hyperlink{classmo_continuator}{mo\+Continuator}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$ \&}]{\+\_\+cont }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
|
|
|
|
Simple constructor for a hill-\/climber
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em \+\_\+neighborhood} & the neighborhood \\
|
|
\hline
|
|
{\em \+\_\+full\+Eval} & the full evaluation function \\
|
|
\hline
|
|
{\em \+\_\+eval} & neighbor\textquotesingle{}s evaluation function \\
|
|
\hline
|
|
{\em \+\_\+cont} & an external continuator \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
\mbox{\Hypertarget{classmo_random_best_h_c_a8975b83a7c905dd9f4f263ccddad3933}\label{classmo_random_best_h_c_a8975b83a7c905dd9f4f263ccddad3933}}
|
|
\index{moRandomBestHC$<$ Neighbor $>$@{moRandomBestHC$<$ Neighbor $>$}!moRandomBestHC@{moRandomBestHC}}
|
|
\index{moRandomBestHC@{moRandomBestHC}!moRandomBestHC$<$ Neighbor $>$@{moRandomBestHC$<$ Neighbor $>$}}
|
|
\doxysubsubsection{\texorpdfstring{moRandomBestHC()}{moRandomBestHC()}\hspace{0.1cm}{\footnotesize\ttfamily [3/3]}}
|
|
{\footnotesize\ttfamily template$<$class Neighbor $>$ \\
|
|
\mbox{\hyperlink{classmo_random_best_h_c}{mo\+Random\+Best\+HC}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$\+::\mbox{\hyperlink{classmo_random_best_h_c}{mo\+Random\+Best\+HC}} (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classmo_neighborhood}{Neighborhood}} \&}]{\+\_\+neighborhood, }\item[{\mbox{\hyperlink{classeo_eval_func}{eo\+Eval\+Func}}$<$ \mbox{\hyperlink{classeo_bit}{E\+OT}} $>$ \&}]{\+\_\+full\+Eval, }\item[{\mbox{\hyperlink{classmo_eval}{mo\+Eval}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$ \&}]{\+\_\+eval, }\item[{\mbox{\hyperlink{classmo_continuator}{mo\+Continuator}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$ \&}]{\+\_\+cont, }\item[{\mbox{\hyperlink{classmo_neighbor_comparator}{mo\+Neighbor\+Comparator}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$ \&}]{\+\_\+compN, }\item[{\mbox{\hyperlink{classmo_sol_neighbor_comparator}{mo\+Sol\+Neighbor\+Comparator}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$ \&}]{\+\_\+comp\+SN }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
|
|
|
|
General constructor for a hill-\/climber
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em \+\_\+neighborhood} & the neighborhood \\
|
|
\hline
|
|
{\em \+\_\+full\+Eval} & the full evaluation function \\
|
|
\hline
|
|
{\em \+\_\+eval} & neighbor\textquotesingle{}s evaluation function \\
|
|
\hline
|
|
{\em \+\_\+cont} & an external continuator \\
|
|
\hline
|
|
{\em \+\_\+compN} & a neighbor vs neighbor comparator \\
|
|
\hline
|
|
{\em \+\_\+comp\+SN} & a solution vs neighbor comparator \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
|
|
The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
|
|
\item
|
|
mo/src/algo/mo\+Random\+Best\+H\+C.\+h\end{DoxyCompactItemize}
|