Fuzzy Logic Control What is Fuzzy Logic ? Logic and Fuzzy Logic

Slides:



Advertisements
Similar presentations

Advertisements

Fuzzy Inference Systems. Review Fuzzy Models If then.
Fuzzy Inference Systems
 Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference n Mamdani fuzzy inference n Sugeno fuzzy inference n Case study.
AI – CS364 Fuzzy Logic Fuzzy Logic 3 03 rd October 2006 Dr Bogdan L. Vrusias
Fuzzy Approach.
Fuzzy Logic and its Application to Web Caching
Fuzzy Inference and Defuzzification
F UZZY L OGIC Ranga Rodrigo March 30, 2014 Most of the sides are from the Matlab tutorial. 1.
Introduction to Fuzzy Control Lecture 10.1 Appendix E.
1 Fuzzy Logic Artificial Intelligence for Games Scott Goodwin School of Computer Science See Buckland, Chapter 10.
Fuzzy Logic E. Fuzzy Inference Engine. “antecedent” “consequent”
EEE-8005 Industrial automation SDL Module leader: Dr. Damian Giaouris Room: E3.16 Phone: Module Leader.
Fuzzy Systems Adriano Cruz NCE e IM/UFRJ
Fuzzy Logic E. Fuzzy Inference Engine. “antecedent” “consequent”
11 Inverted Pendulum Emily Hamilton ECE Department, University of Minnesota Duluth December 21, 2009 ECE Fall 2009.
S. Mandayam/ ANN/ECE Dept./Rowan University Artificial Neural Networks ECE /ECE Fall 2008 Shreekanth Mandayam ECE Department Rowan University.
Fuzzy Logic Dave Saad CS498. Origin Proposed as a mathematical model similar to traditional set theory but with the possibility of partial set membership.
Fuzzy Rule-based Models *Neuro-fuzzy and Soft Computing - J.Jang, C. Sun, and, E. Mizutani, Prentice Hall 1997.
Fuzzy Logic. Sumber (download juga): 0logic%20toolbox.pdf
CPSC 386 Artificial Intelligence Ellen Walker Hiram College
Fuzzy Rules 1965 paper: “Fuzzy Sets” (Lotfi Zadeh) Apply natural language terms to a formal system of mathematical logic
Lecture 5 Fuzzy expert systems: Fuzzy inference Mamdani fuzzy inference Mamdani fuzzy inference Sugeno fuzzy inference Sugeno fuzzy inference Case study.
Fuzzy expert systems Chapter #9.
 Definition Definition  Bit of History Bit of History  Why Fuzzy Logic? Why Fuzzy Logic?  Applications Applications  Fuzzy Logic Operators Fuzzy.
Fuzzy Inference (Expert) System
Lec 34 Fuzzy Logic Control (II)
Fuzzy Inference Systems. Fuzzy inference (reasoning) is the actual process of mapping from a given input to an output using fuzzy logic. The process involves.
“Principles of Soft Computing, 2 nd Edition” by S.N. Sivanandam & SN Deepa Copyright  2011 Wiley India Pvt. Ltd. All rights reserved. CHAPTER 12 FUZZY.
Fuzzy systems. Calculate the degree of matching Fuzzy inference engine Defuzzification module Fuzzy rule base General scheme of a fuzzy system.
Fuzzy Inference Systems
Homework 5 Min Max “Temperature is low” AND “Temperature is middle”
Fuzzy Inference and Reasoning
NEURO-FUZZY LOGIC 1 X 0 A age Crisp version for young age.
1 Lecture 4 The Fuzzy Controller design. 2 By a fuzzy logic controller (FLC) we mean a control law that is described by a knowledge-based system consisting.
Fuzzy Logic Artificial Intelligence Chapter 9. Outline Crisp Logic Fuzzy Logic Fuzzy Logic Applications Conclusion “traditional logic”: {true,false}
Chapter 10 FUZZY CONTROL Chi-Yuan Yeh.
© Negnevitsky, Pearson Education, Lecture 5 Fuzzy expert systems: Fuzzy inference Mamdani fuzzy inference Mamdani fuzzy inference Sugeno fuzzy inference.
S PEED CONTROL OF DC MOTOR BY FUZZY CONTROLLER MD MUSTAFA KAMAL ROLL NO M E (CONTROL AND INSTRUMENTATION)
Chapter 13 (Continued) Fuzzy Expert Systems 1. Fuzzy Rule-based Expert System 2.
Introduction to Fuzzy Logic and Fuzzy Systems
Artificial Intelligence CIS 342
Question: Is it warm in here?
FUZZY NEURAL NETWORKS TECHNIQUES AND THEIR APPLICATIONS
Expert System Structure
A great man who created a complete new mathematics with many practical applications.
Fuzzy expert systems Fuzzy inference Mamdani fuzzy inference
Fuzzy Logic Control Lect 5 Fuzzy Logic Control Basil Hamed Electrical Engineering Islamic University of Gaza.
Introduction to Fuzzy Logic
Artificial Intelligence
Stanisław H. Żak School of Electrical and Computer Engineering
Fuzzy Logic and Fuzzy Sets
Homework 8 Min Max “Temperature is low” AND “Temperature is middle”
Introduction to Fuzzy Logic
Fuzzy logic Introduction 3 Fuzzy Inference Aleksandar Rakić
Dr. Unnikrishnan P.C. Professor, EEE
Fuzzy System Structure
منطق فازی.
Dr. Unnikrishnan P.C. Professor, EEE
Lecture 35 Fuzzy Logic Control (III)
FUZZIFICATION AND DEFUZZIFICATION
فازی سازی و غیرفازی سازی
Homework 9 Min Max “Temperature is low” AND “Temperature is middle”
This time: Fuzzy Logic and Fuzzy Inference
Lecture 5 Fuzzy expert systems: Fuzzy inference
Dr. Unnikrishnan P.C. Professor, EEE
This time: Fuzzy Logic and Fuzzy Inference
Fuzzy Inference Systems
Fuzzy Logic KH Wong Fuzzy Logic v.9a.
Lecture 35 Fuzzy Logic Control (III)
Presentation transcript:

Fuzzy Logic Control What is Fuzzy Logic ? Logic and Fuzzy Logic Fuzzy sets Fuzzy logic operators Fuzzy logic controller

What is Fuzzy Logic ? General Control problem Fuzzy Logic Control e.g. Temperature Controller Set point = 25 Deg.C Controller rule If T>25.5 Deg.C then (turn heater off) If T<24.5 Deg.C then (turn heater on) Fuzzy Logic Control If (too hot) then (turn heater off) If (too cold) then (turn heater on)

Logic and Fuzzy Logic Logic - There are only two choices : 0 or 1, yes or no, right or wrong, etc. - and, or, nand, nor, not, xor Fuzzy logic - More choices between 0 and 1, yes and no, young and old, etc. e.g. a bit young, very young, not young at all... - fuzzy and, fuzzy or, fuzzy not

Fuzzy Sets Set of young people, A - A=[0,20] : age from 0 to 20 years old. - more than 20 years old = not young. Fuzzy set of young people - 0-20 years old = 100% young. - 21 years old = 90% young. - .... - 25 years old= 60% young. - 30 years old = 0% young

Fuzzy Sets (Example) Fuzzy set of young people - Young =1 - Not young=0 Young Not Young 10 20 30 40 50 1

Operations in Fuzzy Sets Fuzzy AND - 1 AND 0 = 0 - 1 AND 0.6=0.6 - 0.5 AND 0.7=0.5 a AND b = min(a,b) Fuzzy OR - 1 OR 0 = 1 - 1 OR 0.6=1 - 0.5 OR 0.7=0.7 a OR b = max(a,b) Fuzzy NOT - NOT 1 = 0 - NOT 0.6=0.4 - NOT 0.1 =0.9 NOT a = 1 - a

Fuzzy Logic Controller 𝐺 𝐶 𝑠 𝐺 𝑃 𝑠 𝐻𝑠 + _ Input Compensator Plant Output R(s) E(s) C(s) r(t) e(t) c(t) Sensor Input Compensator Plant Output R(s) + E(s) C(s) Fuzzy Logic Controller 𝐺 𝑃 𝑠 r(t) _ e(t) c(t) Sensor 𝐻𝑠

Fuzzy Logic Controller Fuzzifier Fuzzy Operations based on Fuzzy rule sets Defuzzifier Fuzzifier Combinations of AND, OR, NOT Defuzzifier LP MP S MN LN

Fuzzification - Fuzzifier Degree of membership : 0 ~ 1 Linguistic variables LN : Large Negative very cold MN : Medium Negative cold S : Small just fine MP : Medium Positive hot LP : Large Positive very hot Membership function Triangular, bell, trapezoidal, haversine, Gaussian, exponential Haversine : The function (1-cos(x))/2. It is written hav(x), and is equal to half the versine of x.

Membership Function - Triangular Input (error) membership Degree of LN MN S MP LP Set point cold hot

Membership Function - Triangular Member of Speed : {Slow, Moderate, Fast} Membership functions 0.5 1 Slow Moderate Fast 0.65 0.35 60 40 70 100 km/s Speed=60 km/s Degree of membership slow=0.35, moderate=0.65, fast=0.00

Fuzzy Rule Sets If LN then (turn heater on) If MN then (turn heater on) If S then (do nothing) If MP then (turn heater off) If LP then (turn heater off) If error LN then (turn heater on) If error MN then (turn heater on) If error S then (do nothing) If error MP then (turn heater off) If error LP then (turn heater off)

Combinations of AND, OR, NOT Fuzzy Logic Controller (Example) Temperature control Fuzzy rule sets Combinations of AND, OR, NOT Fuzzifier LP MP S MN LN Defuzzifier error slope heater

Fuzzy Rule Sets If error LN then (heater LP) If error MN AND slope LN then (heater LP) If error MN AND slope MN then (heater MP) If error MN AND slope S then (heater MP) If error MN AND slope MP then (heater MP) If error MN AND slope LP then (heater MP) If error S AND slope LN then (heater LP) If error S AND slope MN then (heater MP) If error S AND slope S then (heater S) If error S AND slope MP then (heater S) If error S AND slope LP then (heater S) If error MP then (heater S) If error LP then (heater S)

Fuzzy Rule Sets & Rule Matrix If error LN then (heater LP) If error MN AND slope LN then (heater LP) If error MN AND slope MN then (heater MP) If error MN AND slope S then (heater MP) If error MN AND slope MP then (heater MP) If error MN AND slope LP then (heater MP) If error S AND slope LN then (heater LP) If error S AND slope MN then (heater MP) If error S AND slope S then (heater S) If error S AND slope MP then (heater S) If error S AND slope LP then (heater S) If error MP then (heater S) If error LP then (heater S)

Fuzzy Inference MAX-MIN (Mamdani Fuzzy Rules) MAX-DOT or MAX-PRODUCT AVERAGING ROOT SUM SQUARE (RSS) Takagi-Sugeno Fuzzy Rules

Defuzzification - Defuzzifier Center of Area or Center of Mass or Centroid of Area Center of Gravity Method for Singletons Bisector of Area Mean of Maxima Leftmost Maxima and Rightmost Maxima

Fuzzy Logic Controller Design (Example) Water heating system Boiler TempSensor LevelSensor 10 125 ํC HeatKnob Water inlet Water outlet Steam exhaust

Combinations of AND, OR, NOT Fuzzy Logic Controller Design (Example) 1. Define inputs and outputs for Fuzzy Logic Controller and Fuzzy Variables. Fuzzy rule sets Combinations of AND, OR, NOT Fuzzifier XL L M S XS Defuzzifier F Level [0,10] Temp [0, 125] Heatknob

Fuzzy Logic Controller Design (Example) 2. Assign Membership Values to Fuzzy Variables. 0.5 1 XS S M L XL 10 20 30 40 50 60 70 80 90 100 110 120 Temp

Fuzzy Logic Controller Design (Example) 2. Assign Membership Values to Fuzzy Variables. 0.5 1 XS S M L XL 1 2 3 4 5 6 7 8 9 10 Level

Fuzzy Logic Controller Design (Example) 2. Assign Membership Values to Fuzzy Variables. 0.5 1 XS S F M L 1 2 3 4 5 6 7 8 9 10 HeatKnob

Fuzzy Logic Controller Design (Example) 3. Create a Rule Base and Decision Table. IF Temp is Small and Level is Medium THEN set HeatKnob to Medium. IF Temp is VerySmall and Level is Large THEN set HeatKnob to Large.

Fuzzy Logic Controller Design (Example) 4. Fuzzify inputs to FLC and Determine which Rules Fire. Temp = 65 ˚ C and Level =6.5 Temp {M} = 0.45 and Temp {L} = 0.28 Level {M} =0.25 and Level {L} = 0.38

Fuzzy Logic Controller Design (Example) 5. Infer the Output Recommended by Each Rule. Temp = 65 ˚ C and Level =6.5 Temp {M} = 0.45 and Temp {L} = 0.28 Level {M} =0.25 and Level {L} = 0.38

Fuzzy Logic Controller Design (Example) 5. Infer the Output Recommended by Each Rule. 0.5 1 XS S F M L 1 2 3 4 5 6 7 8 9 10 HeatKnob

Fuzzy Logic Controller Design (Example) 6. Defuzzify the Aggregated Fuzzy Set to form a Crisp Output. 0.5 1 XS S F M L 1 2 3 4 5 6 7 8 9 10 HeatKnob 4.66

Fuzzy Logic Controller Design (Example) 7. Implement the Designed Controller. Implement as Hardware Implement as Software

Fuzzy Logic Controller Design (Example) Desgin ABS Control Crane Control AC Room Temperature Control