FL 01
FL 01
3 / 119
Motivation
Every day humans use imprecise linguistic terms
e.g. big, fast, about 12 o’clock, old, etc.
All complex human actions are decisions based on such concepts:
• driving and parking a car,
• financial/business decisions,
• law and justice,
• giving a lecture,
• listening to the professor/tutor.
So, these terms and the way they are processed play a crucial role.
Computers need a mathematical model to express and process such
complex semantics.
Concepts in classical mathematics are inadequate for such models.
FS – Fuzzy Sets and Fuzzy Logic 4 / 119
Lotfi Asker Zadeh (1965)
• possibility theory.
Imprecision:
e.g. “Today the weather is fine.”
Imprecisely defined concepts
neglect of details
computing with words
Uncertainty:
e.g. “How will the exchange rate of the dollar be tomorrow?”
probability, possibility
Advantages:
Use of imprecise or uncertain information
Use of expert knowledge
Robust nonlinear control
Time to market
Marketing aspects
15 / 119
Membership Functions
Lotfi A. Zadeh (1965)
“A fuzzy set is a class with a continuum of membership grades.”
µ : X → [0, 1].
χ M : X → {0, 1}.
µM
0 Age
0 20 40
Representing young in “a young person”
FS – Fuzzy Sets and Fuzzy Logic 17 / 119
Membership Functions
µM
0 Age
0 20 40
Representing young in “a young person”
FS – Fuzzy Sets and Fuzzy Logic 19 / 119
Example – Body Height of 4 Year Old Boys
1 µtall
0.65
h [m]
0
0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0
Membership function for µtall
1.5 m is for sure tall, 0.7 m is for sure small, but in-between?!
Imprecise predicate tall modeled as sigmoid function,
e.g. height of 1.1 m has membership degree of 0.65.
So, height of 1.1 m satisfies predicate tall with 0.65.
FS – Fuzzy Sets and Fuzzy Logic 20 / 119
Examples for Fuzzy Numbers
1 µ b 1 µ
IR IR
0 0
0 1 2 3 4 0 1 2 3 4
exactly two around two
22 / 119
Extension to a fuzzy set
ling. description model
all numbers smaller 1 ) characteristic
than 10 objective function of a
[ set
10
all numbers almost 1 membership
equal to 10 subjective function of a
“fuzzy set”
10
Definition
A fuzzy set µ of X ≠∅is a function from the reference set X to the unit
interval, i.e. µ : X → [0, 1]. F( X ) represents the set of all fuzzy
sets of X, i.e. F( X ) d=ef {µ | µ : X → [0, 1]}.
FS – Fuzzy Sets and Fuzzy Logic 29 / 119
Vertical Representation
So far, fuzzy sets were described by
their characteristic/membership function and
assigning degree of membership µ(x) to each element x ∈ X.
That is the vertical representation of the corresponding fuzzy set,
e.g. linguistic expression like “about m”
Definition
Let µ ∈ F( X ) and α ∈ [0, 1]. Then the sets
Let A ⊆ X, χ A : X → [0, 1]
1
µ
α
0
a m b IR
[µα]
Let µ be triangular function on IR as shown above.
α-cut of µ can be constructed by
1. drawing horizontal line parallel to x-axis through point (0, α),
2. projecting this section onto x-axis.
Theorem
Let µ ∈ F( X ), α ∈ [0, 1] and β ∈ [0, 1].
Definition
The support S(µ) of a fuzzy set µ ∈ F( X ) is the crisp set that contains
all elements of X that have nonzero membership. Formally
Definition
The core C(µ) of a fuzzy set µ ∈ F( X ) is the crisp set that contains all
elements of X that have membership of one. Formally,
Definition
The height h(µ) of a fuzzy set µ ∈ F( X ) is the largest membership
grade obtained by any element in that set. Formally,
Definition
A fuzzy set µ is called normal, iff h(µ) = 1. It
is called subnormal, iff h(µ) < 1.
Definition
Let X be a vector space. A fuzzy set µ ∈ F( X ) is called fuzzy convex
if its α-cuts are convex for all α ∈ (0, 1].
Definition
µ is a fuzzy number if and only if µ is normal and [µ]α is bounded,
closed, and convex Ɐα ∈ (0, 1].
Example:
The term approximately x0 is often described by a parametrized class of
membership functions, e.g.
α α
0 0
IR IR
Theorem
A fuzzy set µ ∈ F(IR) is convex if and only if
1.0
0.5
0
0 1 2 3 4
A ∩ B = {x ∈ X | x ∈ A ∧ x ∈ B}
A ∪ B = {x ∈ X | x ∈ A 𝖵 x ∈ B}
Ac = {x ∈ X | x ∈
/ A} = {x ∈ X | ¬( x ∈ A)}
39 / 119
Propositions and Truth Values
Classical propositional logic deals with the formal handling of statements
(propositions) to which one of the two truth values 1 (for true) or 0 (for
false) can be assigned.
Fuzzy:
A minimum requirement we demand of these functions is
that, limited to the values 0 and 1, they should provide
the same values as the corresponding truth function
associated with the connectives of classical logic.
FS – Fuzzy Sets and Fuzzy Logic 61 / 119
Conjunction, disjunction, implication and negation
The implication
Łukasiewicz implication
Gödel implication
intersection (“AND”),
union (“OR”),
complement (“NOT”).
47 / 119
Fuzzy Set Intersection and Union
48 / 119
Triangular Norms and Conorms I
Identity Law
T1: 𝖳( x , 1) = x (A ∩ X = A)
C1: ⊥(x, 0) = x (A ∪ ∅ = A).
Commutativity
T2: 𝖳( x , y) = 𝖳( y , x) (A ∩ B = B ∩ A),
C2: ⊥(x, y) = ⊥(y, x) (A ∪ B = B ∪ A).
49 / 119
Triangular Norms and Conorms II
Associativity
T3: 𝖳( x , 𝖳( y , z)) = 𝖳(𝖳( x , y), z) (A ∩ (B ∩ C)) = ((A ∩ B) ∩ C),
C3: ⊥(x, ⊥(y, z)) = ⊥(⊥(x, y), z) (A ∪ (B ∪ C)) = ((A ∪ B) ∪ C).
Monotonicity
y ≤ z implies
T4: 𝖳( x , y) ≤ 𝖳( x , z)
C4: ⊥(x, y) ≤ ⊥(x, z).
De Morgan’s Laws
Other t-norms than the minimum are normally not used for
the universal quantifier, since the non-idempotent property
leads easily to the truth value zero in the case of
an infinite universe of discourse.
FS – Fuzzy Sets and Fuzzy Logic 77 / 119
The quantifiers ∀ (all) and ∃ (exists)
The existential quantifier
1
µy µ20
µy ∩ µ20
0
0 10 20 30 40 50
t-norm 𝖳Łuka
t-conorm ⊥Łuka