Module 4
Fuzzy Logic
Introduction to Fuzzy Logic, Classical Sets, and Fuzzy Sets
Fuzzy logic is an essential part of soft computing and is used to handle uncertainty and
imprecision in real-world applications. It is based on the concept of fuzzy sets, which
generalize classical (crisp) sets by allowing partial membership. This approach makes fuzzy
logic useful for decision-making in environments where traditional binary logic fails.
What is Fuzzy Logic?
Fuzzy logic is a mathematical approach that deals with degrees of truth rather than strict
true/false (1 or 0) values. It was introduced by Lotfi Zadeh in 1965 to model the vagueness
present in human reasoning and natural language.
Comparison: Classical Logic vs. Fuzzy Logic
Feature Classical Logic Fuzzy Logic
Membership Either 0 or 1 Any value between 0 and 1
Precision Precise, rigid rules Handles vagueness and uncertainty
Example "The water is hot (True or False)" "The water is warm (partially true)"
Applications of Fuzzy Logic
• Control Systems: Washing machines, air conditioners, traffic control.
• Medical Diagnosis: Predicting diseases based on symptoms.
• Artificial Intelligence: Natural language processing, robotics.
• Business and Finance: Stock market predictions, risk analysis.
Classical Sets (Crisp Sets)
In classical set theory, an element either belongs to a set or it does not. This is based on
Boolean logic (0 or 1). A classical set is a well-defined collection of objects where
membership is binary (either in or out).
Mathematical Representation
A classical set A can be defined as:
A={x satisfies some property}
For example, consider a set of even numbers:
A={2,4,6,8,10}
Fuzzy Sets
Unlike classical sets, fuzzy sets allow partial membership. Instead of a strict 0 or 1
classification, elements have a degree of membership between 0 and 1.
Operations in Classical Sets (Crisp Sets)
Classical set theory is based on binary logic, meaning that an element either belongs to a set
or it does not. The operations on classical sets are similar to those in traditional mathematical
logic. These operations include union, intersection, complement, Cartesian product, and
difference.
Conclusion
Operations on Fuzzy Sets
Conclusion
Classical Relations and Fuzzy Relations
Relations are fundamental concepts in mathematics and logic that define associations between
elements of two or more sets. In the context of fuzzy logic, relations extend beyond classical
(crisp) relations by allowing degrees of association instead of strict binary relations.
Membership Function (MF)
1. Introduction to Membership Function
In fuzzy logic, a membership function (MF) defines how each element in the universe of
discourse belongs to a fuzzy set. Unlike classical sets where membership is either 0 or 1, fuzzy
sets allow partial membership values between 0 and 1.
A membership function (MF) defines how each point in the input space is mapped to a
membership value (or degree of belonging) between 0 and 1. It is the core of fuzzy set theory
as it quantifies the fuzziness and allows logical inference using fuzzy logic.
Features of Membership Functions:
• Support: The range where the MF is non-zero.
• Core: The region where the MF equals 1.
• Boundary: The region between 0 and 1.
• Normality: A fuzzy set is normal if at least one element has a membership value of 1.
• Convexity: A fuzzy set is convex if its membership function does not dip in the middle
categories.
(b) Assigning Membership Values
• "Hot" (26-35°C)
4. Methods of Membership Value Assignments
There are different ways to design membership functions. The most commonly used functions
are:
Example
For a fuzzy set Medium Temperature (15°C - 30°C):
• Membership is 0 below 15°C.
• Membership increases linearly from 15°C to 22°C.
• Membership decreases linearly from 22°C to 30°C.
• Membership is 0 above 30°C.
Example
A fuzzy set "Warm Temperature" (20°C - 35°C) could have:
• Membership 0 below 20°C.
• Membership increases linearly from 20°C to 25°C.
• Membership remains 1 from 25°C to 30°C.
• Membership decreases linearly from 30°C to 35°C.
• Membership 0 above 35°C.
Example
A "Moderate Speed" fuzzy set for a car might have:
• Peak at 60 km/h (fully moderate).
• Lower values at 30 km/h or 90 km/h.
Graph: A bell-shaped curve.
Example
A "Hot Temperature" fuzzy set:
• Low membership at 20°C.
• High membership at 40°C.
• Smooth transition in between.
Graph: A soft S-shaped curve.