模糊控制查询表的MATLAB实现

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

MATLAB(,361012)MATLABrealizationofFuzzyControlQueryTable,,,PLC,,PLC,。,eec,。,PI。PLCPI。PLC,。1PIMATLAB,PI1。1PI1,eec,,ΔKPΔTi,KP=KP0+ΔKPTI=TI0+ΔTiPIKPTI。22.1,e△eΔKPΔTi13邀-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6妖。MATLAB,。eec邀-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6妖邀1,2,3,4,5,6,7,8,9,10,11,12,13妖。ΔKPΔTi邀-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6妖。eecΔKP、ΔTi邀NB,NM,NS,ZO,PS,PM,PB妖。,邀1,2,3,4,5,6,7妖,,:NB1,。,x1x2,1。,x1e,x2ec;f1(i)、f2(j)x1x2,i、j,1,2,3,4…7。1x1x22.2,ΔKPΔTI23。2ΔKPPI,MATLAB,,PLC,。:,MATLAB,PI,AbstractThroughtheestablishmengtofFuzzy-PIcontrollermodelwhichisappliedintheindustrialautomationcontrol,Thispa-perdescribesindetailthewayhowtogetafuzzy-control-querytablebytheMATLABprogramming.Thiscotrol-tablemaybestoredinthecomputewiththeformofatable,Whichcanimproegreatlytheoperationalefficiency,SuchasPLCcontroller,etc.whosememoryisverylittle,andon-linereasoningcanalsoberealized.Keywords:fuzzycontrolquerytable,MATLAB,PIcontrol,on-linereasoningMATLAB64《》201023113ΔTI3MATLABMATLAB,,,,,,。3.1MATLAB,2。22:x1x2eec;COG;S[i,j]=w觹h[i,j]/2,,h。w;f1(i)、f2(j)x1x2;i、j。3.2MATLAB,ΔKP:%,eecA、B,R:A=[10.500000000000;00.510.5000000000;0000.510.50000000;000000.510.500000;00000000.510.5000;0000000000.510.50;000000000000.51];B=[10.500000000000;00.510.5000000000;0000.510.50000000;000000.510.500000;00000000.510.5000;0000000000.510.50;000000000000.51];R=[7776543;7765432;7654321;5544455;1234567;2345677;3456777];%,cen。w=4%num,den,u0:u0=zeros(13);cen=[-6-4-20246];w=4;num=0;den=0;%eecm、nm=input('m=');n=input('n=');%,f1、f2,a、b,k,%c,s;s1=s觹c;%h,h=min(f1,f2)f1=[0000000];a=[0000000];f2=[0000000];b=[0000000];k=zeros(7);c=zeros(7);s=zeros(7);s1=zeros(7);h=zeros(7);%fori=1:7forj=1:7ifA(i,m)>0f1(i)=A(i,m);a(i)=i;endifB(j,n)>0f2(j)=B(j,n);b(j)=j;endifa(i)觹b(j)>0k(i,j)=R(a(i),b(j));c(i,j)=cen(k(i,j));h(i,j)=min(f1(i),f2(j));s(i,j)=1/2觹w觹h(i,j);s1(i,j)=s(i,j)觹c(i,j);endendend%COG,numdenfori=1:7forj=1:7num=num+s1(i,j);den=den+s(i,j);endendu0=num/den%,ΔTI:%,eecA、B,R:A=[10.500000000000;00.510.5000000000;0000.510.50000000;000000.510.500000;00000000.510.5000;0000000000.510.50;65000000000000.51];B=[10.500000000000;00.510.5000000000;0000.510.50000000;000000.510.500000;00000000.510.5000;0000000000.510.50;000000000000.51];R=[7776654;7766543;7665432;1124211;2345667;3456677;4566777];%,cen。w=4%num,den,u0u0=zeros(13);cen=[-6-4-20246];w=4;num=0;den=0;%eecm、nm=input('m=');n=input('n=');%,f1、f2,a、b,k,%c,s;s1=s觹c;%h,h=min(f1,f2)f1=[0000000];a=[0000000];f2=[0000000];b=[0000000];k=zeros(7);c=zeros(7);s=zeros(7);s1=zeros(7);h=zeros(7);%fori=1:7forj=1:7ifA(i,m)>0f1(i)=A(i,m);a(i)=i;endifB(j,n)>0f2(j)=B(j,n);b(j)=j;endifa(i)觹b(j)>0k(i,j)=R(a(i),b(j));c(i,j)=cen(k(i,j));h(i,j)=min(f1(i),f2(j));s(i,j)=1/2觹w觹h(i,j);s1(i,j)=s(i,j)觹c(i,j);endendend%COG,numdenfori=1:7forj=1:7num=num+s1(i,j);den=den+s(i,j);endend%u0=num/den4ΔKPΔTiMATLAB,45:4ΔKP5ΔTiEEC,,。5,。,,、DSP,,。,,,。[1]...[J].,2003,11(4):47-48[2]..[M].:,2001[3]...[M].:,2002[4]..PI[J].,2008,27(16):35-36[5].[M].:,2008[:2010.9.10]MATLAB66

1 / 3
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功