FUNCTIONS IN GENETIC ALGORITHM
조회 수: 4 (최근 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
Star Strider
2022년 12월 14일
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.
추가 답변 (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!