165 lines
10 KiB
TeX
165 lines
10 KiB
TeX
\hypertarget{classmo_neutral_h_cexplorer}{}\doxysection{mo\+Neutral\+H\+Cexplorer$<$ Neighbor $>$ Class Template Reference}
|
|
\label{classmo_neutral_h_cexplorer}\index{moNeutralHCexplorer$<$ Neighbor $>$@{moNeutralHCexplorer$<$ Neighbor $>$}}
|
|
|
|
|
|
{\ttfamily \#include $<$mo\+Neutral\+H\+Cexplorer.\+h$>$}
|
|
|
|
|
|
|
|
Inheritance diagram for mo\+Neutral\+H\+Cexplorer$<$ Neighbor $>$\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=334pt]{classmo_neutral_h_cexplorer__inherit__graph}
|
|
\end{center}
|
|
\end{figure}
|
|
|
|
|
|
Collaboration diagram for mo\+Neutral\+H\+Cexplorer$<$ Neighbor $>$\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=350pt]{classmo_neutral_h_cexplorer__coll__graph}
|
|
\end{center}
|
|
\end{figure}
|
|
\doxysubsection*{Public Types}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
\mbox{\Hypertarget{classmo_neutral_h_cexplorer_a691e7eb2707a7a82a1770a139462be81}\label{classmo_neutral_h_cexplorer_a691e7eb2707a7a82a1770a139462be81}}
|
|
typedef \mbox{\hyperlink{classeo_bit}{Neighbor\+::\+E\+OT}} {\bfseries E\+OT}
|
|
\item
|
|
\mbox{\Hypertarget{classmo_neutral_h_cexplorer_af2d911e890b7190f447fbc162790ca1d}\label{classmo_neutral_h_cexplorer_af2d911e890b7190f447fbc162790ca1d}}
|
|
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_neutral_h_cexplorer_ad112a447e4325fad595d72c2e96a2654}{mo\+Neutral\+H\+Cexplorer}} (\mbox{\hyperlink{classmo_neighborhood}{Neighborhood}} \&\+\_\+neighborhood, \mbox{\hyperlink{classmo_eval}{mo\+Eval}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$ \&\+\_\+eval, \mbox{\hyperlink{classmo_neighbor_comparator}{mo\+Neighbor\+Comparator}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$ \&\+\_\+neighbor\+Comparator, \mbox{\hyperlink{classmo_sol_neighbor_comparator}{mo\+Sol\+Neighbor\+Comparator}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$ \&\+\_\+sol\+Neighbor\+Comparator, unsigned \+\_\+nb\+Step)
|
|
\item
|
|
\mbox{\hyperlink{classmo_neutral_h_cexplorer_a412e8f62c3df642f2e7f43022a0085f9}{$\sim$mo\+Neutral\+H\+Cexplorer}} ()
|
|
\item
|
|
virtual void \mbox{\hyperlink{classmo_neutral_h_cexplorer_a21c23de25aa404cd7cd6583245359efc}{init\+Param}} (\mbox{\hyperlink{classeo_bit}{E\+OT}} \&\+\_\+solution)
|
|
\item
|
|
virtual void \mbox{\hyperlink{classmo_neutral_h_cexplorer_a3b807ab5e6bef67cffccf48d91829c8c}{update\+Param}} (\mbox{\hyperlink{classeo_bit}{E\+OT}} \&\+\_\+solution)
|
|
\item
|
|
virtual bool \mbox{\hyperlink{classmo_neutral_h_cexplorer_a3c8f82f330980941f8aab5734dc4629e}{is\+Continue}} (\mbox{\hyperlink{classeo_bit}{E\+OT}} \&\+\_\+solution)
|
|
\item
|
|
virtual bool \mbox{\hyperlink{classmo_neutral_h_cexplorer_a93ddf9629cb117a0f2447c096f48fe7c}{accept}} (\mbox{\hyperlink{classeo_bit}{E\+OT}} \&\+\_\+solution)
|
|
\end{DoxyCompactItemize}
|
|
\doxysubsection*{Additional Inherited Members}
|
|
|
|
|
|
\doxysubsection{Detailed Description}
|
|
\subsubsection*{template$<$class Neighbor$>$\newline
|
|
class mo\+Neutral\+H\+Cexplorer$<$ Neighbor $>$}
|
|
|
|
Explorer for a neutral Hill-\/climbing
|
|
|
|
\doxysubsection{Constructor \& Destructor Documentation}
|
|
\mbox{\Hypertarget{classmo_neutral_h_cexplorer_ad112a447e4325fad595d72c2e96a2654}\label{classmo_neutral_h_cexplorer_ad112a447e4325fad595d72c2e96a2654}}
|
|
\index{moNeutralHCexplorer$<$ Neighbor $>$@{moNeutralHCexplorer$<$ Neighbor $>$}!moNeutralHCexplorer@{moNeutralHCexplorer}}
|
|
\index{moNeutralHCexplorer@{moNeutralHCexplorer}!moNeutralHCexplorer$<$ Neighbor $>$@{moNeutralHCexplorer$<$ Neighbor $>$}}
|
|
\doxysubsubsection{\texorpdfstring{moNeutralHCexplorer()}{moNeutralHCexplorer()}}
|
|
{\footnotesize\ttfamily template$<$class Neighbor $>$ \\
|
|
\mbox{\hyperlink{classmo_neutral_h_cexplorer}{mo\+Neutral\+H\+Cexplorer}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$\+::\mbox{\hyperlink{classmo_neutral_h_cexplorer}{mo\+Neutral\+H\+Cexplorer}} (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classmo_neighborhood}{Neighborhood}} \&}]{\+\_\+neighborhood, }\item[{\mbox{\hyperlink{classmo_eval}{mo\+Eval}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$ \&}]{\+\_\+eval, }\item[{\mbox{\hyperlink{classmo_neighbor_comparator}{mo\+Neighbor\+Comparator}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$ \&}]{\+\_\+neighbor\+Comparator, }\item[{\mbox{\hyperlink{classmo_sol_neighbor_comparator}{mo\+Sol\+Neighbor\+Comparator}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$ \&}]{\+\_\+sol\+Neighbor\+Comparator, }\item[{unsigned}]{\+\_\+nb\+Step }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
|
|
|
|
Constructor
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em \+\_\+neighborhood} & the neighborhood \\
|
|
\hline
|
|
{\em \+\_\+eval} & the evaluation function \\
|
|
\hline
|
|
{\em \+\_\+neighbor\+Comparator} & a neighbor comparator \\
|
|
\hline
|
|
{\em \+\_\+sol\+Neighbor\+Comparator} & a solution vs neighbor comparator \\
|
|
\hline
|
|
{\em \+\_\+nb\+Step} & maximum step to do \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
\mbox{\Hypertarget{classmo_neutral_h_cexplorer_a412e8f62c3df642f2e7f43022a0085f9}\label{classmo_neutral_h_cexplorer_a412e8f62c3df642f2e7f43022a0085f9}}
|
|
\index{moNeutralHCexplorer$<$ Neighbor $>$@{moNeutralHCexplorer$<$ Neighbor $>$}!````~moNeutralHCexplorer@{$\sim$moNeutralHCexplorer}}
|
|
\index{````~moNeutralHCexplorer@{$\sim$moNeutralHCexplorer}!moNeutralHCexplorer$<$ Neighbor $>$@{moNeutralHCexplorer$<$ Neighbor $>$}}
|
|
\doxysubsubsection{\texorpdfstring{$\sim$moNeutralHCexplorer()}{~moNeutralHCexplorer()}}
|
|
{\footnotesize\ttfamily template$<$class Neighbor $>$ \\
|
|
\mbox{\hyperlink{classmo_neutral_h_cexplorer}{mo\+Neutral\+H\+Cexplorer}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$\+::$\sim$\mbox{\hyperlink{classmo_neutral_h_cexplorer}{mo\+Neutral\+H\+Cexplorer}} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
|
|
|
|
Destructor
|
|
|
|
\doxysubsection{Member Function Documentation}
|
|
\mbox{\Hypertarget{classmo_neutral_h_cexplorer_a93ddf9629cb117a0f2447c096f48fe7c}\label{classmo_neutral_h_cexplorer_a93ddf9629cb117a0f2447c096f48fe7c}}
|
|
\index{moNeutralHCexplorer$<$ Neighbor $>$@{moNeutralHCexplorer$<$ Neighbor $>$}!accept@{accept}}
|
|
\index{accept@{accept}!moNeutralHCexplorer$<$ Neighbor $>$@{moNeutralHCexplorer$<$ Neighbor $>$}}
|
|
\doxysubsubsection{\texorpdfstring{accept()}{accept()}}
|
|
{\footnotesize\ttfamily template$<$class Neighbor $>$ \\
|
|
virtual bool \mbox{\hyperlink{classmo_neutral_h_cexplorer}{mo\+Neutral\+H\+Cexplorer}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$\+::accept (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classeo_bit}{E\+OT}} \&}]{\+\_\+solution }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}
|
|
|
|
accept test if an ameliorated or an equal neighbor was be found
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em \+\_\+solution} & the solution \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
\begin{DoxyReturn}{Returns}
|
|
true if the best neighbor ameliorate the fitness or is equals
|
|
\end{DoxyReturn}
|
|
|
|
|
|
Reimplemented from \mbox{\hyperlink{classmo_random_best_h_cexplorer_ae1e7fe467c501c476fd81f11f6ac49cc}{mo\+Random\+Best\+H\+Cexplorer$<$ Neighbor $>$}}.
|
|
|
|
\mbox{\Hypertarget{classmo_neutral_h_cexplorer_a21c23de25aa404cd7cd6583245359efc}\label{classmo_neutral_h_cexplorer_a21c23de25aa404cd7cd6583245359efc}}
|
|
\index{moNeutralHCexplorer$<$ Neighbor $>$@{moNeutralHCexplorer$<$ Neighbor $>$}!initParam@{initParam}}
|
|
\index{initParam@{initParam}!moNeutralHCexplorer$<$ Neighbor $>$@{moNeutralHCexplorer$<$ Neighbor $>$}}
|
|
\doxysubsubsection{\texorpdfstring{initParam()}{initParam()}}
|
|
{\footnotesize\ttfamily template$<$class Neighbor $>$ \\
|
|
virtual void \mbox{\hyperlink{classmo_neutral_h_cexplorer}{mo\+Neutral\+H\+Cexplorer}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$\+::init\+Param (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classeo_bit}{E\+OT}} \&}]{\+\_\+solution }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}
|
|
|
|
initial number of step
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em \+\_\+solution} & the current solution \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
|
|
Reimplemented from \mbox{\hyperlink{classmo_random_best_h_cexplorer_aaa09dd383e66caf2cf2839a769b231ca}{mo\+Random\+Best\+H\+Cexplorer$<$ Neighbor $>$}}.
|
|
|
|
\mbox{\Hypertarget{classmo_neutral_h_cexplorer_a3c8f82f330980941f8aab5734dc4629e}\label{classmo_neutral_h_cexplorer_a3c8f82f330980941f8aab5734dc4629e}}
|
|
\index{moNeutralHCexplorer$<$ Neighbor $>$@{moNeutralHCexplorer$<$ Neighbor $>$}!isContinue@{isContinue}}
|
|
\index{isContinue@{isContinue}!moNeutralHCexplorer$<$ Neighbor $>$@{moNeutralHCexplorer$<$ Neighbor $>$}}
|
|
\doxysubsubsection{\texorpdfstring{isContinue()}{isContinue()}}
|
|
{\footnotesize\ttfamily template$<$class Neighbor $>$ \\
|
|
virtual bool \mbox{\hyperlink{classmo_neutral_h_cexplorer}{mo\+Neutral\+H\+Cexplorer}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$\+::is\+Continue (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classeo_bit}{E\+OT}} \&}]{\+\_\+solution }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}
|
|
|
|
continue if there is a neighbor and it is remains some steps to do
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em \+\_\+solution} & the solution \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
\begin{DoxyReturn}{Returns}
|
|
true there is some steps to do
|
|
\end{DoxyReturn}
|
|
|
|
|
|
Reimplemented from \mbox{\hyperlink{classmo_random_best_h_cexplorer_a3993431b31297559a7086054feaf8518}{mo\+Random\+Best\+H\+Cexplorer$<$ Neighbor $>$}}.
|
|
|
|
\mbox{\Hypertarget{classmo_neutral_h_cexplorer_a3b807ab5e6bef67cffccf48d91829c8c}\label{classmo_neutral_h_cexplorer_a3b807ab5e6bef67cffccf48d91829c8c}}
|
|
\index{moNeutralHCexplorer$<$ Neighbor $>$@{moNeutralHCexplorer$<$ Neighbor $>$}!updateParam@{updateParam}}
|
|
\index{updateParam@{updateParam}!moNeutralHCexplorer$<$ Neighbor $>$@{moNeutralHCexplorer$<$ Neighbor $>$}}
|
|
\doxysubsubsection{\texorpdfstring{updateParam()}{updateParam()}}
|
|
{\footnotesize\ttfamily template$<$class Neighbor $>$ \\
|
|
virtual void \mbox{\hyperlink{classmo_neutral_h_cexplorer}{mo\+Neutral\+H\+Cexplorer}}$<$ \mbox{\hyperlink{classmo_bit_neighbor}{Neighbor}} $>$\+::update\+Param (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classeo_bit}{E\+OT}} \&}]{\+\_\+solution }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}
|
|
|
|
one more step
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em \+\_\+solution} & the current solution \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
|
|
Reimplemented from \mbox{\hyperlink{classmo_random_best_h_cexplorer_a067edf978d68456719dd3693845f79aa}{mo\+Random\+Best\+H\+Cexplorer$<$ Neighbor $>$}}.
|
|
|
|
|
|
|
|
The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
|
|
\item
|
|
mo/src/explorer/mo\+Neutral\+H\+Cexplorer.\+h\end{DoxyCompactItemize}
|