




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、模糊PID控制器的设计与仿真设计模糊PID控制器时,首先要将精确量转换为模糊量,并且要把转换后的 模糊量映射到模糊控制论域当中,这个过程就是精确量模糊化的过程。模糊化的主要功能就是将输入量精确值转换成为一个模糊变量的值,最终形成一个模糊集 合。本次设计系统的精确量包括以下变量:变化量 e,变化量的变化速率ec还 有参数整定过程中的输出量 Kp, Kd, K,在设计模糊PID的过程中,需要 将这些精确量转换成为模糊论域上的模糊值。本系统的误差与误差变化率的模糊 论域与基本论域为:E=-6,-4,-2,0,2,4,6;Ec=-6,-4,-2,0,2,4,6。模糊PID控制器的设计选用二维模糊控制器
2、。以给定值的偏差 e和偏差变化ec为输入; Kp, Kd, K为输出的自适应模糊PID控制器,见图1。图1模糊PID控制器(1) 模糊变量选取输入变量E和EC的模糊化将一定范围(基本论域)的输入变量映射到离散区 间(论域)需要先验知识来确定输入变量的范围。 就本系统而言,设置语言变量取 七个,分别为 NB, NM NS ZQ PS, PM PB(2) 语言变量及隶属函数根据控制要求,对各个输入,输出变量作如下划定:e,ec 论域:-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6心, Kd, K 论域:-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6应用模糊合成推理
3、PID参数的整定算法。第k个采样时间的整定为Kp(k)二 Kp。:Kp(k) , K,k)二 Ki。 K(k) , ©(k)二 Kd。 *D(k).式中Kp0,K|0,Kd0为经典PID控制器的初始参数。设置输入变量隶属度函数如图2所示,输出变量隶属度函数如图 3所示Membership Function Editor; fuzzylFile Edit ViewFIS vriable&kikclMembership fuitctlon plots- otat oonis:181Current Van ableCurrent Membershiip Function (clic
4、k on MF to select)NameeNamezoTypeinputTyP®gLaussmfvRange-6 6Params0.B493 OJDisplay Range-6 &Ready图2输入变量隶属度函Membership Function Editor: fuz2y1File Edit ViewFIS vulablaseckiwkdhtemi祐活術p funaBon pkk憎“刃m肝咏101图3输出变量隶属度函编辑模糊规则库根据以上各输出参数的模糊规则表,可以归纳出49条控制逻辑规则,具体的控制规则如下所示:1. If (e is NB) and (ec is
5、NB) then (kp is NB)(ki is PB)(kd is NS)(1)2. If (e is NB) and (ec is NM) then (kp is NB)(ki is PB)(kd is PS)(1)3. If (e is NB) and (ec is NS) then (kp is NM)(ki is PM)(kd is PB)(1)4. If (e is NB) and (ec is ZO) then (kp is NM)(ki is PM)(kd is PB)(1)5. If (e is NB) and (ec is PS) then (kp is NS)(ki i
6、s PS)(kd is PB)(1)6. If (e is NB) and (ec is PM) then (kp is ZO)(ki is ZO)(kd is PM)(1)7. If (e is NB) and (ec is PB) then (kp is ZO)(ki is ZO)(kd is NS)(1)8. If (e is NM) and (ec is NB) then (kp is NB)(ki is PB)(kd is NS)(1)9. If (e is NM) and (ec is NM) then (kp is NB)(ki is PB)(kd is PS)(1)10. If
7、 (e is NM) and (ec is NS) then (kp is NM)(ki is PM)(kd is PB)(1)11. If (e is NM) and (ec is ZO) then (kp is NS)(ki is PS)(kd is PM)(1)12. If (e is NM) and (ec is PS) then (kp is NS)(ki is PS)(kd is PM)(1)13. If (e is NM) and (ec is PM) then (kp is ZO)(ki is ZO)(kd is PS)(1)14. If (e is NM) and (ec i
8、s PB) then (kp is PS)(ki is ZO)(kd is ZO)(1)15. If (e is NS) and (ec is NB) then (kp is NM)(ki is PB)(kd is ZO)(1)16. If (e is NS) and (ec is NM) then (kp is NM)(ki is PM)(kd is PS)(1)17. If (e is NS) and (ec is NS) then (kp is NM)(ki is PS)(kd is PM)(1)18. If (e is NS) and (ec is ZO) then (kp is NS
9、)(ki is PS)(kd is PM)(1)19. If (e is NS) and (ec is PS) then (kp is ZO)(ki is ZO)(kd is PS)(1)20. If (e is NS) and (ec is PM) then (kp is PS)(ki is NS)(kd is PS)(1)21. If (e is NS) and (ec is PB) then (kp is PS)(ki is NS)(kd is ZO)(1)22. If (e is ZO) and (ec is NB) then (kp is NM)(ki is PM)(kd is ZO
10、)(1)23. If (e is ZO) and (ec is NM) then (kp is NM)(ki is PM)(kd is PS)(1)24. If (e is ZO) and (ec is NS) then (kp is NS)(ki is PS)(kd is PS)(1)25. If (e is ZO) and (ec is ZO) then (kp is ZO)(ki is ZO)(kd is PS)(1)26. If (e is ZO) and (ec is PS) then (kp is PS)(ki is NS)(kd is PS)(1)27. If (e is ZO)
11、 and (ec is PM) then (kp is PM)(ki is NM)(kd is PS)(1)28. If (e is ZO) and (ec is PB) then (kp is PM)(ki is NM)(kd is ZO)(1)29. If (e is PS) and (ec is NB) then (kp is NS)(ki is PM)(kd is ZO)(1)30. If (e is PS) and (ec is NM) then (kp is NS)(ki is PS)(kd is ZO)(1)31. If (e is PS) and (ec is NS) then
12、 (kp is ZO)(ki is ZO)(kd is ZO)(1)32. If (e is PS) and (ec is ZO) then (kp is PS)(ki is NS)(kd is ZO)(1)33. If (e is PS) and (ec is PS) then (kp is PS)(ki is NS)(kd is ZO)(1)34. If (e is PS) and (ec is PM) then (kp is PM)(ki is NM)(kd is ZO)(1)If (e is PS) and (ec is PB) then (kp is PM)(ki is NB)(kd
13、 is ZO)(1)35. If (e is PM) and (ec is NB) then (kp is NS)(ki is ZO)(kd is NB)(1)36. If (e is PM) and (ec is NM) then (kp is ZO)(ki is ZO)(kd is PS)(1)37. If (e is PM) and (ec is NS) then (kp is PS)(ki is NS)(kd is NS)(1)38. If (e is PM) and (ec is ZO) then (kp is PM)(ki is NS)(kd is NS)(1)39. If (e
14、is PM) and (ec is PS) then (kp is PM)(ki is NM)(kd is NS)(1)40. If (e is PM) and (ec is PM) then (kp is PM)(ki is NB)(kd is NS)(1)41. If (e is PM) and (ec is PB) then (kp is PB)(ki is NB)(kd is NB)(1)42. If (e is PB) and (ec is NB) then (kp is ZO)(ki is ZO)(kd is NB)(1)43. If (e is PB) and (ec is NM
15、) then (kp is ZO)(ki is ZO)(kd is NM)(1)44. If (e is PB)and(ec is NS)then(kp is PM)(kiisNS)(kd is NM)(1)45. If (e is PB)and(ec is ZO)then(kp is PM)(kiisNM)(kd is NM)(1)46. If (e is PB)and(ec is PS)then(kp is PM)(kiisNM)(kd is NS)(1)47. If (e is PB)and(ec is PM)then(kp is PB)(kiisNB)(kd is NS)(1)48.
16、If (e is PB)and(ec is PB)then(kp is PB)(kiisNB)(kd is NB)(1)把这49条控制逻辑规则,键入到模糊规则库中,如图4。Rule Editor: fuzzyl1 If俚jg卅日)and阻逗N日小的(kp jg毋日凹阀馬N寻)口File Edit View Options2. If (e is NB and (ec is NB) than (kp is NBXki is PBXkd is PS)(1) 3 If (e is NB即d (ec 衍 NS) then (kp 19 iNMXki isi号 PB) (1)4. If(e is NB)
17、and (ec is ZO then (kp is NM»ki is PM)(kd is PB) (1) 5 If (e is NB) and (k i? PS) then (kp 13 MSki 13 PSXkd is PB) (1) 6. If (e is NB) and (« is PM) then (kp is ZO)(陌 is ZONW is PM) (1)7 If (e is NB an-d 怛匚 is PB) then (kp is ZO)(ki is ZOkd is NS) (1)8 If (e is NM) and (k is NB) then (kp i
18、s NBRkj is P9)(kdl is NS) (1)9 If (e is NM) and (ec is MM) llhen 伙p is NB)ki 治 PS>(kd i-s PS)IT(e is NM) and (»c is NSJ lhwi (kp is NMMki is PM)(kd is PM) (1) 11. Ife is NM) and (« is 20 Ih&n (kp is NSXki is PSXkd is PM 12 lf (e is NM) andl (ec is PS) lhen (kp is NSXki is PSMbl is PM) (1) 13. IF (a is NM) and («c is PM) then (kpis ZO脚 由 ZOKkd is PS) 14 If fg jg 时胡)拠 fgg jg FMI) then Qcp jg 亘ZQKkd 亘型口FIS Name, fuzzy 1Close图4模糊规则库AScope台妙叫仓*囚每坯0 0 匹目利用MATLAB件中的Simulink仿真环境,可以对模糊PID控制器系统进行 模拟仿真实验,来检验设计是否达到要求。针对本次控制器设计,我们设置被控 对象为10,根据被控对象,设置相应的PID参数(s+1)( s+2)( s + 3)
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 孕妇营养管理课件下载
- 餐饮服务业试用员工劳动合同执行标准
- 商业街区停车位经营权转让合同书
- 交通运输设备财产保全担保合同
- 财务部门财务预算调整与优化合同
- 小绿豆教学课件
- 2024-2025学年山东省聊城市高一下学期期中考语文试题及答案
- 运输项目成本控制与绩效管理关系研究考核试卷
- 乐器制作与声音空间布局的乐器声音处理软件技术考核试卷
- 乐器批发市场品牌市场品牌传播效果评估体系构建研究考核试卷
- 打架伤人和解协议书范本
- 2025年湖北省中考生物、地理合卷试卷真题(含答案)
- 药品陈列养护管理制度
- 智慧校园建设“十五五”发展规划
- 2025至2030年中国智能炒菜机(炒菜机器人)行业市场现状调查及前景战略研判报告
- 路面铣刨工入场安全教育试卷(含答案)
- 物理●湖北卷丨2024年湖北省普通高中学业水平选择性考试物理试卷及答案
- 2024大华网络摄像机使用说明书全集
- GB/T 9125.1-2020钢制管法兰连接用紧固件第1部分:PN系列
- GB/T 27770-2011病媒生物密度控制水平鼠类
- 2023年广西宾阳县昆仑投资集团有限公司招聘笔试题库及答案解析
评论
0/150
提交评论