欢迎来到淘文阁 - 分享文档赚钱的网站! | 帮助中心 好文档才是您的得力助手!
淘文阁 - 分享文档赚钱的网站
全部分类
  • 研究报告>
  • 管理文献>
  • 标准材料>
  • 技术资料>
  • 教育专区>
  • 应用文书>
  • 生活休闲>
  • 考试试题>
  • pptx模板>
  • 工商注册>
  • 期刊短文>
  • 图片设计>
  • ImageVerifierCode 换一换

    模糊PID控制器的设计与仿真——设计步骤(修改).doc

    • 资源ID:23852816       资源大小:263.50KB        全文页数:5页
    • 资源格式: DOC        下载积分:15金币
    快捷下载 游客一键下载
    会员登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录   QQ登录  
    二维码
    微信扫一扫登录
    下载资源需要15金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    模糊PID控制器的设计与仿真——设计步骤(修改).doc

    【精品文档】如有侵权,请联系网站删除,仅供学习与交流模糊PID控制器的设计与仿真设计步骤(修改).精品文档.模糊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控制器的设计选用二维模糊控制器。以给定值的偏差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个采样时间的整定为式中为经典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) 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 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 (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 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)(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)(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) 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 (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)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)(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 (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 is 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控制器仿真利用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控制效果。我们把输入信号变为正弦信号再一次进行传统PID与模糊PID控制器的对比。把图5的输入阶跃信号改为输入正弦信号即可进行正弦信号的跟踪。图7是传统PID与模糊PID控制器在Simulink中的正弦仿真波形比较。图7 传统PID与模糊PID控制器在Simulink中的正弦仿真波形比较图7中,黄色线为输入的正弦信号,紫色为输出的传统PID控制信号,青色为输出的模糊PID控制信号,通过图7中传统PID控制方式与模糊PID控制控制曲线的对比结果可以看出,依旧是模糊控制的控制性能要明显好于传统的PID控制效果。

    注意事项

    本文(模糊PID控制器的设计与仿真——设计步骤(修改).doc)为本站会员(豆****)主动上传,淘文阁 - 分享文档赚钱的网站仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知淘文阁 - 分享文档赚钱的网站(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于淘文阁 - 版权申诉 - 用户使用规则 - 积分规则 - 联系我们

    本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

    工信部备案号:黑ICP备15003705号 © 2020-2023 www.taowenge.com 淘文阁 

    收起
    展开