regarding ga tool
조회 수: 8 (최근 30일)
이전 댓글 표시
I have a fitness function which takes in input 's' ( where s is a 1 x 12 array and every element of 's' is either a '0' or a '1' and number of '1's is fixed to 5 ) and outputs a real number between 0 and 1. Now, I want to find the string (again of same form as that of 's' with 5 1's and 7 zeroes ) such that the fitness function is maximised. Can, 'gatool' (now coming in Optimtool ) of MATLAB be used for this purpose?
댓글 수: 0
답변 (1개)
Alan Weiss
2012년 6월 6일
This sounds like an integer programming problem. Each variable is bounded below by 0, above by 1, and the sum is fixed at 5.
ga can address mixed integer nonlinear programming problems. It has trouble with nonlinear equality constraints, but there are suggestions for how to address that limitation here.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation
댓글 수: 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!