資源簡介
用GA遺傳算法優化BP網絡,預測風電功率,含實際數據和案例。
代碼片段和文件信息
function?ret=Code(lenchrombound)
%本函數將變量編碼成染色體,用于隨機初始化一個種群
%?lenchrom???input?:?染色體長度
%?bound??????input?:?變量的取值范圍
%?ret????????output:?染色體的編碼值
flag=0;
while?flag==0
????pick=rand(1length(lenchrom));
????ret=bound(:1)‘+(bound(:2)-bound(:1))‘.*pick;?%線性插值,編碼結果以實數向量存入ret中
????flag=test(lenchromboundret);?????%檢驗染色體的可行性
end
????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-01-14?22:46??ga?wind?prediction\
?????文件?????????420??2009-08-16?22:48??ga?wind?prediction\Code.m
?????文件????????1556??2009-08-31?23:41??ga?wind?prediction\Cross.m
?????文件????????1158??2009-08-31?23:41??ga?wind?prediction\Decode.m
?????文件????????1602??2009-11-12?19:20??ga?wind?prediction\Mutation.m
?????文件?????????825??2010-05-26?00:10??ga?wind?prediction\Select.m
?????文件????????1081??2014-01-07?21:24??ga?wind?prediction\fun.m
?????文件????????5154??2014-01-14?22:47??ga?wind?prediction\gabp.m
?????文件?????????874??2013-10-12?14:59??ga?wind?prediction\goontest.mat
?????文件????????6430??2013-10-11?21:12??ga?wind?prediction\traindata1011.mat
- 上一篇:雷達交叉定位精度分析
- 下一篇:新型的配電網潮流計算的matlab源碼
評論
共有 條評論