资源简介
蜻蜓灰狼pso等等matlab算法集合,融合了多目标处理,提供了现成的数据可直接运行
![](http://www.nz998.com/pic/56655.jpg)
代码片段和文件信息
function f = evaluate_objective(xdatasetMV)
%% function f = evaluate_objective(x M V)
% Function to evaluate the objective functions for the given input vector
% x. x is an array of decision variables and f(1) f(2) etc are the
% objective functions. The algorithm always minimizes the objective
% function hence if you would like to maximize the function then multiply
% the function by negative one. M is the numebr of objective functions and
% V is the number of decision variables.
%
% This functions is basically written by the user who defines his/her own
% objective function. Make sure that the M and V matches your initial user
% input. Make sure that the
%
% An example objective function is given below. It has two six decision
% variables are two objective functions.
% f = [];
% %% objective function one
% % Decision variables are used to form the objective function.
% f(1) = 1 - exp(-4*x(1))*(sin(6*pi*x(1)))^6;
% sum = 0;
% for i = 2 : 6
% sum = sum + x(i)/4;
% end
% %% Intermediate function
% g_x = 1 + 9*(sum)^(0.25);
%
% %% objective function two
% f(2) = g_x*(1 - ((f(1))/(g_x))^2);
%% Kursawe proposed by Frank Kursawe.
% Take a look at the following reference
% A variant of evolution strategies for vector optimization.
% In H. P. Schwefel and R. M鋘ner editors Parallel Problem Solving from
% Nature. 1st Workshop PPSN I volume 496 of Lecture Notes in Computer
% Science pages 193-197 Berlin Germany oct 1991. Springer-Verlag.
%
% Number of objective is two while it can have arbirtarly many decision
% variables within the range -5 and 5. Common number of variables is 3.
f = [];tem =[];
% objective function one
% Decision variables are used to form the objective function.
% objective function two
% Decision variables are used to form the objective function.
for i=1:V
tem(i:)=dataset(x(i):);
end
f(11)=sum(tem(:1));
f(12)=sum(tem(:2));
f(13)=min(tem(:3));
f(14)=sum(tem(:4));
%% Check for error
if length(f) ~= M
error(‘The number of decision variables does not match you previous input. Kindly check your objective function‘);
end
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-01-01 19:23 NSGA-II\
目录 0 2018-01-01 19:23 NSGA-II\NSGA-II\
文件 134157 2014-02-12 12:55 NSGA-II\NSGA-II\NSGA II.pdf
文件 420736 2017-10-20 09:44 NSGA-II\NSGA-II\dataset.xlsx
文件 2227 2017-11-19 10:41 NSGA-II\NSGA-II\evaluate_ob
文件 7198 2017-11-20 10:37 NSGA-II\NSGA-II\genetic_operator.m
目录 0 2018-01-01 19:23 NSGA-II\NSGA-II\html\
文件 7254 2014-02-12 12:55 NSGA-II\NSGA-II\html\evaluate_ob
文件 15130 2014-02-12 12:55 NSGA-II\NSGA-II\html\genetic_operator.html
文件 6575 2014-02-12 12:55 NSGA-II\NSGA-II\html\initialize_variables.html
文件 19336 2014-02-12 12:55 NSGA-II\NSGA-II\html\non_domination_sort_mod.html
文件 21283 2014-02-12 12:55 NSGA-II\NSGA-II\html\nsga_2.html
文件 6402 2014-02-12 12:55 NSGA-II\NSGA-II\html\ob
文件 8174 2014-02-12 12:55 NSGA-II\NSGA-II\html\replace_chromosome.html
文件 10253 2014-02-12 12:55 NSGA-II\NSGA-II\html\tournament_selection.html
文件 3612 2017-11-20 10:14 NSGA-II\NSGA-II\initialize_variables.m
文件 8525 2017-11-19 11:43 NSGA-II\NSGA-II\non_domination_sort_mod.m
文件 7884 2017-11-20 15:08 NSGA-II\NSGA-II\nsga_2.m
文件 2489 2017-11-20 10:10 NSGA-II\NSGA-II\ob
文件 4120 2014-02-12 12:55 NSGA-II\NSGA-II\replace_chromosome.m
文件 45527 2017-11-23 09:56 NSGA-II\NSGA-II\results.mat
文件 5067 2017-11-20 09:36 NSGA-II\NSGA-II\tournament_selection.m
文件 1316 2014-02-12 12:55 NSGA-II\license.txt
目录 0 2018-01-26 17:23 pso\
文件 422 2010-12-28 22:11 pso\data.mat
文件 481010 2017-10-17 21:40 pso\dataset.xlsx
文件 104 2017-10-17 19:45 pso\ec.m
文件 6107 2017-11-08 17:06 pso\main.m
文件 220054 2017-11-17 09:01 pso\results.mat
目录 0 2018-01-01 19:23 灰狼\
文件 3565 2017-10-10 19:46 灰狼\CreateEmptyParticle.m
............此处省略58个文件信息
相关资源
- 多种群遗传算法的函数优化算法(源
- 灰狼优化算法求解柔性作业车间问题
- 最优化算法规划-单纯形法MATLAB程序
- 蝴蝶优化算法
- 灰狼优化算法的仿真
- matlab开发-果蝇优化算法第二版
- 《MATLAB优化算法案例分析与应用》随
- bbocomplex 生物地理学算法
- matlab智能优化算法30个案例代码
- 鲸鱼优化算法(WOAMatlab).zip
- MATLAB实现群体多目标优化算法MOALO蚁狮
- DIRECT 全局优化算法 matlab程序 附带
- 差分蜂群优化算法MATLAB实现.rar
- MATLAB优化算法测试函数
- MATLAB多种优化算法介绍
- 超完整规范的多目标遗传优化算法M
- Matlab优化算法.pdf
- Matlab优化算法PDF
- 最优化方法及其Matlab程序设计 马昌凤
- MATLAB优化算法案例分析与应用-配书代
- Matlab编写多目标优化算法NSGA-Ⅱ的详解
- Matlab智能算法285081
- 智能优化算法及其MATLAB-(第2版)
- 两个经典的多目标优化算法代码:N
- MATLAB优化算法案例分析与应用 源代码
- 智能优化算法及其MATLAB[包子阳余继周
- [高清文字版]MATLAB优化算法案例分析与
- MATLAB优化算法案例分析与应用第1版电
- MATLAB优化算法案例分析与应用案例及
- 鲸鱼优化算法 WOA matlab源代码详细注释
评论
共有 条评论