Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Control
Introduction
Fuzzy logic:
A way to represent variation or imprecision in logic
A way to make use of natural language in logic
Approximate reasoning
2/9/2004
Fuzzy Logic
King(Richard) Greedy(Richard)
Evil(Richard)
Richard is either greedy or he isn't:
Greedy(Richard) {0,1}
2/9/2004
Fuzzy Logic
Fuzzy Sets
What if Richard is only somewhat
greedy?
Fuzzy Sets can represent the degree
to which a quality is possessed.
Fuzzy Sets (Simple Fuzzy Variables)
have values in the range of [0,1]
Greedy(Richard) = 0.7
Question: How evil is Richard?
2/9/2004
Fuzzy Logic
2/9/2004
Fuzzy Logic
Membership Functions
Temp: {Freezing, Cool, Warm, Hot}
Degree of Truth or "Membership"
2/9/2004
Fuzzy Logic
Membership Functions
How cool is 36 F ?
2/9/2004
Fuzzy Logic
Membership Functions
How cool is 36 F ?
It is 30% Cool and 70% Freezing
0.7
0.3
2/9/2004
Fuzzy Logic
Fuzzy Logic
How do we use fuzzy membership
functions in predicate logic?
Fuzzy logic Connectives:
Fuzzy Conjunction,
Fuzzy Disjunction,
2/9/2004
Fuzzy Logic
Fuzzy Disjunction
AB
max(A, B)
AB = C "Quality C is the
disjunction of Quality A and B"
(AB = C) (C = 0.75)
2/9/2004
Fuzzy Logic
10
Fuzzy Conjunction
AB
min(A, B)
AB = C "Quality C is the
conjunction of Quality A and B"
(AB = C) (C = 0.375)
2/9/2004
Fuzzy Logic
11
2/9/2004
Fuzzy Logic
12
2/9/2004
Fuzzy Logic
13
0.7
2/9/2004
Fuzzy Logic
14
0.9
0.7
2/9/2004
Fuzzy Logic
15
0.9
0.7
Fuzzy Logic
16
Fuzzy Control
Fuzzy Control combines the use of
fuzzy linguistic variables with fuzzy
logic
Example: Speed Control
How fast am I going to drive today?
It depends on the weather.
Disjunction of Conjunctions
2/9/2004
Fuzzy Logic
17
Inputs: Temperature
Temp: {Freezing, Cool, Warm, Hot}
2/9/2004
Fuzzy Logic
18
2/9/2004
Fuzzy Logic
19
Output: Speed
Speed: {Slow, Fast}
2/9/2004
Fuzzy Logic
20
Rules
If it's Sunny and Warm, drive Fast
Sunny(Cover)Warm(Temp) Fast(Speed)
Fuzzy Logic
21
2/9/2004
Fuzzy Logic
22
Fuzzification:
Calculate Input Membership
Levels
2/9/2004
Fuzzy Logic
23
Fuzzification:
Calculate Input Membership
Levels
65 F Cool
= 0.4, Warm= 0.7
2/9/2004
Fuzzy Logic
24
...Calculating...
If it's Sunny and Warm, drive Fast
Sunny(Cover)Warm(Temp)Fast(Speed)
Fuzzy Logic
25
Defuzzification:
Constructing the Output
Speed is 20% Slow and 70% Fast
Fuzzy Logic
26
Defuzzification:
Constructing the Output
Speed is 20% Slow and 70% Fast
Fuzzy Logic
27
Defuzzification:
Constructing the Output
Speed is 20% Slow and 70% Fast
Fuzzy Logic
28
Defuzzification:
Constructing the Output
Speed is 20% Slow and 70% Fast
Fuzzy Logic
29
2/9/2004
Fuzzy Logic
30
Output
Amount of detergent
Washing Time
Agitation
Water Level
Temperature
Cleaner Laundry
Conserve water
Save detergent
Electricity
Time
Money
For Simplicity
Two Input
Dirtiness of the load
Weight of the load
One Output
Amount of detergent
Dirtiness
Range 0 to 100
Subsets
Almost_clean
Dirty
Soiled
Filthy
Weight
Range 0 to 100
Subsets
Very_Light
Light
Heavy
Very_Heavy
Detergent
Range 0 to 100
Subsets
Very_light
Little
Much
Very_Much
Maximum
Very_Light
Light
Heavy
Very_Heavy
Almost_Clean Very_Little
Little
Much
Much
Dirty
Little
Little
Much
Very_Much
Soiled
Much
Much
Very_Much
Maximum
Filthy
Very_Much
Much
Very_Much
Maximum
Membership Function
change in error
Rule Editor
Rule Viewer
Fuzzy Logic
43
2/9/2004
Fuzzy Logic
44
Summary
Fuzzy Logic provides way to calculate with
imprecision and vagueness
Fuzzy Logic can be used to represent some
kinds of human expertise
Fuzzy Membership Sets
Fuzzy Linguistic Variables
Fuzzy AND and OR
Fuzzy Control
2/9/2004
Fuzzy Logic
45