資源簡介
一個快速和精英機制的多目標遺傳算法:NSGA2;Matlab編寫;
代碼片段和文件信息
function?f?=?evaluate_objective(xproblem)
%?Function?to?evaluate?the?objective?functions?for?the?given?input?vector
%?x.?x?has?the?decision?variables
switch?problem
????case?1
????????f?=?[];
????????%%?objective?function?one
????????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?one
????????f(2)?=?g_x*(1?-?((f(1))/(g_x))^2);
????case?2
????????f?=?[];
????????%%?Intermediate?function
????????g_x?=?0;
????????for?i?=?3?:?12
????????????g_x?=?g_x?+?(x(i)?-?0.5)^2;
????????end
????????%%?objective?function?one
????????f(1)?=?(1?+?g_x)*cos(0.5*pi*x(1))*cos(0.5*pi*x(2));
????????%%?objectiv
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1107??2008-11-07?08:33??NSGA-II\evaluate_ob
?????文件???????4741??2008-11-07?08:22??NSGA-II\genetic_operator.m
?????文件???????1219??2008-11-06?22:36??NSGA-II\initialize_variables.m
?????文件???????5003??2008-10-30?15:24??NSGA-II\non_domination_sort_mod.m
?????文件?????487113??2008-05-23?11:56??NSGA-II\NSGA_2.pdf
?????文件???????2308??2008-10-30?15:24??NSGA-II\replace_chromosome.m
?????文件???????1752??2008-10-27?21:12??NSGA-II\tournament_selection.m
?????文件???????4857??2008-11-06?23:21??NSGA-II\nsga_2.m
?????文件????????652??2008-10-30?15:23??NSGA-II\inter_chromo.m
?????文件????????614??2008-11-06?22:33??NSGA-II\input_parameter_produce.m
?????文件????????884??2008-11-06?22:34??NSGA-II\input_parameters_definition.m
?????文件????????132??2008-11-06?22:59??NSGA-II\1.txt
?????文件???????1940??2008-11-07?08:33??NSGA-II\solution.txt
?????目錄??????????0??2008-11-06?16:09??NSGA-II
-----------?---------??----------?-----??----
???????????????512322????????????????????14
評論
共有 條評論