版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年潍坊青州市事业单位公开招聘综合类岗位人员(32人)参考考试题库及答案解析
- 2026年河北衡水市人民医院寒假志愿者招募考试备考试题及答案解析
- 2026云南辰信人力资源管理咨询有限公司就业见习岗位招募3人备考考试试题及答案解析
- 2026山东济宁市任城区事业单位招聘初级综合类岗位人员备考考试试题及答案解析
- 2026陕西事业单位招聘岗位查看备考考试题库及答案解析
- 2026福建莆田市湄洲湾北岸经济开发区东埔镇振兴乡村有限公司招聘1人备考考试题库及答案解析
- 2026年云南北辰高级中学引进教育人才专项(18人)备考考试试题及答案解析
- 2026内蒙古阿拉善盟教育教学研究中心引进教育紧缺人才(教研员)6人备考考试试题及答案解析
- 学校财务风险预警管理制度(3篇)
- 初中公开课管理制度(3篇)
- 营销管理(第16版)核心框架
- 天空地一体化智慧水利监测体系构建
- 营运助理转正述职报告
- 高一数学单元复习(人教A版必修第一册)基本不等式全题型与技巧归纳(11大重点题型)含解析
- 二年级有余数的除法口算练习题300道
- 耳鼻咽喉的应用解剖生理教案(2025-2026学年)
- 征兵言语测试真题及答案
- 2025至2030脱氧穿心莲内酯行业项目调研及市场前景预测评估报告
- 案例-华为从战略到执行的SDBE领先模型
- 江苏省无锡市2025届高三上学期期末教学质量调研测试-数学试卷(含答案)
- 经典名著《红楼梦》阅读任务单
评论
0/150
提交评论