模糊PID控制器的設(shè)計(jì)及仿真——設(shè)計(jì)步驟修改_第1頁(yè)
模糊PID控制器的設(shè)計(jì)及仿真——設(shè)計(jì)步驟修改_第2頁(yè)
模糊PID控制器的設(shè)計(jì)及仿真——設(shè)計(jì)步驟修改_第3頁(yè)
模糊PID控制器的設(shè)計(jì)及仿真——設(shè)計(jì)步驟修改_第4頁(yè)
模糊PID控制器的設(shè)計(jì)及仿真——設(shè)計(jì)步驟修改_第5頁(yè)
已閱讀5頁(yè),還剩1頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、-模糊PID控制器的設(shè)計(jì)與仿真設(shè)計(jì)模糊PID控制器時(shí),首先要將準(zhǔn)確量轉(zhuǎn)換為模糊量,并且要把轉(zhuǎn)換后的模糊量映射到模糊控制論域當(dāng)中,這個(gè)過程就是準(zhǔn)確量模糊化的過程。模糊化的主要功能就是將輸入量準(zhǔn)確值轉(zhuǎn)換成為一個(gè)模糊變量的值,最終形成一個(gè)模糊集合。 本次設(shè)計(jì)系統(tǒng)的準(zhǔn)確量包括以下變量:變化量e ,變化量的變化速率ec 還有參數(shù)整定過程中的輸出量KP,KD,KI,在設(shè)計(jì)模糊PID 的過程中,需要將這些準(zhǔn)確量轉(zhuǎn)換成為模糊論域上的模糊值。本系統(tǒng)的誤差與誤差變化率的模糊論域與根本論域?yàn)椋篍=-6,-4,-2,0,2,4,6;Ec=-6,-4,-2,0,2,4,6。模糊PID控制器的設(shè)計(jì)選用二維模糊控制器。以給

2、定值的偏差e和偏差變化ec為輸入;KP,KD,KI為輸出的自適應(yīng)模糊PID控制器,見圖1。圖1模糊PID控制器1模糊變量選取 輸入變量E和EC的模糊化將一定圍(根本論域)的輸入變量映射到離散區(qū)間(論域)需要先驗(yàn)知識(shí)來確定輸入變量的圍。就本系統(tǒng)而言,設(shè)置語(yǔ)言變量取七個(gè),分別為 NB,NM,NS,ZO,PS,PM,PB。(2) 語(yǔ)言變量及隸屬函數(shù)根據(jù)控制要求,對(duì)各個(gè)輸入,輸出變量作如下劃定: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應(yīng)用模糊合成推理PID參數(shù)的整定算法。第k個(gè)采樣時(shí)

3、間的整定為式中為經(jīng)典PID控制器的初始參數(shù)。設(shè)置輸入變量隸屬度函數(shù)如圖2所示,輸出變量隸屬度函數(shù)如圖3所示。圖2 輸入變量隸屬度函圖3 輸出變量隸屬度函(3) 編輯模糊規(guī)則庫(kù)根據(jù)以上各輸出參數(shù)的模糊規(guī)則表,可以歸納出49條控制邏輯規(guī)則,具體的控制規(guī)則如下所示: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) t

4、hen (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)

5、(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

6、 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 N

7、M) 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)(k

8、i 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

9、)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) an

10、d (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 (k

11、p 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)(k

12、d 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

13、 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 Z

14、O) 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條控制邏輯規(guī)則,鍵入到模糊規(guī)則庫(kù)中,如圖4。圖4 模糊規(guī)則庫(kù)5模糊PID控制器仿真利用MA

15、TLAB軟件中的Simulink仿真環(huán)境,可以對(duì)模糊PID控制器系統(tǒng)進(jìn)展模擬仿真實(shí)驗(yàn),來檢驗(yàn)設(shè)計(jì)是否到達(dá)要求。針對(duì)本次控制器設(shè)計(jì),我們?cè)O(shè)置被控對(duì)象為,根據(jù)被控對(duì)象,設(shè)置相應(yīng)的PID參數(shù)為:=6;=3;=2。圖5為控制器系統(tǒng)在Simulink中的仿真模型。為了方便與傳統(tǒng)PID控制器進(jìn)展比擬,在Simulink仿真環(huán)境中作出傳統(tǒng)PID控制以便于對(duì)模糊PID進(jìn)展比擬。在傳統(tǒng)PID控制器中設(shè)置相應(yīng)的PID參數(shù)為:=6;=3;=2。圖6是傳統(tǒng)PID與模糊PID控制器在Simulink中的階躍仿真波形比擬。圖5傳統(tǒng)PID與模糊PID控制器在Simulink中的仿真模型圖6傳統(tǒng)PID與模糊PID控制器在Simulink中的階躍仿真波形比擬圖6中,黃色線為輸入的階躍信號(hào),紫色為輸出的傳統(tǒng)PID控制信號(hào),青色為輸出的模糊PID控制信號(hào),通過圖1-7中傳統(tǒng)PID控制方式與模糊PID控制控制曲線的比照結(jié)果可以看出,模糊控制的控制性能要明顯好于傳統(tǒng)的PID控制效果。我們把輸入信號(hào)變?yōu)檎?/p>

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論