91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

cuckoo_search12 是對原布谷鳥算法MATLAB程序的修改。其中的數(shù)據(jù)是參考論文《 基于布谷鳥算法的平面選址問題_宋瑞敏 》中的無約束公式和12頂點數(shù)據(jù)。 程序在MATLABr2017b測試通過。其他頂點計算只需要修改最后的函數(shù)及頂點矩陣即可。

資源截圖

代碼片段和文件信息

%?-----------------------------------------------------------------??
%?Cuckoo?Search?(CS)?algorithm?by?Xin-She?Yang?and?Suash?Deb??????%??
%?Programmed?by?Xin-She?Yang?at?Cambridge?University??????????????%??
%?Programming?dates:?Nov?2008?to?June?2009????????????????????????%??
%?Last?revised:?Dec??2009???(simplified?version?for?demo?only)????%??
%?-----------------------------------------------------------------??
%?Papers?--?Citation?Details:??
%?1)?X.-S.?Yang?S.?Deb?Cuckoo?search?via?Levy?flights??
%?in:?Proc.?of?World?Congress?on?Nature?&?Biologically?Inspired??
%?Computing?(NaBIC?2009)?December?2009?India??
%?IEEE?Publications?USA??pp.?210-214?(2009).??
%?http://arxiv.org/PS_cache/arxiv/pdf/1003/1003.1594v1.pdf???
%?2)?X.-S.?Yang?S.?Deb?Engineering?optimization?by?cuckoo?search??
%?Int.?J.?Mathematical?Modelling?and?Numerical?Optimisation???
%?Vol.?1?No.?4?330-343?(2010).???
%?http://arxiv.org/PS_cache/arxiv/pdf/1005/1005.2908v2.pdf??
%?----------------------------------------------------------------%??
%?This?demo?program?only?implements?a?standard?version?of?????????%??
%?Cuckoo?Search?(CS)?as?the?Levy?flights?and?generation?of???????%??
%?new?solutions?may?use?slightly?different?methods.???????????????%??
%?The?pseudo?code?was?given?sequentially?(select?a?cuckoo?etc)???%??
%?but?the?implementation?here?uses?Matlab‘s?vector?capability????%??
%?which?results?in?neater/better?codes?and?shorter?running?time.??%???
%?This?implementation?is?different?and?more?efficient?than?the????%??
%?the?demo?code?provided?in?the?book?by???
%????“Yang?X.?S.?Nature-Inspired?metaheuristic?Algoirthms???????%???
%?????2nd?Edition?Luniver?Press?(2010).?????????????????“???????%??
%?---------------------------------------------------------------?%??
??
%?===============================================================?%??
%?Notes:??????????????????????????????????????????????????????????%??
%?Different?implementations?may?lead?to?slightly?different????????%??
%?behavour?and/or?results?but?there?is?nothing?wrong?with?it????%??
%?as?this?is?the?nature?of?random?walks?and?all?metaheuristics.???%??
%?-----------------------------------------------------------------??
??
%?Additional?Note:?This?version?uses?a?fixed?number?of?generation?%??
%?(not?a?given?tolerance)?because?many?readers?asked?me?to?add????%??
%??or?implement?this?option.???????????????????????????????Thanks.%????????????????????????????
function?[bestnestfmin]=cuckoo_search_new(n)??
if?nargin<1??
%?Number?of?nests?(or?different?solutions)??
n=50;??
end??
??
%?Discovery?rate?of?alien?eggs/solutions??
pa=0.25;??
??
%%?Change?this?if?you?want?to?get?better?results??
N_IterTotal=1000;??
%%?Simple?bounds?of?the?search?domain??
%?Lower?bounds??
nd=20;???
Lb=-100*ones(1nd);???
%?Upper?bounds??
Ub=100*ones(1nd);?
%Lb=[10?10];
%Ub=[0?0];
??
%?Random?initial?solutions??
for?i=1:n?
nest(i:)=Lb+(Ub-Lb).*rand(size(Lb));??
end??

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????6543??2019-01-09?21:13??布谷鳥算法平面選址問題\cuckoo_search12.m

?????文件????????217??2019-05-15?10:43??布谷鳥算法平面選址問題\說明.txt

?????目錄??????????0??2019-05-15?10:44??布谷鳥算法平面選址問題

-----------?---------??----------?-----??----

?????????????????6760????????????????????3


評論

共有 條評論