資源簡介
基于遺傳算法的電機(jī)參數(shù)辨識(shí),全部使用M文件編寫。
代碼片段和文件信息
function?[xcoarse]?=?decode(genvlbvubbits)
%DECODE?Converts?from?binary?to?variable?representation.
%?[XCOARSE]?=?DECODE(GENVLBVUBBITS)?converts?the?binary
%?population?GEN?to?variable?representation.?Each?individual
%?of?GEN?should?have?SUM(BITS).?Each?individual?binary?string
%?encodes?LENGTH(VLB)=LENGTH(VUB)=LENGTH(BITS)?variables.
%?COARSE?is?the?coarseness?of?the?binary?mapping?and?is?also
104
%?of?length?LENGTH(VUB).
function?[new_genselected]?=?reproduc(old_genfitness)
%REPRODUC?selects?individuals?proportional?to?their?fitness.
%?[NEW_GENSELECTED]?=?MATE(OLD_GENFITNESS)?selects
%?individuals?from?OLD_GEN?proportional?to?their?FITNESS
%?NEW_GEN?will?have?the?same?number?of?individuals?as?OLD_GEN.
%?SELECTED?contains?the?indices?(rows)?of?the?selected
%?ind
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????8755??2011-12-29?16:47??other\decode.m
?????文件???????9412??2011-12-29?16:47??other\encode.m
?????文件???????1175??2011-12-29?16:47??other\Flux.m
?????文件???????2241??2011-12-29?16:47??other\genetic.m
?????文件???????6839??2011-12-29?16:47??other\IMfitness.m
?????文件???????3124??2011-12-29?16:47??other\main_fun.asv
?????文件???????3120??2012-12-18?21:42??other\main_fun.m
?????文件????????331??2011-12-29?16:47??other\mate.m
?????文件????????402??2011-12-29?16:47??other\mutate.m
?????文件????????403??2011-12-29?16:47??other\reproduc.m
?????文件????????323??2011-12-29?16:47??other\xover.m
?????目錄??????????0??2011-12-29?16:47??other
-----------?---------??----------?-----??----
????????????????36125????????????????????12
評(píng)論
共有 條評(píng)論