matlab_fuzzy_tool_kit s.c. chen. 課程安排 10/18/2011: –matlab environment command window.m...

11
Matlab_Fuzzy_tool_kit S.C. Chen

Upload: ernest-harper

Post on 19-Jan-2016

220 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Matlab_Fuzzy_tool_kit S.C. Chen. 課程安排 10/18/2011: –Matlab Environment Command window.M file and describe file –Using fuzzy toolbox in command window Membership

Matlab_Fuzzy_tool_kit

S.C. Chen

Page 2: Matlab_Fuzzy_tool_kit S.C. Chen. 課程安排 10/18/2011: –Matlab Environment Command window.M file and describe file –Using fuzzy toolbox in command window Membership

課程安排• 10/18/2011:

– Matlab Environment• Command window• .M file and describe file

– Using fuzzy toolbox in command window• Membership function• Rules, Inference• Control surface• Example: 智慧型冷氣機系統

– Home work• Design a fuzzy logic system

• 12 or 11/??/2011:– Simulink Environment

• Basic concept – Using fuzzy toolbox in simulink

• Membership function• Rules, Inference• Control surface• Example:智慧型冷氣機系統 / inverted pendulum

– Home work• Design a fuzzy logic system in simulink (need a testing procedure using simulink)

Page 3: Matlab_Fuzzy_tool_kit S.C. Chen. 課程安排 10/18/2011: –Matlab Environment Command window.M file and describe file –Using fuzzy toolbox in command window Membership

Fuzzy logic control toolbox

Page 4: Matlab_Fuzzy_tool_kit S.C. Chen. 課程安排 10/18/2011: –Matlab Environment Command window.M file and describe file –Using fuzzy toolbox in command window Membership

Fuzzy logic control toolbox

Page 5: Matlab_Fuzzy_tool_kit S.C. Chen. 課程安排 10/18/2011: –Matlab Environment Command window.M file and describe file –Using fuzzy toolbox in command window Membership

XXX FLS Design

• Introduction

• Scenario

• I/O variables

• Rules

• System testing

Page 6: Matlab_Fuzzy_tool_kit S.C. Chen. 課程安排 10/18/2011: –Matlab Environment Command window.M file and describe file –Using fuzzy toolbox in command window Membership

Introduction

• 動機 :–冷氣機太笨

Page 7: Matlab_Fuzzy_tool_kit S.C. Chen. 課程安排 10/18/2011: –Matlab Environment Command window.M file and describe file –Using fuzzy toolbox in command window Membership

Senario

• 室溫• 溼度• -------------

• 冷氣強度

Page 8: Matlab_Fuzzy_tool_kit S.C. Chen. 課程安排 10/18/2011: –Matlab Environment Command window.M file and describe file –Using fuzzy toolbox in command window Membership

I/O variables

室溫溫度低 : 0~20溫度中 : 15 ~ 28溫度高 : 25 ~ 45

溼度溼度低 : 0~20濕度中 : 15 ~ 28濕度高 : 25 ~ 45

Page 9: Matlab_Fuzzy_tool_kit S.C. Chen. 課程安排 10/18/2011: –Matlab Environment Command window.M file and describe file –Using fuzzy toolbox in command window Membership

I/O variables

冷氣強度冷氣強度低 : 0~15冷氣強度中 : 12 ~ 23冷氣強度高 : 20 ~ 40

Page 10: Matlab_Fuzzy_tool_kit S.C. Chen. 課程安排 10/18/2011: –Matlab Environment Command window.M file and describe file –Using fuzzy toolbox in command window Membership

RulesIF: x1(溫度 ) is tl “and” x2(濕度 ) is hlThen: output(冷氣強度 ) is ch

ch ch cm

ch cm cl

cm cl cl

溫度

溼度

冷氣強度

Tl Tm Th

Hl

Hm

Hh

Page 11: Matlab_Fuzzy_tool_kit S.C. Chen. 課程安排 10/18/2011: –Matlab Environment Command window.M file and describe file –Using fuzzy toolbox in command window Membership

System testing