FUNCTIONS IN GENETIC ALGORITHM

1 visualizzazione (ultimi 30 giorni)
Lorenzo Pasinato
Lorenzo Pasinato il 13 Dic 2022
Commentato: Star Strider il 14 Dic 2022
Can I apply the Genetic Algorithm to a fitness function that calls other functions? and global variables are a problem for genetic algorithm?

Risposta accettata

Star Strider
Star Strider il 13 Dic 2022
Can I apply the Genetic Algorithm to a fitness function that calls other functions?
Yes.
and global variables are a problem for genetic algorithm?
Global variables cause problems regardless of the context, so it is best never to use them. See the documentation on Passing Extra Parameters for the correct method of sharing data between functions.
.
  2 Commenti
Lorenzo Pasinato
Lorenzo Pasinato il 14 Dic 2022
Thank you!
Star Strider
Star Strider il 14 Dic 2022
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by