資源簡介
機(jī)器人模糊神經(jīng)網(wǎng)絡(luò)matlab的simulink建模,源代碼
代碼片段和文件信息
clear?all;
close?all;
t=31;?????%Number?of?Cities?is?t-1
s=500;????%Number?of?Samples
pc=0.90;
pm=0.20;
pop=zeros(st);
for?i=1:s
???pop(i1:t-1)=randperm(t-1);
end
for?k=1:1:500
if?mod(k10)==1
????k
end
pop=chap10_1dis(pop);
c=15;
pop=chap10_1select(popc);
p=rand;
if?p>=pc
???pop=chap10_1cross(pop);
end
if?p>=pm
???pop=chap10_1mutate(pop);
end
end
pop
min(pop(:t))
J=pop(:t);
fi=1./J;
[OderfiIndexfi]=sort(fi);???%?Arranging?fi?small?to?bigger
BestS=pop(Indexfi(s):);?????%?Let?BestS=E(m)?m?is?the?Indexfi?belong?to?max(fi)
I=BestS;
x=[87?91?83?71?64?68?83?87?74?71?58?54?51?37?41?2?7?22?25?18?4?13?18?24?25?41?45?44?58?62];
y=[7?38?46?44?60?58?69?76?78?71?69?62?67?84?94?99?64?60?62?54?50?40?40?42?38?26?21?35?35?32];
%x=[87?58?91?
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????150??2005-09-03?15:34??第10章仿真程序\16.txt
?????文件?????????37??2006-07-27?08:16??第10章仿真程序\4.txt
?????文件?????????73??2006-07-27?08:25??第10章仿真程序\8.txt
?????文件???????1097??2007-08-09?21:14??第10章仿真程序\chap10_1.m
?????文件????????266??2006-07-26?22:38??第10章仿真程序\chap10_1calculate.m
?????文件????????950??2007-08-09?21:15??第10章仿真程序\chap10_1cross.m
?????文件????????214??2007-08-09?21:15??第10章仿真程序\chap10_1dis.m
?????文件????????494??2007-08-09?21:16??第10章仿真程序\chap10_1mutate.m
?????文件????????361??2006-07-26?22:38??第10章仿真程序\chap10_1select.m
?????文件???????2817??2007-08-09?21:31??第10章仿真程序\chap10_2.m
?????目錄??????????0??2010-05-06?14:23??第10章仿真程序
-----------?---------??----------?-----??----
?????????????????6459????????????????????11
評(píng)論
共有 條評(píng)論