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

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

?? neural_indirect_grad.m

?? 一個用MATLAB編寫的優化控制工具箱
?? M
字號:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% This program implements the indirect neural controller% for the surge tank example.%% Kevin Passino% Version: 3/25/99%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Initialize variablesclear% We assume that the parameters of the tank are:abar=0.01;  % Parameter characterizing tank shape (nominal value is 0.01)bbar=0.2;   % Parameter characterizing tank shape (nominal value is 0.2)cbar=1;     % Clogging factor representing dirty filter in pump (nominally, 1)dbar=1;     % Related to diameter of output pipe g=9.8;      % GravityT=0.1;      % Sampling ratebeta0=0.25; % Set known lower bound on betahatbeta1=0.5;  % and the upper bound% Set the length of the simulationNnc=1000;% As a reference input, we use a square wave (define one extra % point since at the last time we need the reference value at% the last time plus one)timeref=1:Nnc+1;%r(timeref)=3.25-3*square((2*pi/150)*timeref); % A square wave inputr(timeref)=3.25*ones(1,Nnc+1)-3*(2*rand(1,Nnc+1)-ones(1,Nnc+1)); % A noise inputref=r(1:Nnc);  % Then, use this one for plottingtime=1:Nnc;time=T*time; % Next, make the vector real time% Next, set plant initial conditionsh(1)=1;          % Initial liquid levele(1)=r(1)-h(1);  % Initial errorA(1)=abs(abar*h(1)+bbar);alpha(1)=h(1)-T*dbar*sqrt(2*g*h(1))/A(1);beta(1)=T*cbar/A(1);% Define the parameters for the gradient adaptation methodeta=1.25;gamma=1;Walpha=0.01;Wbeta=0.01;epsilon(1)=Walpha; % Just pick this to be something reasonable% Define parameters of the approximatorsnR=50;  % The number of receptive field units in the RBFtheta(:,1)=ones(2*nR,1);thetabeta(:,1)=(beta0+0.5*(beta1-beta0))*theta(nR+1:2*nR,1);  % Set initial thetabeta value      													% (the middle of the range)thetaalpha(:,1)=0*theta(1:nR,1);      % Set initial thetaalpha value (not a good guess)paramerrornorm(1)=0;  n=1; % The number of inputs (since 1, use c(1,..) below)c(1,1)=0;  % Next, initialize the centers - just make them uniformsigma=0.2;% Next, form the phih vectorfor i=2:nR	c(1,i)=c(1,i-1)+0.2;endfor i=1:nR	phih(i,1)=exp(-(h(1)-c(1,i))^2/sigma^2);end% Next, find the initial estimates of the plant dynamics	betahat(1)=thetabeta(:,1)'*phih(:,1);alphahat(1)=thetaalpha(:,1)'*phih(:,1);% Next, define the intial controller output	u(1)=(1/(betahat(1)))*(-alphahat(1)+r(1+1));% Next, form the phi vectorphi(:,1)=[phih(:,1)', u(1)*phih(:,1)']';	% Initialize estimate of the plant dynamics (note that the % time indices are not properly aligned but this is just an estimate	hhat(1)=alphahat(1)+betahat(1)*u(1); % Estimate to be the same as at 									 % the first time step									 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Next, start the main loop:%%%%%%%%%%%%%%%%%%%%%%%%%%%%%for k=2:Nnc	% Define the plant		% In implementation, the input flow is restricted 	% by some physical contraints. So we have to put a	% limit for the input flow that is chosen as 50.    if u(k-1)>50      u(k-1)=50;    end    if u(k-1)<-50     u(k-1)=-50;    end	h(k)=alpha(k-1)+beta(k-1)*u(k-1);	h(k)=max([0.001,h(k)]); % Constraint liquid not to go							% negative% Define the controller		e(k)=r(k)-h(k);			% Define the deadzone size and its output:		epsilon(k)=Walpha+Wbeta*abs(u(k-1));		if e(k)>epsilon(k)		eepsilon(k)=e(k)-epsilon(k);	end	if abs(e(k))<=epsilon(k)		eepsilon(k)=0;	end	if e(k)<-epsilon(k)		eepsilon(k)=e(k)+epsilon(k);	end	% Next, perform the parameter update with the normalized gradient method:		theta(:,k)=theta(:,k-1)-...	(eta*phi(:,k-1)*eepsilon(k))/(1+gamma*phi(:,k-1)'*phi(:,k-1));		thetabeta(:,k)=theta(nR+1:2*nR,k);  	thetaalpha(:,k)=theta(1:nR,k);  		% Perform projection for betahat(k) so that the control input	% is well-defined		for i=1:nR		if thetabeta(i,k)<beta0			thetabeta(i,k)=beta0;		end	end	% Next, fix the theta vector with what the projection suggested	% (of course we do not have to fix the thetaalpha part since we 	% do not use projection for it).		theta(nR+1:2*nR,k)=thetabeta(:,k); 		% Next, for plotting, compute the norm of the parameter error		paramerrornorm(k)=((theta(:,k)-theta(:,k-1))'*(theta(:,k)-theta(:,k-1)));		% Next, compute the phih vector:		for i=1:nR		phih(i,k)=exp(-(h(k)-c(1,i))^2/sigma^2);	end	% Next, find the estimates of the plant dynamics		betahat(k)=thetabeta(:,k)'*phih(:,k);	alphahat(k)=thetaalpha(:,k)'*phih(:,k);	% Store the estimate of the plant dynamics		hhat(k)=alphahat(k-1)+betahat(k-1)*u(k-1);		% Next, use the certainty equivalence controller		u(k)=(1/(betahat(k)))*(-alphahat(k)+r(k+1));		% Form the phi vector		phi(:,k)=[phih(:,k)', u(k)*phih(:,k)']';		% Define some parameters to be used in the plant		A(k)=abs(abar*h(k)+bbar);	alpha(k)=h(k)-T*dbar*sqrt(2*g*h(k))/A(k);	beta(k)=T*cbar/A(k);	end%%%%%%%%% Plot the resultsfigure(1)clfsubplot(211)plot(time,h,'k-',time,ref,'k--')gridylabel('Liquid height, h')title('Liquid level h and reference input r')subplot(212)plot(time,u,'k-')gridtitle('Tank input, u')xlabel('Time, k')axis([min(time) max(time) -50 50])%%%%%%%%figure(2)clfsubplot(311)plot(time,h,'k-',time,hhat,'k--')gridtitle('Liquid level h and estimate of h')subplot(312)plot(time,alpha,'k-',time,alphahat,'k--')gridtitle('Plant nonlinearity \alpha and its estimate')subplot(313)plot(time,beta,'k-',time,betahat,'k--')gridxlabel('Time, k')title('Plant nonlinearity \beta and its estimate')%%%%%%%%%%%%%%figure(3)clfplot(time,paramerrornorm,'k-')gridxlabel('Time, k')title('Norm of parameter error')%%%%%%%%%%%%%%figure(4)clfplot(time,e,'k-')hold onerrorbar(time,0*ones(1,length(epsilon)),epsilon,'c-')% Due to the samping period size the above will just make the deadzone% area be a cyan shaded region.gridxlabel('Time, k')title('Tracking error, e, and deadzone width')axis([min(time) max(time) min([min(e),min(-epsilon)]) max([max(e), max(epsilon)])])%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Next, compute and display the final approximator mapping and% nonlinearity in the plant (i.e., at time k)%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%height=0:0.05:10;for j=1:length(height)		% Estimate of the nonlinearity (at time k)		for i=1:nR		phiht(i,j)=exp(-(height(j)-c(1,i))^2/sigma^2);	end	alphahatt(j)=thetaalpha(:,k)'*phiht(:,j);	betahatt(j)=thetabeta(:,k)'*phiht(:,j);	% Actual nonlinearity	At(j)=abs(abar*height(j)+bbar);	alphat(j)=height(j)-T*dbar*sqrt(2*g*height(j))/At(j);	betat(j)=T*cbar/At(j);	end%%%%%%%%%%%%%figure(5)clfsubplot(311)plot(height,alphat,'k-',height,alphahatt,'k--')gridtitle('\alpha and its estimate at the last time step')subplot(312)plot(height,betat,'k-',height,betahatt,'k--')gridtitle('\beta and its estimate at the last time step')axis([min(height) max(height) 0 1])subplot(313)plot(height,phiht,'k-')gridtitle('\phi_h activation functions')xlabel('Liquid height, h')%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% End of program%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本91福利区| 亚洲综合精品自拍| 日韩一级视频免费观看在线| 91日韩精品一区| www.在线欧美| 91蝌蚪porny九色| 欧美亚洲动漫制服丝袜| 欧美中文字幕亚洲一区二区va在线 | 亚洲午夜三级在线| 亚洲久草在线视频| 亚洲成人一二三| 青草av.久久免费一区| 狠狠久久亚洲欧美| 国产99久久久精品| 91福利视频在线| 欧美一区二区三区在线| 久久影院视频免费| 国产精品家庭影院| 婷婷国产在线综合| 美腿丝袜在线亚洲一区| 国产伦精品一区二区三区免费迷| 国产91精品久久久久久久网曝门| 91在线观看地址| 欧美一区二区私人影院日本| 久久午夜色播影院免费高清| 国产精品久久久久aaaa| 首页综合国产亚洲丝袜| 九九视频精品免费| 91香蕉视频在线| 欧美刺激脚交jootjob| 中文字幕一区二区三区av| 视频一区欧美精品| www..com久久爱| 欧美一区二区三区视频免费播放 | 亚洲午夜视频在线| 国产馆精品极品| 欧美午夜不卡视频| 日本一区二区视频在线| 日韩av电影一区| 91麻豆国产香蕉久久精品| 欧美一级生活片| 亚洲第一二三四区| 99re这里都是精品| 日韩欧美三级在线| 亚洲国产精品久久久久婷婷884 | 丝袜a∨在线一区二区三区不卡| 国产风韵犹存在线视精品| 欧美色视频一区| 国产精品久久久久7777按摩| 麻豆免费看一区二区三区| 欧洲精品中文字幕| 国产精品区一区二区三区| 蜜桃视频免费观看一区| 在线观看国产日韩| 亚洲男同性视频| www.激情成人| 国产精品毛片久久久久久久| 精品一区二区三区蜜桃| 91麻豆精品91久久久久久清纯| 亚洲精品视频在线观看免费| 成人一级视频在线观看| 精品人伦一区二区色婷婷| 麻豆国产精品777777在线| 91精品欧美一区二区三区综合在| 伊人婷婷欧美激情| 91亚洲精品久久久蜜桃网站| 国产精品久久久久久久久免费相片 | 亚洲国产精品久久不卡毛片| 91网页版在线| 亚洲人亚洲人成电影网站色| 不卡av电影在线播放| 欧美激情一区在线观看| 成人午夜av影视| 国产精品乱子久久久久| 99re这里只有精品首页| 一区二区三区中文在线| 欧美老肥妇做.爰bbww| 亚洲五码中文字幕| 欧美精品aⅴ在线视频| 日韩电影在线一区二区| 欧美一区二区三区婷婷月色| 美女视频一区在线观看| 2023国产精品视频| 国产999精品久久久久久| 欧美国产精品一区| 在线观看欧美日本| 日本午夜精品一区二区三区电影 | 亚洲一区二区三区三| 欧美亚洲综合在线| 日韩精品91亚洲二区在线观看 | 在线观看av一区| 亚洲国产精品一区二区尤物区| 欧美久久高跟鞋激| 狠狠v欧美v日韩v亚洲ⅴ| 国产欧美一区二区三区鸳鸯浴 | 精品中文av资源站在线观看| 欧美国产精品专区| 欧美日韩久久久久久| 捆绑变态av一区二区三区| 久久精品亚洲精品国产欧美| 91麻豆成人久久精品二区三区| 亚洲午夜久久久久| 久久午夜国产精品| 91久久精品国产91性色tv| 日韩经典中文字幕一区| 国产日本欧洲亚洲| 精品视频资源站| 国产福利一区在线| 亚洲超碰精品一区二区| 久久―日本道色综合久久| 91精品办公室少妇高潮对白| 久久国产精品色| 亚洲欧美一区二区三区久本道91 | 国产精品人妖ts系列视频| 欧美网站大全在线观看| 国产很黄免费观看久久| 亚洲成人黄色影院| 中文成人综合网| 欧美一区二区视频免费观看| 91蜜桃免费观看视频| 精品一区二区三区免费| 午夜欧美2019年伦理| 国产精品欧美精品| 日韩欧美激情四射| 欧美日韩精品一区二区三区四区| 国产夫妻精品视频| 精品在线免费视频| 亚洲a一区二区| 亚洲综合区在线| 亚洲视频一二三| 国产精品乱人伦中文| 久久久99精品久久| 精品欧美一区二区久久| 欧美午夜寂寞影院| 91污片在线观看| www.激情成人| 成人污视频在线观看| 国产乱码一区二区三区| 精品一区二区精品| 免费人成网站在线观看欧美高清| 亚洲成av人在线观看| 一区二区三区欧美久久| 一区二区三区资源| 亚洲欧美激情一区二区| 综合亚洲深深色噜噜狠狠网站| 国产日本欧洲亚洲| 国产欧美日本一区二区三区| 久久婷婷国产综合精品青草| 精品国产露脸精彩对白| 亚洲精品一区二区三区福利| www国产成人免费观看视频 深夜成人网| 欧美日韩一区二区三区免费看| 欧洲精品一区二区| 欧美日韩aaaaa| 欧美精品日韩精品| 91精品国产综合久久精品| 91精品在线免费观看| 日韩情涩欧美日韩视频| 欧美大片一区二区| 久久―日本道色综合久久| 国产欧美精品区一区二区三区| 久久精品日产第一区二区三区高清版| 久久久电影一区二区三区| 欧美韩国日本综合| 亚洲激情自拍偷拍| 日韩成人av影视| 国产成都精品91一区二区三| 99精品热视频| 欧美日韩国产高清一区二区| 日韩欧美你懂的| 日本一区二区三区免费乱视频| 中文字幕人成不卡一区| 亚洲综合成人网| 久久成人免费网站| 99热99精品| 欧美一区二区网站| 中文字幕在线一区免费| 亚洲一级在线观看| 黄色成人免费在线| 91网站在线播放| 欧美精品一区二区三| 一区二区在线观看免费| 九色|91porny| 91国模大尺度私拍在线视频| 日韩欧美专区在线| 亚洲天堂免费在线观看视频| 美女任你摸久久| 91视频免费看| 2023国产一二三区日本精品2022| 亚洲日本在线观看| 国产综合色视频| 在线亚洲人成电影网站色www| 久久午夜老司机| 日韩精品五月天| 色欧美日韩亚洲| 国产日韩欧美在线一区| 日日欢夜夜爽一区| 91看片淫黄大片一级| www国产精品av| 麻豆精品国产传媒mv男同|