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

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

?? mohuzishiyingkongzhi.txt

?? 模型自適應模糊控制源代碼
?? 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一区二区三区免费野_久草精品视频
韩日av一区二区| 精品国产一区二区精华| 成人一区二区三区中文字幕| 日韩成人午夜电影| 视频一区二区不卡| 亚洲高清中文字幕| 蜜臀久久99精品久久久久久9| 亚洲最色的网站| 午夜伊人狠狠久久| 亚洲 欧美综合在线网络| 性久久久久久久| 日产国产欧美视频一区精品| 热久久久久久久| 韩国精品主播一区二区在线观看| 国产精选一区二区三区| 日韩黄色一级片| 无码av中文一区二区三区桃花岛| 亚洲欧洲99久久| 日韩高清在线一区| 国产精品亚洲午夜一区二区三区| 国产成人自拍在线| 欧美性色综合网| 91精品国产综合久久精品性色| www亚洲一区| 亚洲va欧美va人人爽| 国产精品66部| 欧美三区在线观看| 国产精品色婷婷| 日本一区中文字幕| 99久久免费精品| 日韩免费性生活视频播放| 国产三级一区二区| 男人的j进女人的j一区| 在线精品视频小说1| 国产免费成人在线视频| 午夜欧美一区二区三区在线播放| 国产成人av福利| 久久精品日产第一区二区三区高清版| 亚洲综合精品久久| 色94色欧美sute亚洲13| 2019国产精品| 日本欧美加勒比视频| 欧美伊人久久久久久午夜久久久久| 国产色一区二区| 狠狠色狠狠色合久久伊人| 欧美一级爆毛片| 免费观看在线综合色| 日韩免费视频一区| 免费人成黄页网站在线一区二区 | 国产肉丝袜一区二区| 国产综合色产在线精品| 日韩一区二区免费电影| 麻豆成人av在线| 久久伊人蜜桃av一区二区| 一区二区三区在线播放| 91国偷自产一区二区三区成为亚洲经典| 国产亚洲女人久久久久毛片| 成人av在线资源网站| 亚洲青青青在线视频| 色天天综合色天天久久| 一区二区三区精品在线| 91蜜桃婷婷狠狠久久综合9色| 一区二区三区在线视频免费观看| 欧美性感一区二区三区| 秋霞午夜鲁丝一区二区老狼| 欧美sm美女调教| 欧美人与z0zoxxxx视频| 97精品国产露脸对白| 国产一区啦啦啦在线观看| 一区二区三区加勒比av| 欧美激情综合五月色丁香小说| 欧美肥胖老妇做爰| 欧美日韩国产一级片| 99精品在线免费| 成人av资源站| 成+人+亚洲+综合天堂| 国产河南妇女毛片精品久久久| 天天影视涩香欲综合网| 亚洲成人激情自拍| 午夜在线电影亚洲一区| 夜夜嗨av一区二区三区网页| 亚洲欧美一区二区三区孕妇| 欧美高清一级片在线观看| 国产免费成人在线视频| 国产日韩精品视频一区| 国产亚洲综合在线| 久久久久久久网| 久久精品人人爽人人爽| 久久久久久一二三区| 久久亚洲捆绑美女| 国产日韩成人精品| 日韩理论电影院| 一区二区三区视频在线看| 夜夜夜精品看看| 天堂久久一区二区三区| 麻豆专区一区二区三区四区五区| 捆绑调教美女网站视频一区| 九色porny丨国产精品| 懂色av一区二区在线播放| 99久久国产综合色|国产精品| 91亚洲精品乱码久久久久久蜜桃| 欧美性色综合网| 精品美女一区二区三区| 中文字幕在线一区免费| 亚洲一级二级三级在线免费观看| 日韩高清国产一区在线| 国模一区二区三区白浆| 色94色欧美sute亚洲线路一久 | 亚洲丝袜美腿综合| 青娱乐精品在线视频| 国产suv精品一区二区6| 欧美一区二区三区精品| ...xxx性欧美| 国产二区国产一区在线观看| 欧美日韩国产a| 亚洲欧美日韩久久| 国产**成人网毛片九色 | 欧美老年两性高潮| 亚洲欧美日韩一区| eeuss影院一区二区三区| 日本一区二区三区dvd视频在线| 免费看日韩a级影片| 91麻豆自制传媒国产之光| 中文字幕一区二区三区av| 国产精品一品二品| 久久久精品国产免费观看同学| 国产美女一区二区三区| 国产欧美一区二区精品秋霞影院| 国产在线看一区| 国产精品青草综合久久久久99| 国产精品66部| 亚洲免费电影在线| 欧美日韩成人综合| 麻豆91免费看| 国产婷婷色一区二区三区四区| 懂色av中文一区二区三区| 欧美激情综合网| 91视频在线观看免费| 日本三级韩国三级欧美三级| 精品久久久久久最新网址| 福利电影一区二区| 亚洲国产视频一区二区| 欧美电影免费观看高清完整版在| 国产精品18久久久| 亚洲高清在线精品| 久久久美女艺术照精彩视频福利播放| 成人免费av网站| 亚洲国产综合在线| 国产日韩欧美精品电影三级在线| 在线观看91精品国产入口| 久久99久国产精品黄毛片色诱| 中文字幕精品在线不卡| 欧美人成免费网站| 一本大道久久a久久综合婷婷| 麻豆成人av在线| 亚洲sss视频在线视频| 国产精品初高中害羞小美女文| 欧美精品aⅴ在线视频| 北条麻妃一区二区三区| 国产一区日韩二区欧美三区| 奇米一区二区三区| 视频一区中文字幕国产| 亚洲激情五月婷婷| 亚洲日本免费电影| 日韩理论片在线| 一区二区三区影院| 亚洲人快播电影网| 亚洲欧美日韩在线播放| 亚洲另类色综合网站| 亚洲日本免费电影| 一区二区三区在线免费视频| 亚洲色图欧洲色图婷婷| 亚洲男人的天堂一区二区| 伊人婷婷欧美激情| 性欧美疯狂xxxxbbbb| 丝袜脚交一区二区| 日韩福利电影在线| 国产麻豆成人传媒免费观看| 国产精品一区二区黑丝| 成人自拍视频在线| 精彩视频一区二区三区| 国产精品久久久久久久久晋中| 国产欧美va欧美不卡在线| 欧美激情一区在线| 爽好多水快深点欧美视频| 国产综合色产在线精品| 成人v精品蜜桃久久一区| 欧美日韩亚洲综合在线| 26uuu成人网一区二区三区| 综合久久久久久| 日本亚洲一区二区| 福利一区二区在线观看| 欧美日韩国产精品成人| 久久精品亚洲精品国产欧美| 亚洲国产综合91精品麻豆| 国产一区二区0| 欧美色国产精品| 综合精品久久久| 国产99久久久国产精品潘金| 91精品国产高清一区二区三区 |