# Fuzzy operations – Explained with examples

Fuzzy operations are performed on fuzzy sets, whereas crisp operations are performed on crisp sets. Fuzzy operations are very useful in the design of a Fuzzy Logic Controller. It allows the manipulation of fuzzy variables by different means.

### Union:

In the case of the union of crisp sets, we simply have to select repeated elements only once. In the case of fuzzy sets, when there are common elements in both fuzzy sets, we should select the element with the **maximum membership value**.

The **union **of two fuzzy sets A and B is a fuzzy set C, written as ** ** C = A âĒ B

C = A âĒ B = {(x, Îŧ_{A âĒ B} (x)) | âx â X}

Îŧ_{C}(x) = Îŧ_{A âĒ B} (x) = Îŧ_{A}(x) â¨ Îŧ_{B}(x)

= max( Îŧ_{A}(x), Îŧ_{B}(x) ), âx â X

Graphically, we can represent union operations as follows: Red and Blue membership functions represent the fuzzy value for elements in sets A and B, respectively. Wherever these fuzzy functions overlap, we have to consider the point with the maximum membership value.

### Example of Fuzzy Union:

C = A âĒ B = {(x, Îŧ_{A âĒ B} (x)) | âx â X}

A = { (x_{1}, 0.2), (x_{2}, 0.5), (x_{3}, 0.6), (x_{4}, 0.8), (x_{5}, 1.0) }

B = { (x_{1}, 0.8), (x_{2}, 0.6), (x_{3}, 0.4), (x_{4}, 0.2), (x_{5}, 0.1) }

Îŧ_{A âĒ B} (x_{1}) = max( Îŧ_{A}(x_{1}), Îŧ_{B}(x_{1}) ) = maxâĄ { 0.2, 0.8 } = 0.8

Îŧ_{A âĒ B} (x_{2}) = max( Îŧ_{A}(x_{2}), Îŧ_{B}(x_{2}) ) = maxâĄ { 0.5, 0.6 } = 0.6

Îŧ_{A âĒ B} (x_{3}) = max( Îŧ_{A}(x_{3}), Îŧ_{B}(x_{3}) ) = maxâĄ { 0.6, 0.4 } = 0.6

Îŧ_{A âĒ B} (x_{4}) = max( Îŧ_{A}(x_{4}), Îŧ_{B}(x_{4}) ) = maxâĄ { 0.8, 0.2 } = 0.8

Îŧ_{A âĒ B} (x_{5}) = max( Îŧ_{A}(x_{5}), Îŧ_{B}(x_{5}) ) = maxâĄ { 1.0, 0.1 } = 1.0

So, A âĒ B = { (x_{1}, 0.8), (x_{2}, 0.6), (x_{3}, 0.6), (x_{4}, 0.8), (x_{5}, 1.0) }

### Intersection:

In the case of the intersection of crisp sets, we simply have to select common elements from both sets. In the case of fuzzy sets, when there are common elements in both fuzzy sets, we should select the element with **minimum membership value**.

The **intersection **of two fuzzy sets A and B is a fuzzy set C, written as ** ** C = A âŠ B

C = A âŠ B = {(x, Îŧ_{A âŠ B} (x)) | âx â X}

Îŧ_{C}(x) = Îŧ_{A âŠ B} (x) = Îŧ_{A}(x) â Îŧ_{B}(x)

= min( Îŧ_{A}(x), Îŧ_{B}(x) ), âx â X

Graphically, we can represent the intersection operation as follows: Red and blue membership functions represent the fuzzy value for elements in sets A and B, respectively. Wherever these fuzzy functions overlap, we have to consider the point with the minimum membership value.

### Example of Fuzzy Intersection:

C = A âŠ B = {(x, Îŧ_{A âŠ B} (x)) | âx â X}

A = { (x_{1}, 0.2), (x_{2}, 0.5), (x_{3}, 0.6), (x_{4}, 0.8), (x_{5}, 1.0) }

B = { (x_{1}, 0.8), (x_{2}, 0.6), (x_{3}, 0.4), (x_{4}, 0.2), (x_{5}, 0.1) }

Îŧ_{A âŠ B} (x_{1}) = min( Îŧ_{A}(x_{1}), Îŧ_{B}(x_{1}) ) = maxâĄ { 0.2, 0.8 } = 0.2

Îŧ_{A âŠ B} (x_{2}) = min( Îŧ_{A}(x_{2}), Îŧ_{B}(x_{2}) ) = maxâĄ { 0.5, 0.6 } = 0.5

Îŧ_{A âŠ B} (x_{3}) = min( Îŧ_{A}(x_{3}), Îŧ_{B}(x_{3}) ) = maxâĄ { 0.6, 0.4 } = 0.4

Îŧ_{A âŠ B} (x_{4}) = min( Îŧ_{A}(x_{4}), Îŧ_{B}(x_{4}) ) = maxâĄ { 0.8, 0.2 } = 0.2

Îŧ_{A âŠ B} (x_{5}) = min( Îŧ_{A}(x_{5}), Îŧ_{B}(x_{5}) ) = maxâĄ { 1.0, 0.1 } = 0.1

So, A âŠ B = { (x_{1}, 0.2), (x_{2}, 0.5), (x_{3}, 0.4), (x_{4}, 0.2), (x_{5}, 0.1) }

### Complement:

Fuzzy complement is identical to crisp complement operation. The membership value of every element in the fuzzy set is complemented with respect to 1, i.e. it is subtracted from 1.

The **complement **of fuzzy set A, denoted by A^{C}, is defined as

A^{C} = {(x, Îŧ_{A}^{C} (x)) | âx â X}

A^{C} (x) = 1 – Îŧ_{A}(x)

### Example of Fuzzy Complement:

A^{C} (x) = 1 – Îŧ_{A}(x)

A = { (x_{1}, 0.2), (x_{2}, 0.5), (x_{3}, 0.6), (x_{4}, 0.8), (x_{5}, 1.0) }

A^{C} = { (x_{1}, 0.8), (x_{2}, 0.5), (x_{3}, 0.4), (x_{4}, 0.2), (x_{5}, 0.0) }

A â A^{C} = { (x_{1}, 0.8), (x_{2}, 0.5), (x_{3}, 0.6), (x_{4}, 0.8), (x_{5}, 1.0) } â X

A âŠ A^{C} = { (x_{1}, 0.2), (x_{2}, 0.5), (x_{3}, 0.4), (x_{4}, 0.2), (x_{5}, 0.0) } â ÎĻ

Unlike crisp sets, fuzzy sets do not hold the law of contradiction and the law of excluded middle.

## Watch on YouTube: Fuzzy operations

## Test Your Knowledge:

For following fuzzy sets, perform union, complement and intersection operations.

A = { (x_{1}, 0.4), (x_{2}, 0.5), (x_{3}, 0.2), (x_{4}, 0.4), (x_{5}, 0.8) }

B = { (x_{1}, 1.0), (x_{2}, 0.3), (x_{3}, 0.5), (x_{4}, 0.7), (x_{5}, 0.1) }

**Please post your answer / query / feedback in comment section below !**

helpful article.

Noted with thanks

Excellent explanation

Thanks…

Graphically we can represent union operation as follow. this sentence has a mistake please correct it . it should be “intersection ” in the place of “Union”

Thank you very much for your input. Appreciated and corrected.

How to show union is associative in fuzzy set

Its similar to crisp set instead of union, you shall consider max of membership value in fuzzy set.

Please tell me how we prove that union is associtive

Properties of sets are explained in videos with example here: https://www.youtube.com/playlist?list=PLUVnh0w_cCjJ50vH6505Bk7Zv-2f8rltw

You will find your answer

sir please suggest me if the parameter are fuzzy number then how to find minimum weight

Your question is not clear to me. Can you plz rephrase it?