Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
MODULE 0
PU C O
N
Dr. R.B.Ghongade,
N G
E- AD
38 E
FUZZY LOGIC & NEURAL NETWORKS
E
AD
University Syllabus
G
N
• Teaching Scheme
PU C O
E, T GH
– Lectures/Week: 3Hrs
38
– Tutorials/Week: 1Hr
.
• Examination Scheme
E-
C F E .B
– Attendance: 10 marks
D
– Assignments: 10 marks
BV P f.
• Credits: 04
T
P
©
U
E
E
AD
Unit I
G
Fuzzy Logic -I
N
PU C O
• Concept of Fuzzy number, fuzzy set theory
E, T GH
(continuous, discrete), Operations on fuzzy
38
sets, Fuzzy membership functions (core,
.
E-
C F E .B
O
T
P
©
U
E
E
AD
Unit II
G
Fuzzy Logic -II
N
• Fuzzification, Membership Value Assignment
PU C O
E, T GH
techniques, De-fuzzification (Max membership
38
principle, Centroid method, Weighted average
.
method), Concept of fuzzy inference, Implication
E-
C F E .B
U
E
E
AD
Unit III
G
Fuzzy Control Systems
N
PU C O
• Assumptions in a Fuzzy Control System Design,
E, T GH
Fuzzy Logic Controllers, Comparison with
38
traditional PID control, advantages of FLC,
.
E-
C F E .B
O
T
P
©
U
E
E
AD
Unit IV
G
Artificial Neural Network -I
N
• Biological neuron, Artificial neuron model, concept of
PU C O
bias and threshold , Mc Culloch-Pits Neuron Model,
E, T GH
38
implementation of logical AND, OR, XOR functions Soft
Topologies of neural networks, learning paradigms:
.
E-
C F E .B
U
E
E
AD
Unit V
G
Artificial Neural Network -II
N
• Multilayer perceptron (MLP) and back
PU C O
propagation algorithm, Application of MLP for
E, T GH
38
• classification and regression, Self-organizing
Feature Maps, k-means clustering, Learning
.
E-
C F E .B
vector N
R
regression,
T
P
U
E
E
AD
Unit VI
Adaptive Neuro-Fuzzy Inference Systems (ANFIS)
G
N
PU C O
• ANFIS architecture, Hybrid Learning
E, T GH
Algorithm, Advantages and Limitations of
38
ANFIS
.
E-
C F E .B
O
T
P
©
U
E
E
AD
Text /ReferenceBooks
G
N
1. L-Fortuna, G. Rizzotto, M. Lavorgna, G.
PU C O
E, T GH
Nunnari, M. G. Xibilia and R.Caponetto , “Soft
38
Computing”, Springer
.
E-
C F E .B
Education.
BV P f.
U
E
E
AD
List of Tutorials/Experiments
G
N
1. Study of Fuzzy sets and operations.
PU C O
2. Study of concepts of fuzzy sets core, support, alpha cuts..
E, T GH
3. Study of fuzzy relation, Max-min composition.
38
4. Analyze t-norms and t-conorms.
.
5. Analyze Fuzzy Inference systems -Mamdani fuzzy model, Sugeno fuzzy
E-
C F E .B
ANN.
D
G
N
PU C O
1. Implement simple logic network using MP neuron model
2. Implement a simple linear regressor with a single neuron model.
E, T GH
3. Implement and test MLP trained with backpropagation algorithm
38
4. Implement and test RBF network.
.
5. Implement SOFM for character recognition.
E-
C F E .B
Gaussian).
D . O r.
average method)
9. Implement FIS with Mamdani inferencing mechanism.
BV P f.
10. Implement Simulink model for Vacuum cleaner, washing machine using Fuzzy Logic
D ro
tools
T
U
E
E
AD
Course objectives (Theory)
G
N
• Introduction to a relatively new computing paradigm
PU C O
for creating intelligent machines useful for solving
E, T GH
complex real world problems
38
• Insight into the tools that make up the soft computing
.
E-
C F E .B
technique
D
systems
P
©
U
E
E
AD
Course objectives (Assignments)
G
N
• Use MATLAB for creating artificial neural
PU C O
E, T GH
networks for solving basic problems
38
• Understand the concept of decision boundary,
.
E-
C F E .B
applications
T
P
©
U
E
E
AD
Pre-requisites for the course
G
N
PU C O
• Basic matrix algebra
E, T GH
• Preliminary calculus
38
Familiarity with MATLAB
.
•
E-
C F E .B
N
R
processing
BV P f.
• Patience
D ro
O
T
P
• Resilience
©
U
E
E
AD
What would you gain after
G
(successfully)completing the course?
N
• A completely new tool at your disposal to solve a
PU C O
wide variety of real world problems
E, T GH
38
• No matter what your main subject of interest is,
you would have an alternate solution , which may
.
E-
C F E .B
optimization
&
D . O r.
U
E
E
AD
Reference Books
G
N
1. Introduction to the theory of neural computation, John Hertz, Anders Krogh,
PU C O
Richard Palmer, Addison –Wesley Publishing Company, 1991
E, T GH
2. Neural Networks A comprehensive foundation, Simon Haykin,Prentice Hall
International Inc- 1999.
38
3. Neural and Adaptive Systems: Fundamentals through Simulations, José C.
.
Principe Neil R. Euliano , W. Curt Lefebvre, John-Wiley & Sons, 2000
E-
C F E .B
6. A First Course in Fuzzy Logic, Third Edition, Hung T. Nguyen, Elbert A. Walker,
D
9. Fuzzy Logic With Engineering Applications, Third Edition, Timothy Ross, John
Wiley & Sons,2010
©
10. Neuro-Fuzzy and Soft Computing ,J.S. Jang, C.T. Sun, E. Mizutani, PHI Learning
E
Private Limited
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
MODULE 1
PU C O
N
Dr. R.B.Ghongade,
N G
E- AD
38 E
FUZZY LOGIC & NEURAL NETWORKS
E
AD
SOFT COMPUTING CONSTITUENTS AND CONVENTIONAL
ARTIFICIAL INTELLIGENCE
G
N
PU C O
• Soft Computing (SC): The symbiotic use of many
E, T GH
emerging problem-solving disciplines.
38
• Soft computing is an emerging approach to computing
.
E-
which parallels the remarkable ability of the human mind
C F E .B
– neural networks
BV P f.
D ro
U
E
E
AD
PROBLEM SOLVING TECHNIQUES
G
N
HARD COMPUTING SOFT COMPUTING
PU C O
E, T GH
38
Precise Models Approximate Models
.
E-
C F E .B
N
R
&
D . O r.
Traditional Functional
D
Search Search
O
T
P
©
U
E
E
AD
G
Methodology Strength
N
Neural network Learning and adaptation
PU C O
E, T GH Knowledge representation via fuzzy if-then
Fuzzy set theory
rules
38
Genetic algorithm and simulated annealing Systematic random search
.
E-
Conventional AI Symbolic manipulation
C F E .B
N
R
&
better performance
©
U
E
E
AD
An Example
G
• Neural character recognizer
N
and a knowledge base are
PU C O
used together to
determine the meaning of
E, T GH
a hand-written word
38
• The neural character
recognizer generates two
.
E-
C F E .B
character could be
&
picked up correctly
©
U
E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
E- G
AD
38 E
E
AD
From Conventional AI to Computational Intelligence
• Humans usually employ natural languages in
G
reasoning and drawing conclusions
N
PU C O
• Conventional AI attempts to mimic human intelligent
E, T GH
behavior by expressing it in language forms or
38
symbolic rules
.
E-
C F E .B
hypothesis
BV P f.
U
E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
E- G
AD
A typical expert system
38 E
E
AD
Short comings of symbolicism
G
N
• In practice, the symbolic manipulations limit the
PU C O
situations to which the conventional AI theories can be
E, T GH
applied as knowledge acquisition and representation
38
are difficult tasks
.
E-
C F E .B
U
E
E
AD
• The long-term goal of AI research is the
G
creation and understanding of machine
N
intelligence
PU C O
• Soft computing shares the same ultimate goal
E, T GH
38
with AI
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
An intelligent system
E
AD
NEURAL NETWORKS
G
N
DARPA Neural Network Study (1988, AFCEA International
PU C O
Press, p. 60):
E, T GH
38
... a neural network is a system composed of many simple processing
elements operating in parallel whose function is determined by network
.
E-
C F E .B
An artificial neuron
O
T
P
©
U
E
E
AD
DEFINITIONS OF NEURAL NETWORKS
G
According to Haykin (1994), p. 2:
N
PU C O
A neural network is a massively parallel distributed processor that has a
E, T GH
natural propensity for storing experiential knowledge and making it
38
available for use. It resembles the brain in two respects:
.
E-
C F E .B
•
D
O
T
P
©
U
E
E
AD
According to Nigrin (1993), p. 11:
G
N
A neural network is a circuit composed of a very large number of
PU C O
simple processing elements that are neurally based. Each element
operates only on local information.
E, T GH
38
Furthermore each element operates asynchronously; thus there is no
.
E-
C F E .B
O
T
P
©
U
E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
E- G
AD
38 E
A multi-layered neural network
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
E- G
AD
38 E
MULTIDISCIPLINARY VIEW OF NEURAL NETWORKS
E
AD
FUZZY LOGIC
G
N
• Origins: Multivalued Logic for treatment of imprecision
PU C O
and vagueness
E, T GH
38
– 1930s: Post, Kleene, and Lukasiewicz attempted to
.
E-
C F E .B
U
E
E
AD
FUZZY LOGIC – LINGUISTIC VARIABLES
G
N
– Fuzzy logic gives us a language (with syntax and local
PU C O
semantics) in which we can translate our qualitative
E, T GH
38
domain knowledge.
.
E-
C F E .B
characterized by:
BV P f.
semantic procedure
©
U
E
E
AD
FUZZY LOGIC – REASONING METHODS
G
N
– The meaning of a linguistic variable may be interpreted as an
PU C O
elastic constraint on its value.
E, T GH
38
– These constraints are propagated by fuzzy inference operations,
.
based on the generalized modus-ponens.
E-
C F E .B
N
R
U
E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
G
EVOLUTIONARY PROCESS
GENETIC ALGORITHM
E- AD
38 E
E
AD
DEFINITION OF GENETIC ALGORITHM
G
N
PU C O
– The genetic algorithm is a probabilistic search
E, T GH
algorithm that iteratively transforms a set (called a
38
population) of mathematical objects (typically
.
E-
C F E .B
U
E
E
AD
STEPS INVOLVED IN GENETIC ALGORITHM
G
The genetic algorithms follow the evolution process in the nature to
N
find the better solutions of some complicated problems. Foundations
PU C O
of genetic algorithms are given in Holland (1975) and Goldberg (1989)
E, T GH
books.
38
Genetic algorithms consist the following steps:
.
E-
C F E .B
¾ Initialization
N
R
¾ Selection
&
solution is reached.
D ro
U
E
E
AD
HYBRID SYSTEMS
G
Hybrid systems enables one to combine various soft computing
N
paradigms and result in a best solution. The major three hybrid
PU C O
systems are as follows:
E, T GH
38
¾ Hybrid Fuzzy Logic (FL) Systems
.
E-
C F E .B
O
T
P
©
U
E
E
AD
SOFT COMPUTING: HYBRID FL SYSTEMS
G
Approximate Reasoning Functional Approximation/ Randomized
N
Search
PU C O
E, T GH
Probabilistic Multivalued & Neural Evolutionary
38
Models Fuzzy Logics Networks Algorithms
.
E-
Fuzzy Multivalued
C F E .B
Systems N Algebras
R
&
Fuzzy Logic
D . O r.
Controllers
D
HYBRID FL SYSTEMS
BV P f.
Systems) Systems)
P
©
U
E
23
E
AD
SOFT COMPUTING: HYBRID NN SYSTEMS
G
Approximate Reasoning Functional Approximation/ Randomized Search
N
PU C O
E, T GH
Probabilistic Multivalued & Neural Evolutionary
38
Models Fuzzy Logics Networks Algorithms
.
E-
C F E .B
Feedforward Recurrent
NN NN
N
R
&
Single/Multiple
D . O r.
HYBRID NN SYSTEMS
BV P f.
(learning rate h
O
momentum a ) weights
T
P
U
E
24
E
AD
SOFT COMPUTING: HYBRID EA SYSTEMS
G
Approximate Reasoning Functional Approximation/ Randomized
N
Search
PU C O
E, T GH
Probabilistic Multivalued & Neural Evolutionary
38
Models Fuzzy Logics Networks Algorithms
.
E-
C F E .B
Evolution Genetic
Strategies
N Algorithms
R
&
Evolutionary Genetic
D . O r.
Programs Programs
D
HYBRID EA SYSTEMS
BV P f.
U
E
25
E
AD
NEURO-FUZZY AND SOFT COMPUTING CHARACTERISTICS
G
N
• Human expertise
PU C O
– SC utilizes human expertise in the form of fuzzy if-then rules, as
E, T GH
well as in conventional knowledge representations, to solve
practical problems
38
• Biologically inspired computing models
.
E-
C F E .B
classification problems
D . O r.
G
• Numerical computation
N
– Unlike symbolic AI, soft computing relies mainly on numerical
PU C O
computation. Incorporation of symbolic techniques in soft
E, T GH
computing is an active research area within this field.
38
• New application domains
.
– Because of its numerical computation, soft computing has found
E-
C F E .B
• Model-free learning
BV P f.
U
E
E
AD
NEURO-FUZZY AND SOFT COMPUTING CHARACTERISTICS
G
N
• Intensive computation
PU C O
– Without assuming too much background knowledge of the
E, T GH
problem being solved, neuro-fuzzy and soft computing rely
38
heavily on high-speed number-crunching computation to
.
find rules or regularity in data sets. This is a common
E-
C F E .B
• Fault tolerance
&
D . O r.
gradually deteriorates
©
U
E
E
AD
NEURO-FUZZY AND SOFT COMPUTING CHARACTERISTICS
G
N
• Goal driven characteristics
PU C O
– Neuro-fuzzy and soft computing are goal driven; the path leading from
E, T GH
the current state to the solution does not really matter as long as we
38
are moving toward the goal in the long run. This is particularly true
when used with derivative-free optimization schemes, such as genetic
.
E-
algorithms, simulated annealing, and the random search method.
C F E .B
• Real-world applications
D . O r.
U
E
E
AD
APPLICATIONS OF SOFT COMPUTING
G
¾ Handwriting Recognition
N
¾ Image Processing and Data Compression
PU C O
¾ Automotive Systems and Manufacturing
E, T GH
¾ Soft Computing to Architecture
38
¾ Decision-support Systems
.
¾ Soft Computing to Power Systems
E-
C F E .B
O
T
P
©
U
E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N MODULE 7
Dr. R.B.Ghongade,
N G
FUZZY LOGIC-I
E- AD
38 E
E
AD
Agenda
G
N
PU C O
• Brief review of conventional sets
E, T GH
• Introduction to fuzzy sets
38
.
• Membership functions
E-
C F E .B
N
R
O
T
P
©
U
E
E
AD
REVIEW OF CONVENTIONAL SETS
G
• Set
N
– A collection of objects having one or more common
PU C O
characteristics
E, T GH
• Members/Elements
38
– Objects belonging to a set is represented as ܣ א ݔ, where ܣis a
set
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
• Subset B
– B is said to be a subset of set A, i.e., ܣ ك ܤiff
G
ݕ ܣ א ݕ ֜ ܤ א ݕ
N
( ݕbelongs to ܤimplies ݕbelongs to ܣfor all )ݕ
PU C O
E, T GH
• Proper subset
38
– Set B is said to be proper subset of A iff
.
E-
C F E .B
O
T
P
©
U
E
E
AD
• Equal sets
G
– Two sets A and B are said to be equal iff
ܤ א ݕ ݀݊ܽ ܣ א ݔ, ݕ = ݔ
N
PU C O
E, T GH
38
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
Set operations
G
N
• Intersection operation
PU C O
– For any two sets A and B if ݔcommon to both A and B, then
E, T GH
)ܤ ת ܣ( א ݔ
38
where תdenotes the logical intersection operation
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
• Union Operation
– For any two sets A and B if ݔ, which is a member of either
G
A or B then ܤ ܣ א ݔ, where denotes the union
N
operation
PU C O
E, T GH
38
.
E-
C F E .B
N
R
&
D . O r.D
• Universal Set
BV P f.
D ro
particular domain
©
U
E
E
AD
Concept of Fuzziness
• When we talk about the real world , the way we describe or quantify the
G
real world , is not precise
N
• E.g., Our description of a person’s height- we use the terms short,
PU C O
medium, tall , which is imprecise
E, T GH
• Hence NOT to be PRECISE is FUZZY!
38
• Fuzzy Logic
.
– The computation that involves the logic of imprecision is much powerful than
E-
C F E .B
O
T
P
©
U
E
E
AD
• Fuzzy logic is all about the relative importance of precision:
How important is it to be exactly right when a rough answer
G
will do?
N
• Fuzzy logic is a convenient way to map an input space to an
PU C O
output space
E, T GH
• As complexity rises, precise statements lose meaning and
38
meaningful statements lose precision - L. A Zadeh (Father of
.
E-
C F E .B
Fuzzy Logic)
N
R
not certain. And so far as they are certain, they do not refer
D . O r.
time
©
U
E
E
HISTORICAL BACKGROUND
AD
• In viewing the evolution of fuzzy logic, three principal phases
G
may be discerned
N
• The first phase, from 1965 to 1973, was concerned in the
PU C O
main with fuzzification, that is, with generalization of the
E, T GH
38
concept of a set, with two-valued characteristic function
generalized to a membership function taking values in the
.
E-
C F E .B
were, for the most part, set-theoretic in nature, and logic and
D . O r.D
U
E
G
(a) a narrow sense, in which fuzzy logic, abbreviated as FLn, is a
logical system which is a generalization of multivalued logic;
N
PU C O
(b) a wide sense, in which fuzzy logic, abbreviated as FL, is a
union of FLn, fuzzy set theory, possibility theory, calculus of fuzzy
E, T GH
if-then rules, fuzzy arithmetic and calculus of fuzzy quantifiers
38
• An important development in the evolution of fuzzy logic, marking
.
E-
C F E .B
perceptions
D . O r.
G
N
Some of the essential characteristics of fuzzy logic relate
PU C O
to the following:
E, T GH
38
• In fuzzy logic, exact reasoning is viewed as a limiting
case of approximate reasoning
.
E-
C F E .B
of variables
D
elastic constraints
D ro
U
E
E
AD
CHARACTERISTICS OF FUZZY SYSTEMS
G
N
PU C O
There are two main characteristics of fuzzy systems
E, T GH
that give them better performance for specific
38
applications:
.
E-
C F E .B
derive.
BV P f.
D ro
U
E
E
Concept of Fuzzy Number
AD
G
N
PU C O
• Precise zero
E, T GH
38
.
E-
C F E .B
N
R
• Almost zero
&
1 to +1)
BV P f.
D ro
• Near zero
T
AD
• Grade of membership
G
– Every member ݔof a fuzzy set ܣis assigned a fuzzy index ߤ ( )ݔin the
N
interval [0 , 1], which is called as the grade of membership of ݔin ܣ
PU C O
• In a conventional /crisp set membership grade ߤ ( )ݔis either
E, T GH
0 or 1
38
• Fuzzy Sets
.
E-
– A set of ordered pairs , given by
C F E .B
N ݔ = ܣ, ߤ ݔ: ܺ א ݔ
R
• Membership Functions
D
Where ݔis a real number describing the object or its attribute , ܺ is the
T
P
set
E
AD
Comparing Classical and Fuzzy Approach
G
• Classical Approach
N
– Consider a universal set T which stands for temperature
PU C O
– Cold, Normal and Hot are subsets of the universal set T
E, T GH
ܶ א ݁ݎݑݐܽݎ݁݉݁ݐ = ݈݀ܥ: ͷԨ < ͳ < ݁ݎݑݐܽݎ݁݉݁ݐͷԨ
38
݈ܰܽ݉ݎ
.
E-
C F E .B
U
E
E
• Fuzzy Approach
AD
– In contrast the fuzzy sets have soft boundaries
G
– One approach to define fuzzy subsets for the universal set T would be
N
• Means that
– If temperature is around 10°C
PU C O
it is cold
E, T GH
– If temperature is around 20°C
it is normal
38
– If temperature is around 30°C
it is hot
.
E-
C F E .B
membership grade
D
ࣆࢀ ࡺ࢘ࢇ = ࣆࢀ ࡴ࢚ = .
BV P f.
D ro
category of “Normal”
E
G
N
• Let the elements of set ܺ be ݔଵ , ݔଶ ,…ݔ
PU C O
• Then the fuzzy set ܺ ك ܣis denoted by any of
E, T GH
38
the following nomenclatures:
.
E-
C F E .B
1. = N
R
࢞ , ࣆ ࢞ , ࢞ , ࣆ ࢞ , … , ࢞ , ࣆ ࢞
&
D . O r.
࢞ ࢞ ࢞
2. = , ,…,
D
3. =
O
, ,…,
࢞ ࢞ ࢞
T
P
©
U
E
E
AD
Typical Membership Functions
G
N
• Once we say that each member in a fuzzy set is
PU C O
associated with a membership function, we must
E, T GH
know how to characterize this membership
38
function
.
E-
C F E .B
J-function
D . O r.
1.
D
2. S-function
BV P f.
3. Triangular Function
D ro
-function
O
4.
T
P
5. Gaussian function
©
U
E
E
The J-function
AD
• Defined as :
G
0, ݑߙ
N
ݑെߙ
PU C O
ߛ ߙ ;ݑ, ߚ = ,ߙ < ݑ ߚ
ߚെߙ
E, T GH
38
1, ߚ>ݑ
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
The S-function
• Defined as :
G
0, ݑߙ
ଶ
N
ݑെߙ
2 ,ߙ < ݑ ߚ
PU C O
ߛെߙ
ܵ ߙ ;ݑ, ߚ, ߛ = ଶ
E, T GH ݑെߛ
1െ2 ,ߚ < ݑ ߛ
38
ߛെߙ
.
E-
1, ߛ>ݑ
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
The Triangular membership function
• Defined as :
G
0, ݑߙ
ݑെߙ
N
,ߙ < ݑ ߚ
ߚെߙ
PU C O
E, T GH Ȧ ߙ ;ݑ, ߚ, ߛ = ߛെݑ
,ߚ < ݑ ߛ
ߛെߚ
38
0, ߛ>ݑ
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
-function
• Defined as :
G
0, ݑߙ
ݑെߙ
N
,ߙ < ݑ ߚ
ߚെߙ
PU C O
ȫ ߙ ;ݑ, ߚ, ߛ, ߜ = 1, ߚ<ݑߛ
E, T GH
ߜെݑ
38
,ߛ < ݑ ߜ
ߜെߛ
.
E-
C F E .B
N 0,, ߜ>ݑ
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
Gaussian function
• Defined as :
G
( ݑെ ݉)ଶ
݉ ;ݑ ܩ, ߜ = ݁ ݔെ
N
2ߜ ଶ
PU C O
E, T GH
38
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
Operations on Fuzzy Sets
G
N
• The main feature of operations on fuzzy sets is
PU C O
E, T GH
that unlike conventional sets, operations on fuzzy
38
sets are usually described with reference to
.
membership function
E-
C F E .B
function
D . O r.D
3. Fuzzy complementation
©
U
E
E
AD
1.Fuzzy Intersection
G
ߤת ߤ = ݔ ߤ ר ݔ = ݔmin(ߤ ()ݔ, ߤ ())ݔ
N
PU C O
E, T GH
38
.
E-
C F E .B
N
R
&
ת
D . O r.D
BV P f.
D ro
O
T
P
U
E
G
ߤ ߤ = ݔ ߤ ڀ ݔ = ݔmax(ߤ ()ݔ, ߤ ())ݔ
N
PU C O
E, T GH
38
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
U
E
ߤҧ ݔ
D . O r.
U R
C F E .B
O & .
E, T GH ߤ ݔ
PU C O
N
ߤҧ = ݔ1 െ ߤ ݔ
N G
E- AD
3.Fuzzy Complementation
38 E
E
AD
Other Fuzzy Operations
G
N
PU C O
• De Morgan’s Law:
ܣ = ܤ ת ܣҧ ܤ ത
E, T GH
38
For fuzzy sets:
.
E-
C F E .B
ܣ = ܤ ܣҧ ܤ תത
D . O r.D
O
T
P
©
U
E
E
AD
• Difference:
G
ܤځܣ = ܤ|ܣത
N
PU C O
For fuzzy sets:
E, T GH
38
ߤ תത = min(ߤ , 1 െ ߤ )
.
E-
C F E .B
ܣځܤ = ܣ|ܤҧ
N
R
&
D . O r.
ߤ תҧ = min(ߤ , 1 െ ߤ )
BV P f.
D ro
O
T
P
©
U
E
E
AD
Properties of Fuzzy Sets
G
N
1. Commutative
PU C O
E, T GH ܣܤ= ܤܣ
ܣתܤ= ܤתܣ
38
.
2. Distributive
E-
C F E .B
3. Associativity
ܥܤ ܣ = ܥ ܤܣ
BV P f.
D ro
U
E
E
AD
Properties of Fuzzy Sets
G
N
4. Idempotency
PU C O
E, T GH ܣ= ܣܣ
ܣ= ܣתܣ
38
.
E-
5. Identity
C F E .B
ܣ = ܺ ת ܣ ݀݊ܽ ܣ = ߶ ܣ
N
R
&
ܺ = ܺ ܣ ݀݊ܽ ߶ = ߶ ת ܣ
D . O r.D
O
T
P
©
U
E
E
AD
Examples
G
• Given two discrete fuzzy sets:
0 1 0.5 0.3 0.2
N
=ܣ, , , ,
PU C O
E, T GH 1 2 3 4 5
0 0.5 0.7 0.2 0.4
38
=ܤ, , , ,
1 2 3 4 5
.
E-
C F E .B
O
T
P
©
U
E
E
AD
Conclusion
G
N
PU C O
• Fuzzy membership v/s Probability
E, T GH
– Probability can be defined for an event that can be
38
repeated again and again
.
E-
C F E .B
O
T
P
©
U
E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N MODULE 8
Dr. R.B.Ghongade,
N G
FUZZY LOGIC-II
E- AD
38 E
E
AD
Classical and Fuzzy Relations
G
N
• Relation is of fundamental importance in all-
PU C O
engineering, science, and mathematically based fields
E, T GH
38
• Associated with graph theory, a subject of wide impact
in design and data manipulation
.
E-
C F E .B
and control
D . O r.
U
E
E
AD
Cartesian Product of Relation
G
N
• An ordered sequence of n elements is called as ordered
PU C O
n-tuple
E, T GH
38
• The ordered sequence is in the form of ܽଵ , ܽଶ , . . . , ܽ
.
• For the crisp sets ܣଵ , ܣଶ , . . . , ܣ , the set of n-tuples
E-
C F E .B
ݔ × ݕ ് ݕ × ݔ ݄݊݁ݐ ݕ ് ݔ ݂ܫ
©
U
E
E
AD
Example: The elements in two sets A and B are given as = ܣ
G
{0, 1} and ݁{ = ܤ, ݂, ݃} , find the Cartesian product × ܣ
ܤ, ܣ × ܤ, ܣ × ܣ, ܤ × ܤ
N
PU C O
Solution:
E, T GH
• ({ = ܤ × ܣ0, ݁), (0, ݂), (0, ݃), (1, ݁), (1, ݂), (1, ݃)}
38
• ݁ { = ܣ × ܤ, 0 , ݁, 1 , ݂, 0 , ݂, 1 , ݃, 0 , ݃1 },
.
E-
• ܣ = ܣ × ܣଶ = {(0, 0), (0, 1), (1, 0), (1, 1)},
C F E .B
• ܤ = ܤ × ܤଶ =
N
R
&
{(݁, ݁), (݁, ݂), (݁, ݃), (݂, ݁), (݂, ݂), (݂, ݃), (݃, ݁), (݃, ݂), (݃, ݃)}.
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
Classical Relations
G
N
• A relation among classical sets
PU C O
ݔଵ , ݔଶ , … , ݔ ܽ݊݀ ݕଵ , ݕଶ , … , ݕ is a subset of the Cartesian
E, T GH
product
38
• Denoted either by ܴ or by the abbreviated form
.
1(ݔ, ܻ × ܺ א )ݕ
D ro
U
E
E
AD
• When the universe or the set are finite, a matrix
called as relation matrix can conveniently represent
G
the relation
N
• A two-dimensional matrix represents the binary
PU C O
E, T GH
relation
38
• Example 1: If X = {2, 4, 6} and Y = {p, q, r}, if they
.
E-
C F E .B
p q r
D
2 1 1 1
BV P f.
4 1 1 1
D ro
6 1 1 1
T
P
©
U
E
E
AD
• Example 2: Let R be a relation among the three sets
ܺ = ݅݀݊݅ܪ, ݄ݏ݈݅݃݊ܧ,
G
ܻ = {ݎ݈݈ܽܦ, ݎݑܧ, ܲ݀݊ݑ, ܴ}ݏ݁݁ݑ
N
ܼ = {ܽ݅݀݊ܫ, ݈ܰ݁ܽ, ܷ݊݅ݏ݁ݐܽݐܵ ݀݁ݐ, }ܽ݀ܽ݊ܽܥ
PU C O
ܴ (ݔ, ݕ, ݅݀݊݅ܪ{ = )ݖ, ܴݏ݁݁ݑ, }ܽ݅݀݊ܫ
{݅݀݊݅ܪ, ܴݏ݁݁ݑ, ܰ݁}݈ܽ
E, T GH
{݄ݏ݈݅݃݊ܧ, ݎ݈݈ܽܦ, }ܽ݀ܽ݊ܽܥ
38
{݄ݏ݈݅݃݊ܧ, ݎ݈݈ܽܦ, ܷ݊݅}ݏ݁ݐܽݐܵ ݀݁ݐ
.
The relation can be represented as follows:
E-
C F E .B
Dollar 0 0 0 0 Dollar 0 0 1 1
D . O r.
Euro 0 0 0 0 Euro 0 0 0 0
D
Pound 0 0 0 0 Pound 0 0 0 0
Rupee 1 1 0 0 Rupee 0 0 0 0
BV P f.
Hindi English
D ro
O
T
P
©
U
E
E
AD
Cardinality of Crisp Relation
G
N
• Suppose ݊ elements of the universe ܺ are
PU C O
related to ݉ elements of the universe ܻ
E, T GH
38
• If the cardinality of ܺ is ݊௫ and the cardinality
.
E-
C F E .B
݊௫×௬ = ݊௫ × ݊௬
D
݊ = ݕ × ݔ2ೣ
T
P
©
U
E
E
AD
Operations on Crisp Relation
G
• Union
ܴ߯ = ܵڂோௌ ݔ, ݕ: ߯ோௌ ݔ, ߯ ݔܽ݉ = ݕோ ݔ, ݕ, ߯ௌ ݔ, ݕ
N
PU C O
• Intersection
ܴ ߯ = ܵ תோתௌ ݔ, ݕ: ߯ோתௌ ݔ, ߯ ݊݅݉ = ݕோ ݔ, ݕ, ߯ௌ ݔ, ݕ
E, T GH
38
• Complement
ܴത = ߯ோത ݔ, = ݕ1 െ ߯ோ ݔ, ݕ
.
E-
C F E .B
• Containment
N
R
U
E
E
AD
Composition
G
N
• Let ܴ be relation that relates elements from
PU C O
universe ܺ to universe ܻ
E, T GH
38
• Let ܵ be the relation that relates elements from
universe ܻ to universe ܼ
.
E-
C F E .B
that ܵ contains
D . O r.D
are:
D ro
– Max–min composition
T
P
– Max–product composition
©
U
E
E
AD
Max–min composition
G
• The max–min composition is defined by the set-
N
theoretic and membership function-theoretic
PU C O
expressions:
E, T GH
ܶ =ܴܵל
38
்߯ ݔ, ݔܽ݉ = ݖ
ถ min(߯ ோ ݔ, ݕ, ߯ ௌ ݕ, ) ݖ
.
E-
C F E .B
N ௬א
R
Max–product composition
&
D . O r.
expressions:
D ro
ܶ =ܴܵל
T
P
U
E
௬א
E
AD
• Example: Using max–min composition find relation between ܴ and ܵ:
ݕଵ ݕଶ ݕଷ
ݔଵ 1 1 0
G
ܴ = ݔଶ 0 0 1
ݔଷ 0 1 0
N
PU C O
E, T GH ݖଵ ݖଶ
ݕଵ 0 1
38
ܵ = ݕଶ 1 0
ݕଷ 1 1
.
E-
C F E .B
Solution:
ʅT (x1, z1) = max (min (1, 0), min (1, 1), min (0, 1))= max [0, 1, 0] = 1,
N
R
&
ʅT (x1, z2) = max (min (1, 1), min (1, 0), min (0, 1))= max [1, 0, 0] = 1,
D . O r.
ʅT (x2, z1) = max (min (0, 0), min (0, 1), min (1, 1))= max [0, 0, 1] = 1,
D
ʅT (x2, z2) = max (min (0, 1), min (0, 0), min (1, 1))= max [0, 0, 1] = 1,
ʅT (x3, z1) = max (min (0, 0), min (1, 1), min (0, 1))= max [0, 1, 0] = 1,
BV P f.
ʅT (x3, z2) = max (min (0, 1), min (1, 0), min (0, 1))= max [0, 0, 0] = 0,
D ro
O
T
P
1 1
= ܵלܴ1 1
©
1 0
E
E
AD
Extension principle of Fuzzy Sets
G
• Consider the one to one
mapping from fuzzy set A to
N
fuzzy set B, given by a
PU C O
function )ݔ(݂ = ݕsuch that
E, T GH
ݕଵ = ݂ ݔଵ
38
ݕଶ = ݂ ݔଶ
.
ڭ
E-
C F E .B
ݕ = ݂ ݔ
N
R
&
• In terms of membership
D . O r.
grades:
D
=ܣ , ,…,
D ro
=ܤ , ,…,
ݕଵ ݕଶ ݕ
©
where
E
ߤ (ݕ ) = ߤ (ݔ )
E
AD
Extension principle of Fuzzy Sets
G
• Consider the many to one
N
mapping from fuzzy set A
PU C O
to fuzzy set B, given by a
E, T GH
function )ݔ(݂ = ݕ
38
.
E-
C F E .B
N
R
&
D . O r.
=ܣ , ,…,
ݔଵ ݔଶ ݔ
BV P f.
=ܤ , ,…,
O
where
©
U
E
G
N
• Consider two fuzzy sets A and
PU C O
B with the mapping Aї
E, T GH
• Given
38
0.2 0.6 0.4 0.8 0.9
=ܣ , , , ,
.
E-
C F E .B
െ1 1 െ2 2 3
N
R
Answer:
D . O r.
= ܣ ݂=ܤ , ,
1 4 9
©
U
E
E
Fuzzy Relations
AD
• ܺ and ܻ are two universal sets. The fuzzy relation ܴ(ݔ, )ݕis given as:
G
ߤ (ݔ, )ݕ
ܴ ݔ, = ݕோ (ݔ, ܻ × ܺ א )ݕ
(ݔ, )ݕ
N
PU C O
Example: Let ܺ = 1,2,3 ܽ݊݀ ܻ = 1,2 . If membership function associated
E, T GH
with each ordered pair (ݔ, )ݕis given by ߤோ ݔ, = ݕexp െ ݔെ ݕଶ then
38
derive the fuzzy relation ܴ ݔ, ݕ
.
E-
C F E .B
Solution: The fuzzy relation ܴ ݔ, ݕcan be defined in two ways, one way
using the standard nomenclature is :
N
R
&
D . O r.
మ మ మ మ మ మ
݁ ି(ଵିଵ) ݁ ି(ଵିଶ) ݁ ି(ଶିଵ) ݁ ି(ଶିଶ) ݁ ି(ଷିଵ) ݁ ି(ଷିଶ)
ܴ ݔ, = ݕ , , , , ,
D
ݔ ܴ , = ݕ , , , , ,
D ro
U
E
E
AD
• The second method of defining relation is
G
through the relation matrix
N
PU C O
E, T GH ܻ՜
1 2
38
1 1.0 0.43
.
E-
ܺ՝
C F E .B
N 2 0.43 1.0
R
3 0.16 0.43
&
D . O r.
O
T
P
©
U
E
E
AD
Fuzzy Relations: Formal Definition
G
N
• Definition: A fuzzy relation is a fuzzy set defined in the
PU C O
Cartesian product of crisp sets ܺଵ , ܺଶ ,…, ܺ , a fuzzy relation
E, T GH
ܴ(ݔଵ , ݔଶ ,…, ݔ ) thus is defined as
38
.
E-
ܴ(ݔଵ , ݔଶ ,…,
C F E .B
Where
D
ߤோ : ܺଵ × ܺଶ × ܺ × ڮ ՜ [0,1]
BV P f.
D ro
O
T
P
©
U
E
E
AD
Operations on Fuzzy relations
G
• Fuzzy relations are very important because they can describe
N
interactions between variables
PU C O
• Let ܴ and ܵ be two binary fuzzy relations on ܺ × ܻ
E, T GH
• Intersection:
38
– The intersection of R and S is defined as
.
E-
ܴ ݑ ܵ ר, = ݒmin ܴ ݑ, ݒ, ܵ ݑ, ݒ
C F E .B
ܻ
D
• Union:
BV P f.
U
E
E
AD
• Projection:
– A fuzzy relation ܴ is usually defined in the
G
Cartesian space ܺ × ܻ
N
PU C O
– Often a projection of this relation on any of the
E, T GH
sets ܺ or ܻ may become useful for further
38
information processing
.
E-
– The projection of ܴ(ݔ, )ݕon ܺ , denoted by ܴͳ, is
C F E .B
given by:
N
R
&
௬א
D
given by:
D ro
௫א
U
E
E
AD
Example of projection
G
• Consider R(x,y) from previous example:
N
PU C O
E, T GH 1 2
38
1 1.0 0.43 1.0 For X-
projection
.
E-
C F E .B
the
2 0.43 1.0 1.0
N maximum
R
value in
&
retained
D
BV P f.
X-projection
D ro
O
T
P
1.0 1.0
U
Y-projection
E
AD
Projection: Formal Definition
G
N
PU C O
• Projection of a fuzzy relation
E, T GH
ܴ(ݔଵ , ݔଶ , … , ݔ )on to ܺ × ܺ × ܺ × ڮ for
38
any ݅, ݆ and ݇ in [1, ݊]is defined as a fuzzy
.
E-
C F E .B
relation ܴ where
N
R
&
ܴ = ݉ܽݔ
ถ
D
O
T
P
©
U
E
E
AD
FUZZY IF-THEN RULES
G
N
• Linguistic Variables
PU C O
E, T GH
– Conventional techniques for system analysis are
38
intrinsically unsuited for dealing with humanistic
.
E-
systems, whose behavior is strongly influenced by
C F E .B
– Principle of incompatibility:
D . O r.
U
E
E
AD
Linguistic variables and other related
G
terminology
N
• A linguistic variable is characterized by a quintuple (࢞,
PU C O
ࢀ(࢞), ࢄ, ࡳ, ࡹ) in which
E, T GH
38
x is the name of the variable
T(x) is the term set of x—that is, the set of its
.
E-
C F E .B
T(x); and
D
U
E
E
AD
Example
• If age is interpreted as a linguistic variable, then its term set ܶ(ܽ݃݁)
G
could be
N
ܶ ܽ݃݁ = {݃݊ݑݕ, ݊݃݊ݑݕ ݐ, ݃݊ݑݕ ݕݎ݁ݒ, . . ,
PU C O
E, T GH ݈݉݅݀݀݁ ܽ݃݁݀, ݊݀݁݃ܽ ݈݁݀݀݅݉ ݐ, … ,
݈݀, ݈݊݀ ݐ, ݈݀ ݕݎ݁ݒ, ݈݉݀ ݏݏ݈݁ ݎ ݁ݎ, ݈݊݀ ݕݎ݁ݒ ݐ,…,
38
݊݃݊ݑݕ ݕݎ݁ݒ ݐ, ݊}݈݀ ݕݎ݁ݒ ݐ
.
E-
• Where each term in ܶ(ܽ݃݁) is characterized by a fuzzy set of a universe
C F E .B
of discourse ܺ = [0,100]
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
• Usually we use “age is young” to denote the assignment of
the linguistic value “young” to the linguistic variable age
G
• By contrast, when age is interpreted as a numerical variable,
N
we use the expression “age = 20” instead to assign the
PU C O
numerical value “20” to the numerical variable age
E, T GH
38
• The syntactic rule refers to the way the linguistic values in
.
the term set ܶ(ܽ݃݁) are generated
E-
C F E .B
and neither.
©
U
E
E
AD
Concentration and dilation of linguistic values
G
N
• Let A be a linguistic value characterized by a fuzzy set with
PU C O
membership function ߤ (ȉ)
E, T GH
• Then ܣ is interpreted as a modified version of the original
38
linguistic value expressed as
.
E-
C F E .B
ߤ ()ݔ
ܣ = න
N
R
ݔ
&
D . O r.
• Dilation is expressed by
BV P f.
ܣ = ܣ ܮܫܦ.ହ
D ro
O
T
P
G
and the connectives AND and OR as
N
1 െ ߤ ݔ
ܱܰܶ ܣ = ܣҧ = න
PU C O ݔ
E, T GH
38
ߤ (ߤٿ)ݔ ݔ
.
= ܤ ת ܣ = ܤ ܦܰܣ ܣන
E-
C F E .B
N ݔ
R
&
ߤ ߤ ש ݔ ݔ
D . O r.
= ܤ ܣ = ܤ ܴܱ ܣන
ݔ
D
BV P f.
U
E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
E- G
AD
38 E
One more MF: Generalized bell
E
AD
Constructing MFs for composite linguistic terms
G
N
PU C O
• Let the meanings of the linguistic terms young and old be
defined by the following membership functions:
E, T GH
1
38
ߤ௬௨ ݔ ݈݈ܾ݁ = ݔ, 20,2,0 =
ݔସ
.
E-
1+
C F E .B
20
1
N
R
ݔെ 100
D . O r.
1+
30
D
Where ݔis the age of a given person, with the interval [0,100] as
BV P f.
O
T
P
©
U
E
E
AD
• We can construct MFs for the following composite
linguistic terms:
G
• ݉ ݈݀ = ݈݀ ܮܫܦ = ݈݀ ݏݏ݈݁ ݎ ݁ݎ.ହ
N
PU C O
E, T GH 1
ݔെ 100
38
1+
30
.
E-
C F E .B
N=න
ݔ
R
&
D . O r.
1 1
1െ ר1െ
BV P f.
1+ 1+
20 30
T
P
=න
©
ݔ
U
E
E
AD
• )݃݊ݑݕ( ת ݃݊ݑݕ = ݃݊ݑݕ ݐ ݐ݊ ݐݑܾ ݃݊ݑݕଶ
ଶ
G
1 1
ר1െ
N
ସ ସ
ݔ ݔ
1+ 1+
PU C O
E, T GH 20 20
=න
ݔ
38
.
E-
C F E .B
N
R
&
(( ݈݀ଶ )ଶ )ଶ
D
଼
1
BV P f.
D ro
ݔെ 100
1+
T
P
30
©
=න
U
E
ݔ
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
G
MATLAB DEMO
E- AD
38 E
E
AD
Fuzzy If-Then Rules
G
N
• A fuzzy if-then rule (also known as fuzzy rule,
PU C O
fuzzy implication, or fuzzy conditional statement)
E, T GH
assumes the form:
38
ࢌ ࢞: ࢙ ࢚ࢎࢋ ࢟ ࢙
.
E-
C F E .B
respectively
D
conclusion
T
P
• Abbreviated as ՜
©
U
E
E
AD
Fuzzy Intersection Re-visited
• The intersection of two fuzzy sets A and B is specified in general by a
G
function
N
ܶ 0,1 × 0,1 ՜ 0,1 ,
PU C O
which aggregates two membership grades as follows:
E, T GH
ߤת ߤ ܶ = ݔ ݔ, ߤ ߤ = ݔ ߤ כ ݔ ݔ
38
where * is a binary operator for the function T
.
• This class of fuzzy intersection operators, which are usually referred to
E-
C F E .B
ܽ, ݂݅ ܾ = 1
T
0, ݂݅ ܽ, ܾ < 1
©
U
E
E
Fuzzy Union Re-visited
AD
• The fuzzy union operator is specified in general by a
G
function ܵ [ 0,1] × [0,1] ՜ [0,1]
N
ߤ ߤ ܵ = ݔ ݔ, ߤ ߤ = ݔ ݔ+ ߤ ݔ
PU C O
E, T GH
where + is a binary operator for the function S.
38
• This class of fuzzy union operators, which are often
.
E-
referred to as T-conorm (or S-norm) operators
C F E .B
ܽ, ݂݅ ܾ = 0
T
P
1, ݂݅ ܽ, ܾ > 1
E
E
AD
Formalizing ՜ approach 1
G
N
• ՜ means “A is coupled with B”
PU C O
E, T GH
• Interpreted as:
38
ߤ (ߤ כ )ݔ ()ݕ
.
E-
C F E .B
×
&
O
T
P
©
U
E
E
Formalizing ՜ approach 2
AD
G
• ՜ means “A entails B”
N
• Entails: “To have, impose, or require as a
PU C O
E, T GH
necessary accompaniment or consequence”
38
• Can be written as four different formulas:
.
E-
C F E .B
ҧ
1. Material implication: ܴ = ܣ՜ ܤڂܣ = ܤ
N
R
ҧ
&
(ܣҧ )ܤ ת
ത )ܤ
BV P f.
D ro
U
E
E
AD
• Based on these two interpretations and various T-
G
norm and T-conorm operators, a number of
N
qualified methods can be formulated to calculate the
PU C O
fuzzy relation ܴ = ܣ՜ ܤ
E, T GH
38
• ܴ can be viewed as a fuzzy set with a two-
.
E-
C F E .B
dimensional MF
ߤோ ݔ, ߤ ݂ = ݕ ݔ, ߤ (ܽ ݂ = )ݕ, ܾ
N
R
&
U
E
E
AD
Using approach 1
G
• Four different fuzzy relations ܣ՜ ܤresult from employing four
N
of the most commonly used T-norm
PU C O
ఓಲ (௫)רఓಳ (௬)
1. ܴ = = ܤ × ܣ×
E, T GH (௫,௬)
or ݂ ܽ, ܾ = ܽ ܾ ר
38
ఓಲ (௫) ఓಳ (௬)
2. ܴ = = ܤ × ܣ× or ݂ ܽ, ܾ = ܾܽ
.
(௫,௬)
E-
C F E .B
ఓಲ (௫)ۨఓಳ (௬)
3. ܴ = = ܤ × ܣ× or ݂ ܽ, ܾ = 0 ܽ( ר+
N
R
(௫,௬)
&
ܾ െ 1)
D . O r.D
ఓಲ (௫)ȉఓ
Ƹ ಳ (௬)
4. ܴௗ = = ܤ × ܣ× (௫,௬)
or
BV P f.
ܽ, ݂݅ ܾ = 1
D ro
݂ௗ ܽ, ܾ = ܽ ȉƸ ܾ = ቐ ܾ, ݂݅ ܽ = 1
T
P
0, ݂݅ ܽ, ܾ < 1
©
U
E
E
AD
Using approach 2
G
• Four of the most commonly used fuzzy implication functions:
N
ଵ (רଵିఓಲ (௫)ାఓಳ (௬))
1. ܴ = ܣҧ = ܤ × or ݂ ܽ, ܾ = 1 ( ר1 െ
PU C O
(௫,௬)
ܽ + ܾ)
E, T GH
(ଵିఓಲ (௫))(שఓಲ (௫) רఓಳ (௬)
38
2. ܴ = ܣҧ = )ܤ ת ܣ( × (௫,௬)
or
.
݂ ܽ, ܾ = (1 െ ܽ) )ܾ ר ܽ( ש
E-
C F E .B
(௫,௬)
ܾ
D . O r.D
ఓಲ (௫)ழෝ ఓಳ (௬)
4. ܴᇞ = × (௫,௬)
where
BV P f.
1, ݂݅ ܽ ܾ
D ro
ෝ ܾ = ቐܾ
ܽ<
T
P
, , ݂݅ ܽ > ܾ
ܽ
©
U
E
E
AD
Fuzzy Reasoning
G
• The basic rule of inference in traditional two-
N
valued logic is modus ponens, according to
PU C O
which we can infer the truth of a proposition B
E, T GH
38
from the truth of A and the implication ܣ՜
.
ܤ.
E-
C F E .B
N
R
O
T
P
©
U
E
E
AD
premise 1 (fact): ܣ ݏ݅ ݔ
premise 2 (rule): ݂݅ ܤ ݏ݅ ݕ ݄݊݁ݐ ܣ ݏ݅ ݔ
G
consequence (conclusion):ܤ ݏ݅ ݕ
N
PU C O
• Much of human reasoning, modus ponens is employed in an approximate
E, T GH
manner
38
• For example, if we have the same implication rule "if the tomato is red, then it
.
is ripe" and we know that "the tomato is more or less red," then we may infer
E-
C F E .B
consequence (conclusion):’ܤ ݏ݅ ݕ
BV P f.
D ro
• When A, B, A', and B' are fuzzy sets of appropriate universes, this inference procedure is
©
ponens(GMP)
E
AD
Approximate reasoning (fuzzy reasoning)
G
• Let A, A', and B be fuzzy sets of X, X, and Y,
N
respectively
PU C O
• Assume that the fuzzy implication ܣ՜ ܤis
E, T GH
38
expressed as a fuzzy relation R on ܺ × ܻ
.
E-
C F E .B
by
D . O r.D
Or
T
P
ܤᇱ = ܣԢ ܴ ל
©
U
E
E
AD
Computational aspects of the fuzzy reasoning
G
N
PU C O
• Single Rule with Single Antecedent
E, T GH
Given as
38
ߤᇲ (ש[ = )ݕ௫ (ߤᇲ ߤ ר ݔ ߤ ר ]) ݔ ݕ
.
E-
C F E .B
N = ߤ ר ݓ ݕ
R
U
E
E
AD
Graphic interpretation of GMP using
Mamdani's fuzzy implication
G
N
and the max-min composition
PU C O
E, T GH
38
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
• Single Rule with Multiple Antecedents
• A fuzzy if-then rule with two antecedents is
G
usually written as “if x is A and y is B then z is C”
N
PU C O
• The corresponding problem for GMP is expressed
E, T GH
as
38
premise 1 (fact): ܣ ݏ݅ ݔԢ and y is B’
.
E-
C F E .B
consequence (conclusion): z ࢙ ’
&
D . O r.
• We then have
D
௪ଵ ௪ଶ
D ro
= ߤ ר ʹݓ ר ͳݓ ()ݖ
T
P
ிூோூேீ
ௌ்ோாேீ்ு
©
ܤԢ, respectively
E
AD
G
N
PU C O
E, T GH
38
.
E-
C F E .B
U
E
E
AD
• Multiple Rules with Multiple Antecedents
• The interpretation of multiple rules is usually taken as the union
G
of the fuzzy relations corresponding to the fuzzy rules
N
• Therefore, for a GMP problem written as
PU C O
E, T GH
premise 1 (fact): ܣ ݏ݅ ݔԢ and y is B’
38
premise 2 (rule 1): ݂݅ ܣ ݏ݅ ݔ1 ܽ݊݀ ͳܤ ݏ݅ ݕ, ͳܥ ݏ݅ ݖ ݄݊݁ݐ
.
E-
C F E .B
• We simply have
BV P f.
U
E
©
P
D ro
E
antecedents
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
E- G
AD
38 E
Fuzzy reasoning for multiple rules with multiple
E
AD
The process of fuzzy reasoning or approximate
reasoning
G
• Degrees of compatibility
N
PU C O
– Compare the known facts with the antecedents of fuzzy rules to find
the degrees of compatibility with respect to each antecedent MF.
E, T GH
38
• Firing strength
– Combine degrees of compatibility with respect to antecedent MFs in a
.
E-
C F E .B
satisfied.
D . O r.
• Overall output MF
©
U
E
G
N
PU C O
• Features of Membership Function
E, T GH
– The feature of the membership function is defined
38
by three properties
.
E-
C F E .B
– They are:N
R
&
1. Core
D . O r.
2. Support
D
3. Boundary
BV P f.
D ro
O
T
P
©
U
E
E
AD
Core
G
N
PU C O
• If the region of universe is characterized by full
E, T GH
membership (1) in the set A then this gives
38
the core of the membership function of fuzzy
.
E-
C F E .B
at A N
R
&
O
T
P
©
U
E
E
AD
Support
G
N
PU C O
• If the region of universe is characterized by
E, T GH
nonzero membership in the set A, this defines
38
the support of a membership function for
.
E-
C F E .B
fuzzy set A.
N
R
&
O
T
P
©
U
E
E
AD
Boundary
G
N
PU C O
• If the region of universe has a nonzero
E, T GH
membership but not full membership, this
38
defines the boundary of a membership; this
.
E-
C F E .B
U
E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
E- G
AD
38 E
Features of membership function
E
AD
Important terms
G
N
PU C O
• Crossover Point: The crossover point of a
E, T GH
membership function is the elements in universe
38
whose membership value is equal to 0.5
.
E-
C F E .B
N μA(x) = 0.5
R
O
T
P
©
U
E
E
AD
Classification of Fuzzy Sets
G
• The fuzzy sets can be classified based on the membership
N
functions
PU C O
– Normal fuzzy set: If the membership function has at least one
element in the universe whose value is equal to 1, then that set
E, T GH
is called as normal fuzzy set
38
– Subnormal fuzzy set: If the membership function has the
.
E-
C F E .B
O
T
P
©
U
E
G
decreasing, or they are monotonically increasing and
N
decreasing with the increasing values for elements in the
PU C O
universe ,the set is called convex fuzzy set
E, T GH
• Nonconvex fuzzy set: If the membership function has
38
membership values which are not strictly monotonically
.
E-
C F E .B
O
T
P
©
U
E
E
AD
• When intersection is performed on two
G
convex fuzzy sets, the intersected portion is
N
also a convex fuzzy set
PU C O
E, T GH
38
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
Fuzzification
G
N
• Fuzzification is the process where the crisp quantities are
PU C O
converted to fuzzy (crisp to fuzzy)
E, T GH
• By identifying some of the uncertainties present in the crisp
38
values, we form the fuzzy values
.
E-
C F E .B
U
E
E
AD
Membership Value Assignments
G
N
• Various methods to assign the membership
PU C O
E, T GH
values or the membership functions to fuzzy
38
variables are:
.
E-
C F E .B
– Intuition,
– Inference,
N
R
&
– Rank ordering,
D . O r.D
– Inductive reasoning
©
U
E
E
AD
Intuition
G
• Intuition is based on the human's own intelligence and
N
understanding to develop the membership functions
PU C O
• The thorough knowledge of the problem has to be known, the
E, T GH
knowledge regarding the linguistic variable should also be
38
known
.
E-
C F E .B
O
T
P
©
U
E
E
Inference
AD
• This method involves the knowledge to perform deductive
G
reasoning
N
• The membership function is formed from the facts known and
PU C O
knowledge
E, T GH
• Let us use inference method for the identification of the
38
triangle
.
E-
C F E .B
G
the geometry of the triangles
N
• The membership for the approximate isosceles triangle, for the
PU C O
given conditions
E, T GH
A шшш0 and A + B + C = 180°,
38
is given as:
1
.
E-
C F E .B
90°
D . O r.
membership functions
D ro
ߤை ܣ, ܤ, ܴ ܫ = ܥ
T
P
i,.e.,
©
ߤை ܣ, ܤ, ܫ = ܥҧ ܴ תത = ݉݅݊ 1 െ ߤூ (ܣ, ܤ, )ܥ, 1 െ ߤோ (ܣ, ܤ, )ܥ
U
E
E
AD
Example C
G
• Define the triangle for the figure shown in figure
N
with the three given angles
PU C O
• Solution: The condition is
E, T GH
ܣܤܥ0
38
and
.
ܣ+ ܤ+ = ܥ180° A
E-
C F E .B
B
Here N
R
ଵ
1. ߤூ = ݔ1 െ ݉݅݊( ܣെ ܤ, ܤെ )ܥ
D
°
ଵ
=1െ ݉݅݊ 25°, 25° = 0.583
°
BV P f.
ଵ
2. ߤோ ݔ = 1 െ ( ܣെ 90°)
D ro
ଽ°
O
ଵ
=1െ 5° = 0.944
ଽ°
T
P
G
• The polling concept is used to assign membership values by rank
N
ordering process
PU C O
• Preferences are above the pairwise comparisons and from this the
E, T GH
ordering of the membership is done
38
• Example: Suppose 1,000 people responds to a questionnaire about
.
E-
C F E .B
Preferences
Micra Dezire i20 Brio City Total Percentage Rank
BV P f.
order
D ro
G
• From the table, it is clear that 515 preferred Micra compared to Dezire,
N
545 Astra to Dezire, etc
• The table forms an antisymmetric matrix
PU C O
• There are about ten comparisons made which gives a ground total of
E, T GH
10,000.
38
• Based on preferences, the percentage is calculated
The ordering is then performed
.
•
E-
C F E .B
1
0.9
D
0.8
0.7
BV P f.
0.6
0.5
P
D ro
0.4
0.3
T
P
0.2
0.1
©
0
U
E
G
• The angular fuzzy sets are different from the standard fuzzy
sets in their coordinate description
N
• These sets are defined on the universe of angles, hence are
PU C O
repeating shapes every 2ߨ cycles
E, T GH
• Angular fuzzy sets are applied in quantitative description of
38
linguistic variables known truth-values
.
E-
C F E .B
can be used
U
E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
G
Neural Networks
E- AD
38 E
E
AD
Defuzzification
G
• Defuzzification means the fuzzy to crisp conversions
N
• The fuzzy results generated cannot be used as such to
PU C O
the applications, hence it is necessary to convert the
E, T GH
fuzzy quantities into crisp quantities for further
38
processing
.
E-
C F E .B
method
©
G
• Consider a fuzzy set A, then the lambda cut set can
be denoted by ܣఒ , where ʄranges between 0 and 1
N
PU C O
(0 чʄч1)
E, T GH
• The set ܣఒ is a crisp set
38
• This crisp set is called the lambda cut set of the fuzzy
.
E-
C F E .B
set A, where
ݔ
N
R
&
ܣఒ = ߣ
ߤ ()ݔ
D . O r.D
set
E
E
AD
Properties of Lambda Cut Sets
G
N
• There are four properties of the lambda cut sets,
PU C O
they are:
E, T GH
38
1. ܤ ܣO = ܣO ܤ O
2. ܤ ת ܣO = ܣO ܤ תO
.
E-
C F E .B
4. &ŽƌĂŶLJʄчɲ͕ǁŚĞƌĞɲǀĂƌŝĞƐďĞƚǁĞĞŶϬĂŶĚϭ͕ŝƚŝƐ
D . O r.
U
E
E
AD
Lambda Cuts for Fuzzy Relations
G
• The lambda cut procedure for relations is similar
N
to that for the lambda cut sets
PU C O
• Consider a fuzzy relation R , in which some of the
E, T GH
38
relational matrix represents a fuzzy set
.
E-
C F E .B
ݔ, ݕ
BV P f.
ܴఒ = ߣ
D ro
ߤோ (ݔ, )ݕ
O
T
P
©
U
E
E
AD
Properties of Lambda Cut Relations
G
N
PU C O
• Properties of the lambda cut relations, are:
E, T GH
1. ܴ ܵ O = ܴ O ܵ O
38
2. ܴ ܵ תO = ܴ O ܵ תO
.
E-
C F E .B
3. ܴത O ് ܴതO
N
R
&
4. For ĂŶLJʄчɲ͕ǁŚĞƌĞɲǀĂƌŝĞƐďĞƚǁĞĞŶϬĂŶĚϭ͕
D . O r.D
then, ܴD ܴ كO
BV P f.
D ro
O
T
P
©
U
E
E
AD
Defuzzification Methods
G
• There are other various defuzzification methods employed to
N
convert the fuzzy quantities into crisp quantities
PU C O
• The output of an entire fuzzy process can be union of two or more
E, T GH
fuzzy membership functions
38
.
• Generally this can be
E-
C F E .B
given as: N
R
&
D
BV P f.
D ro
O
T
P
©
U
E
E
AD
• There are seven methods used for
G
defuzzifying the fuzzy output functions:
N
(1) Max-membership principle,
PU C O
E, T GH
(2) Centroid method,
38
(3) Weighted average method,
.
E-
C F E .B
U
E
E
AD
Max-membership-principle
G
• This method is given by the expression
ߤ כ ݖ ߤ ݖ, ݖ
N
PU C O
• This method is also referred as height method
E, T GH
38
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
Centroid method
G
• This is the most widely used method
N
• This can be called as center of gravity or center of area
PU C O
methodE, T GH
• It can be defined by the algebraic expression
38
כ
ߤ ݖȉ ݖ݀ ݖ
= ݖ
.
E-
ߤ ݖ݀ ݖ
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
Weighted average method
G
• This method cannot be used for asymmetrical output membership
N
functions, can be used only for symmetrical output membership
functions
PU C O
• Weighting each membership function in the obtained output by its
E, T GH
largest membership value forms this method
38
• The evaluation expression for this method is
σ ߤ (ݖ ) ȉ ݖ
.
E-
C F E .B
= כݖ
N σ ߤ (ݖ )
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
G
N
PU C O
E, T GH
FUZZY LOGIC-III
38
Fuzzy Inference System
.
E-
C F E .B
N MODULE 9
R
&
D . O r.
Dr. R.B.Ghongade,
D
BV P f.
D ro
O
T
P
©
U
E
E
AD
Fuzzy Inference System
G
N
• Fuzzy inference system is a popular computing framework based on the
PU C O
concepts of fuzzy set theory, fuzzy if-then rules, and fuzzy reasoning
E, T GH
• Its applications include :
38
– automatic control
– data classification
.
E-
C F E .B
– decision analysis
– expert systems
N
R
– Robotics
D . O r.
– pattern recognition
D
• Also called as
– fuzzy-rule-based system
BV P f.
– fuzzy model
T
P
– fuzzy system
E
E
AD
Rule based Systems
G
• Worldly knowledge is very conveniently expressed in natural
N
language
PU C O
• The rule-base is one of the ways to represent knowledge
E, T GH
using natural language
38
• A generic form of rule base is :
.
ࡵࡲ ࢘ࢋ࢙ࢋ ࢇ࢚ࢋࢉࢋࢊࢋ࢚ , ࢀࡴࡱࡺ ࢉࢉ࢛࢙[ࢉ࢙ࢋ࢛ࢋࢉࢋ]
E-
C F E .B
U
E
E
AD
• Fuzzy information can be represented in the form of a RULE-
BASE which consists of a set of rules in conventional
G
antecedent-consequent form such as:
N
ܴ ݈݁ݑ1: ܣ ݏ݅ ݔ ܨܫ, ܶܤ ݏ݅ ݕ ܰܧܪ
PU C O
Where A and B represent fuzzy propositions (sets)
E, T GH
• Now suppose we introduce a new antecedent A’ and consider
38
the rule:
.
E-
ܴ ݈݁ݑ2: ܣ ݏ݅ ݔ ܨܫԢ , ܶܤ ݏ݅ ݕ ܰܧܪԢ
C F E .B
ܤᇱ = ܣԢ ܴ ל
D ro
O
T
U
E
E
Fuzzy Implication Relations
AD
• A fuzzy implication relation for a given rule:
G
ܴ ݈݁ݑ1: ܣ ݏ݅ ݔ ܨܫ, ܶܤ ݏ݅ ݕ ܰܧܪ
N
PU C O
is formally denoted by:
E, T GH
ߤோ (ݔ, )ݕ
38
ܴ ݔ, = ݕ
.
E-
(ݔ, )ݕ
C F E .B
N
R
ܣ ݏ݅ ݔ ܨܫ, ܶ ܤ ݏ݅ ݕ ܰܧܪ,
O
T
P
©
U
E
E
AD
Dienes-Rescher Implication
G
N
• If ݍ ݄݊݁ݐ states that is true but ݍis false is
PU C O
E, T GH
IMPOSSIBLE, i.e., ר െ ݍis false
38
• Using DeMorgan’s law
.
E-
C F E .B
N ר െ = ݍെݍ ש
R
&
as:
ࣆࡾ ࢞, ࢟ = [ܠ܉ܕ െ ࣆ ࢞ , ࣆ ࢟ ]
BV P f.
D ro
O
T
P
©
U
E
E
AD
Mamdani Implications
• When fuzzy IF-THEN rules are locally true then using
G
Mamdani implication ՜ ݍimplies ݍ ר is TRUE
N
• Thus the relational matrix can be computed using any of the
PU C O
following expressions:
E, T GH
ࣆࡾ ࢞, ࢟ = ࢞ ࣆ[ܖܑܕ, ࣆ ࢟ ]
38
.
or
E-
C F E .B
FAST
T
P
• This rule does NOT imply , if temperature is COLD then the fan
©
U
E
G
N
• If ՜ ݍmay imply either and ݍare TRUE or is
PU C O
FALSE
E, T GH
38
• Thus ՜ ש ݍ ר = ݍെ
.
E-
C F E .B
O
T
P
©
U
E
E
AD
• Given a set of rules we use various schemes by
which we can construct a relational matrix
G
N
between the antecedent and consequent
PU C O
• The next step would be to utilize this
E, T GH
38
relational matrix for inference
.
E-
C F E .B
relational matrix
BV P f.
D ro
U
E
G
Following are the different rules for fuzzy composition operation
N
ܴלܣ= ܤ
PU C O
• max-min
E, T GH
ߤ ݔܽ݉ = ݕ௫א ݉݅݊[ߤ ݔ, ߤோ ݔ, ] ݕ
38
• max-product
.
ߤ ݔܽ݉ = ݕ௫א ߤ ݔȉ ߤோ ݔ, ݕ
E-
C F E .B
• min-max
N
R
&
• max-max
D
• min-min
D ro
U
E
AD
• Given a rule: ܣ ݏ݅ ݔ ܨܫ, ܶܤ ݏ݅ ݕ ܰܧܪ, where = ܣ
G
.ଶ .ହ . . .଼ .ସ
, , ܽ݊݀ = ܤ , ,
N
ଵ ଶ ଷ ହ ଽ
Infer B’ for another rule: ܣ ݏ݅ ݔ ܨܫԢ, ܶܤ ݏ݅ ݕ ܰܧܪԢ, where ܣᇱ =
PU C O
.ହ .ହ .ଷ
, ,
E, T GH
ଵ ଶ ଷ
38
• Solution: using Mamdani implication rule the relational matrix
.
R can be found as:
E-
C F E .B
G
2 0.5 0.5 0.4
N
3 0.6 0.7 0.4
PU C O
E, T GH
• Using max-min composition relation
38
ܤᇱ = ܣԢ ܴ לcan be computed as:
0.2 0.2 0.2
.
ᇱ
E-
[ = ܣ0.5 0.5 0.3] ܽ݊݀ ܴ = 0.5 0.5 0.4
C F E .B
0.5 0.5 0.5 Ԣ = 0.5 0.5 0.5 0.4 0.5 0.4
BV P f.
U
E
G
2 0.5 0.5 0.4
N
3 0.6 0.7 0.4
PU C O
E, T GH
• Using max-product composition relation
38
ܤᇱ = ܣԢ ܴ לcan be computed as:
0.2 0.2 0.2
.
ᇱ
E-
[ = ܣ0.5 0.5 0.3] ܽ݊݀ ܴ = 0.5 0.5 0.4
C F E .B
0.5 0.5 0.25 Ԣ = 0.5 0.5 0.25 0.4 0.5 0.2
BV P f.
U
E
G
2 0.5 0.5 0.4
N
3 0.6 0.7 0.4
PU C O
E, T GH
• Using min-max composition relation
38
ܤᇱ = ܣԢ ܴ לcan be computed as:
0.2 0.2 0.2
.
ᇱ
E-
[ = ܣ0.5 0.5 0.3] ܽ݊݀ ܴ = 0.5 0.5 0.4
C F E .B
0.5 0.5 0.5 Ԣ = 0.5 0.5 0.5 0.4 0.5 0.5
BV P f.
U
E
G
2 0.5 0.5 0.4
N
3 0.6 0.7 0.4
PU C O
E, T GH
• Using max-max composition relation
38
ܤᇱ = ܣԢ ܴ לcan be computed as:
0.2 0.2 0.2
.
ᇱ
E-
[ = ܣ0.5 0.5 0.3] ܽ݊݀ ܴ = 0.5 0.5 0.4
C F E .B
0.5 0.5 0.5 Ԣ = 0.5 0.5 0.5 0.4 0.5 0.5
BV P f.
U
E
G
2 0.5 0.5 0.4
N
3 0.6 0.7 0.4
PU C O
E, T GH
• Using min-min composition relation
38
ܤᇱ = ܣԢ ܴ לcan be computed as:
0.2 0.2 0.2
.
ᇱ
E-
[ = ܣ0.5 0.5 0.3] ܽ݊݀ ܴ = 0.5 0.5 0.4
C F E .B
0.5 0.5 0.5 Ԣ = 0.5 0.5 0.5 0.4 0.5 0.4
BV P f.
U
E
AD
• It means that given any logical system , it is very difficult
G
(maybe unknown) to make exact reasoning
N
• Hence we are liberal from engineering perspective i.e., we do
PU C O
not want to be so precise as long as our system works
E, T GH
38
• We have a set of rules , so we use specific rule of inference
.
and then we infer the consequent
E-
C F E .B
• The fuzzy set associated with each rule base may be discrete
D
or continuous
BV P f.
enumerated
©
U
E
G
• RULE 2: If temperature is MODERATELY HOT, then fan should
N
run MODERATELY FAST
PU C O
The temperature is expressed in °F and speed in 1000 rpm
E, T GH
38
Given:
0.4 0.6 0.8 0.9
.
E-
C F E .B
= ܱܶܪ = ܪ , , ,
N 70 80 90 100
R
F = FAST = , , ,
D . O r.
1 2 3 4
D
BV P f.
ᇱ
0.2 0.4 0.6 0.8
D ro
= ܱܶܪ ܻܮܧܶܣܴܧܦܱܯ = ܪ , , ,
O
70 80 90 100
T
P
U
E
E
AD
• Solution: Using Mamdani Implication Rule
G
1 2 3 4
N
70 0.3 0.4 0.4 0.4
Rule1, R =
PU C O
E, T GH 80 0.3 0.5 0.6 0.6
38
90 0.3 0.5 0.7 0.8
.
100 0.3 0.5 0.7 0.9
E-
C F E .B
N
R
ܪᇱ = [0.2 0.4 0.6 0.8] ܽ݊݀ ܴ = 0.3 0.5 0.6 0.6
BV P f.
U
E
E
AD
RC1 H’ T min RC2 H’ T min
0.3 0.2 0.2 0.4 0.2 0.2
ࡲԢ, = ࡲԢ, =
G
0.3 0.4 0.3 0.5 0.4 0.4
N
0.3 0.6 0.3 0.5 0.6 0.5
PU C O
0.3
E, T GH 0.8 0.3 0.5 0.8 0.5
max 0.3 max 0.5
38
.
E-
C F E .B
ܨᇱ= , , ,
E
1 2 3 4
E
Example: Multiple Rules with Discrete Fuzzy Set
AD
• RULE 1: If height is TALL , then speed is HIGH
G
• RULE 2: If height is MEDIUM , then speed is MODERATE
N
The fuzzy sets for height (in feet) and speed (in m/s) are:
0.5 0.8 1 0.4 0.7 0.9
PU C O
ܪଵ = ܶ= ܮܮܣ , , , ܵଵ = = ܪܩܫܪ , ,
5 6 7 5 7 9
E, T GH
0.6 0.7 0.6 0.6 0.8 0.7
38
ܪଶ = = ܯܷܫܦܧܯ , , , ܵଶ = = ܧܶܣܴܧܦܱܯ , ,
5 6 7 5 7 9
.
E-
.ହ .ଽ .଼
C F E .B
• Solution: Relational matrices for RULE 1 and RULE 2 are computed using Mamdani
D . O r.
5 7 9 5 7 9
BV P f.
G
N
0.6 0.6 0.6
max ܴଵ , ܴଶ = 0.6 0.7 0.8
PU C O
E, T GH 0.6 0.7 0.9
0.6 0.6 0.6
38
ᇱ
[ = ܪ0.5 0.9 0.8] ܽ݊݀ ܴ = 0.6 0.7 0.8
.
E-
0.6 0.7 0.9
C F E .B
N
R
&
0.6 0.9 0.6 ࡿԢ = 0.7 0.9 0.7 0.8 0.9 0.8
BV P f.
ܵᇱ= , ,
5 7 9
E
AD
Multiple rules with Continuous Fuzzy Sets
G
N
• A continuous fuzzy system with two non-interactive inputs
PU C O
ݔଵ ܽ݊݀ݔଶ (antecedents) and as ingle output ( ݕconsequent) is
E, T GH
described by a collection of ݎlinguistic IF-THEN rules
38
ݔܨܫଵ ݅ܣ ݏଵ ܽ݊݀ ݔଶ is ܣଶ , ݕ ݄݊݁ݐ ݅ܤ ݏ
.
E-
C F E .B
where ܣଵ and ܣଶ are the fuzzy sets representing ݇ ௧
D . O r.
antecedent pairs and ܤ are the fuzzy sets representing the ݇ ௧
D
consequent
BV P f.
D ro
inference method
U
E
E
AD
P P$ P P Bk
P$
Rule 1
G
min
N
Crisp Input, x2
Crisp Input, x1 y
PU C O
P $ P $
Rule 2
E, T GH Bk
38
min
.
Crisp Input, x2 y
E-
Crisp Input, x1
C F E .B
P$ P$
Rule 3
N
R
Bk
&
D . O r.D
y
y*
©
U
E
E
AD
Structure of FIS
G
N
• The basic structure of a fuzzy inference system
PU C O
E, T GH
consists of three conceptual components:
38
– a rule base, which contains a selection of fuzzy
.
E-
C F E .B
rules; N
R
U
E
E
AD
Block Diagram of a typical FIS
G
N
PU C O
E, T GH
38
.
E-
C F E .B
N
R
&
D . O r.D
• With crisp inputs and outputs, a fuzzy inference system implements a nonlinear
BV P f.
• The antecedent of a rule defines a fuzzy region in the input space, while the
©
G
the first attempt to control a steam engine and boiler
N
combination by a set of linguistic control rules
PU C O
obtained from experienced human operators
E, T GH
• It is a two-rule Mamdani fuzzy inference system which
38
derives the overall output ݖwhen subjected to two
.
crisp inputs ݔand ݕ
E-
C F E .B
crisp value
©
U
E
E
AD
The Mamdani fuzzy inference system using min and max for T-norm
and T-conorm operators, respectively
G
N
PU C O
E, T GH
38
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
The Mamdani fuzzy inference system using product and max for Tnorm
and T-conorm operators, respectively
G
N
PU C O
E, T GH
38
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
Example: Single-input single-output Mamdani fuzzy model
݈݈ܽ݉ݏ ݏ݅ ܻ ݄݊݁ݐ ݈݈ܽ݉ݏ ݏ݅ ܺ ݂ܫ
G
ቐ݉ݑ݅݀݁݉ ݏ݅ ܻ ݄݊݁ݐ ݉ݑ݅݀݁݉ ݏ݅ ܺ ݂ܫ
N
݁݃ݎ݈ܽ ݏ݅ ܻ ݄݊݁ݐ ݁݃ݎ݈ܽ ݏ݅ ܺ ݂ܫ
PU C O
E, T GH
38
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
Example : Two-input single-output Mamdani fuzzy model
G
݁݃ݎ݈ܽ ݁ݒ݅ݐܽ݃݁݊ ݏ݅ ܼ ݄݊݁ݐ ݈݈ܽ݉ݏ ݏ݅ ܻ݀݊ܽ ݈݈ܽ݉ݏ ݏ݅ ܺ ݂ܫ
݈݈ܽ݉ݏ ݁ݒ݅ݐܽ݃݁݊ ݏ݅ ܼ ݄݊݁ݐ ݁݃ݎ݈ܽ ݏ݅ ܻ݀݊ܽ ݈݈ܽ݉ݏ ݏ݅ ܺ ݂ܫ
N
݈݈ܽ݉ݏ ݁ݒ݅ݐ݅ݏ ݏ݅ ܼ ݄݊݁ݐ ݈݈ܽ݉ݏ ݏ݅ ܻ݀݊ܽ ݁݃ݎ݈ܽ ݏ݅ ܺ ݂ܫ
PU C O
݁݃ݎ݈ܽ ݁ݒ݅ݐ݅ݏ ݏ݅ ܼ ݄݊݁ݐ ݁݃ݎ݈ܽ ݏ݅ ܻ݀݊ܽ ݁݃ݎ݈ܽ ݏ݅ ܺ ݂ܫ
E, T GH
38
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
G
Input-Output mapping
E- AD
38 E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
G
MATLAB DEMO
E- AD
38 E
E
AD
Ex 1: Fan Speed Control , single input as Temperature
G
ܹܱܮܵ ݏ݅ ݀݁݁ܵ݊ܽܨ ݄݊݁ݐ ܦܮܱܥ ݏ݅ ݁ݎݑݐܽݎ݁݉݁ܶ ݂ܫ
N
ቐܧܶܣܴܧܦܱܯ ݏ݅ ݀݁݁ܵ݊ܽܨ ݄݊݁ݐ ܮܣܯܴܱܰ ݏ݅ ݁ݎݑݐܽݎ݁݉݁ܶ ݂ܫ
PU C O
ܶܵܣܨ ݏ݅ ݀݁݁ܵ݊ܽܨ ݄݊݁ݐ ܱܶܪ ݏ݅ ݁ݎݑݐܽݎ݁݉݁ܶ ݂ܫ
E, T GH
38
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
Ex 2: Fan Speed Control , two inputs as Temperature & Humidity
If (temperature is cold) and (humidity is low) then (fanspeed is slow)
G
If (temperature is cold) and (humidity is medium) then (fanspeed is moderate)
N
If (temperature is cold) and (humidity is high) then (fanspeed is fast)
If (temperature is normal) and (humidity is low) then (fanspeed is slow)
PU C O
If (temperature is normal) and (humidity is medium) then (fanspeed is moderate)
E, T GH
If (temperature is normal) and (humidity is high) then (fanspeed is fast)
38
If (temperature is hot) and (humidity is low) then (fanspeed is fast)
If (temperature is hot) and (humidity is medium) then (fanspeed is fast)
.
E-
If (temperature is hot) and (humidity is high) then (fanspeed is fast)
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
SUGENO FUZZY MODELS
G
N
• The Sugeno fuzzy model (also known as the TSK fuzzy model) was
PU C O
proposed by Takagi, Sugeno, and Kang in an effort to develop a
E, T GH
systematic approach to generating fuzzy rules from a given input-
38
output data set
.
E-
• A typical fuzzy rule in a Sugeno fuzzy model has the form
C F E .B
N
R
U
E
E
AD
Example : Fuzzy and nonfuzzy rule set-a comparison
• An example of a single-input Sugeno fuzzy model can be expressed as:
G
= ܻ ݄݊݁ݐ ݈݈ܽ݉ݏ ݏ݅ ܺ ݂ܫ0.ͳܺ + 6.4
ቐ = ܻ ݄݊݁ݐ ݉ݑ݅݀݁݉ ݏ݅ ܺ ݂ܫെ0.ͷܺ + 4
N
ܺ = ܻ ݄݊݁ݐ ݁݃ݎ݈ܽ ݏ݅ ܺ ݂ܫെ 2
PU C O
E, T GH
38
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
Example: Two-input single-output Sugeno fuzzy model
G
• An example of a two-input single-output Sugeno fuzzy model
with four rules can be expressed as:
N
= ݖ ݄݊݁ݐ ݈݈ܽ݉ݏ ݏ݅ ܻ݀݊ܽ ݈݈ܽ݉ݏ ݏ݅ ܺ ݂ܫെ ݔ+ ݕ+ 1
PU C O
= ݖ ݄݊݁ݐ ݁݃ݎ݈ܽ ݏ݅ ܻ݀݊ܽ ݈݈ܽ݉ݏ ݏ݅ ܺ ݂ܫെ ݕ+ 3
E, T GH
38
= ݖ ݄݊݁ݐ ݈݈ܽ݉ݏ ݏ݅ ܻ݀݊ܽ ݁݃ݎ݈ܽ ݏ݅ ܺ ݂ܫെ ݔ+ 3
ݔ = ݖ ݄݊݁ݐ ݁݃ݎ݈ܽ ݏ݅ ܻ݀݊ܽ ݁݃ݎ݈ܽ ݏ݅ ܺ ݂ܫ+ ݕ+ 2
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
TSUKAMOTO FUZZY MODELS
AD
• In the Tsukamoto fuzzy models , the consequent of each fuzzy if-then rule is represented by a
G
fuzzy set with a monotonical MF
• The inferred output of each rule is defined as a crisp value induced by the rule's firing
N
strength
PU C O
• The overall output is taken as the weighted average of each rule's output
• Since each rule infers a crisp output, the Tsukamoto fuzzy model aggregates each rule's
E, T GH
output by the method of weighted average and thus avoids the time-consuming process of
38
defuzzification
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
Example : Single-input Tsukamoto fuzzy model
AD
• An example of a single-input Tsukamoto fuzzy model can be expressed as:
G
ͳܥ ݏ݅ ܻ ݄݊݁ݐ ݈݈ܽ݉ݏ ݏ݅ ܺ ݂ܫ
ቐʹܥ ݏ݅ ܻ ݄݊݁ݐ ݉ݑ݅݀݁݉ ݏ݅ ܺ ݂ܫ
N
͵ܥ ݏ݅ ܻ ݄݊݁ݐ ݁݃ݎ݈ܽ ݏ݅ ܺ ݂ܫ
PU C O
E, T GH
38
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
G
N
PU C O
E, T GH
FUZZY LOGIC-IV
38
Fuzzy Logic Control
.
E-
C F E .B
MODULE 10
N
R
&
D . O r.
Dr. R.B.Ghongade,
D
VIIT, Pune-411048
BV P f.
D ro
O
T
P
©
U
E
E
AD
Agenda
G
N
PU C O
• Why Fuzzy Logic Control?
E, T GH
• Typical fuzzy control systems
38
.
• Classical and Fuzzy PID controller
E-
C F E .B
N
R
System
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
Why Fuzzy Logic Control?
G
N
• Fuzzy logic is a technique to embody human like
PU C O
thinking into a control system
E, T GH
38
• A fuzzy controller can be designed to emulate human
deductive thinking i.e., the process , humans use to
.
E-
C F E .B
U
E
E
AD
• Fuzzy control incorporates ambiguous human
logic into computer programs
G
• It suits control problems that
N
PU C O
– cannot be easily represented by mathematical models
E, T GH
– have weak model(physics of systems is poorly
38
understood)
.
E-
– have parameter variation problem
C F E .B
process operation
BV P f.
D ro
development/implementation cycles
U
E
E
AD
Typical Fuzzy Control Systems
G
N
• Two popular typical fuzzy control systems are
PU C O
Mamdani type and Tagaki-Sugeno (T-S) type
E, T GH
38
• Mamdani Type:
.
– Employ fuzzy sets in the consequent part of the rule
E-
C F E .B
• T-S Type:
D
local rules
P
©
U
E
E
AD
A Classical PID Controller
G
N
PU C O
E, T GH
38
• Objective: Output should follow the command signal
.
E-
C F E .B
ݐ ݁ ܭ = ݐ ݑ+ න ݁ ݐ݀ ݐ+ ܶௗ
&
ܶ ݀ݐ
D . O r.
• In discrete domain ݇ = ݐοܶ is the sampling time interval and ݇is the
D ro
sampling instant
ࢋ െ ࢋ( െ )
T
P
࢛ =ࡷ ࢋ + ࢋ + ࢋ െ + ڮοࢀ + ࢀࢊ
ࢀ οࢀ
©
U
E
E
AD
• Consider a simpler PI controller
1 ௧
G
ݐ ݁ ܭ = ݐ ݑ+ න ݁ ݐ݀ ݐ
N
ܶ
PU C O
• Its discrete form is
E, T GH
38
࢛ =ࡷ ࢋ + ࢋ + ࢋ െ + ڮοࢀ
ࢀ
.
E-
C F E .B
• But
N
R
&
D . O r.
• Giving
BV P f.
D ro
࢛ െ ࢛( െ ) = ࡷ ࢋ െ ࢋ( െ ) + ࢋ οࢀ
T
ࢀ
P
©
U
E
E
AD
• Thus we can write
࢛ = ࢛ െ + ο࢛
G
Where ο࢛ = ࢌ(ࢋ, οࢋ)
N
PU C O
• Hence present control action is equal to previous
E, T GH
control action +incremental control action
38
• This is the fundamental concept which led to the
.
E-
C F E .B
݇ ݑ = ݇ ݑെ 1 + ο݇ ݑ
D
U
E
E
AD
Fuzzy PID Controller (Mamdani Type)
G
N
PU C O
E, T GH
38
.
E-
C F E .B
• Similar to classical PID controller a fuzzy PID controller can have the
N
R
following structure:
&
݇ ݑ = ݇ ݑെ 1 + ο݇ ݑ
D . O r.D
variables , ࢋ and οࢋ
D ro
of Mamdani Type
E
AD
Example of a Rule-base
G
N
• Temperature control system employing a fuzzy proportional
PU C O
controller :)݇(݁ܭ = ݇ ݑ
E, T GH
• RULE 1: IF error is POSITIVE-HIGH, THEN keep the heater on
38
for a LONGER duration
.
E-
C F E .B
a SHORTER duration
&
)݇(݁ܭ
D
control action
O
T
P
©
U
E
E
AD
• Temperature control system employing a fuzzy
G
PI controller : ݇ ݑ = ݇ ݑെ 1 + ο݇ ݑ
N
• RULE 1: IF error is POSITIVE-HIGH and change
PU C O
E, T GH
in error is POSITIVE-HIGH, THEN keep the
38
heater on for a LONGER duration
.
E-
C F E .B
݇ ݑ = ݇ ݑെ 1 + ο݇ ݑ
BV P f.
D ro
(,ο)
T
P
©
U
E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
E- G
AD
38 E
Architecture of a FLC: Mamdani Type
E
AD
Operation explained
G
N
• Let 40°C crisp value be fuzzified into linguistic
PU C O
values ܦܮܱܥ, ܧܶܣܴܧܦܱܯ, ܱܶܪ, ڮ
E, T GH
38
• Each linguistic value is associated with a specific
.
E-
C F E .B
membership function
N
R
U
E
E
AD
Principal Design Parameters of a FLC
G
• Fuzzification strategies and the interpretation of a
N
fuzzification operator( fuzzifier)
PU C O
• Database:
E, T GH
– Discretization/normalization of universe of discourse
38
– Fuzzy partitioning of input and output spaces
.
E-
– Completeness
C F E .B
• Rule-base
&
D . O r.
variables
– Source and derivation of fuzzy control rules
BV P f.
38 E
©
P
D ro
E
BV P f.
T D
ο= כݑ
D . O r.
U R
C F E .B
O & .
ߤ ο(݀ ݑο)ݑ
E, T GH
(ߤ ο)ݑο(݀ݑο)ݑ
PU C O
N N
E- G
AD
38 E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
E- G
AD
38 E
TRADITIONAL vs FUZZY LOGIC CONTROLLERS (FLC)
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N
FUZZY CONTROL
N G
E- AD
38 E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
E- G
AD
FUZZY LOGIC CONTROLLERS (FLC)
38 E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
E- G
AD
38 E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
E- G
AD
38 E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
G
ARCHITECTURE OF FLC
E- AD
38 E
E
AD
DESCRIPTION OF FLC COMPONENTS
G
A Fuzzy Logic Controller usually consists of:
N
PU C O
¾ A fuzzification unit which maps measured inputs of crisp value into fuzzy
E, T GH
linguistic values to be used by a fuzzy reasoning mechanism.
38
.
¾ A knowledge base (KB) which is the collection of expert control
E-
C F E .B
operations to infer the control action for the given fuzzy inputs.
D
BV P f.
into the required crisp control values to be entered into the system
T
P
process.
©
U
E
E
AD
FUZZY LOGIC CONTROLLER
G
¾ Control inputs,
N
PU C O
¾ Fuzzy sets (membership functions) of inputs,
E, T GH
38
¾ Rules,
.
E-
C F E .B
N
R
¾ Control outputs,
&
D . O r.D
¾ Fuzzy reasoning,
T
P
©
¾ Defuzzification.
E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
E- G
AD
38 E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
E- G
AD
38 E
E
AD
Steps in designing a simple fuzzy control system
1. Identify the variables (inputs, states, and outputs) of the plant
G
2. Partition the universe of discourse or the interval spanned by each
N
variable into a number of fuzzy subsets, assigning each a linguistic
PU C O
label (subsets include all the elements in the universe)
E, T GH
3. Assign or determine a membership function for each fuzzy subset.
38
4. Assign the fuzzy relationships between the inputs’ or states’ fuzzy
.
E-
C F E .B
subsets on the one hand and the outputs’ fuzzy subsets on the
other hand, thus forming the rule-base
N
R
&
оϭ͕ϭinterval
BV P f.
E, T GH
PU C O
N N
E- G
AD
38 E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
E- G
AD
38 E
FUZZY LOGIC CONTROLLER (MAMDANI)
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
E- G
AD
38 E
MATLAB SCREENSHOT OF FLC - SIMULINK BLOCK
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
ADVANTAGES OF FLC
E- G
AD
38 E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
G
APPLICATIONS OF FLC
E- AD
38 E
E
AD
Example of FLC
G
N
• Aircraft Landing problem
PU C O
• Necessary to simulate the final descent approach
E, T GH
38
• When aircraft lands:
– downward velocity D square of height
.
E-
C F E .B
U
E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
E- G
AD
velocity versus altitude
38 E
The desired profile of downward
E
AD
Aircraft landing control problem
G
N
PU C O
E, T GH
38
.
E-
C F E .B
N
R
&
D . O r.D
aircraft, v
O
T
P
G
N
• Mass m moving with velocity v has
PU C O
momentum:
E, T GH ݒ݉ =
38
• If no external forces are applied, the mass
will continue in the same direction at the
.
E-
C F E .B
same velocity, v
• If a force f is applied over a time interval
N
R
כ ݂ = ݒο ݐ/m
D . O r.
we obtain:
( ݂ = ݒlb), or
BV P f.
U
E
E
AD
• In difference notation, we get:
G
ݒାଵ = ݒ +݂
N
PU C O
݄ାଵ = ݄ +ݒ ȉ οݐ
E, T GH
where ݒାଵ is the new velocity, ݒ is the old
38
velocity, ݄ାଵ is the new height, and ݄ is the old
.
E-
C F E .B
height
N
R
&
U
E
E
AD
Construct membership functions for the height, h, the
vertical velocity, v, and the control force, f
G
• Step 1 a. Define membership functions for state variable ࢎ
N
PU C O
E, T GH Height (ft)
0 100 200 300 400 500 600 700 800 900 1000
38
Large (L) 0 0 0 0 0 0 0.2 0.4 0.6 0.8 1
Medium (M) 0 0 0 0 0.2 0.4 0.6 0.8 1 0.8 0.6
.
E-
C F E .B
(NZ)
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
Step 1 b. Define membership functions for state variable ࢜
AD
•
Vertical velocity (ft/s)
G
оϯϬ оϮϱ оϮϬ оϭϱ оϭϬ оϱ 0 5 10 15 20 25 30
N
Up large 0 0 0 0 0 0 0 0 0 0.5 1 1 1
(UL)
PU C O
Up small 0
E, T GH 0 0 0 0 0 0 0.5 1 0.5 0 0 0
(US)
38
Zero (Z) 0 0 0 0 0 0.5 1 0.5 0 0 0 0 0
Down small 0 0 0 0.5 1 0.5 0 0 0 0 0 0 0
.
E-
C F E .B
(DS)
Down large 1
N 1 1 0.5 0 0 0 0 0 0 0 0 0
R
(DL)
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
Step 2. Define membership functions for control output ࢌ
AD
•
Output force (lb)
G
оϯϬ оϮϱ оϮϬ оϭϱ оϭϬ оϱ 0 5 10 15 20 25 30
N
Up large 0 0 0 0 0 0 0 0 0 0.5 1 1 1
(UL)
PU C O
Up small 0
E, T GH 0 0 0 0 0 0 0.5 1 0.5 0 0 0
(US)
38
Zero (Z) 0 0 0 0 0 0.5 1 0.5 0 0 0 0 0
Down 0 0 0 0.5 1 0.5 0 0 0 0 0 0 0
.
E-
C F E .B
small (DS)
Down large 1N 1 1 0.5 0 0 0 0 0 0 0 0 0
R
(DL)
&
D . O r.D
BV P f.
D ro
O
T
P
©
U
E
E
AD
• Step 3. Define the rules and summarize them in an Fuzzy Associative Memory
(FAM) table (The values in the FAM table, of course, are the control outputs)
G
N
Velocity
PU C O
E, T GH Height DL DS Zero US UL
L Z DS DL DL DL
38
M US Z DS DL DL
.
E-
C F E .B
N S UL US Z DS DL
R
&
NZ UL UL Z DS DS
D . O r.D
BV P f.
• Step 4 . Define the initial conditions, and conduct a simulation for four cycles. Since
D ro
the task at hand is to control the aircraft’s vertical descent during approach and
T
P
landing, we will start with the aircraft at an altitude of 1000 feet, with a downward
ǀĞůŽĐŝƚLJŽĨо20 ft Ɛоϭ͘
©
U
E
E
AD
• We will use the following equations to update the state variables
for each cycle:
G
ݒାଵ = ݒ +݂
݄ାଵ = ݄ +ݒ
N
PU C O
CYCLE #0
• Initial height, ݄ : 1000 ft
E, T GH
38
• Initial velocity, ݒ ͗оϮϬft Ɛоϭ
• Control ݂ : to be computed
.
E-
C F E .B
U
E
E
AD
G
N
PU C O
E, T GH
38
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
D ro
O
T
P
• We defuzzify using the centroid method and get ݂ = 5.8 lb. This
©
G
• ݒଵ =ݒ +݂ = (-20)+(5.8)=-14.2 ft/s
N
Height ݄ଵ fires L at 0.96 and M at 0.64
PU C O
•
Velocity ݒଵ fires DS at 0.58 and DL at 0.42
•
E, T GH
38
.
E-
C F E .B
֜
&
O
T
P
©
U
E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
E- G
AD
• We find the centroid to be ݂ଵ соϬ.5 lb
38 E
E
AD
G
CYCLE #2
N
• ݄ଶ =݄ଵ +ݒଵ =980+(-14.2)=965.8 ft
PU C O
• ݒଶ =ݒଵ +݂ଵ = (-14.2)+(-0.5)=-14.7 ft/s
E, T GH
• Height ݄ଶ fires L at 0.93 and M at 0.67
38
• Velocity ݒଶ fires DS at 0.57 and DL at 0.43
.
E-
C F E .B
N
R
&
֜
D
U
E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
E- G
AD
• We find the centroid to be ݂ଶ со0.4 lb
38 E
E
AD
G
CYCLE #3
N
• ݄ଷ =݄ଶ +ݒଶ =965.8+(-14.7)=951.1 ft
PU C O
• ݒଷ =ݒଶ +݂ଶ = (-14.7)+(-0.4)=-15.1 ft/s
E, T GH
• Height ݄ଷ fires L at 0.9 and M at 0.7
38
• Velocity ݒଷ fires DS at 0.49 and DL at 0.51
.
E-
C F E .B
N
R
&
֜
D
U
E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
E- G
AD
• We find the centroid to be ݂ଷ = 0.3 lb
38 E
E
AD
• Final values for the state variables to finish the
G
simulation
N
PU C O
• ݄ସ =݄ଷ +ݒଷ =951.1+(-15.1)=936.0 ft
E, T GH
38
• ݒସ =ݒଷ +݂ଷ = (-15.1)+(0.3)=-14.8 ft/s
.
E-
C F E .B
U
E
E
AD
Example of FLC
G
N
• Liquid Level Control
PU C O
• Design a controller that can be used to move the level set-
E, T GH
point from, say, 4 feet to 6 feet, the set-point-tracking
38
problem
.
E-
C F E .B
• Suppose that the tank is 10 feet tall and the tank is empty.
• We want to fill the tank to a level of 5 feet, so we make the
N
R
&
that the tank has a level greater than the set-point value
O
U
E
E
AD
G
N
PU C O
E, T GH
38
.
E-
C F E .B
N
R
&
G
ௗ
N
ܣ =ܳെݍ
ௗ௧
PU C O
• Flow out of the tank, q, through the outlet pipe and the valve
E, T GH
is described as:
38
= ݍȰܣ ʹ݄݃
.
E-
C F E .B
where N
R
Ȱ= friction coefficient for flow through both the small exit pipe
&
D . O r.
O
T
P
©
U
E
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N N
G
Block flow diagram
E- AD
38 E
E
AD
Classical PID control
G
• The PID control algorithm is described as:
் ௗ
N
ܭ = ݑ ݁ + ܭூ ݁ ݀ ݐ+ ܭ
ௗ௧
PU C O
• ܭ , ܭூ , ܭ are proportional, integral, and derivative control constants, respectively
,are specific to the system in question and are usually picked to optimize the
E, T GH
controller performance and ensure that the system remains stable for all possible
38
control actions
.
E-
• If we use a PID controller, which is linear, or any other linear controller with a
C F E .B
• The blocks can then be combined to form a single transfer function for the entire
D
system
BV P f.
• In the real world, many systems are at least slightly nonlinear and we can linearize
D ro
ஶ
݂ (ܽ) ݂ᇱ ܽ ݂ ᇱᇱ ܽ ݂ ܽ
©
ଶ
( ݔെ ܽ) = ݂ ܽ + ݔെܽ + ( ݔെ ܽ) + ڮ+ ݔെܽ
U
݊! 1! 2! ݇!
E
ୀ
+ڮ
E
AD
• The truncated Taylor’s series for linearizing about a steady state value, in
G
this case our set-point, is given as:
ଵ
N
݄ = ݄௦ + (݄ െ ݄௦ )….(1)
ଶ
PU C O
ೞ
• If we choose ݄௦ = 5 ft, we can linearize the radical term over some of the
E, T GH
control range
38
Approximate linearization.
.
E-
h (ft) ࢎ Equation
C F E .B
N (1)
R
10 3.162 3.354
&
9 3.0 3.130
D . O r.
8 2.828 2.907
D
7 2.646 2.683
Overall system block flow diagram or transfer 6 2.449 2.460
BV P f.
4 2.0 2.012
T
P
3 1.732 1.789
©
2 1.414 1.565
U
E
1 1.0 1.342
0 0 1.118
©
P
D ro
E
BV P f.
T
D . O r.D
U R
C F E .B
O & .
E, T GH
PU C O
N
filling problem
N G
E- AD
38 E
Time-level PID response for the tank-
E
AD
Fuzzy Control for Tank Filling Problem
G
N
PU C O
• A fuzzy control system connects input membership
E, T GH
functions, functions representing the input to the
38
controller, e, to output membership functions that
.
E-
C F E .B
rules:
BV P f.
Positive
O
T
2. If the Level Error is Zero Then the Change in Control Action is Zero
P
©
Negative
E
The input membership functions
AD
G
N
PU C O
E, T GH
38
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
• Notice the “dead band” or “dead zone” in the membership function Zero between ±3
D ro
Inches
T
• It is easy to implement with a fuzzy controller and is useful if the control engineer
©
AD
the required pump output for the desired level change
• It is defined by the following expression:
G
Change in Controller Action = οu = (ܳ о ܳ௦ )/Range
N
Where,
• The term ܳ௦ represents the pump output (gallons per minute)
PU C O
required to maintain the set-point level
E, T GH
• The term ܳ is the new pump output requested by the controller
38
• If οu>0, then the Range is defined as ܳ௫ െ ܳ௦ , where ܳ௫ is the
.
E-
maximum pump output
C F E .B
• The term ܳ௦ must be calculated using a steady state mass balance for
&
• The ranges of the fuzzy output sets Positive and Negative are +2.0 to 0.0
D
• Ϭ͘ϬĂŶĚϭ͘ϬŽƌϬ͘ϬĂŶĚоϭ͘Ϭ͕ŝƚŝƐĐůĞĂƌƚŚĂƚǁĞǁŝůůŶĞǀĞƌŽďƚĂŝŶĂĐŽŶƚƌŽů
O
2.0 in the fuzzy set or membership function Positive and numbers down to
E
G
• The error is defined as the set-point level, 8 feet, minus the
N
current level, 5 feet, or +3 feet
PU C O
• The three rules are fired, producing the following results:
E, T GH
1. Positive error is 0.5
38
2. Zero error is 0.5
.
E-
C F E .B
O
T
P
©
U
E
E
AD
G
N
PU C O
E, T GH
38
.
E-
C F E .B
N
R
&
D . O r.D
BV P f.
U
E
E
AD
• Since u is greater than 0.0,
ܳ = (ܳ௫ оܳ௦ )οu +ܳ௦
G
or
N
ܳ = 0.5(ܳ௫ +ܳ௦ ), since οu = 0.5
PU C O
E, T GH
• This says that the new pump output, ܳ , should be
38
adjusted to be halfway between the current or set-point
.
E-
output and the maximum pump output
C F E .B
N
• After an appropriate time interval, corresponding to a
R
&
O
T
P
©
U
E
E
AD
SUMMARY
G
N
• Easy to set up a working fuzzy controller even for difficult-to-control
PU C O
processes (but previously controlled by operator).
E, T GH
• Easy to understand the rule base in simple cases.
38
.
• No need to use FLC in straightforward linear cases, if implementation
E-
C F E .B
O
T
P
©
U
E