亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mohuzishiyingkongzhi.txt

?? FUzzy PID COntrol?。。Uzzy PID COntrol
?? TXT
?? 第 1 頁 / 共 2 頁
字號:
			 		   % last entry with a non-zero term
			end
		 end
		end
	end

% Next we will save the number of mfs that are on and the pointer
% e_int as to which rules were on.  This vector of length
% 10 saves the last 10 values of e_count and e_int as time
% progresses (hence, it is a moving window).
% These will be used by the FMRLC knowledge-base modifier.

meme_count=[e_count meme_count(1:9)];
meme_int=[e_int meme_int(1:9)];

% The following if-then structure fills the vector mfc with the
% certainty of each membership fucntion of c for the current
% value of c (to understand this part of the code see the above
% similar code for computing mfe)

	if c<=cc(1)	% Takes care of saturation of left-most mf
         mfc=[1 0 0 0 0 0 0 0 0 0 0];
	 c_count=c_count+1;
	 c_int=1;
	elseif c>=cc(numc)
				% Takes care of saturation of the right-most mf
	 mfc=[0 0 0 0 0 0 0 0 0 0 1];
	 c_count=c_count+1;
	 c_int=numc;
	else
		for i=1:numc
		 if c<=cc(i)
		  mfc(i)=max([0,1+(c-cc(i))/wc]);
			if mfc(i)~=0
			 c_count=c_count+1;
			 c_int=i;  	% This term holds last entry
			 			% with a non-zero term
			end
		 else
		  mfc(i)=max([0,1+(cc(i)-c)/wc]);
			if mfc(i)~=0
			 c_count=c_count+1;
			 c_int=i;	% This term holds last entry
			 			% with a non-zero term
			end
		 end
		end
	end
% Next we will save the number of mfs that are on and the pointer
% c_int as to which rules were on.  This vector of length 10
% saves the last 10 values of c_count and e_int as time progresses
% (hence, it is a moving window). These will be used by the FMRLC
% knowledge-base modifier.

memc_count=[c_count memc_count(1:9)];
memc_int=[c_int memc_int(1:9)];

% These for loops calculate the crisp output using only the non-
% zero premise of error,e, and change in error,c.  This cuts down
% computation time since we will only compute
% the contribution from the rules that are on (i.e., a maximum of
% four rules for our case).  Minimum is used for the premise
% and implication.

num=0;
den=0;
	for k=(e_int-e_count+1):e_int
						% Scan over e indices ofmfs that are on
		for l=(c_int-c_count+1):c_int
						% Scan over c indices ofmfs that are on
		  prem=min([mfe(k) mfc(l)]);
		  				% Value of premisemembership function
 % This next calculation of num adds up the numerator for the
 % defuzzification formula. fuzzyrules(k,l) is the output center
 % for the rule.base*(prem-(prem)^2/2 is the area of a symmetric
 % triangle with base width "base" and that is chopped off at
 % a height of prem (since we use minimum to represent the
 % implication). Computation of den is similar but without
 % fuzzyrules(k,l).
		  num=num+fuzzyrules(k,l)*base*(prem-(prem)^2/2);
		  den=den+base*(prem-(prem)^2/2);
		end
	end

   u(index)=num/den;
   			% Crisp output of fuzzy controller that is the input
   			% to the plant

% Next, we perform computations for the fuzzy inverse model.

ye=ym(index)-y(index);		% Calculates ye
yc=(ye-yeold)/step;			% Calculates yc
yeold=ye;					% Saves the value of ye for use the
							% next time

ye_count=0;,yc_count=0;    	% Counts the non-zero certainties
							% of ye and ycsimilar to how we did
							% for the fuzzycontroller

% The following if-then structure fills the vector mfye with the
% certainty of each membership fucntion of ye (similar to the
% fuzzy controller).  Notice that we use the same number of
% input membership functions as in the fuzzy controller -
% just for convenience - it does not have to be this way

	if ye<=cye(1)			% Takes care of saturation
         mfye=[1 0 0 0 0 0 0 0 0 0 0];
	 ye_count=ye_count+1;,ye_int=1;
	elseif ye>=cye(numye)	% Takes care of saturation
	 mfye=[0 0 0 0 0 0 0 0 0 0 1];
	 ye_count=ye_count+1;,ye_int=numye;
	else
		for i=1:numye
		 if ye<=cye(i)
		  mfye(i)=max([0 1+(ye-cye(i))/wye]);
			if mfye(i)~=0
			 ye_count=ye_count+1;
			 ye_int=i;	% This term holds last entry with
			 			% a non-zero term
			end
		 else
		  mfye(i)=max([0,1+(cye(i)-ye)/wye]);
			if mfye(i)~=0
			 ye_count=ye_count+1;
			 ye_int=i;	% This term holds last entry with
			 			% a non-zero term
			end
		 end
		end
	end

% The following if-then structure fills the vector mfyc with the
% certainty of each membership fucntion of yc

	if yc<=cyc(1)
         mfyc=[1 0 0 0 0 0 0 0 0 0 0];
	 yc_count=yc_count+1;,yc_int=1;
	elseif yc>=cyc(numyc)
	 mfyc=[0 0 0 0 0 0 0 0 0 0 1];
	 yc_count=yc_count+1;,yc_int=numyc;
	else
		for i=1:numyc
		 if yc<=cyc(i)
		  mfyc(i)=max([0 1+(yc-cyc(i))/wyc]);
			if mfyc(i)~=0
			 yc_count=yc_count+1;
			 yc_int=i;
			end
		 else
		  mfyc(i)=max([0,1+(cyc(i)-yc)/wyc]);
			if mfyc(i)~=0
			 yc_count=yc_count+1;
			 yc_int=i;
			end
		 end
		end
	end

% These for loops calculate the crisp output of the inverse model
% using only the non-zero premise of error,ye, and change in
% error,yc.  This cuts down computation time (similar to the
% fuzzy controller). Minimum is used for the premise and the
% implication.  To understand this part of the code see the
% similar code for the fuzzy controller.

invnum=0;
invden=0;
	for k=(ye_int-ye_count+1):ye_int
		for l=(yc_int-yc_count+1):yc_int
		  prem=min([mfye(k) mfyc(l)]);
		  invnum=invnum+inverrules(k,l)*invbase*(prem-(prem)^2/2);
		  invden=invden+invbase*(prem-(prem)^2/2);
		end
	end

% Next we compute the output of the fuzzy inverse model.
% If you want to let gp=0 to test the fuzzy controller by itself
% then you will have invden=0 and you will not be able to compute p.
% To make it possible to let gp=0 we put in the following
% if-then rule.

if gp==0
p=0;
else
p=invnum/invden;   			% Crisp output of inverse model
if abs(p)<.05, p=0; end     % robustification term

end

% Next we modify the centers of ouput membership functions
% associated with the rules that were on d steps ago
% The indexing sheme is similar to the one used in the
% computation of the outputs of the fuzzy controller and
% fuzzy inverse model.

	for k=(meme_int(d)-meme_count(d)+1):meme_int(d)
		for l=(memc_int(d)-memc_count(d)+1):memc_int(d)

		  fuzzyrules(k,l)=fuzzyrules(k,l)+p;
		end
	end

% Next, the Runge-Kutta equations to find the next state.

	time(index)=t;
	F=A*x+B*u(index);
	k1=step*F;
	xnew=x+k1/2;
	F=A*xnew+B*u(index);
	k2=step*F;
	xnew=x+k2/2;
	F=A*xnew+B*u(index);
	k3=step*F;
	xnew=x+k3;
	F=A*xnew+B*u(index);
	k4=step*F;
	x=x+(1/6)*(k1+2*k2+2*k3+k4); % Calculated next state

t=t+step;  			% Increments time
index=index+1;	 	% Increments the indexing term so that
					% index=1 corresponds to time t=0.

end % This end statement goes with the first "while" statement
    % in the program

%
% Next, we provide plots of the input and output of the plant
% and the output of the reference model
%

subplot(211)
plot(time,y,'-',time,ym,'--')
xlabel('Time (sec)')
title('Output of plant (solid) and reference model (dashed)')
subplot(212)
plot(time,u)
xlabel('Time (sec)')
title('Output of fuzzy controller (input to the plant)')

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产自产高清不卡| 日本韩国视频一区二区| 91在线免费看| 精品动漫一区二区三区在线观看| 中文字幕中文字幕在线一区| 日本v片在线高清不卡在线观看| av中文一区二区三区| 精品理论电影在线| 日韩电影免费一区| 欧美午夜在线观看| 亚洲丝袜精品丝袜在线| 丰满放荡岳乱妇91ww| 精品国产乱码久久久久久牛牛| 一区二区三区波多野结衣在线观看| 福利电影一区二区| 精品国产乱码久久久久久久| 蜜桃91丨九色丨蝌蚪91桃色| 欧美偷拍一区二区| 亚洲综合免费观看高清完整版 | 丁香六月综合激情| 日韩一区二区三区精品视频| 午夜精品久久久久久久久| 暴力调教一区二区三区| 国产精品美女久久久久久久久久久| 国内精品久久久久影院薰衣草| 精品国产一区二区精华| 老司机午夜精品| 精品国产一区久久| 在线成人av影院| 国产成人精品一区二区三区网站观看| 欧美一区二区免费观在线| 一区2区3区在线看| 欧美日韩中文一区| 国产综合色产在线精品| 久久久精品国产免大香伊| 九色综合狠狠综合久久| 久久久久久久久蜜桃| 国产v综合v亚洲欧| 1000部国产精品成人观看| 91小视频在线| 亚洲在线成人精品| 欧美电影一区二区三区| 久久精品国产一区二区三| 26uuu精品一区二区| 成人动漫一区二区三区| 亚洲欧美另类图片小说| 欧美一区二区视频在线观看2022| 久久精品国产精品亚洲红杏| 91精品国产乱| 九九国产精品视频| 国产精品久久久久影院亚瑟 | 床上的激情91.| 国产精品国产三级国产普通话蜜臀| 91一区二区三区在线观看| 亚洲午夜精品久久久久久久久| 欧美一区二区三区成人| 国产另类ts人妖一区二区| 亚洲精品v日韩精品| 制服.丝袜.亚洲.中文.综合| 国产原创一区二区| 综合网在线视频| 欧美一区二区三区免费观看视频| 国产综合久久久久久鬼色| 亚洲黄色录像片| 精品毛片乱码1区2区3区| av高清不卡在线| 久久国产精品色| 亚洲三级电影网站| 欧美变态口味重另类| 色综合久久综合| 美女视频黄免费的久久| 中文字幕日本不卡| 日韩免费电影网站| 色偷偷久久一区二区三区| 国模冰冰炮一区二区| 亚洲综合激情网| 国产欧美日韩亚州综合| 欧美日韩精品免费观看视频 | 激情综合色综合久久| 亚洲美女淫视频| 国产日韩欧美综合一区| 欧美一级理论片| 欧美日韩中文精品| 91视频观看免费| 粉嫩嫩av羞羞动漫久久久| 美女网站一区二区| 五月天久久比比资源色| 《视频一区视频二区| 樱花草国产18久久久久| 国产日韩欧美精品在线| 精品福利一区二区三区免费视频| 欧美日韩成人综合天天影院| 色94色欧美sute亚洲线路一ni| 国产成人精品一区二区三区网站观看| 琪琪久久久久日韩精品| 亚洲第一电影网| 亚洲欧美电影一区二区| 综合电影一区二区三区 | 欧美性高清videossexo| a4yy欧美一区二区三区| 成人午夜碰碰视频| 国产黑丝在线一区二区三区| 激情五月婷婷综合| 国产一区二区导航在线播放| 精品一区二区免费看| 久久 天天综合| 国产精品亚洲人在线观看| 国产一区二区三区在线观看免费视频| 麻豆成人av在线| 加勒比av一区二区| 国产综合成人久久大片91| 国产乱码精品一区二区三 | 国产欧美日韩不卡| 久久色.com| 国产精品久久久久婷婷二区次| 国产精品午夜免费| 亚洲色欲色欲www在线观看| 成人欧美一区二区三区白人| 国产精品国产三级国产| 一区二区三区在线免费| 亚洲亚洲精品在线观看| 视频一区二区国产| 美国三级日本三级久久99| 国产精品一区二区久激情瑜伽| 丰满白嫩尤物一区二区| 91小宝寻花一区二区三区| 欧美亚洲自拍偷拍| 日韩欧美国产三级| 久久精品夜夜夜夜久久| 亚洲人被黑人高潮完整版| 亚洲福利视频一区二区| 久久99精品国产91久久来源| 高清成人在线观看| 色哟哟日韩精品| 日韩小视频在线观看专区| 国产免费成人在线视频| 亚洲一区二区五区| 久久99国产乱子伦精品免费| 欧美性受xxxx| 精品国产91九色蝌蚪| 亚洲丝袜另类动漫二区| 男女男精品视频| 94-欧美-setu| 26uuuu精品一区二区| 精品日韩成人av| 国产精品伦理在线| 全部av―极品视觉盛宴亚洲| 国产精品影视网| 欧美日韩小视频| 久久精品夜色噜噜亚洲a∨| 亚洲一二三区在线观看| 国产乱淫av一区二区三区| 欧美视频在线一区| 久久噜噜亚洲综合| 亚洲一区二区av在线| 风流少妇一区二区| 欧美精品久久久久久久多人混战 | 一区二区三区日本| 国产麻豆午夜三级精品| 欧美日韩国产一区| 亚洲同性gay激情无套| 久草在线在线精品观看| 欧美日韩免费观看一区三区| 国产欧美日本一区二区三区| 日韩激情一区二区| 欧美性大战久久| 国产精品久久久久久久久晋中| 青娱乐精品在线视频| 欧洲亚洲精品在线| 中文字幕乱码一区二区免费| 奇米影视一区二区三区小说| 91视频www| 国产精品成人免费| 国产成人精品免费在线| 精品少妇一区二区三区在线视频| 亚洲一区二区三区三| 一本色道久久综合亚洲91| 国产精品午夜春色av| 国产高清久久久久| 久久久午夜精品| 国产伦精品一区二区三区免费迷| xvideos.蜜桃一区二区| 老司机午夜精品99久久| 91精品国产福利| 天天免费综合色| 欧美精品在线一区二区| 亚洲成人午夜电影| 欧美日韩国产精品成人| 亚洲午夜激情av| 精品视频一区二区三区免费| 亚洲综合区在线| 欧美日韩激情一区二区三区| 亚洲午夜三级在线| 欧美在线一二三四区| 亚洲制服丝袜av| 欧美在线观看视频在线| 亚洲444eee在线观看| 欧美一区二区三区系列电影| 欧美bbbbb| 精品av综合导航|