• 大小: 17KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-08
  • 语言: Matlab
  • 标签: NSGA-3  MATLAB  

资源简介

首先NSGA-III算法沿用了NSGA-II的框架,要弄懂NSGA-III,先要简略地了解NSGA-II,两种算法都是多目标进化算法,大致可以分为两步:第一步是非支配分层,第二步是从最后一个非支配层级中挑选个体进入子代。

资源截图

代码片段和文件信息


% Copyright (c) 2016 Yarpiz (www.yarpiz.com)
% All rights reserved. Please read the “license.txt“ for license terms.

% Project Code: YPEA126
% Project title: Non-dominated Sorting Genetic Algorithm III (NSGA-III)
% Publisher: Yarpiz (www.yarpiz.com)

% Implemented by: S. Mostapha Kalami Heris PhD (member of Yarpiz Team)

% Contact Info: sm.kalami@gmail.com info@yarpiz.com

% base Reference Paper:
% K. Deb and H. Jain “An Evolutionary Many-objective Optimization Algorithm 
% Using Reference-Point-based Nondominated Sorting Approach Part I: Solving
% Problems With Box Constraints“
% in IEEE Transactions on Evolutionary Computation
% vol. 18 no. 4 pp. 577-601 Aug. 2014.

% Reference Papaer URL: http://doi.org/10.1109/TEVC.2013.2281535


function [pop d rho] = AssociateToReferencePoint(pop params)

    Zr = params.Zr;
    nZr = params.nZr;
    
    rho = zeros(1nZr);
    
    d = zeros(numel(pop) nZr);
    
    for i = 1:numel(pop)
        for j= 1:nZr
            w = Zr(:j)/norm(Zr(:j));
            z = pop(i).NormalizedCost;
            d(ij) = norm(z - w‘*z*w);
        end
        
        [dmin jmin] = min(d(i:));
        
        pop(i).AssociatedRef = jmin;
        pop(i).DistanceToAssociatedRef = dmin;
        rho(jmin) = rho(jmin) + 1;
        
    end

end

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        1350  2016-12-12 00:02  YPEA126 NSGA-III\license.txt
     文件        1363  2016-12-12 00:13  YPEA126 NSGA-III\NSGA-III\AssociateToReferencePoint.m
     文件         937  2016-12-12 00:13  YPEA126 NSGA-III\NSGA-III\Crossover.m
     文件         956  2016-12-12 00:13  YPEA126 NSGA-III\NSGA-III\Dominates.m
     文件        1321  2016-12-12 00:13  YPEA126 NSGA-III\NSGA-III\GenerateReferencePoints.m
     文件        1350  2016-12-12 00:02  YPEA126 NSGA-III\NSGA-III\license.txt
     文件         800  2016-12-12 00:12  YPEA126 NSGA-III\NSGA-III\main.m
     文件         949  2016-12-12 00:13  YPEA126 NSGA-III\NSGA-III\MOP2.m
     文件         970  2016-12-12 00:13  YPEA126 NSGA-III\NSGA-III\Mutate.m
     文件        2251  2016-12-12 00:13  YPEA126 NSGA-III\NSGA-III\NonDominatedSorting.m
     文件        1291  2016-12-12 00:13  YPEA126 NSGA-III\NSGA-III\NormalizePopulation.m
     文件        3828  2016-12-12 00:13  YPEA126 NSGA-III\NSGA-III\nsga3.m
     文件        1628  2016-12-12 00:13  YPEA126 NSGA-III\NSGA-III\PerformScalarizing.m
     文件         981  2016-12-12 00:13  YPEA126 NSGA-III\NSGA-III\PlotCosts.m
     文件        2347  2016-12-12 00:13  YPEA126 NSGA-III\NSGA-III\SortAndSelectPopulation.m
     文件        1068  2016-12-12 00:13  YPEA126 NSGA-III\NSGA-III\UpdateIdealPoint.m
     文件         121  2015-08-23 04:35  YPEA126 NSGA-III\NSGA-III\www.yarpiz.com.url
     文件         121  2015-08-23 04:35  YPEA126 NSGA-III\www.yarpiz.com.url
     文件        1333  2016-12-11 12:07  license.txt

评论

共有 条评论