AB-Fuzzy Logic - Logic Operations
AB-Fuzzy Logic - Logic Operations
B. Logic Operations
London / 9 . 0 York New / 8 . 0
Chicago / 5 . 0 LA / 0 . 0
+ +
+ =
LA
=
x
x
B
| 2 |
) (
=
x
B
e x
0 1 2 3 x
B
(x)
A fuzzy set, A, is said to be a subset of B if
e.g. B = far and A=very far.
For example...
) ( ) ( x x
B A
s
) ( ) (
2
x x
B A
=
Crisp membership functions are either one or
zero.
e.g. Numbers greater than 10.
A ={x | x>10}
1
x
10
A
(x)
Criteria for fuzzy and, or, and complement
Must meet crisp boundary conditions
Commutative
Associative
Idempotent
Monotonic
Example Fuzzy Sets to Aggregate...
A = { x | x is near an integer}
B = { x | x is close to 2}
0 1 2 3 x
A
(x)
0 1 2 3 x
B
(x)
1
)] ( ), ( [ max ) (
A
x x x
B B A
=
+
Fuzzy Union (logic or)
Meets crisp boundary conditions
Commutative
Associative
Idempotent
Monotonic
0 1 2 3 x
A+B
(x)
A OR B = A+B ={ x | (x is near an integer) OR (x is close to 2)}
= MAX [
A
(x),
B
(x)]
)] ( ), ( [ min ) (
A
x x x
B B A
=
-
Fuzzy Intersection (logic and)
Meets crisp boundary conditions
Commutative
Associative
Idempotent
Monotonic
A AND B = A B ={ x | (x is near an integer) AND (x is close to 2)}
= MIN [
A
(x),
B
(x)]
0 1 2 3 x
AB
(x)
The complement of a fuzzy set has a membership function...
) ( 1 ) ( x x
A
A
=
0 1 2 3 x
1
) (x
A
We form the set...
E = G LA
= liquids that taste good AND cities that
are close to LA
The following table results...
LosAngeles(0.0) Chicago (0.5) New York (0.8) London(0.9)
Swamp Water (0.0) 0.00 0.00 0.00 0.00
Radish Juice (0.5) 0.00 0.50 0.50 0.50
Grape Juice (0.9) 0.00 0.50 0.80 0.90