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

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

?? mohuzishiyingkongzhi.txt

?? FUzzy PID?。茫希睿簦颍铮欤。。Uzzy PID?。茫希睿簦颍铮?
?? TXT
?? 第 1 頁 / 共 2 頁
字號:
clear		% Clear all variables in memory
eold=0; 	% Intial condition used to calculate c
rold=0; 	% Intial condition used to calculate r
yeold=0; 	% Intial condition used to calculate yc
ymold=0; 	% Initial condition for the first order reference model

% Next, initialize parameters for the fuzzy controller

nume=11; 	% Number of input membership functions for the e
			% universe of discourse
numc=11; 	% Number of input membership functions for the c
			% universe of discourse

ge=1/2;,gc=1/2;,gu=5;
		% Scaling gains for tuning membership functions for
		% universes of discourse for e, c and u respectively
		% These are tuned to improve the performance of the FMRLC
we=0.2*(1/ge);
	% we is half the width of the triangular input membership
	% function bases (note that if you change ge, the base width
	% will correspondingly change so that we always end
	% up with uniformly distributed input membership functions)
	% Note that if you change nume you will need to adjust the
	% "0.2" factor if you want membership functions that
	% overlap in the same way.
wc=0.2*(1/gc);
	% Similar to we but for the c universe of discourse
base=0.4*gu;
	% Base width of output membership fuctions of the fuzzy
	% controller

% Place centers of membership functions of the fuzzy controller:

%  Centers of input membership functions for the e universe of
% discourse for  of fuzzy controller (a vector of centers)
ce=[-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1]*(1/ge);

% Centers of input membership functions for the c universe of
% discourse for  of fuzzy controller (a vector of centers)
cc=[-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1]*(1/gc);
gf=0;

fuzzyrules=[-1  -1   -1   -1  -1    -1  -0.8 -0.6 -0.4 -0.2  0;
	    -1  -1   -1   -1  -1   -0.8 -0.6 -0.4 -0.2   0  0.2;
	    -1  -1   -1   -1  -0.8 -0.6 -0.4 -0.2   0   0.2 0.4;
	    -1  -1   -1  -0.8 -0.6 -0.4 -0.2   0   0.2  0.4 0.6;
	    -1  -1  -0.8 -0.6 -0.4 -0.2   0   0.2  0.4  0.6 0.8;
	    -1 -0.8 -0.6 -0.4 -0.2   0   0.2  0.4  0.6  0.8  1;
	  -0.8 -0.6 -0.4 -0.2   0   0.2  0.4  0.6  0.8   1   1;
	  -0.6 -0.4 -0.2   0   0.2  0.4  0.6  0.8   1    1   1;
	  -0.4 -0.2   0   0.2  0.4  0.6  0.8   1    1    1   1;
	  -0.2  0    0.2  0.4  0.6  0.8   1    1    1    1   1;
	   0   0.2   0.4  0.6  0.8   1    1    1    1    1   1]*gu*gf;

% Next, we define some parameters for the fuzzy inverse model

gye=1/2;,gyc=1/2;
	% Scaling gains for the error and change in error for
	% the inverse model
	% These are tuned to improve the performance of the FMRLC
gp=0.2;

numye=11; 	% Number of input membership functions for the ye
			% universe of discourse
numyc=11; 	% Number of input membership functions for the yc
			% universe of discourse

wye=0.2*(1/gye);	% Sets the width of the membership functions for
					% ye from center to extremes
wyc=0.2*(1/gyc);	% Sets the width of the membership functions for
					% yc from center to extremes
invbase=0.4*gp; % Sets the base of the output membership functions
				% for the inverse model

% Place centers of inverse model membership functions
% For error input for learning Mechanism
cye=[-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1]*(1/gye);

% For change in error input for learning mechanism
cyc=[-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1]*(1/gyc);

% The next matrix contains the rule-base matrix for the fuzzy
% inverse model.  Notice that for simplicity we choose it to have
% the same structure as the rule-base for the fuzzy controller.
% While this will work for the control of the simple first order
% linear system for many nonlinear systems a different structure
% will be needed for the rule-base.  Again, the entries are
% the centers of the output membership functions, but now for
% the fuzzy inverse model.

inverrules=[-1  -1   -1   -1  -1    -1  -0.8 -0.6 -0.4 -0.2  0;
	    -1  -1   -1   -1  -1   -0.8 -0.6 -0.4 -0.2   0  0.2;
	    -1  -1   -1   -1  -0.8 -0.6 -0.4 -0.2   0   0.2 0.4;
	    -1  -1   -1  -0.8 -0.6 -0.4 -0.2   0   0.2  0.4 0.6;
	    -1  -1  -0.8 -0.6 -0.4 -0.2   0   0.2  0.4  0.6 0.8;
	    -1 -0.8 -0.6 -0.4 -0.2   0   0.2  0.4  0.6  0.8  1;
	  -0.8 -0.6 -0.4 -0.2   0   0.2  0.4  0.6  0.8   1   1;
	  -0.6 -0.4 -0.2   0   0.2  0.4  0.6  0.8   1    1   1;
	  -0.4 -0.2   0   0.2  0.4  0.6  0.8   1    1    1   1;
	  -0.2  0    0.2  0.4  0.6  0.8   1    1    1    1   1;
	   0   0.2   0.4  0.6  0.8   1    1    1    1    1   1]*gp;

% Next, we set up some parameters/variables for the
% knowledge-base modifier

d=1;
% This sets the number of steps the knowledge-base modifier looks
% back in time. For this program it must be an integer
% less than or equal to 10 (but this is easy to make larger)

% The next four vectors are used to store the information about
% which rules were on 1 step in the past, 2 steps in the past, ....,
% 10 steps in the past (so that picking 0<= d <= 10 can be used).

meme_int=[0 0 0 0 0 0 0 0 0 0];
	% sets up the vector to store up to 10 values of e_int
meme_count=[0 0 0 0 0 0 0 0 0 0];
	% sets up the vector to store up to 10 values of e_count
memc_int=[0 0 0 0 0 0 0 0 0 0];
	% sets up the vector to store up to 10 values of c_int
memc_count=[0 0 0 0 0 0 0 0 0 0];
	% sets up the vector to store up to 10 values of c_count

%
%  Next, we intialize the simulation of the closed-loop system.
%

k_p=1;	  % The numerator of the plant.  Change this value to study
		  % the ability of the FMRLC to control other plants.  Also,
		  % you can make this a time-varying parameter.
zeta_p=.707;
       % Damping ratio for the second order plant (could change this
	   % to see how the system will adapt to it)
w_p=1; % Undamped natural frequency for the plant (could change this
	   % to see how the system will adapt to it)
k_r=1;
 % The numerator of the reference model.  Change this value to study
 % the ability of the FMRLC to meet other performance specifications.
a_r=1;
    % The value of -a_r is the pole position for the reference model.
	% Change this value to study the ability of the FMRLC to meet
	% other performance specifications (e.g., a faster response).

t=0; 		% Reset time to zero
index=1;	% This is time's index (not time, its index).
tstop=64;	% Stopping time for the simulation (in seconds)
step=0.01;  % Integration step size
x=[0;0];	% Intial condition on state	of the plant

% Need a state space representation for the plant.  Since our
% plant is linear we use the standard form of xdot=Ax+Bu, y=Cx+Du
% Matrix A of state space representation of plant

A=[0 1;
   -w_p^2 -2*zeta_p*w_p];
B=[0; 1];	    % Matrix B of state space representation of plant
C=[k_p 0];	    % Matrix C of state space representation of plant


%
% Next, we start the simulation of the system.  This is the main
% loop for the simulation of the FMRLC.
%
while t <= tstop
	y(index)=C*x;     % Output of the plant

% Next, we define the reference input r as a sine wave

r(index)=sin(.6*t);



ym(index)=(1/(2+a_r*step))*((2-a_r*step)*ymold+...
                                    k_r*step*(r(index)+rold));

ymold=ym(index);
rold=r(index);
	% This saves the past value of the ym (r) so that we can use it
	% the next time around the loop

% Now that we have simulated the next step for the plant and reference
% model we will focus on the two fuzzy components.

% First, for the given fuzzy controller inputs we determine
% the extent at which the error membership functions
% of the fuzzy controller are on (this is the fuzzification part).

c_count=0;,e_count=0;   % These are used to count the number of
						% non-zero mf certainities
of e and c
e=r(index)-y(index);
			% Calculates the error input for the fuzzy controller
c=(e-eold)/step;
	% Calculates the change in error input for the fuzzy controller
eold=e;
% Saves the past value of e for use in the next time through the
% loop

% The following if-then structure fills the vector mfe
% with the certainty of each membership fucntion of e for the
% current input e

	if e<=ce(1)		% Takes care of saturation of the left-most
					% membership function
         mfe=[1 0 0 0 0 0 0 0 0 0 0]; % i.e., the only one on is the
         							  %left-most one
	 e_count=e_count+1;,e_int=1; 	  %  One mf on, it is the
	 								  %left-most one.
	elseif e>=ce(nume)				  % Takes care ofsaturation
									  %of the right-most mf
	 mfe=[0 0 0 0 0 0 0 0 0 0 1];
	 e_count=e_count+1;,e_int=nume; % One mf on, it is the
	 								%right-most one
	else      % In this case the input is on the middle part of the
			  % universe of discourse for e
			  % Next, we are going to cycle through the mfs to
			  % find all that are on
	   for i=1:nume
		 if e<=ce(i)
		  mfe(i)=max([0 1+(e-ce(i))/we]);
		  				% In this case the input isto the
		  				% left of the center ce(i)and we compute
						% the value of the mfcentered at ce(i)
						% for this input e
			if mfe(i)~=0
				% If the certainty is not equal to zerothen say
				% that have one mf on by incrementing our count
			 e_count=e_count+1;
			 e_int=i;	% This term holds the index last entry
			 			% with a non-zero term
			end
		 else
		  mfe(i)=max([0,1+(ce(i)-e)/we]);
		  						% In thiscase the input is to the
		  						% right ofthe center ce(i)
			if mfe(i)~=0
			 e_count=e_count+1;
			 e_int=i;  % This term holds the index of the

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲激情图片一区| 日韩免费视频一区| eeuss影院一区二区三区| 精品一区二区三区免费毛片爱| 亚洲成人先锋电影| 日韩国产一二三区| 日本午夜一本久久久综合| 亚洲成av人**亚洲成av**| 婷婷成人综合网| 免费黄网站欧美| 国产九色精品成人porny| 丰满亚洲少妇av| 岛国一区二区三区| 91精彩视频在线观看| 欧美理论片在线| 久久久一区二区三区| 亚洲国产精品成人综合色在线婷婷| 国产精品网友自拍| 亚洲3atv精品一区二区三区| 日韩国产欧美三级| 国产乱一区二区| 一本大道久久a久久综合婷婷| 欧美视频第二页| 欧美精品一区二区在线播放| 久久精品日韩一区二区三区| 亚洲品质自拍视频网站| 日韩电影在线观看一区| 国产成人午夜99999| 99精品视频中文字幕| 欧美人牲a欧美精品| 久久婷婷国产综合精品青草| 中文字幕一区二区在线观看| 亚洲成人黄色影院| 成人天堂资源www在线| 欧洲精品视频在线观看| 2024国产精品视频| 亚洲国产一区二区视频| 国产精品综合二区| 欧美人与性动xxxx| 亚洲婷婷在线视频| 激情综合网激情| 色噜噜久久综合| 久久精品视频网| 日韩精品电影在线观看| 97久久人人超碰| www一区二区| 日本欧洲一区二区| 色成人在线视频| 国产清纯美女被跳蛋高潮一区二区久久w| 玉米视频成人免费看| 国产精品一品二品| 91精品国产综合久久久久| 亚洲美女在线国产| 国产精品夜夜嗨| 欧美一区二区二区| 亚洲成人激情av| 91丨九色丨国产丨porny| 久久一区二区三区四区| 日韩在线播放一区二区| 在线视频国产一区| 亚洲手机成人高清视频| 国产美女久久久久| 日韩久久久久久| 亚洲制服欧美中文字幕中文字幕| 成人精品国产一区二区4080| 精品人伦一区二区色婷婷| 亚洲成av人片在线观看| 色综合色综合色综合| 国产精品久久久久久久久免费樱桃| 美女爽到高潮91| 日韩欧美综合在线| 精品一区二区三区在线视频| 欧美一级免费大片| 久久精品99国产精品| 日韩欧美一区二区不卡| 麻豆成人av在线| 日韩欧美二区三区| 国产一区二区视频在线| 亚洲精品一区二区三区福利 | 亚洲第一在线综合网站| 日本高清不卡aⅴ免费网站| 亚洲精品亚洲人成人网在线播放| 成人av动漫在线| 中文字幕视频一区二区三区久| 国产不卡一区视频| 亚洲人成精品久久久久久| 色欲综合视频天天天| 亚洲第一福利一区| 欧美videos中文字幕| 国产91精品一区二区麻豆亚洲| 国产精品久久久久7777按摩| 99免费精品在线| 亚洲一级片在线观看| 欧美一级午夜免费电影| 精品亚洲国产成人av制服丝袜| 久久九九99视频| 色吧成人激情小说| 久久精品国产一区二区三| 久久久久久久av麻豆果冻| www.亚洲激情.com| 亚洲电影在线播放| 久久久久国产精品厨房| 91网站在线播放| 青娱乐精品在线视频| 久久久99免费| 91黄色在线观看| 久久99精品国产91久久来源| 综合色中文字幕| 欧美一区二区女人| av在线免费不卡| 捆绑紧缚一区二区三区视频| 欧美国产欧美综合| 欧美老年两性高潮| 成人黄色综合网站| 蜜桃视频在线一区| 亚洲欧美激情小说另类| 日韩美女视频在线| 欧美三级电影精品| 高潮精品一区videoshd| 日本网站在线观看一区二区三区| 国产精品入口麻豆原神| 欧美一区二区在线观看| 91福利精品视频| 国产999精品久久| 久久精品久久久精品美女| 亚洲靠逼com| 国产精品区一区二区三区| 日韩一区二区三区高清免费看看| 色综合久久88色综合天天免费| 久久精品国产亚洲高清剧情介绍 | 国产精品自拍网站| 天天操天天综合网| 一区二区三区丝袜| 国产精品久久久久久久第一福利 | 视频在线在亚洲| 亚洲免费成人av| 亚洲视频一区二区在线| 国产色91在线| 久久久久久亚洲综合| 日韩色视频在线观看| 91麻豆精品国产自产在线| 色婷婷综合视频在线观看| 成人97人人超碰人人99| 国产成人综合视频| 国产精品自在欧美一区| 国产精品影视网| 国产一区二区伦理片| 极品少妇xxxx偷拍精品少妇| 麻豆91精品91久久久的内涵| 日韩经典中文字幕一区| 亚洲sss视频在线视频| 亚洲国产成人高清精品| 亚洲成在人线在线播放| 亚洲国产精品久久不卡毛片 | 国内久久精品视频| 国产精品一区久久久久| 国产高清视频一区| 国产精品自拍三区| 99久久国产免费看| 色94色欧美sute亚洲13| 欧美色电影在线| 日韩一级完整毛片| 26uuu国产一区二区三区| 久久久国产精品午夜一区ai换脸| 国产目拍亚洲精品99久久精品| 国产人成亚洲第一网站在线播放| 国产精品久久久久影院亚瑟| 中文字幕一区免费在线观看| 一区二区不卡在线播放| 亚洲123区在线观看| 蜜臀av在线播放一区二区三区| 久久国产精品一区二区| 国产成人在线视频网址| 91在线你懂得| 91麻豆精品国产| 国产午夜三级一区二区三| 国产精品久久久久久久蜜臀| 一区二区三区在线免费播放| 秋霞av亚洲一区二区三| 国产mv日韩mv欧美| 91久久免费观看| 欧美电影免费提供在线观看| 国产日韩在线不卡| 一区二区三区日韩欧美精品| 琪琪一区二区三区| av在线播放成人| 日韩欧美亚洲国产另类 | 欧美日韩一区二区三区四区| 日韩欧美激情一区| 亚洲女同女同女同女同女同69| 午夜精品福利久久久| 国产成人aaaa| 欧美一级生活片| 中文字幕在线观看不卡视频| 日韩va亚洲va欧美va久久| 99久久夜色精品国产网站| 日韩亚洲欧美一区| 亚洲一区在线电影| 成人国产在线观看| 久久久久久久精|