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 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