Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
When the only tool you have is a hammer, all your problems look like a
- Lotfi Zadeh, University of California,
The Father of Fuzz
Fuzzy Statements
I am 90% sure about this.
It is warm today. (same meaning in Yellowknife as in Miami?)
It may rain today. (where, when, how intense, for how long?)
A recession is a decline in GDP over 2 consecutive quarters.
A depression is a severe (10% GDP drop) or prolonged (3-4 year)
recession.
Read my lips: no new taxes
G.H.W. Bush, 1988
Paradoxes
A man says: Don't Trust Me.
Should you trust him? If you do, then you don't!
Paradoxes
Bertrand Russell's Famous Paradox:
All rules have exceptions.
Is this a rule?
If so, then what is its exception?
a true
Paradoxes
Paradoxes all have the same form:
A statement S and its negation not-S
both of which have the same truth-value t(S)
t(S) = t(not-S)
The two statements are both TRUE (1) and FALSE (0) at the
same time. But bivalent logic states that negation produces the
reverse truth value. Hence:
t(not-S) = 1 - t(S)
Paradoxes
Combining these two expressions, we get:
t(S) = 1 - t(S)
This is contradictory since if S is true, then 1 = 0 and if S is false,
then 0 = 1. But a fuzzy interpretation of truth values can solve for t(S)
allowing it to assume a value other than the set {0, 1}. So:
t(S) = 0.5
With fuzzy logic, a Paradox reduces to a literal half-truth which can
be considered the uncertainty inherent in every empirical statement
and many mathematical expressions.
Paradoxes
Returning to the Liars Paradox, it must have a value of 0.5 on a truth
scale from 0 to 1.
But it is possible to generate similar sentences that can take on a
value anywhere along the full range of the truth scale. For example:
DoB (%)
50100
050
Degree of Fuzziness
FL is Part of AI
AI = Artificial Intelligence
Components of AI
Adaptation and Extension are done with ease in one or more of four ways:
Example Rule
Rules are constructed as spoken by an
experienced operator (an Expert):
If CURRENT DRAW is LOW
Then INCREASE FEEDRATE A LOT
Provided SCREEN BIN LEVEL is not TOO-HIGH
Rule Operations
ANDing takes the Minimum DoB
ORing takes the Maximum DoB
NdT
Example
IF
AND
OR
AND
THEN
A
B
C
D
F CF = 90
DoB(A) = 95
DoB(B) = 85
DoB(C) = 88
DoB(D) = 75
}
}
85
75
85
DoB(A) = 95
DoB(B) = 85
DoB(C) = 88
DoB(D) = 75
88
75
Current Draw
MEDIUM-HIGH
OR
Screen Bin Level
HIGH
Current Draw
OK
Current Draw
MEDIUM-LOW
Current Draw
LOW
AND
AND
AND
YES
OR
NO
YES
NO
YES
NO
Chamber Level
HIGH
Feed Rate
Change
NEGATIVE-BIG
Feed Rate
Change
NEGATIVE-SMALL
Feed Rate
Change
NO-CHANGE
Feed Rate
Change
POSITIVE-SMALL
Feed Rate
Change
POSITIVE-BIG
Rule-Base Matrix
Current Draw
Low
High
High
Medium-High
NB
NS
NB
NS
NB
NS
NB
NB
OK
Medium-Low
NC
PS
NC
PS
NS
NS
NB
NB
Low
PB
PB
NC
NB
NB = Negative-Big
PB = Positive-Big
NS = Negative-Small
PS = Positive Small
NC = No-Change
100
Low
0
40
Medium
Low
42
Medium
44
46
Medium
High
48
High
50
100
Low
Not-OK
OK
High
0
0
20
40
60
80
100
Positive
Big
Degree of Belief
Negative
Big
100
0
-50
-10
+10
+50
CRISP SETS
PS
NC
NS
NB
Current Draw
LOW
HIGH
(amps)
FUZZY SETS
PS
NC
NS
NB
Current Draw
LOW
HIGH (amps)
Results - Stability
Min = 0
Max = 100
Off
Low
Medium
High
Very High
Min = 0
Max = 30
Min = 0
Max = 100
Cold
Cool
OK
Hot
Very Hot
Humidity
Low
Medium
Medium-High
High
Very High
Temperature (C)
Cold
Cool
OK
Hot
Very Hot
Off
Off
Low
Medium
High
Off
Off
Low
Medium
High
Medium
Off
Low
Medium
High
High
Medium-High
Off
Low
Medium
High
Very-High
High
Low
Medium
High
Very-High
Very-High
(%)
Low
Very-High
100
0
0
Cold
Cool
OK
Very
Hot
Hot
8 10 12 14 16 18 20 22 24 26 28 30
Temperature C
Degree
of Belief
100
0
0
Low
10
Medium
20
30
Medium
High
High
40
50
60
70
80
Relative Humidity (%)
Very
High
90
100
Medium
Degree
of Belief
100
Very High
High
0
0
10
20
30
40
50
60
Fan Speed (%)
70
80
90
100
Temperature Sub-sets
Consider each fuzzy set as a trapezoid
100
Fuzzy
Subset i
DoB
Sub-set
Cold
Cool
OK
Hot
Very Hot
Ai Bi
Ci
Di
Universe of Discourse
A
0
0
14
20
25
B
0
14
20
26
30
C
0
14
20
26
30
D
14
20
25
30
30
Humidity Sub-sets
Consider each fuzzy set as a trapezoid
100
Fuzzy
Subset j
DoB
Sub-set
Low
Medium
Medium-High
High
Very-High
Aj Bj
Cj
Dj
Universe of Discourse
A
0
0
50
70
80
B
0
45
65
82
95
C
0
50
70
82
100
D
50
65
80
95
100
Example
x = 22 and y = 81
Temperature
DoB(Cold)
=0
DoB(Cool)
=0
DoB(OK)
= Min(Min(100, Max(0,100*(22 - 14)/(20 - 14))),
(Min(100, Max(0,100*(25 - 22)/(25 - 20))))
= Min(Min(100, 133), Min(100, 60))
= 60
DoB(Hot)
= Min(Min(100, Max(0,100*(22 - 20)/(26 - 20))),
(Min(100, Max(0,100*(26 - 22)/(26 - 20))))
= Min(Min(100, 33), Min(100, 66))
= 33
DoB(Very-Hot) = 0
Example
x = 22 and y = 81
Humidity
DoB(Low)
=0
DoB(Medium)
=0
DoB(Medium-High) = 0
DoB(High)
= Min(Min(100, Max(0,100*(81 - 70)/(82 - 70))),
(Min(100, Max(0,100*(95 - 81)/(95 - 82))))
= Min(Min(100, 92), Min(100, 108))
= 92
DoB(Very-High)
= Min(Min(100, Max(0,100*(81 - 80)/(95 - 80))),
(Min(100, Max(0,100*(100 - 81)/(100 - 100))))
= Min(Min(100, 7). Min(100, ))
=7
Temperature (C)
(%)
DoB
Low
Medium
Medium-High
High
92
Very-High
Cold
Cool
OK
Hot
Very Hot
60
33
60
33
Defuzzification
Supremum
DoB(medium)
DoB(high)
DoB(very-high)
= 60
= 7 or 33
= 7
40
70
100
Accumulation Method
Fan Speed = (60*40 + 7*70 + 33*70 + 7*100)/(60+7+33+7)
= (2400 + 490 + 2310 + 700)/107
= 5200/107 = 48.6
Maximum Method
Fan Speed = (60*40 + 33*70 + 7*100)/(60+33+7)
= (2400 + 2310 + 700)/100
= 5410/100 = 54.1
Adaptation
The system can be easily adapted to another variable by
one or more of the following:
Questions ?