资源简介
NSGA-II非支配排序遗传算法的matlab实例,完整程序可直接运行
![](http://www.nz998.com/pic/45402.jpg)
代码片段和文件信息
function f = crowding_distance(xproblem)
% This function calculates the crowding distance
[NM] = size(x);
switch problem
case 1
M = 2;
V = 6;
case 2
M = 3;
V = 12;
end
% Crowding distance for each front
for i = 1 : length(F(front).f)
y(i:) = x(F(front).f(i):);
end
for i = 1 : M
[sorted(i).individualsorted(i).index] = sort(y(:V + i));
distance(sorted(i).index(1)).individual = Inf;
distance(sorted(i).index(length(sorted(i).index))).individual = Inf;
end
[numlen] = size(y);
% Initialize all the distance of individuals as zero.
for i = 1 : M
for j = 2 : num - 1
distance(j).individual = 0;
end
objective(i).range = ...
sorted(i).individual(length(sorted(i).individual)) - ...
sorted(i).individual(1);
% Maximum and minimum objectives value for the ith objective
end
% Caluclate the crowding distance for front one.
for i = 1 : M
for j = 2 : num - 1
distance(j).individual = distance(j).individual + ...
(sorted(i).individual(j + 1) - sorted(i).individual(j - 1))/...
objective(i).range;
y(sorted(i).index(j)M + V + 2) = distance(j).individual;
end
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1273 2017-05-27 17:03 NSGA-II\crowding_distance.m
文件 970 2017-05-27 17:03 NSGA-II\evaluate_ob
文件 3509 2017-05-27 17:03 NSGA-II\genetic_operator.m
文件 5128 2017-05-27 17:03 NSGA-II\html\crowding_distance.html
文件 10289 2017-05-27 17:03 NSGA-II\html\genetic_operator.html
文件 4434 2017-05-27 17:03 NSGA-II\html\initialize_variables.html
文件 11714 2017-05-27 17:03 NSGA-II\html\non_domination_sort_mod.html
文件 13753 2017-05-27 17:03 NSGA-II\html\nsga_2.html
文件 6346 2017-05-27 17:03 NSGA-II\html\replace_chromosome.html
文件 6186 2017-05-27 17:03 NSGA-II\html\tournament_selection.html
文件 605 2017-06-06 20:59 NSGA-II\initialize_variables.m
文件 3817 2017-06-07 17:37 NSGA-II\non_domination_sort_mod.m
文件 2109 2017-06-08 15:49 NSGA-II\nsga_2.m
文件 373682 2017-05-27 17:03 NSGA-II\NSGA_2.pdf
文件 476 2017-05-27 17:03 NSGA-II\plot_ob
文件 1977 2017-05-27 17:03 NSGA-II\replace_chromosome.m
文件 54800 2017-06-08 15:47 NSGA-II\solution.txt
文件 1742 2017-05-27 17:03 NSGA-II\tournament_selection.m
目录 0 2017-05-27 17:03 NSGA-II\html
目录 0 2017-06-08 16:05 NSGA-II
----------- --------- ---------- ----- ----
502810 20
- 上一篇:朴素贝叶斯算法在matlab中实现
- 下一篇:均值建模法
相关资源
- MATLAB 实现各类常见算法
- matlab编写的量子遗传算法
- 协同进化遗传算法求解函数优化问题
- 基于遗传算法的旅游全国的路径最优
- 基于遗传算法的机器人路径规划matl
- 多种群遗传算法的函数优化算法(源
- 遗传算法完整MATLAB程序实数法,轮盘
- 遗传算法解决最优路径、选址问题
- 遗传算法GA车间调度Matlab代码
- 求解多旅行商(MTSP)的遗传算法的
- 基于遗传算法的小波神经网络在股票
- matlab开发-基于遗传算法的机器人运动
- 《Matlab遗传算法工具箱及应用》源码
- 遗传算法图像分割matlab+源代码
- 神经网络、遗传算法、支持向量机、
- 谢菲尔德(Sheffield)遗传算法工具箱
- 遗传算法优化支持向量机GASVM
- 遗传算法工具箱
- MATLAB遗传算法工具箱及应用.zip
- 《MATLAB 遗传算法工具箱及应用》PDF完
- 遗传算法(Genetic Algorithm)MATLAB案例详
- MATLAB遗传算法工具箱及应用》pdf版.
- 基于遗传算法的自动排课系统设计
- MATLAB.遗传算法和粒子群算法程序设计
- 多目标优化文档及代码
- Matlab编写NSGA-Ⅱ
- 超完整规范的多目标遗传优化算法M
- Matlab编写多目标优化算法NSGA-Ⅱ的详解
- 遗传算法 -- matlab ga工具箱
- MATLAB遗传算法工具箱及应用 包含PDF电
评论
共有 条评论