版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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年月招商引资工作计划范文
- 初中七年级班主任计划
- 高一数学函数应用教学计划模板
- 2025医院护士长下半年工作计划
- 石幢社区二〇一一年退管工作计划
- 企业文化工作计划
- 2025秋季农村小学德育工作计划
- 六年级教师教学计划
- 有关心理健康教育工作计划范文
- 《行政立法行为》课件
- 河道整治工程运营维护方案
- 2023超星尔雅《艺术鉴赏》期末考试答案
- 2023年煤矿安全管理人员考试题库附答案
- 普通物理学第七版 第十四章 激光和固体的量子理论简介
- MSA-测量系统分析模板
- 《MCGS嵌入版组态应用技术》期末试卷及答案
- 岗位职等职级及对应薪酬表
- 计量基础知识试卷三附有答案
- 银行安全保卫工作知识考试题库(浓缩500题)
- 吉利NPDS流程和PPAP介绍
- 男朋友无偿赠与车辆协议书怎么写
评论
0/150
提交评论