• 大小: 0.01M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-03
  • 语言: Matlab
  • 标签: 其他  

资源简介

基于NSGAII多目标优化Matlab代码.zip

资源截图

代码片段和文件信息

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  MATLAB Code for                                              %
%                                                               %
%  Non-dominated Sorting Genetic Algorithm II (NSGA-II)         %
%  Version 1.0 - April 2010                                     %
%                                                               %
%  Programmed By: S. Mostapha Kalami Heris                      %
%                                                               %
%         e-Mail: sm.kalami@gmail.com                           %
%                 kalami@ee.kntu.ac.ir                          %
%                                                               %
%       Homepage: http://www.kalami.ir                          %
%                                                               %
%  BinaryTournamentSelection.m : implelemnts binary tournament  %
%                                selection                      %
%                                                               %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function p=binarytournament (pop)

    npop=numel(pop);
    
    i=randint(12[1 npop]);
    
    p1=pop(i(1));
    p2=pop(i(2));
    
    if p1.Rank < p2.Rank
        p=p1;
    elseif p1.Rank > p2.Rank
        p=p2;
    else
        if p1.CrowdingDistance>p2.CrowdingDistance
            p=p1;
        else
            p=p2;
        end
    end

end

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-03-31 13:56  基于NSGAII多目标优化Matlab代码\NSGA-II\
     文件        1513  2018-03-31 13:56  基于NSGAII多目标优化Matlab代码\NSGA-II\binarytournament.m
     文件        1242  2018-03-31 13:55  基于NSGAII多目标优化Matlab代码\NSGA-II\cost.m
     文件        1452  2018-03-31 13:55  基于NSGAII多目标优化Matlab代码\NSGA-II\create empty.m
     文件        1357  2018-03-31 13:55  基于NSGAII多目标优化Matlab代码\NSGA-II\crossover.m
     文件        1633  2018-03-31 13:56  基于NSGAII多目标优化Matlab代码\NSGA-II\crowdingdistance.m
     文件        1244  2010-04-26 00:10  基于NSGAII多目标优化Matlab代码\NSGA-II\dominates.m
     文件        1187  2018-03-31 13:56  基于NSGAII多目标优化Matlab代码\NSGA-II\getcosts.m
     文件        1317  2010-04-26 01:13  基于NSGAII多目标优化Matlab代码\NSGA-II\mutate.m
     文件        2488  2018-03-31 13:56  基于NSGAII多目标优化Matlab代码\NSGA-II\nondominatedsorting.m
     文件        3140  2010-04-26 01:13  基于NSGAII多目标优化Matlab代码\NSGA-II\nsga2.m
     文件        1645  2018-03-31 13:57  基于NSGAII多目标优化Matlab代码\NSGA-II\plotfronts.m
     文件        1442  2018-03-31 13:57  基于NSGAII多目标优化Matlab代码\NSGA-II\sortpopulation.m

评论

共有 条评论