資源簡介
劉金琨《智能控制》書本的所有源程序,matlab編程,希望大家有用。
代碼片段和文件信息
%Generic?Algorithm?for?function?f(x1x2)?optimum
clear?all;
close?all;
%Parameters
Size=80;???
G=100;?????
CodeL=10;
?
umax=2.048;
umin=-2.048;
E=round(rand(Size2*CodeL));????%Initial?Code
%Main?Program
for?k=1:1:G
time(k)=k;
for?s=1:1:Size
m=E(s:);
y1=0;y2=0;
%Uncoding
m1=m(1:1:CodeL);
for?i=1:1:CodeL
???y1=y1+m1(i)*2^(i-1);
end
x1=(umax-umin)*y1/1023+umin;
m2=m(CodeL+1:1:2*CodeL);
for?i=1:1:CodeL
???y2=y2+m2(i)*2^(i-1);
end
x2=(umax-umin)*y2/1023+umin;
F(s)=100*(x1^2-x2)^2+(1-x1)^2;
end
Ji=1./F;
%******?Step?1?:?Evaluate?BestJ?******
BestJ(k)=min(Ji);
fi=F;??????????????????????????%Fitness?Function
[OderfiIndexfi]=sort(fi);?????%Arranging?fi?small?to?bigger
Bestfi=Oderfi(Size);???????????%Let?Bestfi=max(fi)
BestS=E(Indexfi(Size):);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2317??2004-12-31?22:55??劉金錕智能控制程序\chap10_1.m
?????文件???????2554??2004-12-31?22:57??劉金錕智能控制程序\chap10_2.m
?????文件???????2397??2005-01-21?22:43??劉金錕智能控制程序\chap10_3a.m
?????文件????????956??2005-01-17?09:36??劉金錕智能控制程序\chap10_3b.m
?????文件???????1067??2005-01-21?22:43??劉金錕智能控制程序\chap10_3c.m
?????文件???????2161??2005-02-22?17:38??劉金錕智能控制程序\chap2_1.m
?????文件????????250??2004-12-29?21:16??劉金錕智能控制程序\chap3_1.m
?????文件????????815??2005-09-25?13:21??劉金錕智能控制程序\chap3_2.m
?????文件????????373??2004-12-29?18:46??劉金錕智能控制程序\chap3_3.M
?????文件????????274??2004-12-29?18:49??劉金錕智能控制程序\chap3_4.m
?????文件????????642??2005-09-25?14:16??劉金錕智能控制程序\chap3_5.m
?????文件???????1507??2005-09-25?14:20??劉金錕智能控制程序\chap4_1.m
?????文件???????3332??2005-09-27?12:22??劉金錕智能控制程序\chap4_2.m
?????文件??????12228??2005-09-27?15:35??劉金錕智能控制程序\chap4_3.mdl
?????文件????????372??2005-01-24?00:31??劉金錕智能控制程序\CHAP4_4.M
?????文件????????365??2005-01-24?00:31??劉金錕智能控制程序\chap4_5.m
?????文件???????1514??2005-01-24?01:06??劉金錕智能控制程序\chap4_6.m
?????文件???????3774??2005-01-08?18:21??劉金錕智能控制程序\chap4_7a.m
?????文件???????1463??2005-01-08?18:44??劉金錕智能控制程序\chap4_7b.m
?????文件???????1030??2005-01-28?18:22??劉金錕智能控制程序\chap4_8.m
?????文件???????2026??2005-10-06?15:27??劉金錕智能控制程序\chap4_9.m
?????文件????????205??2005-02-23?21:24??劉金錕智能控制程序\chap4_9f.m
?????文件????????671??2005-01-16?13:48??劉金錕智能控制程序\chap5_1.m
?????文件???????1555??2005-01-16?20:18??劉金錕智能控制程序\chap5_2.m
?????文件????????246??2005-01-16?21:40??劉金錕智能控制程序\chap5_3mf.m
?????文件???????1164??2005-01-16?21:38??劉金錕智能控制程序\chap5_3plant.m
?????文件????????385??2005-01-16?21:38??劉金錕智能控制程序\chap5_3plot.m
?????文件???????2167??2005-03-19?00:23??劉金錕智能控制程序\chap5_3s.m
?????文件??????10746??2005-03-19?00:22??劉金錕智能控制程序\chap5_3sim.mdl
?????文件????????314??2005-01-17?22:15??劉金錕智能控制程序\chap5_4mf.m
............此處省略83個文件信息
評論
共有 條評論