02 Fuzzy Logic and Fuzzy Sets
02 Fuzzy Logic and Fuzzy Sets
Fuzzy Logic
and Fuzzy Sets
Dr. Sohail Iqbal
1
Contents
• Introduction to Fuzzy Logic
2
Introduction
Fuzzy Logic:
• Why?
• What?
• How?
• Who?
• Where?
• When?
5 Ws and 1 h 3
Fuzzy Logic: Why?
• We always focus on our limitations
• Boolean Logic is inherently limited to True/False
• Real life is much different:
• I am happy
• It is hot today
• Laundry in the washing machine is clean, now
• Fuzzy logic tries to describe real life in much
stronger way
4
Fuzzy Logic: What?
• Fuzzy Logic quantifies every answer from ‘No’ (‘0’)
to ‘Yes’ (‘1’) in the range [0, 1]
• This results in better descriptions:
Statement Boolean Fuzzy
I am happy 1 0.90
5
Fuzzy Logic: How?
• Fuzzy Logic is a many valued logic that extends the
concepts of conventional (crisp) sets
6
Fuzzy Logic: Who? Where? When?
• https://www-liphy.ujf-grenoble.fr/pagesperso/bahram/biblio/Zadeh_FuzzySetTheory_1965.pdf
7
Introduction by Lotfi Zadeh
8
Bigger Picture of Fuzzy Control
9
Fuzzy Control in my World
10
Some Applications of Fuzzy Control
In aerospace:
11
Applications: Automotive
• Trainable fuzzy systems for idle speed control
12
Applications: Electronics
• Microwave ovens
• Vacuum cleaners
13
Classical Sets
and
Fuzzy Sets
14
Crisp (Classical) Sets
• b is unambiguous member of
Set A
15
Fuzzy Set
• A fuzzy set is prescribed by the vague or ambiguous
properties and its boundaries are ambiguously
specified.
17
Operations and
Properties for Classical
(Crisp) Sets
18
Operations on Crisp Sets
Union
Intersection
Intersection
Complement
Complement
Difference
Difference
Union
19
Operations on Crisp Sets
Union
Intersection
Intersection
Complement
Complement
Difference
Difference
Intersection 20
Operations on Crisp Sets
Union
Intersection
Intersection
Complement
Complement
Difference
Difference
Complement
21
Operations on Crisp Sets
Union
Intersection
Intersection
Complement
Complement
Difference
Difference
Difference 22
Properties of Crisp Sets
Commutativity
Associativity
Associativity
Distributivity
Distributivity
Idempotency
Idempotency
23
Properties of Crisp Sets
Identity
Transivitivity
Transivitivity
Involution
Involution
24
Properties of Crisp Sets
• Excluded middle axiom
1. Axiom of excluded middle
2. Axiom of contradiction
• De Morgan’s Law
25
Mapping of Classical
Sets to Function
26
Mapping of Classical Sets to
Function
• Mapping between set-theoretic form and function-
theoretic form
• Characteristics function is defined as:
27
Fuzzy Set Operations
and Properties
28
Fuzzy Set Notation
• Notation convention for fuzzy set when the
universe of discourse X is discrete and finite
29
Fuzzy Set Operations
• Union
30
Fuzzy Set Operations
• Intersection
31
Fuzzy Set Operations
• Complement
32
Fuzzy Set Operations
• De Morgan’s Law for Fuzzy Sets
33
Properties of Fuzzy Sets
34
Numerical Example
• Consider a shaft:
• Brittle section B
• Downward Force P
• Torque T Cross-sectional view of shaft
35
Numerical Example (contd.)
• Fuzzy set to be the region in (P,T) space for which
material D is “safe”
36
Numerical Example: Complement
•
37
Numerical Example: Union
•
38
Numerical Example: Intersection
•
39
Numerical Example: Difference
•
40
Numerical Example: De
Morgan’s Principle
•
41
Alternative Fuzzy Set Operation
• Aggregation Operators
• Used to combine several in a single fuzzy set
• Fuzzy Intersection (t-norms)
• min operator applied to fuzzy sets produce largest
membership value of all t-norms
• Fuzzy Union (t-conorms)
• Max operator applied to fuzzy sets produce smallest
membership value of all t-conforms.
• Averaging Operation
• Ordered weighted averaging
42
Features of Membership Function
• Fuzzy sets are described by the membership
function
43
Various Forms
• Normal Forms : A normal fuzzy set is one whose
membership function has at least one element
x in the universe whose membership value is unity.
44
Various Forms
• Convex Forms : A convex fuzzy set is described by a
membership function whose membership values
are strictly monotonically increasing, or decreasing
46
Membership Functions
• Height of a Fuzzy Set : It is the maximum vale of the
membership function.
47
Recap
• Reason behind Fuzzy Logic and Applications
Any Questions/Ideas?
49
EE-873: Fuzzy Control
Thank You!
50