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?

采纳的回答

Star Strider
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 个评论
Star Strider
Star Strider 2022-12-14
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Genetic Algorithm 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by