资源简介
这是用于进行多目标优化的遗传算法,里面有pdf的帮助文档,方便用户使用。

代码片段和文件信息
function f = evaluate_objective(x M V)
%% 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 = [];
% objective function one
sum = 0;
for i = 1 : V - 1
sum = sum - 10*exp(-0.2*sqrt((x(i))^2 + (x(i + 1))^2));
end
% Decision variables are used to form the objective function.
f(1) = sum;
% objective function two
sum = 0;
for i = 1 : V
sum = sum + (abs(x(i))^0.8 + 5*(sin(x(i)))^3);
end
% Decision variables are used to form the objective function.
f(2) = sum;
%% 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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2009-01-28 00:25 NSGA-II\
目录 0 2006-03-20 00:57 NSGA-II\html\
文件 7827 2009-01-28 00:25 NSGA-II\non_domination_sort_mod.m
文件 3444 2009-01-28 00:24 NSGA-II\replace_chromosome.m
文件 4352 2009-01-28 00:24 NSGA-II\tournament_selection.m
文件 2923 2009-01-28 00:24 NSGA-II\ob
文件 8851 2009-01-28 00:23 NSGA-II\nsga_2.m~
文件 35147 2009-01-28 00:19 NSGA-II\COPYING.txt
文件 6419 2009-01-28 00:23 NSGA-II\genetic_operator.m~
文件 6419 2009-01-28 00:23 NSGA-II\genetic_operator.m
文件 3627 2006-03-16 21:38 NSGA-II\tournament_selection.m~
文件 2719 2006-03-16 21:38 NSGA-II\replace_chromosome.m~
文件 2200 2006-03-20 01:12 NSGA-II\ob
文件 8851 2009-01-28 00:23 NSGA-II\nsga_2.m
文件 134157 2006-03-20 01:24 NSGA-II\NSGA II.pdf
文件 7102 2006-03-16 21:36 NSGA-II\non_domination_sort_mod.m~
文件 2024 2006-03-16 21:30 NSGA-II\initialize_variables.m~
文件 2749 2009-01-28 00:23 NSGA-II\initialize_variables.m
文件 2216 2006-03-16 21:28 NSGA-II\evaluate_ob
文件 10253 2006-03-16 21:37 NSGA-II\html\tournament_selection.html
文件 8174 2006-03-16 21:38 NSGA-II\html\replace_chromosome.html
文件 6402 2006-03-16 21:31 NSGA-II\html\ob
文件 21283 2006-03-16 21:29 NSGA-II\html\nsga_2.html
文件 19336 2006-03-16 21:35 NSGA-II\html\non_domination_sort_mod.html
文件 6575 2006-03-16 21:30 NSGA-II\html\initialize_variables.html
文件 15130 2006-03-16 21:30 NSGA-II\html\genetic_operator.html
文件 7254 2006-03-16 21:28 NSGA-II\html\evaluate_ob
- 上一篇:布谷鸟算法的matlab代码
- 下一篇:基于SIFT特征的图像配准MATLAB代码
相关资源
- 克里金插值程序国外一个基金支持下
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
- 通过不同方法进行粗糙集属性约简m
- k近邻算法matlab实现
- matlab识别系统
- 神经网络分类matlab程序
- matlab正弦信号发生器的设计
- matlab程序用Hopfield网络解决TSP
- 实例matlab 编程100个常用程序
评论
共有 条评论