智能控制及MATLAB实现—水箱液位模糊控制仿真设计.docVIP

智能控制及MATLAB实现—水箱液位模糊控制仿真设计.doc

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
智能控制及MATLAB实现—水箱液位模糊控制仿真设计

水箱水位模糊控制系统设计 在MATLAB命令窗口中输入sltank,便可打开如图所示的模型窗口。 图1 sltank仿真图 打开MATLAB,输入指令fuzzy,打开模糊逻辑工具箱的图形用户界面窗口,新建一个Mamdani模糊推理系统。 增加一个输入变量,将输入变量命名为水位误差、误差变化,将输出变量命名为阀门开关速度。这样就建立了一个两输入单输出的模糊推理系统,保存为shuiwei1。 图2 增加一个输入变量 设计模糊化模块;设水位误差level的论域为[2.95 3.05],误差变化率rate的论域为[-0.2 0.2]; 两个输入量的模糊集为level设为为7个,rate设为5个:其中水位误差level定为NB、NM、NS、ZE、PS、PM、PB;参数分别为[0.01 2.95]、[0.01 2.97],[0.01 2.99]、[0.01 3]、[0.01 3.01]、[0.01 3.03]、[0.01 3.05],隶属度均为高斯函数; 图3 输入量level的参数设定 误差变化率rate分别为负大,负小,不变,正小,正大。参数分别为,[0.03 -0.2]、[0.03 -0.1]、[0.03 0]、[0.03 0.1]、[0.03 -0.2],隶属度函数均为高斯函数。 图4 误差变化率rate的参数设定 阀门的开关速度设为七个等级:快关,中关,慢关,不动,慢开,中开,快开,其论域为[2.95 3.05]。参数分别为;[2.94 2.95 2.96]、[2.965 2.97 2.975]、[2.99 2.99 2.995]、[2.999 3 3.001]、[3.005 3.01 3.015]、[3.02 3.03 3.035]、[3.04 3.05 3.06],隶属函数为三角形函数。 图5 输出量valve的参数设定 设计模糊规则 打开Ruel Editor窗口,通过选择添加模糊规则; If (level is NB) and (rate is 负大) then (valve is 快关) (1)If (level is NB) and (rate is 负小) then (valve is 快关) (1) If (level is NB) and (rate is 不变) then (valve is 快关) (1) If (level is NB) and (rate is 正小) then (valve is 中关) (1)If (level is NB) and (rate is 正大) then (valve is 不动) (1) If (level is NM) and (rate is 负大) then (valve is 快关) (1) If (level is NM) and (rate is 负小) then (valve is 快关) (1) If (level is NM) and (rate is 不变) then (valve is 快关) (1) If (level is NM) and (rate is 正小) then (valve is 中关) (1)If (level is NM) and (rate is 正大) then (valve is 不动) (1)If (level is NS) and (rate is 负大) then (valve is 中关) (1) If (level is NS) and (rate is 负小) then (valve is 中关) (1) If (level is NS) and (rate is 不变) then (valve is 中关) (1) If (level is NS) and (rate is 正小) then (valve is 不动) (1) If (level is NS) and (rate is 正大) then (valve is 慢开) (1) If (level is ZE) and (rate is 负大) then (valve is 中关) (1) If (level is ZE) and (rate is 负小) then (valve is 慢关) (1)If (level is ZE) and (rate is 不变) then (valve is 不动) (1)If (level is ZE) and (rate is 正小) then (valve is 慢开) (1) If (level is ZE) and (rate is 正大) then (valve is 中开) (1)If (level is PS) and (rate is 负大) then (valve is 慢

文档评论(0)

xcs88858 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档