Professional Documents
Culture Documents
Fuzzy Logic
Fuzzy Logic
Fuzzy Arithmetic
2. Fuzzy Arithmetic
Motivation I
truth(y ∈ µ1 ⊕ µ2 ) = truth((∃a)(∃b) : y = a + b ∧ a ∈ µ1 ∧ b ∈ µ2 )
= sup{truth(y = a + b) ∧ truth(a ∈ µ1 )∧
a,b
truth(b ∈ µ2 )}
1 1 1 µ
µ1 µ2
⊕ =
0 0 0
0 1 2 0 1 2 0 1 2 3 4
Definition
φ̂ : [2X ]n → 2Y with
φ̂(A1 , . . . , An ) = {y ∈ Y | ∃(x1 , . . . , xn ) ∈ A1 × . . . × An :
φ(x1 , . . . , xn ) = y }.
Definition
0
0 1 2 3 4 5 6 7 8 9
2. Fuzzy Arithmetic
Linguistic Variables
Analysis of Linguistic Data
Efficient Operations on Fuzzy Sets
Interval Arithmetic
Fuzzy Sets on the Real Numbers
µ : IR → [0, 1],
Definition
def
(a) FN (IR) = {µ ∈ F(IR) | ∃x ∈ IR : µ(x) = 1} ,
def
(b) FC (IR) = {µ ∈ FN (IR) | ∀α ∈ (0, 1] : [µ]α is compact } ,
def
(c) FI (IR) = {µ ∈ FN (IR) | ∀a, b, c ∈ IR : c ∈ [a, b] ⇒
µ(c) ≥ min{µ(a), µ(b)} }.
0 0
1.3 IR 0.8 1.3 1.8 IR
“exactly 1.3” “close to 1.3”
1 1
0 0
1 1.5 IR 0.5 1 1.5 2 IR
crisp interval fuzzy interval
R. Kruse, C. Moewes FS – Fuzzy Arithmetic Lecture 4 14 / 32
Basic Types of Fuzzy Numbers
1 1
0 0
“around r ” “around r ”
symmetric bell-shaped asymmetric bell-shaped
1 1
0 0
“large number” “small number”
right-open sigmoid left-open sigmoid
R. Kruse, C. Moewes FS – Fuzzy Arithmetic Lecture 4 15 / 32
Quantitative Fuzzy Variables
0
ν (performance)
Each linguistic variable is defined by quintuple (ν, T , X , g, m).
• name ν of the variable
• set T of linguistic terms of ν
• base variable X ⊆ IR
• syntactic rule g (grammar) for generating linguistic terms
• semantic rule m that assigns meaning m(t) to every t ∈ T ,
i.e. m : T → F(X )
R. Kruse, C. Moewes FS – Fuzzy Arithmetic Lecture 4 17 / 32
Operations on Linguistic Variables
e.g. statistics:
• Given a sample = (small, medium, small, large, ...).
• How to define mean value or standard deviation?
Attribute : Clouding
Observations : Limassol, Cyprus
2009/10/23 : cloudy
2009/10/24 : dil approx_between(50, 70)
2009/10/25 : fair or cloudy
2009/10/26 : approx(75)
2009/10/27 : dil(clear or fair)
2009/10/28 : int cloudy
2009/10/29 : con fair
2009/11/30 : approx(0)
2009/11/31 : cloudless
2009/11/01 : cloudless or dil clear
2009/11/02 : overcast
2009/11/03 : cloudy and between(70, 80)
... : ...
2009/11/10 : clear
2 between 60 and 65 60 65
µ3 b
3 62 62
1
mean(µ1 , µ2 , µ3 ) = (µ1 ⊕ µ2 ⊕ µ3 )
3
mean(µ1 , µ2 , µ3 )
62 64 69
1
rec(µ)(t) = sup µ(x) x ∈ IR \ {0}, = t .
x
In general, operations on fuzzy sets are much more complicated
(especially if vertical instead of horizontal representation is applied).
It’s desirable to reduce fuzzy arithmetic to ordinary set arithmetic.
Then, we apply elementary operations of interval arithmetic.
Theorem
Let µ ∈ FN (IR). The family (Aα )α∈(0,1) of sets is a set representation
of µ if and only if
1 1
µ1 µ2
0 0
−4 −2 0 2 4 6 0 2 4 6 8 10
1
µ1 ⊕ µ2
0
0 2 4 6 8 10
x −2
if 2 ≤ x ≤ 5
3 ,
7−x
if 5 ≤ x ≤ 5.8
2 ,
(µ1 ⊕ µ2 )(x) = x −4
3 , if 5.8 ≤ x ≤ 7
9−x
2 , if 7 ≤ x ≤ 9
0, otherwise
[a, b] + [c, d] = [a + c, b + d]
[a, b] − [c, d] = [a − d, b − c]
[ac, bd], for a ≥0∧c ≥0
[bd, ac], for b <0∧d <0
[a, b] · [c, d] =
[min{ad, bc}, max{ad, bc}],
for ab ≥ 0 ∧ cd ≥ 0 ∧ ac < 0
[min{ad, bc}, max{ac, bd}], for ab < 0 ∧ cd < 0
1 1
, , if 0 ∈
/ [a, b]
b1 a
1
, ∞
1
= b1 ∪ −∞, a
, if a < 0 ∧ b > 0
[a, b] , ∞ , if a = 0 ∧ b > 0
b
1
−∞, a
, if a < 0 ∧ b = 0
Theorem