FUNCTIONS IN GENETIC ALGORITHM
1 次查看(过去 30 天)
显示 更早的评论
Can I apply the Genetic Algorithm to a fitness function that calls other functions? and global variables are a problem for genetic algorithm?
0 个评论
采纳的回答
Star Strider
2022-12-13
‘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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Genetic Algorithm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!