Fuzzy Logic
Fuzzy Logic
1
Lecture 22
2
What is fuzzy Logic?
• Is a mathematical language to express something.
• So, it has grammar, syntax, semantics like a language for communication.
• Some other mathematical languages are:
• Relational Algebra (Operation on sets)
• Boolean Algebra (Operation on Boolean variables)
• Predicate Algebra (Operation on predicates/well known formula).
4
Fuzzy Logic Vs Crisp logic
5
Fuzzy Logic Vs Crisp logic
6
Example: Fuzzy Logic Vs Crisp Logic
7
World is Fuzzy
8
Concept of Fuzzy set?
Fuzzy Element(s)
Fuzzy set
Fuzzy Rules
Input
Fuzzy Inferences
Output
Fuzzy System
9
Concept of Fuzzy Set
• Lets clear our concept of fuzzy set with crisp set.
• Let
• X be the entire population of Pakistan
• M be the all Muslim population 𝑀 = {𝑚1 , 𝑚2 ,…, 𝑚𝑁 }
• H be the all Hindu population 𝐻 = {ℎ1 , ℎ2 ,…, ℎ𝐿 }
• Venn Diagram representation
• Finite set of all the individuals, such a set is called crisp set.
H
M
X
10
Example of Fuzzy Set
11
Fuzzy Set Vs Crisp Set
12
Fuzzy Set Vs Crisp Set
13
Degree of membership
• How to decide the degree of membership of elements in fuzzy sets?
14
Example: Course evaluation in crisp way
15
Example: Course evaluation in crisp way
16
Course Evaluation in Fuzzy way
17
Few examples of fuzzy sets
18
19
Some basic terminologies
• X is all cities in Pakistan
20
21
22
23
24
25
26
27
I hope you enjoyed lecture
• My contacts:
• 03335610677
• 042-35880007 ext 464
• [email protected]
• Fb: umairbwp
28
Thankyou
29