SlideShare a Scribd company logo
1 of 35
Introduction to Fuzzy
Logic Control
Overview
 Outline to the left in green
 Current topic in yellow
 References
 Introduction
 Crisp Variables
 Fuzzy Variables
 Fuzzy Logic Operators
 Fuzzy Control
 Case Study
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
References
 L. Zadah, “Fuzzy sets as a basis of possibility” Fuzzy Sets Systems, Vol. 1, pp3-
28, 1978.
 T. J. Ross, “Fuzzy Logic with Engineering Applications”, McGraw-Hill, 1995.
 K. M. Passino, S. Yurkovich, "Fuzzy Control" Addison Wesley, 1998.
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Introduction
 Fuzzy logic:
 A way to represent variation or imprecision in logic
 A way to make use of natural language in logic
 Approximate reasoning
 Humans say things like "If it is sunny and warm today, I will
drive fast"
 Linguistic variables:
 Temp: {freezing, cool, warm, hot}
 Cloud Cover: {overcast, partly cloudy, sunny}
 Speed: {slow, fast}
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Crisp (Traditional) Variables
 Crisp variables represent precise
quantities:
 x = 3.1415296
 A ∈{0,1}
 A proposition is either True or False
 A ∧ B ⇒ C
 King(Richard) ∧ Greedy(Richard)
⇒ Evil(Richard)
 Richard is either greedy or he isn't:
 Greedy(Richard) ∈{0,1}
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Fuzzy Sets
 What if Richard is only
somewhat greedy?
 Fuzzy Sets can represent the degree to which a quality
is possessed.
 Fuzzy Sets (Simple Fuzzy Variables) have values in the
range of [0,1]
 Greedy(Richard) = 0.7
 Question: How evil is Richard?
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Fuzzy Linguistic Variables
 Fuzzy Linguistic Variables are used
to represent qualities spanning a
particular spectrum
 Temp: {Freezing, Cool, Warm, Hot}
 Membership Function
 Question: What is the
temperature?
 Answer: It is warm.
 Question: How warm is it?
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Membership Functions
 Temp: {Freezing, Cool, Warm, Hot}
 Degree of Truth or "Membership"
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Membership Functions
 How cool is 36 F° ?
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Membership Functions
 How cool is 36 F° ?
 It is 30% Cool and 70% Freezing
0.7
0.3
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Fuzzy Logic
 How do we use fuzzy membership functions in predicate logic?
 Fuzzy logic Connectives:
 Fuzzy Conjunction, ∧
 Fuzzy Disjunction, ∨
 Operate on degrees of membership in fuzzy sets
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Fuzzy Disjunction
 A∨B max(A, B)
 A∨B = C "Quality C is the disjunction of Quality A and
B"
• (A∨B = C) ⇒ (C = 0.75)
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Fuzzy Conjunction
 A∧B min(A, B)
 A∧B = C "Quality C is the conjunction of Quality A
and B"
• (A∧B = C) ⇒ (C = 0.375)
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Example: Fuzzy Conjunction
Calculate A∧B given that A is .4 and B is 20• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Example: Fuzzy Conjunction
Calculate A∧B given that A is .4 and B is 20
• Determine degrees of membership:
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Example: Fuzzy Conjunction
Calculate A∧B given that A is .4 and B is 20
• Determine degrees of membership:
• A = 0.7
0.7
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Example: Fuzzy Conjunction
Calculate A∧B given that A is .4 and B is 20
• Determine degrees of membership:
• A = 0.7 B = 0.9
0.7
0.9
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Example: Fuzzy Conjunction
Calculate A∧B given that A is .4 and B is 20
• Determine degrees of membership:
• A = 0.7 B = 0.9
• Apply Fuzzy AND
• A∧B = min(A, B) = 0.7
0.7
0.9
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Fuzzy Control
 Fuzzy Control combines the use of fuzzy linguistic variables with fuzzy logic
 Example: Speed Control
 How fast am I going to drive today?
 It depends on the weather.
 Disjunction of Conjunctions
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Inputs: Temperature
 Temp: {Freezing, Cool, Warm, Hot}
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Inputs: Temperature, Cloud Cover
 Temp: {Freezing, Cool, Warm, Hot}
 Cover: {Sunny, Partly, Overcast}
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Output: Speed
 Speed: {Slow, Fast}
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Rules
 If it's Sunny and Warm, drive Fast
Sunny(Cover)∧Warm(Temp)⇒ Fast(Speed)
 If it's Cloudy and Cool, drive Slow
Cloudy(Cover)∧Cool(Temp)⇒ Slow(Speed)
 Driving Speed is the combination of output of these rules...
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Example Speed Calculation
 How fast will I go if it is
 65 F°
 25 % Cloud Cover ?
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Fuzzification:
Calculate Input Membership Levels
 65 F° ⇒ Cool = 0.4, Warm= 0.7
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Fuzzification:
Calculate Input Membership Levels
 65 F° ⇒ Cool = 0.4, Warm= 0.7
 25% Cover ⇒Sunny = 0.8, Cloudy =
0.2
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
...Calculating...
 If it's Sunny and Warm, drive Fast
Sunny(Cover)∧Warm(Temp)⇒Fast(Speed)
0.8 ∧ 0.7 = 0.7
⇒ Fast = 0.7
 If it's Cloudy and Cool, drive Slow
Cloudy(Cover)∧Cool(Temp)⇒Slow(Speed)
0.2 ∧ 0.4 = 0.2
⇒ Slow = 0.2
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Defuzzification:
Constructing the Output
 Speed is 20% Slow and 70% Fast
 Find centroids: Location where membership is 100%
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Defuzzification:
Constructing the Output
 Speed is 20% Slow and 70% Fast
 Find centroids: Location where membership is 100%
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Defuzzification:
Constructing the Output
 Speed is 20% Slow and 70% Fast
 Speed = weighted mean
= (2*25+...
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Defuzzification:
Constructing the Output
 Speed is 20% Slow and 70% Fast
 Speed = weighted mean
= (2*25+7*75)/(9)
= 63.8 mph
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Notes: Follow-up Points
 Fuzzy Logic Control allows for the smooth interpolation between variable
centroids with relatively few rules
 This does not work with crisp (traditional Boolean) logic
 Provides a natural way to model some types of human expertise in a
computer program
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Notes: Drawbacks to Fuzzy logic
 Requires tuning of membership functions
 Fuzzy Logic control may not scale well to large or complex problems
 Deals with imprecision, and vagueness, but not uncertainty
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary
Summary
 Fuzzy Logic provides way to calculate with
imprecision and vagueness
 Fuzzy Logic can be used to represent some kinds of
human expertise
 Fuzzy Membership Sets
 Fuzzy Linguistic Variables
 Fuzzy AND and OR
 Fuzzy Control
• References
• Introduction
• Crisp Variables
• Fuzzy Sets
• Linguistic
Variables
• Membership
Functions
• Fuzzy Logic
• Fuzzy OR
• Fuzzy AND
• Example
• Fuzzy Control
• Variables
• Rules
• Fuzzification
• Defuzzification
• Summary

More Related Content

More from deepikakaler1

More from deepikakaler1 (20)

Vlsi final year project in ludhiana
Vlsi final year project in ludhianaVlsi final year project in ludhiana
Vlsi final year project in ludhiana
 
Software testing mtech project in ludhiana
Software testing mtech project in ludhianaSoftware testing mtech project in ludhiana
Software testing mtech project in ludhiana
 
Opnet final year project in ludhiana
Opnet final year project in ludhianaOpnet final year project in ludhiana
Opnet final year project in ludhiana
 
Matlab final year project in ludhiana
Matlab final year project in ludhianaMatlab final year project in ludhiana
Matlab final year project in ludhiana
 
Labview phd project in ludhiana
Labview phd project in ludhianaLabview phd project in ludhiana
Labview phd project in ludhiana
 
image processing project course ludhiana
image processing project course ludhianaimage processing project course ludhiana
image processing project course ludhiana
 
Hfss final year project in ludhiana
Hfss final year project in ludhianaHfss final year project in ludhiana
Hfss final year project in ludhiana
 
Embedded final year project in ludhiana
Embedded final year project in ludhianaEmbedded final year project in ludhiana
Embedded final year project in ludhiana
 
Data mining final year project in ludhiana
Data mining final year project in ludhianaData mining final year project in ludhiana
Data mining final year project in ludhiana
 
Android mtech project in ludhiana
Android  mtech project in ludhianaAndroid  mtech project in ludhiana
Android mtech project in ludhiana
 
Artificial intelligence mtech project in ludhiana
Artificial intelligence mtech project in ludhiana Artificial intelligence mtech project in ludhiana
Artificial intelligence mtech project in ludhiana
 
.Net final year project in LUDHIANA
.Net final year project in LUDHIANA.Net final year project in LUDHIANA
.Net final year project in LUDHIANA
 
6 weeks/months summer training in vlsi,ludhiana
6 weeks/months summer training in vlsi,ludhiana6 weeks/months summer training in vlsi,ludhiana
6 weeks/months summer training in vlsi,ludhiana
 
6 weeks summer training in software testing,ludhiana
6 weeks summer training in software testing,ludhiana6 weeks summer training in software testing,ludhiana
6 weeks summer training in software testing,ludhiana
 
6months industrial training in software testing, ludhiana
6months industrial training in software testing, ludhiana6months industrial training in software testing, ludhiana
6months industrial training in software testing, ludhiana
 
6 weeks summer training in labview,ludhiana
6 weeks summer training in labview,ludhiana6 weeks summer training in labview,ludhiana
6 weeks summer training in labview,ludhiana
 
6months industrial training in labview, ludhiana
6months industrial training in labview, ludhiana6months industrial training in labview, ludhiana
6months industrial training in labview, ludhiana
 
6 weeks summer training in hfss,ludhiana
6 weeks summer training in hfss,ludhiana6 weeks summer training in hfss,ludhiana
6 weeks summer training in hfss,ludhiana
 
6months industrial training in hfss, ludhiana
6months industrial training in hfss, ludhiana6months industrial training in hfss, ludhiana
6months industrial training in hfss, ludhiana
 
6 weeks summer training in fuzzy logic,ludhiana
6 weeks summer training in fuzzy logic,ludhiana6 weeks summer training in fuzzy logic,ludhiana
6 weeks summer training in fuzzy logic,ludhiana
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

6 weeks summer training in fuzzy logic,jalandhar

  • 1.
  • 3. Overview  Outline to the left in green  Current topic in yellow  References  Introduction  Crisp Variables  Fuzzy Variables  Fuzzy Logic Operators  Fuzzy Control  Case Study • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 4. References  L. Zadah, “Fuzzy sets as a basis of possibility” Fuzzy Sets Systems, Vol. 1, pp3- 28, 1978.  T. J. Ross, “Fuzzy Logic with Engineering Applications”, McGraw-Hill, 1995.  K. M. Passino, S. Yurkovich, "Fuzzy Control" Addison Wesley, 1998. • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 5. Introduction  Fuzzy logic:  A way to represent variation or imprecision in logic  A way to make use of natural language in logic  Approximate reasoning  Humans say things like "If it is sunny and warm today, I will drive fast"  Linguistic variables:  Temp: {freezing, cool, warm, hot}  Cloud Cover: {overcast, partly cloudy, sunny}  Speed: {slow, fast} • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 6. Crisp (Traditional) Variables  Crisp variables represent precise quantities:  x = 3.1415296  A ∈{0,1}  A proposition is either True or False  A ∧ B ⇒ C  King(Richard) ∧ Greedy(Richard) ⇒ Evil(Richard)  Richard is either greedy or he isn't:  Greedy(Richard) ∈{0,1} • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 7. Fuzzy Sets  What if Richard is only somewhat greedy?  Fuzzy Sets can represent the degree to which a quality is possessed.  Fuzzy Sets (Simple Fuzzy Variables) have values in the range of [0,1]  Greedy(Richard) = 0.7  Question: How evil is Richard? • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 8. Fuzzy Linguistic Variables  Fuzzy Linguistic Variables are used to represent qualities spanning a particular spectrum  Temp: {Freezing, Cool, Warm, Hot}  Membership Function  Question: What is the temperature?  Answer: It is warm.  Question: How warm is it? • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 9. Membership Functions  Temp: {Freezing, Cool, Warm, Hot}  Degree of Truth or "Membership" • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 10. Membership Functions  How cool is 36 F° ? • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 11. Membership Functions  How cool is 36 F° ?  It is 30% Cool and 70% Freezing 0.7 0.3 • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 12. Fuzzy Logic  How do we use fuzzy membership functions in predicate logic?  Fuzzy logic Connectives:  Fuzzy Conjunction, ∧  Fuzzy Disjunction, ∨  Operate on degrees of membership in fuzzy sets • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 13. Fuzzy Disjunction  A∨B max(A, B)  A∨B = C "Quality C is the disjunction of Quality A and B" • (A∨B = C) ⇒ (C = 0.75) • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 14. Fuzzy Conjunction  A∧B min(A, B)  A∧B = C "Quality C is the conjunction of Quality A and B" • (A∧B = C) ⇒ (C = 0.375) • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 15. Example: Fuzzy Conjunction Calculate A∧B given that A is .4 and B is 20• References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 16. Example: Fuzzy Conjunction Calculate A∧B given that A is .4 and B is 20 • Determine degrees of membership: • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 17. Example: Fuzzy Conjunction Calculate A∧B given that A is .4 and B is 20 • Determine degrees of membership: • A = 0.7 0.7 • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 18. Example: Fuzzy Conjunction Calculate A∧B given that A is .4 and B is 20 • Determine degrees of membership: • A = 0.7 B = 0.9 0.7 0.9 • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 19. Example: Fuzzy Conjunction Calculate A∧B given that A is .4 and B is 20 • Determine degrees of membership: • A = 0.7 B = 0.9 • Apply Fuzzy AND • A∧B = min(A, B) = 0.7 0.7 0.9 • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 20. Fuzzy Control  Fuzzy Control combines the use of fuzzy linguistic variables with fuzzy logic  Example: Speed Control  How fast am I going to drive today?  It depends on the weather.  Disjunction of Conjunctions • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 21. Inputs: Temperature  Temp: {Freezing, Cool, Warm, Hot} • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 22. Inputs: Temperature, Cloud Cover  Temp: {Freezing, Cool, Warm, Hot}  Cover: {Sunny, Partly, Overcast} • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 23. Output: Speed  Speed: {Slow, Fast} • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 24. Rules  If it's Sunny and Warm, drive Fast Sunny(Cover)∧Warm(Temp)⇒ Fast(Speed)  If it's Cloudy and Cool, drive Slow Cloudy(Cover)∧Cool(Temp)⇒ Slow(Speed)  Driving Speed is the combination of output of these rules... • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 25. Example Speed Calculation  How fast will I go if it is  65 F°  25 % Cloud Cover ? • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 26. Fuzzification: Calculate Input Membership Levels  65 F° ⇒ Cool = 0.4, Warm= 0.7 • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 27. Fuzzification: Calculate Input Membership Levels  65 F° ⇒ Cool = 0.4, Warm= 0.7  25% Cover ⇒Sunny = 0.8, Cloudy = 0.2 • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 28. ...Calculating...  If it's Sunny and Warm, drive Fast Sunny(Cover)∧Warm(Temp)⇒Fast(Speed) 0.8 ∧ 0.7 = 0.7 ⇒ Fast = 0.7  If it's Cloudy and Cool, drive Slow Cloudy(Cover)∧Cool(Temp)⇒Slow(Speed) 0.2 ∧ 0.4 = 0.2 ⇒ Slow = 0.2 • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 29. Defuzzification: Constructing the Output  Speed is 20% Slow and 70% Fast  Find centroids: Location where membership is 100% • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 30. Defuzzification: Constructing the Output  Speed is 20% Slow and 70% Fast  Find centroids: Location where membership is 100% • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 31. Defuzzification: Constructing the Output  Speed is 20% Slow and 70% Fast  Speed = weighted mean = (2*25+... • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 32. Defuzzification: Constructing the Output  Speed is 20% Slow and 70% Fast  Speed = weighted mean = (2*25+7*75)/(9) = 63.8 mph • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 33. Notes: Follow-up Points  Fuzzy Logic Control allows for the smooth interpolation between variable centroids with relatively few rules  This does not work with crisp (traditional Boolean) logic  Provides a natural way to model some types of human expertise in a computer program • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 34. Notes: Drawbacks to Fuzzy logic  Requires tuning of membership functions  Fuzzy Logic control may not scale well to large or complex problems  Deals with imprecision, and vagueness, but not uncertainty • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary
  • 35. Summary  Fuzzy Logic provides way to calculate with imprecision and vagueness  Fuzzy Logic can be used to represent some kinds of human expertise  Fuzzy Membership Sets  Fuzzy Linguistic Variables  Fuzzy AND and OR  Fuzzy Control • References • Introduction • Crisp Variables • Fuzzy Sets • Linguistic Variables • Membership Functions • Fuzzy Logic • Fuzzy OR • Fuzzy AND • Example • Fuzzy Control • Variables • Rules • Fuzzification • Defuzzification • Summary