智能交通控制系统设计课程设计报告.doc

上传人:飞****2 文档编号:51835514 上传时间:2022-10-20 格式:DOC 页数:15 大小:195.50KB
返回 下载 相关 举报
智能交通控制系统设计课程设计报告.doc_第1页
第1页 / 共15页
智能交通控制系统设计课程设计报告.doc_第2页
第2页 / 共15页
点击查看更多>>
资源描述

《智能交通控制系统设计课程设计报告.doc》由会员分享,可在线阅读,更多相关《智能交通控制系统设计课程设计报告.doc(15页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、智能交通控制系统设计 课题设计 AP 黄明远一、题目一:把Nonlinear_feedback_PI.m和Nonlinear_feedback_case1_PI.m改为模糊控制实现。必须建立输入为误差和误差变化,输出为调节率变化的模糊推理系统,包括隶属度函数和规则库。解:1. 首先要建立模糊推理系统,误差设为e,误差变化设为ec,调解率变化为rc,然后在MATLAB中建立两输入单输出的模糊系统。隶属度函数如图:(1)输入1:e(2)输入2:ec(3)输出:rc模糊规则是:showrule(a)ans =1. If (e is NB) and (ec is NB) then (rc is NB)

2、 (1) 2. If (e is NB) and (ec is NM) then (rc is NB) (1) 3. If (e is NB) and (ec is NS) then (rc is NB) (1) 4. If (e is NB) and (ec is ZO) then (rc is NB) (1) 5. If (e is NB) and (ec is PS) then (rc is NM) (1) 6. If (e is NB) and (ec is PM) then (rc is ZO) (1) 7. If (e is NB) and (ec is PB) then (rc

3、is ZO) (1) 8. If (e is NM) and (ec is NB) then (rc is NB) (1) 9. If (e is NM) and (ec is NM) then (rc is NB) (1) 10. If (e is NM) and (ec is NS) then (rc is NB) (1)11. If (e is NM) and (ec is ZO) then (rc is NB) (1)12. If (e is NM) and (ec is PS) then (rc is NM) (1)13. If (e is NM) and (ec is PM) th

4、en (rc is ZO) (1)14. If (e is NM) and (ec is PB) then (rc is ZO) (1)15. If (e is NS) and (ec is NB) then (rc is NM) (1)16. If (e is NS) and (ec is NM) then (rc is NM) (1)17. If (e is NS) and (ec is NS) then (rc is NM) (1)18. If (e is NS) and (ec is ZO) then (rc is NM) (1)19. If (e is NS) and (ec is

5、PS) then (rc is ZO) (1)20. If (e is NS) and (ec is PM) then (rc is PS) (1)21. If (e is NS) and (ec is PB) then (rc is PS) (1)22. If (e is NO) and (ec is NB) then (rc is NM) (1)23. If (e is NO) and (ec is NM) then (rc is NM) (1)24. If (e is NO) and (ec is NS) then (rc is NS) (1)25. If (e is NO) and (

6、ec is ZO) then (rc is ZO) (1)26. If (e is NO) and (ec is PS) then (rc is PS) (1)27. If (e is NO) and (ec is PM) then (rc is PM) (1)28. If (e is NO) and (ec is PB) then (rc is PM) (1)29. If (e is PO) and (ec is NB) then (rc is NM) (1)30. If (e is PO) and (ec is NM) then (rc is NM) (1)31. If (e is PO)

7、 and (ec is NS) then (rc is NS) (1)32. If (e is PO) and (ec is ZO) then (rc is ZO) (1)33. If (e is PO) and (ec is PS) then (rc is PS) (1)34. If (e is PO) and (ec is PM) then (rc is PM) (1)35. If (e is PO) and (ec is PB) then (rc is PM) (1)36. If (e is PS) and (ec is NB) then (rc is NS) (1)37. If (e

8、is PS) and (ec is NM) then (rc is NS) (1)38. If (e is PS) and (ec is NS) then (rc is ZO) (1)39. If (e is PS) and (ec is ZO) then (rc is PM) (1)40. If (e is PS) and (ec is PS) then (rc is PM) (1)41. If (e is PS) and (ec is PM) then (rc is PM) (1)42. If (e is PS) and (ec is PB) then (rc is PM) (1)43.

9、If (e is PM) and (ec is NB) then (rc is ZO) (1)44. If (e is PM) and (ec is NM) then (rc is ZO) (1)45. If (e is PM) and (ec is NS) then (rc is PM) (1)46. If (e is PM) and (ec is ZO) then (rc is PB) (1)47. If (e is PM) and (ec is PS) then (rc is PB) (1)48. If (e is PM) and (ec is PM) then (rc is PB) (

10、1)49. If (e is PM) and (ec is PB) then (rc is PB) (1)50. If (e is PB) and (ec is NB) then (rc is ZO) (1)51. If (e is PB) and (ec is NM) then (rc is ZO) (1)52. If (e is PB) and (ec is NS) then (rc is PM) (1)53. If (e is PB) and (ec is ZO) then (rc is PB) (1)54. If (e is PB) and (ec is PS) then (rc is

11、 PB) (1)55. If (e is PB) and (ec is PM) then (rc is PB) (1)56. If (e is PB) and (ec is PB) then (rc is PB) (1)2. 然后(1)在Nonlinear_feedback_PI.m原程序段中: dr(k+1)=k1*(e(k+1)-e(k)+k2*e(k+1) 改为: dr(k+1)=evalfis(e(k+1) de(k+1),readfis(E:eecrc.fis);及将k1=100;k2=70注释掉可以满足要求,目的是能够调用模糊控制推理系统eecrc.fis。运行后结果为:(2) 同

12、理:Nonlinear_feedback_case1_PI.m题目中, dr(k+1)=k1*de(k+1)+k2*e(k+1)改为dr(k+1)=evalfis(e(k+1) de(k+1),readfis(E:eecrc.fis);及将k1=17.3;k2=13.0;注释掉可以满足要求,目的是能够调用模糊控制推理系统eecrc.fis。运行后结果为:1)2)3. 修改模糊控制模块中隶属度函数并进行对比:修改后的隶属度函数如下图,折线更加规范及重叠的区域更少,使运行出来的结果更加准确。运行结果如图:可以知道密度的振荡变化更少,更多的数据接近34.1600,所以对于修改模糊系统中的隶属度函数将

13、会有助于结果的精确化。二、题目二:2012届张志康同学的毕业设计,三角形隶属度函数的仿真结果正确,但高斯隶属度函数的仿真结果错误。要求修改高斯隶属度函数,使高斯隶属度函数的仿真结果也正确。解:1.程序修改说明积分参数范围改为550;即:%MinX(2)=58*ones(1);%MaxX(2)=107*ones(1);MinX(2)=5*ones(1);MaxX(2)=50*ones(1);2. 张志康毕业设计-改为高斯曲线可满足任务要求,不需要修改推理系统里面的规则。 (1) 隶属度函数:输入1,误差e:(2) 输入2,误差变化ec:(3)输出,调节率变化rc:(3) 模糊规则:1. If (

14、e is NB) and (ec is NB) then (rc is NB) (1)2. If (e is NB) and (ec is NM) then (rc is NB) (1)3. If (e is NB) and (ec is NS) then (rc is NM) (1)4. If (e is NM) and (ec is NB) then (rc is NB) (1)5. If (e is NM) and (ec is NM) then (rc is NM) (1)6. If (e is NM) and (ec is NS) then (rc is NS) (1)7. If (

15、e is NS) and (ec is NB) then (rc is NM) (1)8. If (e is NS) and (ec is NM) then (rc is NS) (1)9. If (e is NS) and (ec is NS) then (rc is NS) (1)3. 运行后可得结果:经19个迭代,kg =1BJ =0.0576BestS =250.9754 48.6767kg =2BJ =0.0353BestS =250.9754 48.6767kg =3BJ =0.0353BestS =250.9754 48.6767kg =4BJ =0.0353BestS =250

16、.9754 48.6767kg =5BJ =0.0353BestS =250.9754 48.6767kg =6BJ =0.0353BestS =250.9754 48.6767kg =7BJ =0.0352BestS =250.9754 48.6767kg =8BJ =0.0353BestS =250.9754 48.6767kg =9BJ =0.0353BestS =250.9754 48.6767kg =10BJ =0.0353BestS =250.9754 48.6767kg =11BJ =0.0353BestS =250.9754 48.6767kg =12BJ = 0.0353Be

17、stS =250.9754 48.6767kg =13BJ =0.0353BestS =250.9754 48.6767kg =14BJ =0.0353BestS =250.9754 48.6767kg =15BJ =0.0353BestS =250.9754 48.6767kg =16BJ =0.0353BestS =250.9754 48.6767kg =17BJ =0.0353BestS =250.9754 48.6767kg =18BJ =0.0353BestS =250.9754 48.6767kg =19BJ =0.0353BestS =250.9754 48.6767Elapse

18、d time is 3504. seconds.Bestfi =28.3457BestS =250.9754 48.6767Best_J =0.0353如图:最后,由图可得出实际密度为34.1600辆(千米车道),与理想的交通密度一致,所以可得修改后高斯隶属度函数的仿真结果正确。总结感悟:经过这次课题设计,我不仅学到了MATLAB的操作要领,还学会建立模糊推理系统解决复杂的问题。根据题目要求,自学操作,讨论实践,逐步完成任务过程中,收获良多。对于模糊推理系统的建立,需要隶属度函数与模糊规则的确立,而确立规则需要的是对问题的多次观察与实践得出的经验,即人的控制经验或多次控制实验的结果。 从中也认识到模糊控制系统设计比较简单,具有自适应性和鲁棒性,是一种简单和有效的智能控制方法。模糊控制无须建立被控对象的数学模型,对于结构复习、系统机理认识不清楚、非线性、时变系统具有较好的控制效果,如这次对于高速公路匝道非线性反馈控制器的设计。入口匝道控制其实是一个比较复杂的,而且难以定性的设计过程,现在运用模糊控制系统可以简化问题,并有效解决问题,结果也更为准确。

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 教案示例

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

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