ISC Unit I Topic-4
ISC Unit I Topic-4
Fuzzy Logic
Membership Function
Non-Uniform Non-Uniform
Triangle(x; a, b, c) =
Trapezoid(x; a, b, c, d) =
Gaussian(x; c, σ) =
Sigmoid(x; a, c) =
You can
decide a
standard
fuzzy MF for
each of the
fuzzy garde.
If two FS are A & B, then the union of two FS denoted by the symbol
. Here, we need to take maximum of two values of the membership.
Complement (AC):
μ Ac (x) = 1- μA(x)
Example:
A = {(x1, 0.5), (x2, 0.1), (x3, 0.4)}
C = AC = {(x1, 0.5), (x2, 0.9), (x3, 0.6)}
Bounded Sum:
The bounded sum of two fuzzy sets A(x) and B(x) for all x ∈ X,
is denoted by | A(x) ⊕ B(x) | and defined as follows
μ|A(x)⊕B(x)| = min{1, μA(x) + μB(x)}
Bounded Difference:
The bounded difference of two fuzzy sets A(x) and B(x) for all x
∈ X, is denoted by
| A(x) ⊖ B(x) | and defined as follows-
μ|A(x)⊖B(x)| = max{0, μA(x) + μB(x) – 1}
Eg-A(x)={(x1,0.1),(x2,0.2),(x3,0.3),(x4,0.4)} B(x)={(x1,0.5),
(x2,0.7),(x3,0.8),(x4,0.9)}
| A(x) ⊖ B(x) |={(x1,0),(x2,0),(x3,0.1),(x4,0.3)}
16 Department of CSE, GIET University, Gunupur Saturday, May 4, 2024
Soft Computing Basic Fuzzy Set Operations: Equality & Power
Equality (A = B):
μA(x) = μB(x)
A(x)={(x1,0.5),(x2,0.4)}
B(x)={(x1,0.8),(x2,0.4)}
C(x)={(x1,0.5),(x2,0.4)}
Here we can say that fuzzy set A and C are equal
Eg- A={(x1,0.4),(x2,0.2)}
For α=2
μA2(x) = (μA(x))2
Hence- A2 ={(x1,0.16),(x2,0.04)}
If α < 1, then it is called dilation.
If α > 1, then it is called concentration.
Example:
A = {(x1, 0.5), (x2, 0.1), (x3, 0.4)} and
B = {(x1, 0.2), (x2, 0.3), (x3, 0.5)};
Commutativity :
∼ ∼ ∼ ∼
A B=B A
A B=BA
Associativity :
A (B C) = (A B) C
A (B C) = (A B) C
Distributivity :
A (B C) = (A B) (A C)
A (B C) = (A B) (A C)
Idempotence :
A A=A
A A=A
Transitivity :
If A B, B C then A C
Involution :
(AC)C = A
20 Department of CSE, GIET University, Gunupur Saturday, May 4, 2024
Soft Computing Properties of Fuzzy & Crisp Sets
Identity:
A ϕ=A
A ϕ=ϕ
A X=X
A X=A
Law of Absorption:
A ∪ (A B) = A
A (A ∪ B) = A
De Morgan’s law:
(A B)C = AC BC
(A B)C = AC BC
Excluded middle laws:
A ∪ Ac = X
Contradiction laws:
A Ac = ∅
Only excluded middle laws doesn’t holds good for Fuzzy set
PropertyDepartment of CSE, GIET University, Gunupur
21 Saturday, May 4, 2024
Soft Computing Fuzzy Set Operation
Consider the following two fuzzy sets A and B defined over a universe
of discourse [0,5] of real numbers with their membership functions
i. Ac , Bc
ii. A B
iii. A B
iv. (A B)c
Two fuzzy sets A and B with membership functions μA(x) and μB(x),
respectively defined as below.
A = Cold climate with μA(x) as the M.F.
B = Hot climate with μB(x) as the M.F.
Note: Note that ”Not Cold climate” ”Hot climate” and vice-versa.
Example 1:
Consider the two crisp sets A and B as given below. A ={1, 2, 3, 4}
B = {3, 5, 7}
Then, A B = {(1, 3), (1, 5), (1, 7), (2, 3), (2, 5), (2, 7), (3, 3), (3, 5),
(3, 7), (4, 3), (4, 5), (4, 7)}
Let us define a relation R as R = {(a, b) | b = a + 1, (a,
b) A B}
Then, R = {(2, 3), (4, 5)} in this case.
We can represent the relation R in a matrix form as
follows. 3 5 7
1 0 0 0
2 1 0 0
3 0 0 0
4R 0= 1 0
Suppose, R(x, y) and S(x, y) are the two relations define over two crisp
sets x A and y B
Union:
R(x, y) S(x, y) = max(R(x, y),S(x, y)),
Intersection:
R(x, y) S(x, y) = min(R(x, y),S(x, y)),
Complement:
R(x, y) = 1 - R(x, y)
Example:
Suppose, R(x, y) and S(x, y) are the two relations define over two crisp
sets x A and y B
0 1 0 0 1 0 0 0 Find the following:
0 0 1 0 0 1 0 0 1. R S
R= S =
0 0 0 1 0 0 1 0 2. R S
0 0 0 0 0 0 0 1 3. Rc
Max-Min Composition
Given the two relation matrices R and S, the max-min composition is
defined as T = R ○ S ,
1 0 1 0 1 0 1 1
R= and S =
3 0 0 1 3 0 0 1
5 0 0 0 5 0 0 0
1 3 5
1 0 0 1
Using max-min composition R ○ S =
3 0 0 0
5 0 0 0