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

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

?? mohuzishiyingkongzhi.txt

?? 模型自適應模糊控制源代碼
?? 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一区二区三区免费野_久草精品视频
韩国在线一区二区| 91精品国产综合久久精品麻豆| 成人激情午夜影院| 欧美精品少妇一区二区三区| 国产午夜精品久久久久久免费视| 一区二区三区免费看视频| 国产在线麻豆精品观看| 欧美日韩久久久| 亚洲三级免费观看| 国产一区二区三区综合| 7777精品伊人久久久大香线蕉| 国产精品久久久久久久久免费桃花| 美女视频网站黄色亚洲| 欧美性做爰猛烈叫床潮| 亚洲天堂网中文字| 高清av一区二区| 欧美精品一区二区久久婷婷| 亚洲成人午夜影院| 91福利精品视频| 亚洲精品水蜜桃| 成人av在线影院| 国产午夜三级一区二区三| 精品亚洲porn| 2023国产精品视频| 极品尤物av久久免费看| 日韩网站在线看片你懂的| 午夜精品123| 欧美日韩一卡二卡三卡 | ...中文天堂在线一区| 国产精品影音先锋| 久久精品人人做| 国产成人午夜精品影院观看视频 | 欧美日韩精品免费观看视频| 夜夜操天天操亚洲| 在线中文字幕一区| 一区二区三区影院| 欧美视频一区二区三区| 亚洲一二三级电影| 欧美日韩久久久一区| 日本在线不卡视频一二三区| 欧美成va人片在线观看| 国产九色sp调教91| ...xxx性欧美| 欧美日韩一区不卡| 九色porny丨国产精品| 日韩欧美国产不卡| 国产一区二区中文字幕| 国产精品人妖ts系列视频| 99久久婷婷国产综合精品| 亚洲影院理伦片| 欧美zozo另类异族| 国产91精品一区二区麻豆网站| 国产精品福利一区| 欧美日韩视频不卡| 国产精品自在在线| 一区二区三区在线视频免费 | 日韩高清不卡在线| 国产亚洲一本大道中文在线| 色综合久久中文综合久久牛| 日韩电影网1区2区| 中文字幕的久久| 欧美理论电影在线| 国产激情一区二区三区四区 | av电影在线观看不卡| 一个色在线综合| 欧美va亚洲va在线观看蝴蝶网| 丰满放荡岳乱妇91ww| 亚洲国产视频网站| 国产三级久久久| 欧美人妖巨大在线| 成人一级片网址| 亚洲动漫第一页| 国产欧美一区二区在线观看| 欧美人成免费网站| 成人app下载| 久久成人精品无人区| 亚洲黄网站在线观看| 国产三级一区二区三区| 欧美日韩一区二区不卡| av在线播放不卡| 免费欧美在线视频| 亚洲成人精品影院| 国产精品乱码妇女bbbb| 精品久久久久久久久久久久包黑料 | 91小视频在线| 韩国在线一区二区| 日韩国产一区二| 亚洲女同女同女同女同女同69| 精品国产精品网麻豆系列| 日本精品视频一区二区三区| 国产成人av电影免费在线观看| 欧美a级一区二区| 亚洲激情一二三区| 亚洲视频香蕉人妖| 中文字幕精品一区二区精品绿巨人 | 欧美mv和日韩mv国产网站| 欧美日韩一区二区在线观看| 国产·精品毛片| 国产一区在线精品| 国产在线播精品第三| 三级久久三级久久| 亚洲成人免费在线观看| 亚洲制服丝袜一区| 亚洲三级电影网站| 亚洲美女屁股眼交| 亚洲欧洲av一区二区三区久久| 国产日韩欧美精品电影三级在线| 欧美一级免费观看| 在线观看91av| 欧美一区二区二区| 欧美一二区视频| 欧美一二三四区在线| 欧美日韩欧美一区二区| 欧美日韩国产色站一区二区三区| 色婷婷av一区| 欧洲av一区二区嗯嗯嗯啊| 色婷婷精品久久二区二区蜜臂av| 色综合天天性综合| 在线视频一区二区免费| 欧美日韩免费高清一区色橹橹 | 国产午夜精品一区二区三区四区| 国产偷v国产偷v亚洲高清| 日本一区二区三区久久久久久久久不 | 夜夜爽夜夜爽精品视频| 亚洲综合999| 三级欧美在线一区| 久久精品国产免费看久久精品| 精品一区二区三区日韩| 国产91露脸合集magnet | 日韩一区二区三区四区五区六区| 欧美一级片在线看| 国产亚洲欧美日韩在线一区| 中文欧美字幕免费| 伊人色综合久久天天| 亚洲福利国产精品| 韩国欧美一区二区| 97超碰欧美中文字幕| 欧美日韩免费观看一区二区三区 | 亚洲日本va午夜在线电影| 亚洲影院理伦片| 国内不卡的二区三区中文字幕 | 中文字幕日韩精品一区| 亚洲国产cao| 国产综合成人久久大片91| 91影视在线播放| 91精品在线免费观看| 久久精品夜夜夜夜久久| 亚洲综合另类小说| 激情欧美一区二区| 色综合色狠狠天天综合色| 欧美一区中文字幕| 亚洲三级小视频| 久久99国产精品久久99果冻传媒| 成人app网站| 日韩午夜电影av| 亚洲男人天堂av| 国产一区二区三区四| 欧美性感一类影片在线播放| www国产成人| 日韩有码一区二区三区| 不卡av电影在线播放| 欧美mv日韩mv国产网站| 亚洲亚洲精品在线观看| a级精品国产片在线观看| 欧美大片免费久久精品三p| 亚洲精品免费在线| 国产成人福利片| 欧美成va人片在线观看| 亚洲成人免费av| 日本伦理一区二区| 国产精品无圣光一区二区| 老鸭窝一区二区久久精品| 欧洲av一区二区嗯嗯嗯啊| 国产精品网曝门| 国产一区二区精品久久99| 3d成人动漫网站| 亚洲狠狠爱一区二区三区| av在线播放不卡| 国产精品情趣视频| 精品一区二区三区欧美| 欧美一二三区在线| 日韩av中文在线观看| 欧美在线播放高清精品| 亚洲精品一二三| 91丝袜美腿高跟国产极品老师 | 中文一区二区完整视频在线观看| 久久精品国产亚洲a| 日韩欧美一二三区| 石原莉奈在线亚洲二区| 欧美亚洲综合一区| 一区二区三区 在线观看视频| 99久久亚洲一区二区三区青草| 日本一区二区三区视频视频| 国产盗摄视频一区二区三区| 国产亚洲自拍一区| 成人精品电影在线观看| 日本一区二区不卡视频| 99在线热播精品免费| 成人欧美一区二区三区| 在线视频欧美区|