FUNCTIONS IN GENETIC ALGORITHM

4 ビュー (過去 30 日間)
Lorenzo Pasinato
Lorenzo Pasinato 2022 年 12 月 13 日
コメント済み: Star Strider 2022 年 12 月 14 日
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 件のコメント
Lorenzo Pasinato
Lorenzo Pasinato 2022 年 12 月 14 日
Thank you!
Star Strider
Star Strider 2022 年 12 月 14 日
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGenetic Algorithm についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by