资源简介
SNN-STLAPID.m
代码片段和文件信息
%Single Neural Net PID Controller based on Second Type Learning Algorithm
clear all;
close all;
xc=[000]‘;
K=0.02;P=2;Q=1;d=6;
xiteP=120;
xiteI=4;
xiteD=159;
%Initilizing kpki and kd
wkp_1=rand;
wki_1=rand;
wkd_1=rand;
wkp_1=0.34;
wki_1=0.32;
wkd_1=0.33;
error_1=0;error_2=0;
y_1=0;y_2=0;
u_1=0.1726;u_2=0;u_3=0;u_4=0;u_5=0;u_6=0;u_7=0;
ts=0.001;
for k=1:1:250
time(k)=k*ts;
rin(k)=1.0; %Tracing Step Signal
ym(k)=0;
if k==100
ym(k)=0.10; %Disturbance
end
yout(k)=0.368*y_1+0.26*y_2+u_6+0.632*u_7+ym(k);
error(k)=rin(k)-yout(k);
wx=[wkp_1wkd_1wki_1];
wx=wx*xc;
b0=yout(1);
K=0.0175;
wkp(k)=wkp_1+xiteP*K*[P*b0*error(k)*xc(1)-Q*K*wx*xc(1)];
wki(k)=wki_1+xiteI*K*[P*b0*error(k)*xc(2)-Q*K*wx*xc(2)];
wkd(k)=wkd_1+xiteD*K*[P*b0*error(k)*xc(3)-Q*K*wx*xc(3)];
xc(1)=error(k)-error_1; %P
xc
- 上一篇:tracking.m
- 下一篇:基于matlab与opendss交互的快速潮流计算
相关资源
- tracking.m
- 基于Matlab的ASKFSKPSK仿真数字调制技术
- Hamming.m
- Standard_Rectifier_PI_SV2.mdl
- Matlab2014_(32and64).txt
- 麻雀搜索算SSA优化SVM_matlab.rar
- 商人过河MATLAB.rar
- adapt.m
- MatlabR2017aWin64Crack.rar
- matlab程序实现.vip
- PID算法Matlab仿真程序和C程序[doc.xueh
- 雷英杰《MATLAB遗传算法工具箱与应用
- Matlab编程.doc
- 低通滤波.ms14
-
基于Matlab_Simuli
nk的空气悬架非线性 - erweijiaochashang.m
- threephasePWMrectifier.mdl
- mimo_detection.m
- quanxixue.m
- 虚拟同步发电机孤岛模式以及切换的
-
simuli
nk光伏并网逆变器仿真,可运行 - matlab2017b百度网盘地址.txt
- ssa.m
- pettittFunctionUser.m
- zw_Matlab余弦相似度算法.zip
- chuanghanshu.m
- LSD直线提取算法MATLAB.rar
- Itti-Matlab.rar
- zipf.m
- wavelet.m
评论
共有 条评论