版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、模糊pid控制器的设计与仿真设计模糊pid控制器时,首先要将精确量转换为模糊量,并且要把转换后的模糊量映射到模糊控制论域当中,这个过程就是精确量模糊化的过程。模糊化的主要功能就是将输入量精确值转换成为一个模糊变量的值,最终形成一个模糊集合。 本次设计系统的精确量包括以下变量:变化量e ,变化量的变化速率ec 还有参数整定过程中的输出量kp,kd,ki,在设计模糊pid 的过程中,需要将这些精确量转换成为模糊论域上的模糊值。本系统的误差与误差变化率的模糊论域与基本论域为:e=-6,-4,-2,0,2,4,6;ec=-6,-4,-2,0,2,4,6。模糊pid控制器的设计选用二维模糊控制器。以给定
2、值的偏差e和偏差变化ec为输入;kp,kd,ki为输出的自适应模糊pid控制器,见图1。图1模糊pid控制器(1)模糊变量选取 输入变量e和ec的模糊化将一定范围(基本论域)的输入变量映射到离散区间(论域)需要先验知识来确定输入变量的范围。就本系统而言,设置语言变量取七个,分别为 nb,nm,ns,zo,ps,pm,pb。(2) 语言变量及隶属函数根据控制要求,对各个输入,输出变量作如下划定:e,ec论域:-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6kp,kd,ki论域:-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6应用模糊合成推理pid参数的整定算法。第k个
3、采样时间的整定为式中为经典pid控制器的初始参数。设置输入变量隶属度函数如图2所示,输出变量隶属度函数如图3所示。图2 输入变量隶属度函图3 输出变量隶属度函(3) 编辑模糊规则库根据以上各输出参数的模糊规则表,可以归纳出49条控制逻辑规则,具体的控制规则如下所示:1. if (e is nb) and (ec is 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
4、) 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 is 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
5、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 (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
6、 (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 is 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 i
7、s 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)(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
8、)(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)(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
9、)(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) 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)
10、 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 (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
11、 (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)35. if (e is ps) and (ec is pb) then (kp is pm)(ki is nb)(kd is zo)(1)36. if (e is pm) and (ec is nb) then (kp is ns)(ki is zo)(kd is nb)(1)37. if (e is pm) and (ec is nm) then (kp is zo)(ki is zo
12、)(kd is ps)(1)38. if (e is pm) and (ec is ns) then (kp is ps)(ki is ns)(kd is ns)(1)39. if (e is pm) and (ec is zo) then (kp is pm)(ki is ns)(kd is ns)(1)40. if (e is pm) and (ec is ps) then (kp is pm)(ki is nm)(kd is ns)(1)41. if (e is pm) and (ec is pm) then (kp is pm)(ki is nb)(kd is ns)(1)42. if
13、 (e is pm) and (ec is pb) then (kp is pb)(ki is nb)(kd is nb)(1)43. if (e is pb) and (ec is nb) then (kp is zo)(ki is zo)(kd is nb)(1)44. if (e is pb) and (ec is nm) then (kp is zo)(ki is zo)(kd is nm)(1)45. if (e is pb) and (ec is ns) then (kp is pm)(ki is ns)(kd is nm)(1)46. if (e is pb) and (ec i
14、s zo) then (kp is pm)(ki is nm)(kd is nm)(1)47. if (e is pb) and (ec is ps) then (kp is pm)(ki is nm)(kd is ns)(1)48. if (e is pb) and (ec is pm) then (kp is pb)(ki is nb)(kd is ns)(1)49. if (e is pb) and (ec is pb) then (kp is pb)(ki is nb)(kd is nb)(1)把这49条控制逻辑规则,键入到模糊规则库中,如图4。图4 模糊规则库(5)模糊pid控制器仿
15、真利用matlab软件中的simulink仿真环境,可以对模糊pid控制器系统进行模拟仿真实验,来检验设计是否达到要求。针对本次控制器设计,我们设置被控对象为,根据被控对象,设置相应的pid参数为:=6;=3;=2。图5为控制器系统在simulink中的仿真模型。为了方便与传统pid控制器进行比较,在simulink仿真环境中作出传统pid控制以便于对模糊pid进行比较。在传统pid控制器中设置相应的pid参数为:=6;=3;=2。图6是传统pid与模糊pid控制器在simulink中的阶跃仿真波形比较。图5传统pid与模糊pid控制器在simulink中的仿真模型图6传统pid与模糊pid控制器在simulink中的阶跃仿真波形比较图6中,黄色线为输入的阶跃信号,紫色为输出的传统pid控制信号,青色为输出的模糊pid控制信号,通过图1-7中传统pid控制方式与模糊pid控制控制曲线的对比结果可以看出,模糊控制的控制性能要明显好于传统的pid控制效果。我们把输入信号
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025山西长治市人民医院招聘硕士以上专业技术工作人员50人模拟笔试试题及答案解析
- 2025江苏紫金信通人才科技有限公司招聘7人备考笔试试题及答案解析
- 2025中国中信金融资产国际控股有限公司社会招聘参考笔试题库附答案解析
- 深度解析(2026)《GBT 26088-2010造船 推进用水冷四冲程柴油机》(2026年)深度解析
- 深度解析(2026)《GBT 25964-2010石油和液体石油产品 采用混合式油罐测量系统测量立式圆筒形油罐内油品体积、密度和质量的方法》
- 2025江西吉安市泰和县新睿人力资源服务有限公司面向社会招聘项目制人员5人备考笔试题库及答案解析
- 深度解析(2026)《GBT 25890.9-2010轨道交通 地面装置 直流开关设备 第7-3部分:直流牵引供电系统专用测量、控制和保护装置 隔离电压变送器和其他电压测量设备》(2026年)深度解析
- 2025年大庆高新区公益性岗位招聘10人备考考试试题及答案解析
- 深度解析(2026)《GBT 25782-2010 1-萘酚》(2026年)深度解析
- 2026广西桂林医科大学人才招聘118人(第一批)考试备考题库及答案解析
- 敬老服务前台工作总结
- 统编版(2024新版)七年级下册历史教材习题答案
- 《如何理解「销售」》课件
- UL2239标准中文版-2019支持导管油管和电缆的硬件UL中文版标准
- 【初中道法】拥有积极的人生态度(课件)-2024-2025学年七年级道德与法治上册(统编版2024)
- 六层住宅楼框架结构施工方案
- TGDNAS 049-2024 脊髓神经功能评估技术
- 地理主题10-1 影响工业区位的因素
- 2022年北京海淀初二(上)期末语文试卷及答案
- 国开电大可编程控制器应用课程实验参考答案
- 供货及运输、安全保障措施
评论
0/150
提交评论