Module 5
Module 5
• CONTRADICTION: p p
• TAUTOLOGY: p p
• MODUS PONENS: p ( p → q) → q
• MODUS TOLENS: q ( p → q) → p
FUZZY LOGIC
• Founder is L.A.Zadeh (started in 1973)
• Introduced the idea of Linguistic variables and compositional
rules of inference
Classical
Infinite-
Logic valued
Logic
Fuzzy
Logic
Fuzzy Sets
Classical
Sets
Fuzzy Numbers
DOMAIN OF FUZZY LOGIC
• Fuzzy logic deals with:
1.Linguistic variables
2.Linguistic modifiers
3.Propositional fuzzy logic
4.Inferential rules
5.Approximate reasoning
LINGUISTIC VARIABLES
• Linguistic Variables: Those variables whose values are words
or sentences in natural or artificial languages
• Example: The word ‘Age’ used in natural language
• Age is a linguistic variable taking values very young, young,
middle age, old and very old, called the terms of the linguistic
variable age.
• The terms are fuzzy sets
• Each term is defined by a membership function.
• Consider the universal set U = [0, 100]
MEMBERSHIP FUNCTIONS OF TERMS FOR
LINGUISTIC VARIABLE “OLD”
AGE
M
e Very Young Young middle age old Very old
m
b
e
r
s
h
i
p
X
0 5 30 50 70 90 100
Age in years→
LINGUISTIC MODIFIERS
Let x U and A is a fuzzy set with membership function A ( x)
We denote by m a linguistic modifier, for instance very, not
fairly etc.
Then by mA we mean a modified fuzzy set by m whose
membership function mA ( x) is a composition of a suitable
function f(x) and A ( x)
expressed as mA ( x) = f ( A ( x)).
Examples:
Not: f(x) = 1 – x, notA ( x) = 1 − A ( x),
Very: f(x)= ( x)2 veryA ( x) = [ A ( x)]2
Fairly: f(x)= ( x)1/ 2 fairlyA ( x) = [ A ( x)]1/ 2
TRUTH (Baldwin, 1979)
• The most important linguistic variable
• It is described by a fuzzy set with membership function
• Truth and its terms have been defined differently in fuzzy
logic. The simplest definition is
true ( x) = x, x [0,1]
• In the other extreme, the rule which was least recently used
is fired
REFRACTORINESS
• Under refractoriness, the rule which was fired with the same
set of values of the variables is not selected
• If this rule set contains more than one rule, one or more of
the conflict resolution methods are used to determine the
specific rule which can be fired
• If a rule is fired then its consequent is carried out
• In a rule based system, facts and rules are declared and also
there is an inference mechanism to control the system
cXorY (u ) = cX (u ) cY (u )
• If ctall (70) = 0.2 and cshort (70) = 0.1 then
cverytall (70) = 0.04 cvery short (70) = 0.01
c (70) = 0.96 cnot very short (70) = 0.99
not verytall
• Stop
• Turn the pressure low
• Generally both unconditional and conditional statements
place some restrictions on the consequent of the rule based
process
• The restriction statements, irrespective of conditional or
unconditional statements are usually connected by linguistic
connectives such as “and”, “or” or “else”.
• The restrictions denoted as R1, R2, … Rn apply to the
consequent of the rules
DECOMPOSITION OF COMPOUND RULES
• IF x is A1 OR A2… OR An THEN y is Bm
• This can be written as
• IF x is An then y is Bm
• Where the fuzzy set Am is defined as
• 𝐴𝑚 = 𝐴1 ∪ 𝐴2 ∪. . . 𝐴𝑛 is defined by
• 𝜇𝐴𝑚 (𝑥) = max[𝜇𝐴1 (𝑥), 𝜇𝐴2 (𝑥), . . . 𝜇𝐴𝑛 (𝑥)൧
CONDITIONAL STATEMENTS (WITH ELSE and
UNLESS)
• Statements of the kind
• I. IF A1 THEN (B1 ELSE B2)
• Can be decomposed into two simple canonical rule forms,
connected by “OR”
• (IF A1 THEN B1) OR (IF NOT A1 THEN B2
• The Rule
• IF A1 THEN [ IF A2 THEN B1] can be written in the form
• IF A! AND A2 THEN B1
• So, based upon all the rules above compound rules can be
decomposed into series of canonical simple rules
AGGREGATION OF FUZZY RULES
Knowledge Base
Data Base Rule Base
Input
Output
Fuzzification Defuzzification
Interface Unit Interface Unit
Crisp Crisp
Decision
Fuzzy making Unit Fuzzy
WORKING METHODOLOGY