-
大小: 114KB文件類(lèi)型: .rar金幣: 2下載: 1 次發(fā)布日期: 2021-05-07
- 語(yǔ)言: Matlab
- 標(biāo)簽: ackley函數(shù)??
資源簡(jiǎn)介
ackley函數(shù)求極小值問(wèn)題-用matlab算法求解說(shuō)明及代碼,這是很詳細(xì)的,我花了好多天才搞定的。

代碼片段和文件信息
function?[child]?=?adjswapmutation(parboundsgenInfoOps)
%?Adjswap?mutation?performs?a?swap?of?two?adjacent
%?genes?in?a?permutation
%
%?function?[newSol]?=?adjswapmutation(parentboundsOps)
%?parent??-?the?first?parent?(?[solution?string?function?value]?)
%?bounds??-?the?bounds?matrix?for?the?solution?space
%?Ops?????-?Options?for?binaryMutation?[gen?prob_of_mutation]
%?Binary?and?Real-Valued?Simulation?Evolution?for?Matlab?
%?Copyright?(C)?1996?C.R.?Houck?J.A.?Joines?M.G.?Kay?
%
%?C.R.?Houck?J.Joines?and?M.Kay.?A?genetic?algorithm?for?function
%?optimization:?A?Matlab?implementation.?ACM?Transactions?on?Mathmatical
%?Software?Submitted?1996.
%
%?This?program?is?free?software;?you?can?redistribute?it?and/or?modify
%?it?under?the?terms?of?the?GNU?General?Public?License?as?published?by
%?the?Free?Software?Foundation;?either?version?1?or?(at?your?option)
%?any?later?version.
%
%?This?program?is?distributed?in?the?hope?that?it?will?be?useful
%?but?WITHOUT?ANY?WARRANTY;?without?even?the?implied?warranty?of
%?MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR?PURPOSE.??See?the
%?GNU?General?Public?License?for?more?details.?A?copy?of?the?GNU?
%?General?Public?License?can?be?obtained?from?the?
%?Free?Software?Foundation?Inc.?675?Mass?Ave?Cambridge?MA?02139?USA.
sz?=?size(par2)-1;
pos?=?round(rand*(sz-1)?+?0.5);?%Generate?U(1n-1)
child?=?par;
child(pos:pos+1)=[par(pos+1)?par(pos)];
????
???
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????1419??1998-04-14?13:26??gaot工具箱\adjswapMutation.m
?????文件???????1487??1998-04-15?08:46??gaot工具箱\arithXover.m
?????文件???????1495??1998-04-14?13:26??gaot工具箱\b2f.m
?????文件???????2080??1998-04-14?13:26??gaot工具箱\binaryExample.m
?????文件???????1504??1998-04-15?08:48??gaot工具箱\binaryMutation.m
?????文件???????1639??1998-04-14?13:26??gaot工具箱\boundaryMutation.m
?????文件???????1382??1998-04-14?13:26??gaot工具箱\calcbits.m
?????文件???????4761??1998-04-17?09:46??gaot工具箱\Contents.m
?????文件???????1451??1998-04-14?13:26??gaot工具箱\coranaEval.m
?????文件???????1538??1998-04-14?13:26??gaot工具箱\coranaFeval.m
?????文件???????1222??1998-04-14?13:26??gaot工具箱\coranaMin.m
?????文件???????1654??1998-04-14?13:26??gaot工具箱\cyclicXover.m
?????文件???????1471??1998-04-14?13:26??gaot工具箱\delta.m
?????文件???????6837??1998-04-28?08:17??gaot工具箱\dists.m
?????文件???????1586??1998-04-14?13:26??gaot工具箱\EER.m
?????文件???????2348??1998-04-14?13:26??gaot工具箱\enhancederXover.m
?????文件???????2118??1998-04-14?13:26??gaot工具箱\erXover.m
?????文件???????1501??1998-04-14?13:26??gaot工具箱\f2b.m
?????文件???????2322??1998-04-14?13:26??gaot工具箱\floatExample.m
?????文件???????2137??1998-04-14?13:26??gaot工具箱\floatGradExample.m
?????文件??????10805??1998-04-14?13:26??gaot工具箱\ga.m
?????文件???????4213??1998-04-14?13:26??gaot工具箱\gademo.m
?????文件???????3887??1998-04-14?13:26??gaot工具箱\gademo1.m
?????文件???????1275??1998-04-14?13:26??gaot工具箱\gademo1eval1.m
?????文件???????2840??1998-09-08?09:17??gaot工具箱\gademo2.m
?????文件???????6262??1998-04-14?13:26??gaot工具箱\gademo3.m
?????文件????????193??1998-04-14?13:26??gaot工具箱\gaMichEval.m
?????文件?????132728??1998-09-08?09:28??gaot工具箱\gaotv5.ps
?????文件????????174??1998-04-14?13:26??gaot工具箱\gaZBGrad.m
?????文件????????684??1998-04-14?13:26??gaot工具箱\gaZBGradEval.m
............此處省略36個(gè)文件信息
評(píng)論
共有 條評(píng)論