Problem with kind of genetic algorithm response
조회 수: 1 (최근 30일)
이전 댓글 표시
I am using the toolbox genetic algorithm of Matlab R2015a version and I am facing a problem with the responses that genetic algorithm is obtaining.
I don't know why all the entries of the optimal vector that ga found are equals, for example, if v is an individual in a local minimum obtained by ga so v=(v1,v2,...,vn) and v1=v2=...=vn. I think that some operator of the genetic algorithm toolbox that I am using has the property to create individuals with equals coordinates and I need to change this property, I would like to create individuals that not have all equal coordinates, I would like the algorithm to be free to create individuals without this property.
I am using the following command line and options:
gaoptions = gaoptimset('CreationFcn',@gacreationlinearfeasible,'TolCon', 1e-6, 'TolFun', 1e-6, 'MutationFcn',@mutationadaptfeasible,'PopulationSize', 50, 'Generations', 50,'InitialPopulation',U0');
U =ga(@(U0) funcaoObjetivo(QP,U0',n),nvars,A,a,[],[],[],[],[],gaoptions);
댓글 수: 0
답변 (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!