Tutorial: Fuzzy Logic – I
Introduction to Fuzzy Logic
Fuzzy logic is a mathematical framework for representing degrees of truth rather than restricting membership to only 0 or 1.
In classical or crisp set theory, an element either belongs to a set or does not belong to it.
In fuzzy logic, an element can belong to a set with a membership value anywhere between 0 and 1.
For example, if x represents temperature, we might have:
μWarm(x)=0.7
This means that x has a membership degree of 0.7 in the fuzzy set Warm.
1. Crisp Sets
In a classical set, the membership function can have only two values:
μA(x)∈{0,1}
where:
μA(x)={1,
Thus, membership is binary.
For example, if A represents the set of even numbers:
A={2,4,6,8,…}
then:
μA(4)=1
while:
μA(5)=0
2. Fuzzy Sets
A fuzzy set allows partial membership.
The membership function is defined as:
μA(x):X→[0,1]
Therefore:
0≤μA(x)≤1
The values have the following interpretation:
| Membership | Meaning |
|---|
| μA(x)=0 | No membership |
| 0<μ |
For example:
μWarm(25)=0.8
means that a temperature of 25∘C has a membership degree of 0.8 in the fuzzy set Warm.
3. Fuzzy Membership Function
A fuzzy set A can be represented using its membership function:
μA(x)
The function maps each element x to a value between 0 and 1:
μA(x)∈[0,1]
For example:
μA(x)=
This function gradually increases membership from 0 to 1.
4. Fuzzy Union
The union of two fuzzy sets A and B represents the degree to which an element belongs to at least one of the sets.
The standard fuzzy union is defined using the maximum operator:
μA∪B(x)=max(μA
For example, suppose:
μA(x)=0.4
and:
μB(x)=0.7
Then:
μA∪B(x)=max(0.4,0.7)=0.7
The larger membership value is selected.
5. Fuzzy Intersection
The intersection of two fuzzy sets represents the degree to which an element belongs to both sets.
The standard fuzzy intersection is defined using the minimum operator:
μA∩B(x)=min(μA
For example, if:
μA(x)=0.4
and:
μB(x)=0.7
then:
μA∩B(x)=min(0.4,0.7)=0.4
The smaller membership value is selected.
6. Fuzzy Complement
The complement of a fuzzy set represents the degree to which an element does not belong to the set.
The standard complement is:
μA(x)=1−μA
For example, if:
μA(x)=0.8
then:
μA(x)=1−0.8=0.2
Similarly, if:
μA(x)=0.3
then:
μA(x)=0.7
7. Fuzzy Set Example
Suppose two fuzzy sets describe temperature:
For a particular temperature x, suppose:
μA(x)=0.6
and:
μB(x)=0.8
Union
μA∪B(x)=max(0.6,0.8)=0.8
Intersection
μA∩B(x)=min(0.6,0.8)=0.6
Complement of A
μA(x)=1−0.6=0.4
8. Important Fuzzy Set Formulas
Membership
0≤μA(x)≤1
Fuzzy Union
μA∪B(x)=max(μA
Fuzzy Intersection
μA∩B(x)=min(μA
Fuzzy Complement
μA(x)=1−μA
9. Crisp Sets vs Fuzzy Sets
| Feature | Crisp Set | Fuzzy Set |
|---|
| Membership values | 0 or 1 | [0,1] |
| Partial membership | No | Yes |
| Boundary | Sharp | Gradual |
| Membership function | Binary | Continuous or discrete |
| Example | Even number | Warm temperature |
For a crisp set:
μA(x)∈{0,1}
For a fuzzy set:
μA(x)∈[0,1]
The key difference is that fuzzy logic allows partial membership.
10. Fuzzy Set Representation
A finite fuzzy set can be represented as a collection of elements with their membership values.
For example:
A={(1,0.2), (2,0.5), (3,0.8), (4,1.0
This means:
μA(1)=0.2,μA
The membership values describe the degree to which each element belongs to the fuzzy set.
11. Fuzzy Operations Example
Consider:
μA(x)=0.3
and:
μB(x)=0.9
Then the union is:
μA∪B(x)=max(0.3,0.9)=0.9
The intersection is:
μA∩B(x)=min(0.3,0.9)=0.3
The complement of A is:
μA(x)=1−0.3=0.7
The complement of B is:
μB(x)=1−0.9=0.1
12. De Morgan's Laws for Fuzzy Sets
The standard fuzzy operations satisfy analogues of De Morgan's laws.
First law:
A∪B=A∩B
In terms of membership functions:
μA∪B(x)=min(
Second law:
A∩B=A∪B
Therefore:
μA∩B(x)=max(
13. Important Properties
Fuzzy union using the maximum operator satisfies:
Commutativity
A∪B=B∪A
A∩B=B∩A
Associativity
(A∪B)∪C=A∪(B∪C)
(A∩B)∩C=A∩(B∩C)
Idempotency
A∪A=A
A∩A=A
These properties make fuzzy set operations mathematically consistent with the corresponding standard set operations.
14. Summary
Fuzzy logic extends classical set theory by allowing elements to have degrees of membership.
The membership function is:
μA(x)∈[0,1]
The three fundamental fuzzy-set operations are:
Union
μA∪B(x)=max(μA
Intersection
μA∩B(x)=min(μA
Complement
μA(x)=1−μA
The key idea to remember is:
Fuzzy Logic=Degree of Membership
Unlike crisp logic, where membership is restricted to 0 or 1, fuzzy logic allows intermediate values such as:
0.2,0.5,0.7,0.9
This makes fuzzy logic useful for representing concepts such as temperature, speed, height, pressure, risk, and intelligence, where boundaries are not always naturally binary.
Next Topics
After fuzzy sets and their basic operations, the natural next topics are:
- Fuzzy Relations
- Fuzzy Cartesian Product
- Fuzzy Composition
- Fuzzy Rules
- Linguistic Variables
- Fuzzy Inference Systems
- Mamdani Fuzzy Inference
- Sugeno Fuzzy Inference
- Fuzzification
- Defuzzification
- Centroid Method
- Applications of Fuzzy Logic