303 lines
26 KiB
TeX
303 lines
26 KiB
TeX
\hypertarget{classeo_fixed_inertia_weighted_velocity}{}\doxysection{eo\+Fixed\+Inertia\+Weighted\+Velocity$<$ P\+OT $>$ Class Template Reference}
|
|
\label{classeo_fixed_inertia_weighted_velocity}\index{eoFixedInertiaWeightedVelocity$<$ POT $>$@{eoFixedInertiaWeightedVelocity$<$ POT $>$}}
|
|
|
|
|
|
{\ttfamily \#include $<$eo\+Fixed\+Inertia\+Weighted\+Velocity.\+h$>$}
|
|
|
|
|
|
|
|
Inheritance diagram for eo\+Fixed\+Inertia\+Weighted\+Velocity$<$ P\+OT $>$\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=334pt]{classeo_fixed_inertia_weighted_velocity__inherit__graph}
|
|
\end{center}
|
|
\end{figure}
|
|
|
|
|
|
Collaboration diagram for eo\+Fixed\+Inertia\+Weighted\+Velocity$<$ P\+OT $>$\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=350pt]{classeo_fixed_inertia_weighted_velocity__coll__graph}
|
|
\end{center}
|
|
\end{figure}
|
|
\doxysubsection*{Public Types}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
\mbox{\Hypertarget{classeo_fixed_inertia_weighted_velocity_a3c89c8cce58126a5670865bb843bd66e}\label{classeo_fixed_inertia_weighted_velocity_a3c89c8cce58126a5670865bb843bd66e}}
|
|
typedef P\+O\+T\+::\+Particle\+Velocity\+Type {\bfseries Velocity\+Type}
|
|
\item
|
|
\mbox{\Hypertarget{classeo_fixed_inertia_weighted_velocity_a3c89c8cce58126a5670865bb843bd66e}\label{classeo_fixed_inertia_weighted_velocity_a3c89c8cce58126a5670865bb843bd66e}}
|
|
typedef P\+O\+T\+::\+Particle\+Velocity\+Type {\bfseries Velocity\+Type}
|
|
\end{DoxyCompactItemize}
|
|
\doxysubsection*{Public Member Functions}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
\mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity_a8b63ca5da05f13ade67b0fc0c34cb1f4}{eo\+Fixed\+Inertia\+Weighted\+Velocity}} (\mbox{\hyperlink{classeo_topology}{eo\+Topology}}$<$ P\+OT $>$ \&\+\_\+topology, const Velocity\+Type \&\+\_\+weight, const Velocity\+Type \&\+\_\+c1, const Velocity\+Type \&\+\_\+c2, \mbox{\hyperlink{classeo_real_vector_bounds}{eo\+Real\+Vector\+Bounds}} \&\+\_\+bounds, \mbox{\hyperlink{classeo_real_bound_modifier}{eo\+Real\+Bound\+Modifier}} \&\+\_\+bnds\+Modifier, \mbox{\hyperlink{classeo_rng}{eo\+Rng}} \&\+\_\+gen=rng)
|
|
\item
|
|
\mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity_ae4ecb9daba6fb62829152403793b8311}{eo\+Fixed\+Inertia\+Weighted\+Velocity}} (\mbox{\hyperlink{classeo_topology}{eo\+Topology}}$<$ P\+OT $>$ \&\+\_\+topology, const Velocity\+Type \&\+\_\+weight, const Velocity\+Type \&\+\_\+c1, const Velocity\+Type \&\+\_\+c2, \mbox{\hyperlink{classeo_real_vector_bounds}{eo\+Real\+Vector\+Bounds}} \&\+\_\+bounds, \mbox{\hyperlink{classeo_rng}{eo\+Rng}} \&\+\_\+gen=rng)
|
|
\item
|
|
\mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity_a3d630be32c21849d2407aa33799dc520}{eo\+Fixed\+Inertia\+Weighted\+Velocity}} (\mbox{\hyperlink{classeo_topology}{eo\+Topology}}$<$ P\+OT $>$ \&\+\_\+topology, const Velocity\+Type \&\+\_\+weight, const Velocity\+Type \&\+\_\+c1, const Velocity\+Type \&\+\_\+c2, \mbox{\hyperlink{classeo_rng}{eo\+Rng}} \&\+\_\+gen=rng)
|
|
\item
|
|
void \mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity_aca1abeb32ba0ba3fc03d037ee6ee72ad}{operator()}} (P\+OT \&\+\_\+po, unsigned \+\_\+indice)
|
|
\item
|
|
void \mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity_a8b26d61003f0713edc36cff5c5eab34e}{update\+Neighborhood}} (P\+OT \&\+\_\+po, unsigned \+\_\+indice)
|
|
\item
|
|
\mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity_a8b63ca5da05f13ade67b0fc0c34cb1f4}{eo\+Fixed\+Inertia\+Weighted\+Velocity}} (\mbox{\hyperlink{classeo_topology}{eo\+Topology}}$<$ P\+OT $>$ \&\+\_\+topology, const Velocity\+Type \&\+\_\+weight, const Velocity\+Type \&\+\_\+c1, const Velocity\+Type \&\+\_\+c2, \mbox{\hyperlink{classeo_real_vector_bounds}{eo\+Real\+Vector\+Bounds}} \&\+\_\+bounds, \mbox{\hyperlink{classeo_real_bound_modifier}{eo\+Real\+Bound\+Modifier}} \&\+\_\+bnds\+Modifier, \mbox{\hyperlink{classeo_rng}{eo\+Rng}} \&\+\_\+gen=rng)
|
|
\item
|
|
\mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity_ae4ecb9daba6fb62829152403793b8311}{eo\+Fixed\+Inertia\+Weighted\+Velocity}} (\mbox{\hyperlink{classeo_topology}{eo\+Topology}}$<$ P\+OT $>$ \&\+\_\+topology, const Velocity\+Type \&\+\_\+weight, const Velocity\+Type \&\+\_\+c1, const Velocity\+Type \&\+\_\+c2, \mbox{\hyperlink{classeo_real_vector_bounds}{eo\+Real\+Vector\+Bounds}} \&\+\_\+bounds, \mbox{\hyperlink{classeo_rng}{eo\+Rng}} \&\+\_\+gen=rng)
|
|
\item
|
|
\mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity_a3d630be32c21849d2407aa33799dc520}{eo\+Fixed\+Inertia\+Weighted\+Velocity}} (\mbox{\hyperlink{classeo_topology}{eo\+Topology}}$<$ P\+OT $>$ \&\+\_\+topology, const Velocity\+Type \&\+\_\+weight, const Velocity\+Type \&\+\_\+c1, const Velocity\+Type \&\+\_\+c2, \mbox{\hyperlink{classeo_rng}{eo\+Rng}} \&\+\_\+gen=rng)
|
|
\item
|
|
void \mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity_aca1abeb32ba0ba3fc03d037ee6ee72ad}{operator()}} (P\+OT \&\+\_\+po, unsigned \+\_\+indice)
|
|
\item
|
|
void \mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity_a8b26d61003f0713edc36cff5c5eab34e}{update\+Neighborhood}} (P\+OT \&\+\_\+po, unsigned \+\_\+indice)
|
|
\end{DoxyCompactItemize}
|
|
\doxysubsection*{Protected Attributes}
|
|
\begin{DoxyCompactItemize}
|
|
\item
|
|
\mbox{\Hypertarget{classeo_fixed_inertia_weighted_velocity_ae897a3d283ee3c1569a18670886f47e0}\label{classeo_fixed_inertia_weighted_velocity_ae897a3d283ee3c1569a18670886f47e0}}
|
|
\mbox{\hyperlink{classeo_topology}{eo\+Topology}}$<$ P\+OT $>$ \& {\bfseries topology}
|
|
\item
|
|
\mbox{\Hypertarget{classeo_fixed_inertia_weighted_velocity_a748ef6af5493ef12608af8fd82cd43d5}\label{classeo_fixed_inertia_weighted_velocity_a748ef6af5493ef12608af8fd82cd43d5}}
|
|
const Velocity\+Type \& {\bfseries c1}
|
|
\item
|
|
\mbox{\Hypertarget{classeo_fixed_inertia_weighted_velocity_a7b866711f479472c357b4009d31af504}\label{classeo_fixed_inertia_weighted_velocity_a7b866711f479472c357b4009d31af504}}
|
|
const Velocity\+Type \& {\bfseries c2}
|
|
\item
|
|
\mbox{\Hypertarget{classeo_fixed_inertia_weighted_velocity_aa1afc9fbef9d9eddddb177293e8964b6}\label{classeo_fixed_inertia_weighted_velocity_aa1afc9fbef9d9eddddb177293e8964b6}}
|
|
const Velocity\+Type \& {\bfseries weight}
|
|
\item
|
|
\mbox{\Hypertarget{classeo_fixed_inertia_weighted_velocity_aecf99353ec4d23ba7e44bc1b7ddaecc1}\label{classeo_fixed_inertia_weighted_velocity_aecf99353ec4d23ba7e44bc1b7ddaecc1}}
|
|
\mbox{\hyperlink{classeo_rng}{eo\+Rng}} \& {\bfseries gen}
|
|
\item
|
|
\mbox{\Hypertarget{classeo_fixed_inertia_weighted_velocity_a51c378e76ad1e085babbd7b520b68008}\label{classeo_fixed_inertia_weighted_velocity_a51c378e76ad1e085babbd7b520b68008}}
|
|
\mbox{\hyperlink{classeo_real_vector_bounds}{eo\+Real\+Vector\+Bounds}} \& {\bfseries bounds}
|
|
\item
|
|
\mbox{\Hypertarget{classeo_fixed_inertia_weighted_velocity_ab50b36db763503a5684848a9d6f7582e}\label{classeo_fixed_inertia_weighted_velocity_ab50b36db763503a5684848a9d6f7582e}}
|
|
\mbox{\hyperlink{classeo_real_bound_modifier}{eo\+Real\+Bound\+Modifier}} \& {\bfseries bnds\+Modifier}
|
|
\item
|
|
\mbox{\Hypertarget{classeo_fixed_inertia_weighted_velocity_a0153d2a118a11a59d192b364ed054231}\label{classeo_fixed_inertia_weighted_velocity_a0153d2a118a11a59d192b364ed054231}}
|
|
\mbox{\hyperlink{classeo_dummy_real_bound_modifier}{eo\+Dummy\+Real\+Bound\+Modifier}} {\bfseries dummy\+Modifier}
|
|
\end{DoxyCompactItemize}
|
|
\doxysubsection*{Additional Inherited Members}
|
|
|
|
|
|
\doxysubsection{Detailed Description}
|
|
\subsubsection*{template$<$class P\+OT$>$\newline
|
|
class eo\+Fixed\+Inertia\+Weighted\+Velocity$<$ P\+O\+T $>$}
|
|
|
|
Inertia weight based velocity performer. Derivated from abstract \mbox{\hyperlink{classeo_velocity}{eo\+Velocity}}, At step t+1 \+: v(t+1)= w $\ast$ v(t) + c1$\ast$r1 $\ast$ (xbest(t)-\/x(t)) + c2$\ast$r2 $\ast$ (gbest(t) -\/ x(t)) w is fixed for all the particles and all the generations. (ci and w given; Ri chosen at random $\ast$ in \mbox{[}0;1\mbox{]})
|
|
|
|
\doxysubsection{Constructor \& Destructor Documentation}
|
|
\mbox{\Hypertarget{classeo_fixed_inertia_weighted_velocity_a8b63ca5da05f13ade67b0fc0c34cb1f4}\label{classeo_fixed_inertia_weighted_velocity_a8b63ca5da05f13ade67b0fc0c34cb1f4}}
|
|
\index{eoFixedInertiaWeightedVelocity$<$ POT $>$@{eoFixedInertiaWeightedVelocity$<$ POT $>$}!eoFixedInertiaWeightedVelocity@{eoFixedInertiaWeightedVelocity}}
|
|
\index{eoFixedInertiaWeightedVelocity@{eoFixedInertiaWeightedVelocity}!eoFixedInertiaWeightedVelocity$<$ POT $>$@{eoFixedInertiaWeightedVelocity$<$ POT $>$}}
|
|
\doxysubsubsection{\texorpdfstring{eoFixedInertiaWeightedVelocity()}{eoFixedInertiaWeightedVelocity()}\hspace{0.1cm}{\footnotesize\ttfamily [1/6]}}
|
|
{\footnotesize\ttfamily template$<$class P\+OT $>$ \\
|
|
\mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity}{eo\+Fixed\+Inertia\+Weighted\+Velocity}}$<$ P\+OT $>$\+::\mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity}{eo\+Fixed\+Inertia\+Weighted\+Velocity}} (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classeo_topology}{eo\+Topology}}$<$ P\+OT $>$ \&}]{\+\_\+topology, }\item[{const Velocity\+Type \&}]{\+\_\+weight, }\item[{const Velocity\+Type \&}]{\+\_\+c1, }\item[{const Velocity\+Type \&}]{\+\_\+c2, }\item[{\mbox{\hyperlink{classeo_real_vector_bounds}{eo\+Real\+Vector\+Bounds}} \&}]{\+\_\+bounds, }\item[{\mbox{\hyperlink{classeo_real_bound_modifier}{eo\+Real\+Bound\+Modifier}} \&}]{\+\_\+bnds\+Modifier, }\item[{\mbox{\hyperlink{classeo_rng}{eo\+Rng}} \&}]{\+\_\+gen = {\ttfamily rng} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
|
|
|
|
Full constructor\+: Bounds and bound modifier required
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em \+\_\+topology} & -\/ The topology to get the global/local/other best \\
|
|
\hline
|
|
{\em \+\_\+weight} & -\/ The weight with type Velocity\+Type \\
|
|
\hline
|
|
{\em \+\_\+c1} & -\/ The first learning factor used for the particle\textquotesingle{}s best. Type must be P\+O\+T\+::\+Particle\+Velocity\+Type \\
|
|
\hline
|
|
{\em \+\_\+c2} & -\/ The second learning factor used for the local/global best(s). Type must be P\+O\+T\+::\+Particle\+Velocity\+Type \\
|
|
\hline
|
|
{\em \+\_\+bounds} & -\/ An \mbox{\hyperlink{classeo_real_base_vector_bounds}{eo\+Real\+Base\+Vector\+Bounds}}\+: real bounds for real velocities. If the velocities are not real, they won\textquotesingle{}t be bounded by default. Should have a eo\+Bounds ? \\
|
|
\hline
|
|
{\em \+\_\+bnds\+Modifier} & -\/ An \mbox{\hyperlink{classeo_real_bound_modifier}{eo\+Real\+Bound\+Modifier}} used to modify the bounds (for real bounds only). \\
|
|
\hline
|
|
{\em \+\_\+gen} & -\/ The eo random generator, default=rng \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
\mbox{\Hypertarget{classeo_fixed_inertia_weighted_velocity_ae4ecb9daba6fb62829152403793b8311}\label{classeo_fixed_inertia_weighted_velocity_ae4ecb9daba6fb62829152403793b8311}}
|
|
\index{eoFixedInertiaWeightedVelocity$<$ POT $>$@{eoFixedInertiaWeightedVelocity$<$ POT $>$}!eoFixedInertiaWeightedVelocity@{eoFixedInertiaWeightedVelocity}}
|
|
\index{eoFixedInertiaWeightedVelocity@{eoFixedInertiaWeightedVelocity}!eoFixedInertiaWeightedVelocity$<$ POT $>$@{eoFixedInertiaWeightedVelocity$<$ POT $>$}}
|
|
\doxysubsubsection{\texorpdfstring{eoFixedInertiaWeightedVelocity()}{eoFixedInertiaWeightedVelocity()}\hspace{0.1cm}{\footnotesize\ttfamily [2/6]}}
|
|
{\footnotesize\ttfamily template$<$class P\+OT $>$ \\
|
|
\mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity}{eo\+Fixed\+Inertia\+Weighted\+Velocity}}$<$ P\+OT $>$\+::\mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity}{eo\+Fixed\+Inertia\+Weighted\+Velocity}} (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classeo_topology}{eo\+Topology}}$<$ P\+OT $>$ \&}]{\+\_\+topology, }\item[{const Velocity\+Type \&}]{\+\_\+weight, }\item[{const Velocity\+Type \&}]{\+\_\+c1, }\item[{const Velocity\+Type \&}]{\+\_\+c2, }\item[{\mbox{\hyperlink{classeo_real_vector_bounds}{eo\+Real\+Vector\+Bounds}} \&}]{\+\_\+bounds, }\item[{\mbox{\hyperlink{classeo_rng}{eo\+Rng}} \&}]{\+\_\+gen = {\ttfamily rng} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
|
|
|
|
Constructor\+: No bound updater required $<$-\/$>$ fixed bounds
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em \+\_\+topology} & -\/ The topology to get the global/local/other best \\
|
|
\hline
|
|
{\em \+\_\+weight} & -\/ The weight with type Velocity\+Type \\
|
|
\hline
|
|
{\em \+\_\+c1} & -\/ The first learning factor used for the particle\textquotesingle{}s best. Type must be P\+O\+T\+::\+Particle\+Velocity\+Type \\
|
|
\hline
|
|
{\em \+\_\+c2} & -\/ The second learning factor used for the local/global best(s). Type must be P\+O\+T\+::\+Particle\+Velocity\+Type \\
|
|
\hline
|
|
{\em \+\_\+bounds} & -\/ An \mbox{\hyperlink{classeo_real_base_vector_bounds}{eo\+Real\+Base\+Vector\+Bounds}}\+: real bounds for real velocities. If the velocities are not real, they won\textquotesingle{}t be bounded by default. Should have a eo\+Bounds ? \\
|
|
\hline
|
|
{\em \+\_\+gen} & -\/ The eo random generator, default=rng \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
\mbox{\Hypertarget{classeo_fixed_inertia_weighted_velocity_a3d630be32c21849d2407aa33799dc520}\label{classeo_fixed_inertia_weighted_velocity_a3d630be32c21849d2407aa33799dc520}}
|
|
\index{eoFixedInertiaWeightedVelocity$<$ POT $>$@{eoFixedInertiaWeightedVelocity$<$ POT $>$}!eoFixedInertiaWeightedVelocity@{eoFixedInertiaWeightedVelocity}}
|
|
\index{eoFixedInertiaWeightedVelocity@{eoFixedInertiaWeightedVelocity}!eoFixedInertiaWeightedVelocity$<$ POT $>$@{eoFixedInertiaWeightedVelocity$<$ POT $>$}}
|
|
\doxysubsubsection{\texorpdfstring{eoFixedInertiaWeightedVelocity()}{eoFixedInertiaWeightedVelocity()}\hspace{0.1cm}{\footnotesize\ttfamily [3/6]}}
|
|
{\footnotesize\ttfamily template$<$class P\+OT $>$ \\
|
|
\mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity}{eo\+Fixed\+Inertia\+Weighted\+Velocity}}$<$ P\+OT $>$\+::\mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity}{eo\+Fixed\+Inertia\+Weighted\+Velocity}} (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classeo_topology}{eo\+Topology}}$<$ P\+OT $>$ \&}]{\+\_\+topology, }\item[{const Velocity\+Type \&}]{\+\_\+weight, }\item[{const Velocity\+Type \&}]{\+\_\+c1, }\item[{const Velocity\+Type \&}]{\+\_\+c2, }\item[{\mbox{\hyperlink{classeo_rng}{eo\+Rng}} \&}]{\+\_\+gen = {\ttfamily rng} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
|
|
|
|
Constructor\+: Neither bounds nor bound updater required $<$-\/$>$ free velocity
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em \+\_\+topology} & -\/ The topology to get the global/local/other best \\
|
|
\hline
|
|
{\em \+\_\+weight} & -\/ The weight with type Velocity\+Type \\
|
|
\hline
|
|
{\em \+\_\+c1} & -\/ The first learning factor used for the particle\textquotesingle{}s best. Type must be P\+O\+T\+::\+Particle\+Velocity\+Type \\
|
|
\hline
|
|
{\em \+\_\+c2} & -\/ The second learning factor used for the local/global best(s). Type must be P\+O\+T\+::\+Particle\+Velocity\+Type \\
|
|
\hline
|
|
{\em \+\_\+gen} & -\/ The eo random generator, default=rng \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
\mbox{\Hypertarget{classeo_fixed_inertia_weighted_velocity_a8b63ca5da05f13ade67b0fc0c34cb1f4}\label{classeo_fixed_inertia_weighted_velocity_a8b63ca5da05f13ade67b0fc0c34cb1f4}}
|
|
\index{eoFixedInertiaWeightedVelocity$<$ POT $>$@{eoFixedInertiaWeightedVelocity$<$ POT $>$}!eoFixedInertiaWeightedVelocity@{eoFixedInertiaWeightedVelocity}}
|
|
\index{eoFixedInertiaWeightedVelocity@{eoFixedInertiaWeightedVelocity}!eoFixedInertiaWeightedVelocity$<$ POT $>$@{eoFixedInertiaWeightedVelocity$<$ POT $>$}}
|
|
\doxysubsubsection{\texorpdfstring{eoFixedInertiaWeightedVelocity()}{eoFixedInertiaWeightedVelocity()}\hspace{0.1cm}{\footnotesize\ttfamily [4/6]}}
|
|
{\footnotesize\ttfamily template$<$class P\+OT $>$ \\
|
|
\mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity}{eo\+Fixed\+Inertia\+Weighted\+Velocity}}$<$ P\+OT $>$\+::\mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity}{eo\+Fixed\+Inertia\+Weighted\+Velocity}} (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classeo_topology}{eo\+Topology}}$<$ P\+OT $>$ \&}]{\+\_\+topology, }\item[{const Velocity\+Type \&}]{\+\_\+weight, }\item[{const Velocity\+Type \&}]{\+\_\+c1, }\item[{const Velocity\+Type \&}]{\+\_\+c2, }\item[{\mbox{\hyperlink{classeo_real_vector_bounds}{eo\+Real\+Vector\+Bounds}} \&}]{\+\_\+bounds, }\item[{\mbox{\hyperlink{classeo_real_bound_modifier}{eo\+Real\+Bound\+Modifier}} \&}]{\+\_\+bnds\+Modifier, }\item[{\mbox{\hyperlink{classeo_rng}{eo\+Rng}} \&}]{\+\_\+gen = {\ttfamily rng} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
|
|
|
|
Full constructor\+: Bounds and bound modifier required
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em \+\_\+topology} & -\/ The topology to get the global/local/other best \\
|
|
\hline
|
|
{\em \+\_\+weight} & -\/ The weight with type Velocity\+Type \\
|
|
\hline
|
|
{\em \+\_\+c1} & -\/ The first learning factor used for the particle\textquotesingle{}s best. Type must be P\+O\+T\+::\+Particle\+Velocity\+Type \\
|
|
\hline
|
|
{\em \+\_\+c2} & -\/ The second learning factor used for the local/global best(s). Type must be P\+O\+T\+::\+Particle\+Velocity\+Type \\
|
|
\hline
|
|
{\em \+\_\+bounds} & -\/ An \mbox{\hyperlink{classeo_real_base_vector_bounds}{eo\+Real\+Base\+Vector\+Bounds}}\+: real bounds for real velocities. If the velocities are not real, they won\textquotesingle{}t be bounded by default. Should have a eo\+Bounds ? \\
|
|
\hline
|
|
{\em \+\_\+bnds\+Modifier} & -\/ An \mbox{\hyperlink{classeo_real_bound_modifier}{eo\+Real\+Bound\+Modifier}} used to modify the bounds (for real bounds only). \\
|
|
\hline
|
|
{\em \+\_\+gen} & -\/ The eo random generator, default=rng \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
\mbox{\Hypertarget{classeo_fixed_inertia_weighted_velocity_ae4ecb9daba6fb62829152403793b8311}\label{classeo_fixed_inertia_weighted_velocity_ae4ecb9daba6fb62829152403793b8311}}
|
|
\index{eoFixedInertiaWeightedVelocity$<$ POT $>$@{eoFixedInertiaWeightedVelocity$<$ POT $>$}!eoFixedInertiaWeightedVelocity@{eoFixedInertiaWeightedVelocity}}
|
|
\index{eoFixedInertiaWeightedVelocity@{eoFixedInertiaWeightedVelocity}!eoFixedInertiaWeightedVelocity$<$ POT $>$@{eoFixedInertiaWeightedVelocity$<$ POT $>$}}
|
|
\doxysubsubsection{\texorpdfstring{eoFixedInertiaWeightedVelocity()}{eoFixedInertiaWeightedVelocity()}\hspace{0.1cm}{\footnotesize\ttfamily [5/6]}}
|
|
{\footnotesize\ttfamily template$<$class P\+OT $>$ \\
|
|
\mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity}{eo\+Fixed\+Inertia\+Weighted\+Velocity}}$<$ P\+OT $>$\+::\mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity}{eo\+Fixed\+Inertia\+Weighted\+Velocity}} (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classeo_topology}{eo\+Topology}}$<$ P\+OT $>$ \&}]{\+\_\+topology, }\item[{const Velocity\+Type \&}]{\+\_\+weight, }\item[{const Velocity\+Type \&}]{\+\_\+c1, }\item[{const Velocity\+Type \&}]{\+\_\+c2, }\item[{\mbox{\hyperlink{classeo_real_vector_bounds}{eo\+Real\+Vector\+Bounds}} \&}]{\+\_\+bounds, }\item[{\mbox{\hyperlink{classeo_rng}{eo\+Rng}} \&}]{\+\_\+gen = {\ttfamily rng} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
|
|
|
|
Constructor\+: No bound updater required $<$-\/$>$ fixed bounds
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em \+\_\+topology} & -\/ The topology to get the global/local/other best \\
|
|
\hline
|
|
{\em \+\_\+weight} & -\/ The weight with type Velocity\+Type \\
|
|
\hline
|
|
{\em \+\_\+c1} & -\/ The first learning factor used for the particle\textquotesingle{}s best. Type must be P\+O\+T\+::\+Particle\+Velocity\+Type \\
|
|
\hline
|
|
{\em \+\_\+c2} & -\/ The second learning factor used for the local/global best(s). Type must be P\+O\+T\+::\+Particle\+Velocity\+Type \\
|
|
\hline
|
|
{\em \+\_\+bounds} & -\/ An \mbox{\hyperlink{classeo_real_base_vector_bounds}{eo\+Real\+Base\+Vector\+Bounds}}\+: real bounds for real velocities. If the velocities are not real, they won\textquotesingle{}t be bounded by default. Should have a eo\+Bounds ? \\
|
|
\hline
|
|
{\em \+\_\+gen} & -\/ The eo random generator, default=rng \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
\mbox{\Hypertarget{classeo_fixed_inertia_weighted_velocity_a3d630be32c21849d2407aa33799dc520}\label{classeo_fixed_inertia_weighted_velocity_a3d630be32c21849d2407aa33799dc520}}
|
|
\index{eoFixedInertiaWeightedVelocity$<$ POT $>$@{eoFixedInertiaWeightedVelocity$<$ POT $>$}!eoFixedInertiaWeightedVelocity@{eoFixedInertiaWeightedVelocity}}
|
|
\index{eoFixedInertiaWeightedVelocity@{eoFixedInertiaWeightedVelocity}!eoFixedInertiaWeightedVelocity$<$ POT $>$@{eoFixedInertiaWeightedVelocity$<$ POT $>$}}
|
|
\doxysubsubsection{\texorpdfstring{eoFixedInertiaWeightedVelocity()}{eoFixedInertiaWeightedVelocity()}\hspace{0.1cm}{\footnotesize\ttfamily [6/6]}}
|
|
{\footnotesize\ttfamily template$<$class P\+OT $>$ \\
|
|
\mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity}{eo\+Fixed\+Inertia\+Weighted\+Velocity}}$<$ P\+OT $>$\+::\mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity}{eo\+Fixed\+Inertia\+Weighted\+Velocity}} (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classeo_topology}{eo\+Topology}}$<$ P\+OT $>$ \&}]{\+\_\+topology, }\item[{const Velocity\+Type \&}]{\+\_\+weight, }\item[{const Velocity\+Type \&}]{\+\_\+c1, }\item[{const Velocity\+Type \&}]{\+\_\+c2, }\item[{\mbox{\hyperlink{classeo_rng}{eo\+Rng}} \&}]{\+\_\+gen = {\ttfamily rng} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
|
|
|
|
Constructor\+: Neither bounds nor bound updater required $<$-\/$>$ free velocity
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em \+\_\+topology} & -\/ The topology to get the global/local/other best \\
|
|
\hline
|
|
{\em \+\_\+weight} & -\/ The weight with type Velocity\+Type \\
|
|
\hline
|
|
{\em \+\_\+c1} & -\/ The first learning factor used for the particle\textquotesingle{}s best. Type must be P\+O\+T\+::\+Particle\+Velocity\+Type \\
|
|
\hline
|
|
{\em \+\_\+c2} & -\/ The second learning factor used for the local/global best(s). Type must be P\+O\+T\+::\+Particle\+Velocity\+Type \\
|
|
\hline
|
|
{\em \+\_\+gen} & -\/ The eo random generator, default=rng \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
|
|
\doxysubsection{Member Function Documentation}
|
|
\mbox{\Hypertarget{classeo_fixed_inertia_weighted_velocity_aca1abeb32ba0ba3fc03d037ee6ee72ad}\label{classeo_fixed_inertia_weighted_velocity_aca1abeb32ba0ba3fc03d037ee6ee72ad}}
|
|
\index{eoFixedInertiaWeightedVelocity$<$ POT $>$@{eoFixedInertiaWeightedVelocity$<$ POT $>$}!operator()@{operator()}}
|
|
\index{operator()@{operator()}!eoFixedInertiaWeightedVelocity$<$ POT $>$@{eoFixedInertiaWeightedVelocity$<$ POT $>$}}
|
|
\doxysubsubsection{\texorpdfstring{operator()()}{operator()()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
|
|
{\footnotesize\ttfamily template$<$class P\+OT $>$ \\
|
|
void \mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity}{eo\+Fixed\+Inertia\+Weighted\+Velocity}}$<$ P\+OT $>$\+::operator() (\begin{DoxyParamCaption}\item[{P\+OT \&}]{\+\_\+po, }\item[{unsigned}]{\+\_\+indice }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}
|
|
|
|
Evaluate the new velocities of the given particle. Need an indice to identify the particle into the topology. Steps are \+:
|
|
\begin{DoxyItemize}
|
|
\item evaluate r1 and r2, the customed learning factors
|
|
\item adjust the size of the bounds (even if dummy)
|
|
\item modify the bounds with the bounds modifier (use the dummy modifier if there\textquotesingle{}s no modifier provided)
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em \+\_\+po} & -\/ A particle \\
|
|
\hline
|
|
{\em \+\_\+indice} & -\/ The indice (into the topology) of the given particle \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
\end{DoxyItemize}
|
|
|
|
Implements \mbox{\hyperlink{classeo_b_f_aa03c40b95210569b826df79a2237a0d0}{eo\+B\+F$<$ P\+O\+T \&, unsigned, void $>$}}.
|
|
|
|
\mbox{\Hypertarget{classeo_fixed_inertia_weighted_velocity_aca1abeb32ba0ba3fc03d037ee6ee72ad}\label{classeo_fixed_inertia_weighted_velocity_aca1abeb32ba0ba3fc03d037ee6ee72ad}}
|
|
\index{eoFixedInertiaWeightedVelocity$<$ POT $>$@{eoFixedInertiaWeightedVelocity$<$ POT $>$}!operator()@{operator()}}
|
|
\index{operator()@{operator()}!eoFixedInertiaWeightedVelocity$<$ POT $>$@{eoFixedInertiaWeightedVelocity$<$ POT $>$}}
|
|
\doxysubsubsection{\texorpdfstring{operator()()}{operator()()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
|
|
{\footnotesize\ttfamily template$<$class P\+OT $>$ \\
|
|
void \mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity}{eo\+Fixed\+Inertia\+Weighted\+Velocity}}$<$ P\+OT $>$\+::operator() (\begin{DoxyParamCaption}\item[{P\+OT \&}]{\+\_\+po, }\item[{unsigned}]{\+\_\+indice }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}
|
|
|
|
Evaluate the new velocities of the given particle. Need an indice to identify the particle into the topology. Steps are \+:
|
|
\begin{DoxyItemize}
|
|
\item evaluate r1 and r2, the customed learning factors
|
|
\item adjust the size of the bounds (even if dummy)
|
|
\item modify the bounds with the bounds modifier (use the dummy modifier if there\textquotesingle{}s no modifier provided)
|
|
\begin{DoxyParams}{Parameters}
|
|
{\em \+\_\+po} & -\/ A particle \\
|
|
\hline
|
|
{\em \+\_\+indice} & -\/ The indice (into the topology) of the given particle \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
\end{DoxyItemize}
|
|
|
|
Implements \mbox{\hyperlink{classeo_b_f_aa03c40b95210569b826df79a2237a0d0}{eo\+B\+F$<$ P\+O\+T \&, unsigned, void $>$}}.
|
|
|
|
\mbox{\Hypertarget{classeo_fixed_inertia_weighted_velocity_a8b26d61003f0713edc36cff5c5eab34e}\label{classeo_fixed_inertia_weighted_velocity_a8b26d61003f0713edc36cff5c5eab34e}}
|
|
\index{eoFixedInertiaWeightedVelocity$<$ POT $>$@{eoFixedInertiaWeightedVelocity$<$ POT $>$}!updateNeighborhood@{updateNeighborhood}}
|
|
\index{updateNeighborhood@{updateNeighborhood}!eoFixedInertiaWeightedVelocity$<$ POT $>$@{eoFixedInertiaWeightedVelocity$<$ POT $>$}}
|
|
\doxysubsubsection{\texorpdfstring{updateNeighborhood()}{updateNeighborhood()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
|
|
{\footnotesize\ttfamily template$<$class P\+OT $>$ \\
|
|
void \mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity}{eo\+Fixed\+Inertia\+Weighted\+Velocity}}$<$ P\+OT $>$\+::update\+Neighborhood (\begin{DoxyParamCaption}\item[{P\+OT \&}]{\+\_\+po, }\item[{unsigned}]{\+\_\+indice }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}
|
|
|
|
Update the neighborhood.
|
|
|
|
Reimplemented from \mbox{\hyperlink{classeo_velocity_a5e2310d90e8bc72782f4c865706b4549}{eo\+Velocity$<$ P\+O\+T $>$}}.
|
|
|
|
\mbox{\Hypertarget{classeo_fixed_inertia_weighted_velocity_a8b26d61003f0713edc36cff5c5eab34e}\label{classeo_fixed_inertia_weighted_velocity_a8b26d61003f0713edc36cff5c5eab34e}}
|
|
\index{eoFixedInertiaWeightedVelocity$<$ POT $>$@{eoFixedInertiaWeightedVelocity$<$ POT $>$}!updateNeighborhood@{updateNeighborhood}}
|
|
\index{updateNeighborhood@{updateNeighborhood}!eoFixedInertiaWeightedVelocity$<$ POT $>$@{eoFixedInertiaWeightedVelocity$<$ POT $>$}}
|
|
\doxysubsubsection{\texorpdfstring{updateNeighborhood()}{updateNeighborhood()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
|
|
{\footnotesize\ttfamily template$<$class P\+OT $>$ \\
|
|
void \mbox{\hyperlink{classeo_fixed_inertia_weighted_velocity}{eo\+Fixed\+Inertia\+Weighted\+Velocity}}$<$ P\+OT $>$\+::update\+Neighborhood (\begin{DoxyParamCaption}\item[{P\+OT \&}]{\+\_\+po, }\item[{unsigned}]{\+\_\+indice }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}
|
|
|
|
Update the neighborhood.
|
|
|
|
Reimplemented from \mbox{\hyperlink{classeo_velocity_a5e2310d90e8bc72782f4c865706b4549}{eo\+Velocity$<$ P\+O\+T $>$}}.
|
|
|
|
|
|
|
|
The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
|
|
\item
|
|
deprecated/eo/src/eo\+Fixed\+Inertia\+Weighted\+Velocity.\+h\end{DoxyCompactItemize}
|