Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
16 views83 pages

SC Mod3

The document provides an overview of fuzzy logic, which deals with uncertainty and allows for truth values between 0 and 1. It covers concepts such as fuzzy sets, membership functions, and various methods of defuzzification, including centroid and max membership principles. Additionally, it discusses operations on fuzzy sets, properties of fuzzy relations, and the differences between fuzzification and defuzzification.

Uploaded by

Vaishakh Suresh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views83 pages

SC Mod3

The document provides an overview of fuzzy logic, which deals with uncertainty and allows for truth values between 0 and 1. It covers concepts such as fuzzy sets, membership functions, and various methods of defuzzification, including centroid and max membership principles. Additionally, it discusses operations on fuzzy sets, properties of fuzzy relations, and the differences between fuzzification and defuzzification.

Uploaded by

Vaishakh Suresh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 83

MODULE 3

Fuzzy Logic & Defussification


INTRODUCTION TO FUZZY LOGIC

Fuzzy logic is a tool which deals with uncertainity.

Fuzzy logic is a form of multivalued logic to deal with reasoning that is
approximate rather than precise.

Fuzzy logic may have truth values that ranges between 0 and 1.

0.0 indicates absolute falseness and 1.0 indicates absolute truth.

Ie, It is an approach to computing based on ‘degree of truth’ rather than the
usual ‘true or false’.
FUZZY SETS


Set membership :is used to make suitable decisions when uncertainity occurs.

Figure 1 : ‘a’ is clearly a member of crisp set. ‘b’is unambiguously not a member of
set A.

Figure 2: ‘a’ is clearly a member of crisp set. ‘b’ is unambiguously not a member of
set A. But the membership of ‘c’ which is on the boundary is ambiguous

If complete membership in a set is represented by 1 , and non - membership in
a set is represented by 0, then point c must have some intermediate value of
membership in the interval [0,1]. This is called partial membership of fuzzy set
A.

Membership value in a set is binary,ie,either element is a
member of a set or element is not a member of a set.

µA(x) = 1, if x is a member of A,ie, x ε A
0, if x is not a member of A.
Eg: Condition : If height is greater than 150 cm, then he is tall ,else
he is short.

Suppose Amal is of height 180cm, he is tall. Thus, µA(Amal) = 1

Graph showing membership functions for fuzzy set
‘tall’

Graph showing membership functions for fuzzy sets “ short ” , “ medium ” ,
“tall ”.

Ans: Cardinality of a set is the total number of unique elements in a set.
2. Consider two fuzzy sets given below

Perform
a. union b. Intersection c. Complement d. Difference
Ans :
Tutorial
Fuzzy set operations
Properties of fuzzy sets

Ans:
Fuzzy Membership function

Membership function defines the fuzziness in a fuzzy set

irrespective of the elements in the set, which are discrete
or

continuous.

They are generally represented in graphical form.

The rules that describe fuzziness graphically are also
fuzzy
Methods of membership value assignments
1. Intuition

Intuition method is based upon the common intelligence of human.

It is the capacity of the human to develop membership functions on the basis of their
own intelligence and understanding capability.

There should be an indepth knowledge of the application to which membership
value assignment has to be made.
Q1: Using your own intuition and definitions of the universe of discourse,
plot fuzzy membership functions for "weight of people".
Q2: Using your own intuition and definitions of the universe of discourse,
plot fuzzy membership functions for "age of people".
2. Inference

The inference method uses knowledge to perform deductive reasoning (result of
one is used for another expression untill result is obtained).

Deduction achieves conclusion by means of forward inference.

The knowledge of geometrical shapes and geometry is used for defining
membership values.

The membership functions may be defined using various shapes:
triangular, trapezoidal, bell shaped, Gaussian etc.

The inference method here is via triangular shape.
OR
Q1: Using the inference approach, find the membership values for the
triangular shapes I,R,E,IR and T for a triangle with angles 45o, 55o and 80o
Tutorial
3. Rank Ordering


Here membership value is based on rank that is obtained from pairwise
comparisons which enable us to determine preferences.

This results in determining the order of the membership.

The formation of government based on polling, identify best student based on
rank in class, buy a car based on opinions from several people/poll etc are the
examples of this type.

Suppose 10000 people were questioned about pairwise preferences
among 5 cars as x={maruthi800, scorpio, Matiz, Santro, Octavia}

Define a fuzzy set A on the universe of cars “best car”

maruthi scorpio Matiz Santro Octavia Total % ●


Rank
800

maruthi800 - 192 246 592 621 1651 16.51 ●


5
scorpio 403 - 621 540 391 1955 19.6 ●
2
Matiz 235 336 - 797 492 1860 18.60 ●
4
Santro 523 364 417 - 608 1912 19.12 ●
3
Octavia 616 534 746 726 - 2622 26.22 ●
1

Total 10000
µ=1

Mar Mat San Sco Oct


Fuzzy relations
Fuzzy matrix

m
Example
Fuzzy graph

Consider a universe X={x1,x2,x3,x4} and binary fuzzy relation on X as

x
Operations on fuzzy relations
Properties of fuzzy relations
Fuzzy cartesian product


Let A be a fuzzy set on universe X and B be a fuzzy set on universe Y, then
cartesian product between fuzzy sets A and B will result in a fuzzy relation R
which is contained within the full cartesian product space
Example 2:
Consider the following two fuzzy sets. Perform cartesian product over the given
sets.
Example 3:
Features of membership functions


Consider the graph representation


Core : The core of a membership function for some fuzzy set A is defined as that
region of universe is characterized by complete membership in the set A.
Ie, µA(x)=1

Support : The support of a membership function for a fuzzy set A is defined as that
region of universe is characterized by
µA(x)>=0

Boundary : The boundary of a membership function for a fuzzy set A is defined as
that region of universe containing elements that dont have complete membership.
Ie, 0< µA(x) < 1

Normal fuzzy set:
A fuzzy set whose membership function has at least
one element x in the universe whose membership
value is unity is called normal fuzzy set.

Subnormal fuzzy set :
A fuzzy set where in no membership function has its
value equal to 1 is called subnormal fuzzy set.
Crossover point of a fuzzy set

The element in the universe for which a particular fuzzy set A has its value equal to
0.5 is called crossover point of a membership function.ie, µA(x)=0.5

There can be more than one crossover point in a fuzzy set.
Height of the fuzzy set
Fuzzy composition

Composition of fuzzy relations are of two types
a. max-min composition

Suppose R is a fuzzy relation on cartesian space XxY, S is a fuzzy relation on
cartesian space YxZ, T is a fuzzy relation on cartesian space XxZ.

Then, T=RoS
Question

The above are two fuzzy relations in matrix form. Find max-min composition.

b. max-product composition
Tutorial 1
Tutorial 2
Defuzzification

Defuzzification is a mapping process from a space of fuzzy control actions defined
over an output universe of discourse into a space of crisp control actions.

It has the capability:
– to reduce a fuzzy set into a crisp set
– to convert a fuzzy matrix into a crisp matrix
– to convert a fuzzy number into a crisp number

Mathematically, the defuzzification process may also be termed as Rounding it
off .
Lambda Cuts for Fuzzy Sets

Also called alpha cuts.

Consider a fuzzy set A.

The set Aλ where 0 < λ < 1, called the λ-cut or α-cut set is a crisp set of the fuzzy set.

It is defined as:

where λ ε [0,1]

Any particular fuzzy set A can be transformed into an infinite number of cut sets.

The set Aλ is called a weak lambda-cut set if it consists of all the elements of a fuzzy set whose
membership functions have values greater than or equal to a specified value, λ .

The set Aλ is called a strong lambda-cut set if it consists of all the elements of a fuzzy set whose
membership functions have values strictly greater than a specified value, λ .
Aλ = { x|µA (x)>λ}
Properties of λ-cut sets

Consider two fuzzy sets A and B, both defined on X,given as follows:

a. λ=0.1 b. λ=0+


c. λ=0.3 d. λ= 0.9
Tutorial
Defuzzification Methods

Defuzzification is the process of conversion of a fuzzy quantity into a precise
quantity.

The output of a fuzzy process may be union of two or more fuzzy membership
functions defined on the universe of discourse of the output variable.

A fuzzy output process may involve many output parts, and the membership
function representing each part of the output can have any shape.

In general, we have,
Example:
For defuzzifying fuzzy output functions (membership functions), the following methods are used:
1. Max Membership Principle

Also known as height method.

It always gives you the maximum membership value of a fuzzy function

This method is given by,


Ie, choose the peak value in the fuzzy output

x* is the defuzzified value, ie, crisp value.

Drawback : This method is applicable only for peaked output functions.
2. Centroid Method

Also known as center of mass, center of area or Center of gravity method.

It is the most commonly used defuzzification method.

The defuzzified output x* is defined as,

where the symbol ∫ denotes algebraic integration


3. Weighted Average Method

Each membership function is weighted by its maximum membership value.

This method is valid for symmetrical output membership functions only.

Let a be the centre value of C1 and b be the centre value of C2.

Max. Membership value of C1 is 0.5 and max.membership value of C2 is 0.8

The defuzzified output x* is defined as,


Since, the method can be limited to symmetrical membership functions, the values a and b are the
means(/centroids) of their respective shapes.
4. Mean Max Membership

Also known as middle of the maxima.

It is closely related to max membership method except that the locations of the
maximum membership can be non unique.

The defuzzified output x* is defined as,


Here,max.membership value starts at a and ends at b.
5. Center of Sums

This method is faster than many defuzzification methods and is not restricted to symmetric membership
functions.

In this method, the area of overlapping region is considered multiple times, whereas the Center of Gravity
(CoG) method counts it once.

This method finds the algebraic sum of the individual fuzzy subsets (say c1 and c2 ) instead of their union,C.

The weights are the areas of the respective membership functions.

The defuzzified output x* is defined as,


Where CoAn is the geometric center of area of the scaled membership function n, and area n is the area of the
scaled membership function n.


The main drawback : intersecting areas are added twice.
6. Center of Largest Area

This method can be adopted when the output consists of at least two convex fuzzy subsets
which are not overlapping.

The output in this case is biased towards a side of one membership function.

Centre of gravity of the convex fuzzy subregion with largest area, x* is calculated using
centroid method to get the defuzzified value of output.

The defuzzified output x is defined as

where Ci is the convex subregion that has the largest area.


7. First of Maxima (Last of Maxima)

This method considers values with maximum membership.
First of Maxima Method (FOM)

This method determines the smallest value of the domain with maximum membership value.

Example : The defuzzified value x* of the given fuzzy set will be x* = 4

Last of Maxima Method (LOM)



Determine the largest value of the domain with maximum membership value.

Example : The defuzzified value for LOM method will be x* = 8
Difference between fuzzification and defuzzification
fuzzification defuzzification
1 Precise data is converted into Imprecise data is converted into precise data.
imprecise data.
2 Fuzzification is the method of Defuzzification is the inverse process of
converting a crisp quantity into a fuzzification where the mapping is done to
fuzzy quantity. convert the fuzzy results into crisp results.

3 Methods: Intuition, inference, rank Methods: Maximum membership principle,


ordering, centroid method, weighted average method,
center of sums, etc

4 It is quite simple. It is quite complicated

You might also like