当前位置:网站首页>simulink中搭建专家pid控制
simulink中搭建专家pid控制
2022-06-22 05:43:00 【studyer_domi】
1、内容简介
simulink中搭建专家pid控制
338-可以交流、咨询、答疑
2、内容说明
略
3、仿真分析
function [p,i,d] = fcn(e,de)
u = [e de];
%e de 对应误差 和误差变化率
% y1 2 3分别对应 p i d 增量
% 专家控制规则
y = zeros(3,1);
if abs(u(1))>0.8 % 当误差较大的时候, 加快响应
y(1) = 0.02;y(2) = 0.0005;y(3) = 0;
elseif abs(u(1))>0.4 % 当误差较大的时候, 加快响应
y(1) = 0.007;y(2) = 0.0005;y(3) = 0;
elseif abs(u(1))>0.2 % 当误差较大的时候, 加快响应
y(1) = 0.004;y(2) = 0.0005;y(3) = 0;
elseif abs(u(1))>0.01 % 当误差较大的时候, 加快响应
y(1) = 0.001;y(2) = 0.0005;y(3) = 0;
end
if u(1)*u(2)>0||(u(2)==0) %规则2
if abs(u(1))>=0.05 % 如果误差较大 用较强的控制作用
y(1) = 0.02;y(2) = 0;y(3) = 0;
else % 误差绝对值朝增大的方向变化 但误差本身不大,
y(1) = 0.01;y(2) = 0;y(3) = 0;
end
end
if (u(1)*u(2)<0&&u(2)>0)||(u(1)==0) %规则3 此时误差朝着减少的方向变化,保持pid输出不变
y(1) = 0;y(2) = 0;y(3) = 0;
end
p = y(1);
i = y(2);
d = y(3);


4、参考论文
略
边栏推荐
- MinGW download and installation
- 常用CMOS模拟开关功能和原理
- Viewing advanced numbers from the perspective of vector space (1) -- a series introduction
- 虚职、架空、拖后腿,大厂开源办公室到底什么样?
- RGB及sRGB与XYZ坐标转换
- Linear regression: least squares, Tellson estimation, RANSAC
- AUTOSAR from getting started to mastering 100 lectures (150) -soa architecture and Application
- vcpkg:If you are sure you want to rebuild the above packages, run the command with the --recurse opt
- Analysis on the development status of China's copper aluminum composite bus industry and Research Report on investment opportunities 2022-2027
- 基于断言的验证
猜你喜欢

Server PHP related web page development environment construction

RGB, sRGB and XYZ coordinate conversion

基于CRU中的tmp数据进行年平均气温分析

Use of idea plug-in EASYCODE

Machine learning note 8: octave for handwritten digit recognition based on Neural Network

单精度,双精度和精度(转载)

Case analysis of terminal data leakage prevention

服务器php相关网页开发环境搭建

MySQL basic interview questions

W800芯片平台进入OpenHarmony主干
随机推荐
Improve your game‘s performance
Frame profiling
idea插件Easy Code的简单使用
PID笔记
牛的学术圈 II(春季每日一题 49)
GrabCut分析
Server PHP related web page development environment construction
Redis connection error: err client send auth, but no password is set 2 solutions
Improve your game‘s performance
空调(春季每日一题 50)
AUTOSAR from getting started to mastering 100 lectures (150) -soa architecture and Application
TiDB 社区线下交流会,天津 & 石家庄的小伙伴看过来~
Combinatorial logic described using SystemVerilog gate model
BinaryFormatter saving and loading game data for unity
MFC TabCtrl 控件修改標簽尺寸
Creating GLSL Shaders at Runtime in Unity3D
非传递骰子(春季每日一题 51)
OPTEE notes
P1061 [noip2006 popularization group] counting method of jam
Unity app improves device availability