JJ / 2021-cec-deep-g-prop

Deep-G-Prop for the new edition of CEC in 2021
GNU General Public License v3.0
1 stars 1 forks source link

Adapt Algorithm 1 to the specific case #24

Closed JJ closed 3 years ago

JJ commented 3 years ago

Probably it should be eliminated already, but if it's not, it should state clearly and succinctly (to be expanded in the section)

lulivi commented 3 years ago

Do we want to keep the section then? You are referring to this, right?

The general the algorithm will proceed like the \autoref{alg:ga} shows.

\begin{algorithm}
  \caption{Genetic Algorithm loop}\label{alg:ga}
  \begin{algorithmic}[1]
    \State \textit{evaluate initial population}
    \While{\textit{max fit is less than ideal and there are generations left}}
    \If{\textit{max fit hasn't improved in some generations}}
    \State \textit{Stop algorithm}
    \EndIf
    \State \textit{select the offspring from the best population individuals}
    \State \textit{apply crossover to the offspring}
    \State \textit{apply mutations to the offspring}
    \State \textit{replace the worst population individuals with the modified offspring}
    \EndWhile
  \end{algorithmic}
\end{algorithm}