代码搜索结果
找到约 10,000 项符合
PID 的代码
nn-pid.txt
%BP neural network
clear
inputNums=3;
outputNums=3;
hideNums=10;
maxcount=2000;
samplenum=3;
precision=0.001;
alpha=0.5;%设定值
a=0.5;%设定值
count=1;
error=zeros(1,count);
errorp=zeros(1,samp
pso_pid.m
% 基于微粒子算法的PID参数整定
for N=1:1
max_iterations=40;
no_particles=20;
dimensions=3;
cmax=0.9;
cmin=0.1;
c0=0.9;
c1=2;
c2=2;
Vmax=0.5;
u=4;
KPmax=1;
KPmin=0.7;
KImax=0.5;
KImin=0.2;
K
nnrbf_pid.m
function [sys,x0,str,ts]=nnrbf_pid(t,x,u,flag,T,nn,K_pid,...
eta_pid,xite,alfa,beta0,w0)
switch flag,
case 0, [sys,x0,str,ts] = mdlInitializeSizes(T,nn);
case 2, sys = mdlUpdates(u);
nnbp_pid.m
function [sys,x0,str,ts]=nnbp_pid(t,x,u,flag,T,nh,xite,alfa,kFunc1,kFunc2)
switch flag,
case 0, [sys,x0,str,ts] = mdlInitializeSizes(T,nh);
case 3, sys = mdlOutputs(t,x,u,T,nh,xite,alfa,kFunc
fuz_pid.m
function [sys,x0,str,ts]=fuz_pid(t,x,u,flag,T,aFuz,fx0,gam)
switch flag,
case 0, [sys,x0,str,ts] = mdlInitializeSizes(T);
case 2, sys = mdlUpdates(x,u);
case 3, sys = mdlOutputs(x,u,T,aFu
pid_simu.mdl
Model {
Name "pid_simu"
Version 5.0
SaveDefaultBlockParams on
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions off
ShowPortDataT
pid_as_tune.m
function [Kp,Ti,Td,key,lb]=pid_as_tune(key1,key2,vars)
key=0; Kp=[]; Ti=[]; Td=[]; lb=[];
K=vars(1); L=vars(2); T=vars(3); id=vars(4);
switch key1
case 1
switch key2
cas
pid_tuner.m
function varargout = pid_tuner(varargin)
% PID_TUNER M-file for the GUI of a PID type controller designer
% This is part of the PID toolbox, where a rich group of PID tuning
% formula are embed