FUNCTIONS IN GENETIC ALGORITHM
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Lorenzo Pasinato
el 13 de Dic. de 2022
Comentada: Star Strider
el 14 de Dic. de 2022
Can I apply the Genetic Algorithm to a fitness function that calls other functions? and global variables are a problem for genetic algorithm?
0 comentarios
Respuesta aceptada
Star Strider
el 13 de Dic. de 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 comentarios
Star Strider
el 14 de Dic. de 2022
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.
Más respuestas (0)
Ver también
Categorías
Más información sobre Genetic Algorithm en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!