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)}
Equality (A = B):
μA(x) = μB(x)
Power of a fuzzy set A:
μAα(x) = {μA(x)}α
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)};
Sum (A + B):
μA+B(x) = μA(x) + μB(x) – μA(x) ∙ μB(x)
Difference ( A – B = A BC ):
μA–B(x) = μABc (x)
Disjunctive sum A⊕B:
A⊕B =((AC B) (A BC))
Bounded Sum | A(x) ⊕ B(x) | :
μ|A(x)⊕B(x)| = min{1, μA(x) + μB(x)}
Bounded Difference | A(x) ⊖ B(x) | :
μ|A(x)⊖B(x)| = max{0, μA(x) + μB(x) – 1}
Equality (A = B):
μA(x) = μB(x)
Power of a fuzzy set A:
μAα(x) = {μA(x)}α
If α < 1, then it is called dilation.
If α > 1, then it is called concentration.
17 Department of CSE, GIET University, Gunupur Thursday, February 27, 2025
Soft Computing Properties of Fuzzy & Crisp Sets
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
18 Department of CSE, GIET University, Gunupur Thursday, February 27, 2025
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
19 Thursday, February 27, 2025
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