資源簡介
遺傳算法優化神經網絡程序[matlab]
代碼片段和文件信息
function?y=cross_over(chrom)
%?[mn]=size(chrom);
%?temchrom=zeros(1n);
%?for?i=1:2:m-1
%?%??????c=rand(1);
%?%?????temchrom=chrom(i:);
%?%?????chrom(i:)=c.*chrom(i:)+(1-c).*chrom(i+1:);
%?%?????chrom(i+1:)=(1-c).*temchrom+c.*chrom(i+1:);
%?????c=rand(1);
%?????temchrom=chrom(i:);
%?????chrom(i:)=c.*chrom(i:)+(1-c).*chrom(i+1:);
%?????chrom(i+1:)=(1-c).*temchrom+c.*chrom(i+1:);
%?end
%?y=chrom;
[mn]=size(chrom);??%兩點交叉
temchrom=zeros(1n);
for?i=1:2:m-1
????c=1+fix(n*rand(12));
????c_a=min(c);
????c_b=max(c);
????temchrom=chrom(i:);
????chrom(ic_a:c_b)=chrom(i+1c_a:c_b);
????chrom(i+1c_a:c_b)=temchrom(:c_a:c_b);
end
y=chrom;
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3434??2008-05-15?08:26??使用幫助:新手必看.htm
?????文件????????680??2005-09-16?16:16??遺傳算法優化神經網絡程序[matlab]\gene_bpnn_xor\cross_over.m
?????文件???????1151??2005-09-08?14:59??遺傳算法優化神經網絡程序[matlab]\gene_bpnn_xor\fitness.asv
?????文件???????1152??2005-09-20?08:40??遺傳算法優化神經網絡程序[matlab]\gene_bpnn_xor\fitness.m
?????文件???????1867??2005-09-22?16:08??遺傳算法優化神經網絡程序[matlab]\gene_bpnn_xor\main.asv
?????文件???????1866??2005-09-22?17:24??遺傳算法優化神經網絡程序[matlab]\gene_bpnn_xor\main.m
?????文件????????546??2005-09-22?15:44??遺傳算法優化神經網絡程序[matlab]\gene_bpnn_xor\mutation.m
?????文件????????114??2005-08-02?20:06??遺傳算法優化神經網絡程序[matlab]\gene_bpnn_xor\select.m
?????文件????????122??2008-05-14?18:20??Matlab中文論壇--助努力的人完成畢業設計.url
?????目錄??????????0??2005-09-24?11:27??遺傳算法優化神經網絡程序[matlab]\gene_bpnn_xor
?????目錄??????????0??2008-05-18?17:21??遺傳算法優化神經網絡程序[matlab]
-----------?---------??----------?-----??----
????????????????10932????????????????????11
評論
共有 條評論