How can I do to change the number of sub-populations for the migration operator?
조회 수: 4 (최근 30일)
이전 댓글 표시
3 Problems in the implementation of GA (Genetic Algorithms) in solving the CAP (Channel Assignment Problem)
I have some questions:
1. How does the setup of the migration operator of GA Matlab library?
2. How can I do to change the number of sub-populations for the migration operator?
3. How can I do, to change the % of mutation of a mutation operator 'custom'?
Mi code:
options = gaoptimset ('PopulationType','custom','PopInitRange',[1;Celdas],...
'PlotFcns',{@gaplotbestf,@gaplotexpectation,@gaplotrange,@gaplotselection,@gaplotstopping,@gaplotscorediversity},...
'Display','final',...
'UseParallel','always',...
'MigrationDirection','both','MigrationFraction',0.2,'MigrationInterval',5);
options = gaoptimset (options,'CreationFcn',@CAP_permutations,...
'SelectionFcn',@selectionroulette,...
'CrossoverFcn',@CAP_Crossover,...
'CrossoverFraction',0.2,...
'MutationFcn',@CAP_Mutation,...
'Generations',100,'PopulationSize',70,...
'StallGenLimit',30,'Vectorized','on');
%%Libreria GA
[x,fval,exitflag,output,population,scores] = ga (FitnessFcn,numberOfVariables,options);
Thanks
Hector R:.
댓글 수: 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!