How can I specify the variables which the genetic algorithm selects to be only whole numbers (using MatLab)?
조회 수: 5 (최근 30일)
이전 댓글 표시
In Matlab GA tool-box, I can set the lower and upper bound of my variables but is it possible to specify the variables that are selected by the tool to be only whole numbers within the lower and upper bound?
댓글 수: 0
답변 (1개)
Walter Roberson
2017년 2월 28일
You put the information after the non-linear constraint function and before the options.
댓글 수: 2
Walter Roberson
2017년 2월 28일
In that case you will need to provide custom population function, custom crossover function, and custom mutation function that just happen to only create intregal members.
참고 항목
카테고리
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!