필터 지우기
필터 지우기

Genetic algorithm : Best score is not equal to fitness

조회 수: 2 (최근 30일)
Boris Huljak
Boris Huljak 2018년 6월 4일
댓글: Geoff Hayes 2018년 6월 4일
Hello,
I am currently using a genetical algorithm, and using a output fuction, I display the best state.Score value at each iterations.
Once I stop the algorithm, I get my element (its genome) with my best score. The thing is, if I use my fitnessfunction on that element, outside the genetic algorithm framework (so, using something like FitnessFunction(element)) . I get a value that is slightly different from the state.Score, even though this element is the best one.
I would like to know if anyone knows how can that difference be, is it matlab defining the score using another definition than the fitness ?
Thank you
  댓글 수: 2
Walter Roberson
Walter Roberson 2018년 6월 4일
Check to see if there is a small constraint violation at that position. Constraint violations introduce a penalty on the score.
Geoff Hayes
Geoff Hayes 2018년 6월 4일
Boris - also, what does slightly different mean?

댓글을 달려면 로그인하십시오.

답변 (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