Professional Documents
Culture Documents
FNAE Cap5
FNAE Cap5
LINGUISTIC DESCRIPTIONS
AND THEIR ANAL YTICAL
FORMS
105
FUZZV LlNGUISTIC DESCRIPTIONS 107
106 LlNGUISTIC DESCRIPTIONS AND THEIR ANALYTICAL FORMS
Figure 5.1 Fuzzy linguistic descriptions possess a linguistic form as well as a back- (5.1-1)
ground analytical form involving fuzzy set operations.
where error and tserror (change in error) are linguistic variables describing
the input to a controller and /1u is a linguistic variable describing the change
in output. A linguistic variable is a variable whose arguments are fuzzy Of course this representation is an acceptable approximation of the analytic
numbers (and more generally words modeled by fuzzy sets), which we refer to representation only when n becomes sufficiently large, with the precision of
as fuzzy values. For example, in the rules above the fuzzy values of the the approximation being controlled by choosing an appropriate n. A point
linguistic variable error are ZERO, PS Cpositue small), and SMALL, the (ai' b) can also be thought of as a crisp if jthen rule of the form, "if x is ai
values of /1e"or are ZERO and NS (negative small) and the values of /1u are then y is b." Obviously, the pairs of (5.1-1) may be expressed linguistically as
ZERO, NS, and B/G.I A specific evaluation of a fuzzy variable-for exam- crisp rules:
ple, "error is ZERO"-is called fuzzy proposition. Individual fuzzy proposi-
tions on either left- (LHS) or right-hand side (RHS) of a rule maybe if x is aI then y is bl
connected by connectives such as AND and OR- for example, "error is PS if xis a2 then y is b2
AND /1e"or is ZERO.,,2 Individual if jthen rules are connected with the
connective ELSE to form a fuzzy algorithm. Propositions and if jthen rules in
classical logic are supposed to be either true or false. In fuzzy logic they can (5.1-2)
be true or false to a degree. if x is ai then y is b,
lThe convention we follow is to use lowercase italics for linguistic variables and capital italics for
fuzzy values, unless otherwise specified or implied by the context.
if x is a" then y is b"
2These are also called antecedent (LHS) and consequent (RHS) propositions. We find alterna-
tive designations for the LHS and RHS of a rule in different application areas. In process
control, for example, the if part is often referred to as the situation side and the then part is 3As we saw in Chapter 3, functions are a particular kind of relation allowing one and only one
often referred to as the action side. value of y for each x. This is also referred to as a many-to-one mapping.
108 LlNGUISTlC DESCRIPTIONS AND THEIR ANALYTICAL FORMS FUZZVLlNGUISTIC DESCRIPTIONS 109
y
y
crisp point (ai. b.)
crisp point (ai>b;)
b2=bn •••.••••••••••••••••••
b] . if/then rule
a·I x
~ ~ ~ ~ x
Figure 5.2 The function y = f(x) moy be thought of os o collection of crisp points Figure 5.3 Building o linguistic description of the function y = f( x).
Ca; bj), ond eoch point moy olso be orticulated os o crisp if / then rule.
where AI' A2' ... , Aj, ... ,An are fuzzy numbers on the x axis and mappings-are far more. common i~ c.omplex .engineerin? sys~ems than usu-
BI' B2,···, Bj, ••• , B" are fuzzy numbers on the y axis. The rules of (5.1-4) ally. Some times conventional descriptions, being overly idealized models of
are combined by the connective ELSE, which could be analytically modeled complex systems, may suffer from lack of robustness and exhibit undesirable
as either intersection or union [and more generally as T nonns or S norms side effects.
(see Appendix A)] depending on the implication relation of the individual Let us look again in Figure 5.3. We note that the transition from points to
rules (we will have more on ELSE in Section 5.5). The collection of if jthen area-cum-points reduces the number of if jthen rules needed to describe
rules in (5.1-4) is called a fuzzy algorithm, and its analytical form is a relation y = f(x). For example, we cou~d a~praximate f(x) with only 11 fu~ if jthen
Ra(x, y) between the x's and the y's, called the algorithmic relation. As may rules (circled areas) as shown m Figure 5.3. The rules are overlapping as are
be expected, the algorithmic relation depends on the implication relation of the various fuzzy numbers on the x and y axes. Yet, we no longer have a
constituent rules. function (a many-to-one mapping) but a more general relation Ra(x, y)
The transition frorn conventional descriptions, such as y = f(x), to linguis- (a many-to-many mapping), and the obvious question is: How do we use
tic descriptions addresses the fact that functions are often mathematical such a relation? In conventional descriptions we evaluate functions by
idealizations. In most real-world problems, we do not have a curve such as inputting a crisp value of x to f(x) and obtain a unique crisp value of y as
the one shown in Figure 5.2 but rather something like the region shown in output. Something similar can be done with linguistic descriptions as well.
Figure 5.4. For example, suppose that the function y = f(x) is viewed as a The process of evaluating a fuzzy linguistic description is called fuzzy
control policy-that is, a prescription recommending a control action y-for inference. There are two important problems in fuzzy inference. First, given a
each state x. In many applications, the control system changes with time fuzzy number A' as input to a linguistic description, we want to obtain a
(time-varying) and in general manifests nonlinear and complex behaviors. fuzzy number B' as its output; and, second, given B', we want to obtain A'
Hence, the control policy may actually be a more general relation Ra(x, y) as (the inverse problern). The first problem is addressed with an inferencing
shown in Figure 5.4. Figure 5.2 could in fact be an idealization of the procedure called generalized modus ponens (GMP), and the second is ad-
real-world control policy shown in Figure 5.4. We recall (see also Chapter 3) dressed with another inferencing procedure called generalized modus tollens
that a function is a special kind of relation that associates a unique y with (GMT). Both GMP and GMT have their origin in the field of logic and
each x. A function performs what is called a many-to-one mapping; that is, approximate reasoning (Section 5.4), and analytically they involve composi-
several values of x may have the same value of y but not vice versa. Most tion of fuzzy relations (Chapter 3).
real-world applications, however, involve many-to-many mappings. Situations In GMP, when an if jthen rule and its antecedent are approximately
like the one shown in Figure 5.4-that is, relations that are many-to-many matched, a consequent may be inferred. For simplicity let us consider only a
generic rule of (5.1-4) having an implication relation Ri:x, y). GMP is
formally stated as
y
if x is A then y is B
crisp point (aj, b;)
x is A' (5.1-5)
y is B'
can evaluate functions and that the procedure of evalu ti . 1 ofouod impact 00 the design and .o~eration of eog!ne~ring syste~s
. . f fu . GMP . a íon mvo ves compo pr k 1988). Fuzzy linguistíc descriptions are of growmg importance m
sition o zzy relations. IS related to forward-cha' . d t dri -
. . h ., f mmg or a a- nven (Yarna awa, f engineering ranging from expert systems an d artiifiteia l imte 11'1-
mference and IS temam m erencing procedure in fuzzy t 1 Wh rnany are as o . . . I I'
A' = A and B I = B , GMP (5 .1-5 ) reduces to an inferencing con ro .
procedu
en
f pll 'cations to process control pattern recogrution, signa ana ySIS,
gence ap
. bílíty engineering
. '.
and machine learmng (Ray and Majumder, 1
. 988) Th
. e
classical logic known as modus ponens (depending Ou the implication re 1°
. ) re a- relia 1 I' . f fu
tIon. . id as however are rather similar and rest on the mathematics o zzy
bas1c 1 e " . ., ., h
In GMT a rule and its consequent are approximately matched and fr sets. Describing a system through a ImgUl~tIC ~e~cnpt~on, n~ matter for w at
that we can obtain an antecedent. GMT is formally sta.ted as om purpose, involves specifying in some wa.y linguistic vanables, if jthen rules, and
evaluation procedures known as fuzzy inference.
if x is A then y is B
y is B' (5.1-7)
5.2 L1NGUISTIC VARIABLES ANO VALUES
xisA'
Again, everything above the line is known and we want to find out what is As we saw in the previous section, a linguistic variable is a variable whose
below the line+-that is, A The analytical problem involved in GMT is
I.
arguments are fuzzy numbers and more generally words represented by fuzzy
addressed by composing the implication relation Ri;x, y) with fuzzy number sets. For example, the arguments of the linguistic variable temperature may be
B' as LOW, MEDIUM, and HIGH. We call such arguments fuzzy values. Each and
every one of them is modeled by its own membership function. The fuzzy
A' =R(x,y)oB' (5.1-8)
values LOW, MEDIUM, and HIGH may be modeled as shown in Figure 5.5
GMT is closely related to backward-chaining or goal-dríven inference, which or Figure 5.6. In Figure 5.5 we have three discrete fuzzy values, while in
is the main forrn of inference used in diagnostic expert systems. When Figure 5.6 we have three (piecewise) continuous membership functions-
A' = NOT A and B' = NOT B, GMT reduces to classical modus tollens J-Lww(T), J-LMEDIUM(T), and J-LHIGH(T)-modeling the words LOW,
(depending on the implication relation used).
In general, fuzzy linguistic descriptions offer convenient tools for control-
ling the granularity of a descriptíon," in the sense that they facilitate the
choice of appropriate precision levels+-that is, levels that application-specific FurlY
considerations call for. In terms of our example, when we use fuzzy numbers VARIABLE
/-t(T) sense-that is, as a numerical variable-its arguments are simply th: crisp
LOW MEDJUM HlGH numbers of a universe of discourse (e.g., natural numbers between 1 C and
1.01+----+--""""'{"-----lL-----::~-__t_-~r----r----1
100°C). We may think of each number as a crisp category of temperature; in
0.8 this case we could have 100 different categories. For certain applications this
may be an acceptable categorization of the values of tempera~ure. For ot~ers
0.6
we may need 1000 categories, and still for others 3 categones may.sufflce.
0.4 Fuzzy values provide this kind of flexibili~. They allow ~or .adjustable
categories and explicitly acknowledge the ambiguous and application-depen-
0.2
dent nature of this or the other categorization.
04-----------~--------~~~--~--r_--------~----------1
o 20 40 60 80 100
T('C) Primary Values
Figure 5.6 Membership functions 11-( T) used for describing the primary values, LOW,
The words which function as the initial values of a linguistic variable are
MEDIUM and HIGH, of the linguistic variable temperature.
called primary values. They are the principal categorization of a universe ?f
discourse-for example, the values LOW, MEDIUM, and HIGH shown m
Figures 5.5 and 5.6. To model them we often use functions whose. shape is
MEDIUM, and HIGH, respectively. Any crisp value of temperature
adjusted through a finite set of parameters. For example, the function
e.g., 60°C) has a unique degree of membership to each fuzzy value of
temperature. In Figure 5.6, for example, crisp temperature 60°C is LOW to a
degree zero, MEDIUM to a degree 0.65, and HIGH to a degree 0.35. 1
(5.2-1 )
We distinguish four different levels in the definition of a linguistic variable jL(X) = 1 + a(x _ C)b
as shown in Figure 5.5. At the top level we have the name of the variable
(e.g., temperature). At the level below it we have the labels of fuzzy values
has parameters a, b, and c which may be used to adjust the overall form of
(starting with an initial set of values called primary values or term sett).
jL(x). Parameter a adjusts the width of the membership function, b deter-
Further down we have membership functions, and at the bottom we have the
mines the extent of fuzziness, and c describes the location of the "peak" of
unioerse of discourse. AlI four levels are indispensable in the definition of a
the membership function. This is the point in the universe of discourse where
variable. It is important to observe that linguistic variables have a dual
jL(x) = 1. Consider the primary values of temperature, SMALL, MEDIUM,
nature; at higher levels we have a symbolic linguistic form, and at lower levels
and LARGE shown in Figure 5.7. Their membership functions are of the
we have a well-defined quantitative analytical form-that is, the membership
form of Equation (5.2-1) with a = 0.0005, b = 3, and c = 20, 50, and 80,
function. This double identity is a general feature of fuzzy linguistic descrip-
tions rendering them convenient for performing both symbolic (qualitative)
and numerical (quantitative) computations (Zadeh, 1975).
Generally, the values of a linguistic variable may be compound values-that
is, values constructed through the use of primary values and linguistic
modifiers such as NOT, VERY, RATHER, ALMOST, and MORE OR LESS.
For example, out of the initial set of primary values LOW, MEDIUM, and
HIGH for temperature, compound values such as NOT LOW, VERY LOW,
RATHER MEDIUM, and ALMOST HIGH may be formed.
Fuzzy values are essentially aggregations or categories of crisp values. In
fuzzy logic the flexibility of adjusting membership functions is useful for
categorizing the parameters of a domain in accordance with the domain's
own unique features. li temperature is considered in a conventional
o 10 20 30 40 50 60 70 80 90 100
5The values of a linguistic variable are referred to by a variety of names in the literature. Often T("C)
they are called fuzzy variables, primary terms, set of prototypes, or the term set. We will mostly use
the name fuzzy value or simply value. Linguistic variables are also called fuzzy oariables. Figure 5.7 Adjustable membership functions for modeling primary values.
LlNGUISTIC VARIABLES AND VALUES 117
116 LlNGUISTIC DESCRIPTIONS AND THEIR ANAL YTICAL FORMS
1 1'-8)
fI(x; 8,1')= S (X;" - 8'-2-' l' for x .::;l'
iLSMALL(T) = 1 + 0.OOO5(IT - 201)3
(5.2-4)
1 1'+8 )
(5.2-2) fI(x; 8,1')= 1 - S (x; 1"-2-' l' + 8 for x :2: l'
iLMEDJUM(T) = 1 + 0.OOO5(IT - 501)3
The connective AND uses the min operator ( /\) to generate the membership NOTLOW NOT H/GH
function of the compound value out of the membership functions of two (or
more) other values. The compound value constructed through the connective
AND is defined as
AANDB == f
X
[JLACx) /\ JLB(X)]jX (5.2-6)
The AND connective has to be used with caution when generating com-
pound values because it may lead to nonsensical words such as in the
proposition "temperature is (H/GH AND LOW)." As shown in Figure 5.8a, o 20 40 60 80 100
this compound value has zero membership function and may be thought of as
meaningless. The connective AND can produce correct compound values (a)
when used with the complement of primary values as, for example, in the
proposition "temperature is «NOT LOW) AND (NOT H/GH))," whose
membership function can be seen in Figure 5.8b. J1(F} (NOT LOW) AND (NOT H/GH)
The membership function of a compound value produced by negating 1.0-+-----~---+----\_---_t_---_;_
another value is the complement of the membership function of the original
value-that is, 0.8
0.6
0.2
The semantics of the modifier NOT are fairly straightforward, and it may be
used very much as negation is used in natural language-for example, o 20 40 60 80 100
"temperature is (NOT H/GH)."
Every linguistic modifier is associated with a corresponding fuzzy set (b)
operation involving membership functions. Table 5.1 lists some of these Figure 5.8 The semantics of compound terms generated by ANO ought to be
associations. The PLUS and M/NUS modifiers in Table 5.1 offer a smaller carefully examined. In (a) the compound term LOW ANO HIGH has trivial membership
degree of concentration and dilation than do the concentration CON and function, while in (b) the compound term (NOT LOW) ANO (NOT HIGH) iswell defined.
dilation D/L operations which we saw in Chapter 2. Modifiers may be
connected in series in order to form larger compound values. Suppose, for
example, that we start with the primary values SMALL and LARGE. We
form compound values such as (VERY SMALL) and (NOT VERY SMALL) by It should be noted that compound fuzzy values may not be arbitrarily
logically multiplying SMALL by VERY and NOT. We can go on in this generated. We need to examine their semantics-that is, their meaning in
manner obtaining more compound values-for example, C = «NOT VERY the context of a specific application. An interesting quantitative guide to the
SMALL) AND (NOT LARGE)). Using the operations in Table 5.1 we model semantics of compound values is provided by their membership function.
C by the following membership function: When the new membership function becomes uniformly 1 or Owe may have a
semantically suspect compound value.
(5.2-8)
IMPLlCATION RELATlONS 121
120 LlNGUISTIC DESCRIPTIONS AND THEIR ANAL YTICAL FORMS
where linguistic variables x and Y take the values A and B, respectively. The
PLUSA [ J..lA(X) t25 underlying analytical form of rule (5.3-1) is the implication relation
R ( x, y) = f (x,y)
J-L(x, Y ) / (x, y) (5.3-2)
MINUSA [ J..lA(X) ]0.75
0, X < Xmax
R(xi'Yj) = L J-L(xi'Yj)/(xi,Yj) (5.3-3)
(Xj'Yj)
UNDERA 1- J..lA(x), X::;; Xmin
0, X> Xmin
There are several options for obtaining the membership function of the
implication relation. We explore them through the implication operator
notion. For the rule of (5.3-1) an implication operator 4> takes as input the
membership functions of the antecedent and consequent parts, namely,
J-LA(X) and J-LB(Y)' and takes as outputs J-L(x, y), namely
5.3 IMPLlCATION RELATIONS
(5.3-4)
Fuzzy if jthen rules are conditional statements that describe the dependence
of one (or more) linguistic variable on another. As we already alluded to 6Implication operators can also be expressed through T and S norms (see Appendix). It should
earlier, the underlying analytical form of an if jthen rule is a fuzzy relation be noted that the term "implication" is somewhat of a misnomer (since strictly speaking there is
called the implication re/atian. There are over 40 different forms of implica- no logical implication in a rule); nonetheless it is widely used in the literature.
122 L1NGUISTlC DESCRIPTIONS AND THEIR ANALYTICAL FORMS IMPLlCATION RELATIONS 123
We distinguish the following implication operators: lhe Drastic Product Implication Operator
The drastic product implication operator has also been used in the field of
Zadeh Max-Min Implication Operator contraI. As the name implies, it involves a more drastic (crisp) decision as to
the forro of the implication relation and is defined as
The Zadeh max-min implication operator (Zadeh, 1973) is
JLB(Y) = 1
JLA(X) = 1 (5.3-11)
Thus the membership function of the implication relation (5.3-2) is
JLA(X) < 1, JLB(Y) <1
these operators satisfy classical modus ponens ~nd mod~ ~olle:z~. An?th~r
Table 5.2 Some fuuy ImpllcaHon operators
issue has to do with the manner that they satisfy certam íntuítive cntena
about inferencing such as, for example, the expectation that evaluating "if x is
A then y is B" by "x is VERY A" ought to result in "y is VERY B." A good
NAME IMPLICATION OPERATOR
discussion of these issues is found in Mizumoto (1988) and Lee (1990a, b).
t/J[J.lA(X), J.lB(y)] -
5.4 FUZZY INFERENCE ANO COMPOSITION
t/Jm' Zadeh Max-Min (J.l A(X) /\ u B (y» V (1- J.lA (X»
Fuzzy inference refers to computational procedures used for evaluating fuzzy
linguistic descriptions. There are two important inferencing procedures:
t/Jc' Mamdani min J.lA(X)/\J.lB(Y) generalized modus ponens (GMP) and generalized modus tollens (GMT). For
simplicity let us consider a linguistic description involving only a simple
if jthen rule with known implication relation Ri;x, y) and a fuzzy value A'
t/Jp• Larsen Product J.lA(X)· J.lB(y) approximately matching the antecedent of the rule. GMP allows us to
compute (infer) the consequent B It is formally stated as
I.
if x is A then y is B
t/Ja' Arithmetic 1/\ (1- J.lA (X) + J.lB(Y»
xisA' (5.4-1)
yis B'
t/Jb' Boo/ean (1- J.lA (x) V J.lB(Y)
where everything above the line is analytically known, and what is below is
0, i! J.lA(X) > ,uB(Y) In terms of membership functions, equation (5.4-2) is (see Chapter 3)
(5.4-3)
t/J"", Gougen 1, i! J.lA (X) '5. J.lB(Y)
x
JlB (Y)
JlA (x) , i! J.lA (X) > ,uB(Y) where I-LA'(X) is the membership function of A', I-L(x, y) is the membership
function of the implication relation, and I-LB,(y) the membership function of
t/Jg. Gõdelian 1, i! J.lA (X) '5. J.lB(Y) B'. We recall from Chapter 3 that max-min composition (o) is analogous to
matrix multiplication with max (v) and min (1\) in place of addition ( +) and
J.lB(Y) , i! J.lA(X) > ,uB(Y) muliiplicaiion (x ).
126 LlNGUISTIC DESCRIPTIONS AND THEIR ANALYTICAL FORMS FUZZV INFERENCE AND COMPOSITION 127
In GMT we know Ri:x, y) and the consequent B'. To compute the member-
ship function of A' in (5.4-2), we can use max-min composition of Ri», y)
with fuzzy set B' -that is,
Of course, other compositions may be used in place of max-min. For hence we may not have circular area-cum-points as in Figure 5.3 but instead
example, using max-product composition the membership function of B' in have the more general shapes shown in Figure 5.9. Of course in order to use
(5.4-2) is given by composition we must have available implication and algorithmic relations.
Logical operations other than GMP or GMT may also be performed
(5.4-7) analytically through composition-for example, by combining two or more
x
roles in a syllogism (Zimmermann, 1985). Consider the following roles:
where we take the maximum with respect to x of all the products of the pairs
inside the brackets (see Example 5.2). In general max- * composition may be if x is A then y is B
used to infer the membership function of B': (5.4-9)
if y is B then z is C
(5.4-8)
x
from which we can infer another role: "lf x is A then z is C" through
Using composition of relations to infer consequents-that is, to draw conclu- SJ!llogism. Each rule in (5.4-9) is analytica11ydescribed by a fuzzy relation, the
sions on the basis of imprecise premises-is known as the compositional rule ~Irst by R1(x, y) and the second by R2(y, z). From these relations we may
of inference, since logical inferencing such as GMP is performed analytica11y infer a new relation R12(x, z) for the rule "if x is A then z is C" using
through composition. As shown in Figure 5,9, GMP works in a manner max-min composition of R1(x, y) and Riy, z)-that is, R12(x, z) =
analogous to eoaluating a function and GMT is analogous to finding the R1(x, y)o R2(y, z ). Again, max-min, max-product, or max-* composition may
inoerse (Pappis and Sugeno, 1985). When a fuzzy value A' is given as input to also be used to obtain R12(x, z).
a linguistic description (single role or fuzzy algorithm) we can obtain B'
through GMP; conversely, if we know B' we can obtain A' through GMT. Example 5.1 GMP and Mamdani Min Implication. In this example we use
Genera11y, we have several overlapping roles, and more than one may GMP to evaluate a linguistic description comprised of a single rule "if x is A
contribute a nontrivial B' (or A'). The union or intersection (depending on then y i~ B': with LHS and RHS membership functions t-LA(X) and t-LB(y), as
the implication opera to r used as we will see in the next section) of a11 shown m FIgures 5.1Oa and 5.1Ob. The implication relation of the rule is
contributions is the output of the linguistic description for a given A' (or B'). modeled through Mamdani min implication operator. Fuzzy number A'
Often the fuzzy values used are not symmetric or of the same form, and (a singleton) shown in Figure 5.1Ocis the input to the rule. From Figure 5.10
128 FUZZV INFERENCE ANO COMPOSITION 129
L1NGUISTIC OESCRIPTIONS ANO THEIR ANALYTICAL FORMS
we have
10
Il(X) A = L: J.LA(X;)/Xi
i=O
,, ,, 10
,, ,, B = L: J.LB(Y;)/Yi
i=O
1l1\(2)=0.5, " " •. 1l",(4)=0.5
, ,,
,,, ,, = 0.33/5 + 0.67/6 + 1.0/7 + 0.67/8 + 0.33/9 (E5.1-2)
,, ,,
, 10
o 2 3 4
I
/O X
A' = L: J.LA(X;)/X; = 1.0/4 (E5.1-3)
i=O
AlI variables are defined over the same universe of discourse, the set of
integers from O to 10; and, as is customary, zero membership singletons are
IlB(7)=1.0 omitted. .
/.0 - - - - - - - - - - - - - - - - - -
,,"",,- , - - - - - First, let us compute the membership function J.L(xi' Yj) of the implication
IlB(6)=0.67,,' ", IlB(8)=0.67 relation R(x;, Y) that analytically describes the rule using the Mamdani min
"", ~"" implication operator. Having discrete fuzzy values we use discretized fuzzy
IlB(5)=0.33 ," ", I1B(9)=0.33 relations as well. From Table 5.2 we see that the membership function of the
, , ,,
,, ,, implication relation is given by
,, ,,
1l",(X),/, " ,
R(xi, Yj) = L: J.L(xi, Yj)/(xi, Yj)
(Xi'Y)
,/ " ,,1l",(4)=0.5
,,, ,, = 0.33/(2,5) + 0.5/(2,6) + 0.5/(2,7) + 0.5/(2,8)
,
,, ,,
, " + 0.33/(2,9) + 0.33/(3,5) + 0.67/(3,6) + 1.0(3,7)
o 3 4 5 6 7 8 9 /O X + 0.67/(3,8) + 0.33/(3,9) + 0.33/(4,5) + 0.5/(4,6)
(c) + 0.5/(4,7) + 0.5/(4,8) + 0.33/(4,9) (E5.1-5)
Figure 5.10 (a) The membership function of the antecedent A. (o) The fuzzyvalue B
of the consequent. (c) A fuzzy A' that approximately matches the antecedent in where the membership function is computed using (E5.1-4). The implication
Example 5.1. relation si»; Yj) of (E5.1-5) is shown in Table 5.3. We note that the full
relation is defined over the Cartesian product of the discrete universe of
discourse of LHS and RHS variables. Since each universe of discourse is the
set of integers from O to 10, the Cartesian product is the 11 x 11 product
130 LlNGUISTlC OESCRIPTIONS ANO THEIR ANAL YTICAL FORMS FUZlY INFERENCE ANO COMPOSITION 131
labia 5.3 lhe fuzzy ImpllcaHon relaHon In Example 5.1 quent-that is, at Y = 5-is computed as follows:
16.~iIÓ.jj
-
B' = 0.33/5 + 0.50/6 + 0.50/7 + 0.5/8 + 0.33/9 (E5.1-8)
11II
3 O O O O O O
4 O O O O O Ó.~j O as shown in Figure 5.1l. It should be noted in Figure 5.11 that the member-
ship function of B' is essentially the membership function of B clipped at a
5 O O O O O O O O O O O
height equal to the degree that A' matches A (see Figure 5.lOc). This value
6 O O O O O O O O O O O is called the degree of fulfillment (DOF) of the rule, It is a measure of the
degree of similarity between the input A' and the antecedent of the rule A.
7 O O O O O O O O O O O In the present case we have that
8 O O O O O O O O O O O
DOF = 0.5 (E5.1-9)
9 O O O O O O O O O O O
Clipping the membership function of the consequent by DOF is a feature of
10 O O O O O O O O O O O CPe' the Mamdani min impIication operator. Whenever we use CPe to model
the implication relation involved in GMP we get such a clipping transforma-
tion of the consequent. The situation is shown in general in Figure 5.12. We
shall encounter clipping in Chapter 6 when dealing with controI applications
space shown in Table 5.3. The nontrivial part of the relation is found in the of linguistic descriptions. We should keep in mind that clipping depends on
shaded cells of Table 5.3. the Mamdani min impIication operator (not to be confused with max-rnin
To find B' we compose A' with R(xi, Yj) in accordance w!th equati~n composition). Using different impIication operators to modeI the impIication
(5.4-2). It is sufficient to consider the nonzero part of the relation+-that is, relation leads to different shape transformations of the RHS of a rule
evaluated under GMP. O
the shaded part of Table 5.3. We use matrix notation and remind ~urselv~s
(see Chapter 3) that max-rnin composition (o) is analogous to matnx ~~ltl-
plication with max (v) and min (1\) in place of addition ( +) and multiplica-
tion (x), respectively. From Equation (5.4-2) we have
where the column vector for A' ranges from x = 2 to x = 4 (see Figure 5.10)
which is the same as the row range of the implication matrix. The columns of
the implication matrix range from Y = 5 to Y = 9 (see Table 5.3). From Figure 5.11 The fuuy set B' produced by evaluating the linguistic description of
equation (5.4-3) the membership function of the first element of the conse- Example 5.1.
132 LlNGUISTICDESCRIPTIONSAND THEIRANALYTICAL FORMS FUZZVALGORITHMS 133
J.l{X)
1(X) Il(Y)
IlB(y)
1.0 f.J.A(1) = 1.0
1.0 1.0
,
, ,,
,, <; ,f.J.A(2)=0. 75
DOF=1-!4Jxo)
f.J.A(O)=O~~~" ,
, ,fA(3)=0.5
f.J.A(-1 )=0.3~ , .: " "~, f~(:)=0.25
x y I '_
I ·1
o 3
I
4
I5 x
Figure 5.12 When the Mamdani min implication operator is used to model an implica- ·5
tion relation, GMP clips the membership function of the consequent by the DOF of the
rule. (a)
f.J.(y
Example 5.2 GMP with Larsen Product Implication. In this example we
evaluate a fuzzy if /then rule, whose implication relation is modeled by the
Larsen product fuzzy implication operator 4>p (see Table S.2) using GMP. f.J.B(-3)=1.0 1.0
The antecedent and consequent variables of rule if x is A then Y is B are - - - - -~ ~
, ,
- - - - - - -
shown in Figures S.13a and S.13b. The membership function of the input , "f.J.B( -2)=0.67
value A' is shown in Figure S.13c. From Figure S.14 we have f.J.B(-4)=0.50 ,,' ",
, " ,
, ,,
5 ,,, ,,
f.J.B(-1)=0.33
A = L J.LA(X;)/Xi ,,
,
,,
,,
i= -5
-5 T -4 -3 -2 -I o
I
3
I
4
I
5 Y
= 0.33/( -1) + 0.67/0 + 1.0/1 + 0.7S/2 + 0.5/3 + 0.2S/4 (ES.2-1)
5
B = L J.LB(Y;)/Yi (b)
i- -5
= O.SO/( -4) + 1.0/( -3) + 0.67/( -2) + 0.33/( -1) (ES.2-2) f.J.(x)
5
A' = L J.LA(X;)/Xi = 1.0/3 (ES.2-3)
i= -5
Using equations (S.4-2) and (S.4-3) for GMP we can compute the member-
ship function of value B'. First, however, we have to obtain the membership
function of the implication relation, J.L(x, y), using the Larsen product fuzzy
implication operator 4>p (see Table S.2). The implication relation has the
membership function -5 o 3 4 5 x
(ES.2-4) (c)
Figure 5.13 (o) The fuuy value A of the antecedent. (o) The fuuy value B of the
and plugging in numbers from equations (ES.2-l) to (ES.2-3) we obtain the consequent. (c) The singleton A' that approximately matches the antecedent in
Example 5.2.
FUZZV INFERENCE AND COMPOSITION 135
134 LlNGUISTIC DESCRIPTIONS AND THEIR ANAL YTICAL FORMS
1.0
------- y} -5 -4 -3 -2 -1 O 1 2 3 4 5
x;
IIB' (-3)=0.50
II B' (-2)=0.333
, ,
-5 O O O O O O O O O O O
IIB' (-4)=O.2~",' " II B' (-1)=0.1 7
-4 O O O O O O O O O O O
o 4 -3 O O O O O O O O O O O
·4 ·3 ·2 -1
-5
Figure 5.14 The fuzzy set B' produced by evaluating the linguistic description in -2 O O O O O O O O O O O
Example 5.2.
-1 O 0.165 03~j 6.~;2 0:111 O O O O O O
J.JB(Y)
1.0 1.0 IMPLlCATION INJERPRET ATION OF ELSE
membership function of B scaled (multiplied) by the degree that A' matches t/Jb' Boolean AND (1\)
the membership function of A at x = 5-that is, the DOF of the rule by A I.
Scaling the membership function of the consequent by DOF is a feature t/Jbp. Bounded Product OR (V)
of the Larsen product fuzzy implication operator <pp' Schematically this
property of <Pp is shown in Figure 5.15. Other fuzzy implication operators «: Drastic Product OR (V)
(Table 5.2) result in different shape transformations of the consequent. O
t/Js' Standard Sequence AND (1\)
A fuzzy algorithm is a procedure for performing a task formulated as a t/Jg. Gõdelian AND (1\)
collection of fuzzy if jthen rules. The rules are defined over the same product
space and are connected by the connective ELSE which may be interpreted
either as union or intersection depending on the implication operator used
for the individual rules.? Consider for example the algorithm
if xisAj then y is s, ELSE of the connective ELSE for the implication operators shown in Table 5.2 (in
the next chapter we will see more on this). The relation of the entire
if x isA2 then y is B2 ELSE
(5.5-1 ) collection of rules (5.5-1) is called the algorithmic relation
Method of Cases, Fuzzy Sets and Systems, Vol. 54, pp. 23-37, 1993. quent. A is defined by
I
Shimizu, K, Osumi, M., and Imae, F., Digital Fuzzy Processor FP-5000, Proceedings
of the 2nd Intemational Conference on Fuzzy Logic and Neural Networks, IlZUKA A' = 0.5/5 + 1.00/6 + 0.5/7
'92, pp. 539-542, lizuka, Japan, July 17-22, 1992.
Yamakawa, T., Fuzzy Hardware Systems of Tomorrow, in Approximate Reasoning in 3. Using the data given in Problem 2, Mamdani min implication operator,
Intelligent Systems, Decision and Control, E. Sanchez, and L. A Zadeh, eds., and generalized modus ponens, evaluate the rule.
Pergamon Press, Oxford, 1987, pp. 1-20.
Yamakawa, T., Intrinsic Fuzzy Electronic Circuits for Sixth Generation Computers, 4. Using the data given in Problem 2, arithmetic implication opera tor, and
in Fuzzy Computing Theory, Hardware, and Applications, M. M. Gupta and generalized modus ponens, evaluate the rule.
T. Yamakawa, eds., EIsevier jNorth-Holland, Amsterdam, 1988, pp. 157-173.
5. Using the data given in Problem 2, Boolean implication operator, and
Zadeh, L. A, Outline of a New Approach to the Analysis of Complex S~stems and
generalized modus ponens, evaluate the rule.
Decision Processes, IEEE Transactions on Systems, Man and Cybernetics, Vol. 1,
pp. 28-44, 1973. ~. Using the data given in Problem 2, bounded product implication opera-
Zadeh, L. A, The Concept of a Linguistic Variable and Its Application to Approxi- tor. and generalized modus ponens, evaluate the rule.
mate Reasoning, Information Sciences, Vol. 8, pp. 199-249, 1975.
7. Using the data given in Problem 2, Zadeh max-min implication operator
Zadeh, L. A, Fuzzy Sets and Information Granularity, Aduances in Fuzzy Set Theory
and Applications, M. M. Gupta, R. K Ragade, and R. R. Yager, eds., North-
and generalized modus ponens, evaluate the mie.
Holland, Amsterdam, 1979, pp. 3-18. 8. Given the rule and fuzzy values for A and B as well as the B that you
I
Zadeh, L. A, A Computational Approach to Fuzzy Quantifiers in Natural Languages, found in Problem 2, use generalized modus tollens to infer an A I.
Let us consider a fuzzy algorithm consisting of n multivariate fuzzy Let A'i be a new input to (5.5-17). The membership function of B is I
implications of the form shown in (5.5-9). We have m variables XI' ... 'Xm on given by max-min composition of the fuzzy set A'i = A'(xl) and
the antecedent side of the jth if/then role taking values Alj,···, Amj Ra(xl> xz, ... , xm' Y)- that is,
(j = 1, , n) and only one consequent linguistic variable y, taking values
BI> Bz' , Bll' Our fuzzy algorithm is the collection of roles
= 1
(X\,X2,""Xm ,y)
ILa(XI,Xz,,,,,xm,y)j(xI,xz,,,,,xm'Y) (5.5-15)
Other compositions may be used as well, such as the max-product or, more
generally max- *, to obtain the membership function of the new consequent
and when discrete fuzzy sets are used we obtain
B (see Chapter 3).
I
(5.5-16) Hirota, K., and Ozawa, K., Fuzzy Flip-Flop as a Basis of Fuzzy Memory Modules,
in Fuzzy Computing Theory, Hardware, and Applications, M. M. Gupta and
The membership function in (5.5-15) or (5.5-16) can be obtained from the T. Yamakawa, eds., ElsevierjNorth-Holland, Amsterdam, 1988, pp. 173-183.
implication relation of the individual roles and appropriate interpretation of Huertas, J. L., Sanchez-Solano, S., Barriga, A., and Baturone, 1., Serial Architecture
the connectives AND and ELSE. Once the algorithrnic relation is known, for Fuzzy Controllers: Hardware Implementation Using AnalogjDigital VLSI
GMP may be used to obtain an output B' given inputs A'i' A'Z"'" A'm- Techniques, in Proceedings of the 2nd Intemational Conference on Fuzzy Logic and
that is, Neural Networks, JIZUKA '92, lizuka, Japan, July 17-22, 1992, pp. 535-539.
Isik, C., Inference Hardware for Fuzzy Rule-Based Systems, in Fuzzy Computing
if isAl1 AND X2 is A21 AND ···AND xlm isAml theny is BI ELSE
Xl Theory, Hardware, and Applications, M. M. Gupta and T. Yamakawa, eds.,
Elsevier jNorth-Holland, Amsterdam, 1988, pp. 185-194.
if Xl isA12 AND X2 isA22 AND ···AND xm is Am2 theny is B2 ELSE
Kandel, A., Fuzzy Mathematical Techniques with Applications, Addison-Wesley,
Reading, MA, 1986.
Larsen, P. M., Industrial Applications of Fuzzy Logic Control, Intemational Joumal of
if XI isAln AND x2 is A2n AND ···AND xm is Amn theny is B; Man-Machine Studies, Vol. 12, No. 1, 1980, pp. 3-10.
Lee, C. c., Fuzzy Logic in Control Systems: Fuzzy Logic Controller+-Part-I, IEEE
XI isA'I X2 is A'2 xm isA'm
Transactions on Systems, Man and Cybemetics, Vol. 20, No. 2, pp. 404-418, 1990a.
y is B' Lee, C. C., Fuzzy Logic in Control Systems: Fuzzy Logic Controller+-Part-Il, IEEE
Transactions on Systems, Man and Cybemetics, Vol. 20, No. 2, pp. 419-435,
(5.5-17) Marchj April 1990b.
144 LlNGUISTIC OESCRIPTIONS ANO THEIR ANALYTICAL FORMS
occurs one gets different types of fuzzy functions. The problem is this:
Set up a fuzzy function that will take as input ambient temperatures and
will produce as output energy demand to a power plant. There are no
unique solutions, but rather, different approaches to formulating the
solution. State clearly, what could be fuzzy in this problem; what assump-
tions you need to make; what crisp function, if any, you start with. Also,
give the functional form and test it. Does it make sense? Could you get
higher energy demand for lower temperatures from your model?
12. Given the assumptions made in Problem 11, find a fuzzy algorithm that
describes the same general relation as the fuzzy function you developed
in Problem 11.