Fuzzy Set Note 1
Fuzzy Set Note 1
Introduction
1.6 Soft Computing
The wo major problem-solving technologies include:
1. hard computing:
2. soft computing.
Hard computing deals with precise models where accurate solutions are achieved quickly. On the other
hand. soft computing deals with approximate models and gives solution to complex problems. The two
problem-solving technologies are shown in Figure 1-2.
Soft computing is a relatively new concept, the term really entering general circulation in 1994. The term
soft computing" was introduced by Professor Lotfi Zadeh with the objective of exploiting the tolerance
for imprecision, uncertainty and partial truth to achieve tractability, robustness, low solution cost and better
rapport with reality. The ultimate goal is to be able to emulate the human mind as closely as possible. Soft
computing involves partnership ofseveral fields, the most inmportant being neural networks, GAs and FL. Also
included is the ficld of probabilistic reasoning, employed for its uncertainty control techniques. However, this
field is not examined here.
Soft computing uses a combination of GAs, neural networks and FL. A hybrid technique, in fact, would
inherit all the advantages, but won't have the less desirable features of single sofi computing components. It
has to possess a good learning capacity, a better learning time than that of pure GAs and less sensitivity to
theproblem of local extremes than neural networks. In addition, it has to generate a fuzy knowledge base,
which has a
linguistic representation and avery low degree of computational complexity.
An important thing about the constituents of soft computing is that they are
complementary, not compet
itive, offering their own advantages and techniques to partnerships to allow solutions to otherwise unsolvable
problems. The constituernts of soft computing are examined in turn, following which existing applications of
partnerships are described.
"Negotiation is the communication process of a group of agents in order to reach a mutually accepted
agreement on some matter. This definition is typical of the research being done into negotiation and co-
ordination in relation to sofrware agents. It is an obvious necessity that when multiple agents interact, they
will be required to co-ordinate their efforts and attempt to sort out any conflicts of resources or interest.
lt is important to appreciate that agents are owned and controlled by people in order to complete tasks on
their behalf. An example of a possible multiple-agent-based negotiation scenario is the competition between
long-distance phone call providers. When the consumer picks up the phone and dials, an agent will com-
municate on the consumer's behalf with all the available network providers. Each provider will make an
offer that the consumer agent can accept or reject. A realistic goal would be to select the lowest avail
able price for the call. However, given the first round of offers, nerwork providers may wish to modity
their offer to make it more competitive. The new offer is then submitted to the consumer agent and the
process continues until a conclusion is reached. One advantage of this process is that the provider
can
dynamically alter its pricing strategy to account for changes in demand and competition, theretore max
imizing revenue. The consumer will obviously benefit from the constant competition berween providers.
Best of all, the process is entirely autonomous as the agents embody and act on the beliefs and con
straints of the parties they represent. Further changes can be made to the protocol so that providers
can bid low without being in danger of making a loss. For example, if the consumer choses to go
with the lowest bid but pays the second lowest price, this will take away the incentive to underbid or
overbid.
Much of the negotiation theory is based around human behavior models and, as a result, it is often trans-
lated using Distributed Artificial Intelligence techniques. The problems associated with machine negotiation
and
are as dificult to solve as they are with human negotiation and involve issues such as privacy, security
deception.
1.7 Summary
neural networks whose ability to learn by example makes them
The computing world has a lot to gain from
very flexible and powerful.
In case of neural networks, there is no need to devise an algorithm to performa
internal mechanisms of that task. Neural networks are
specific task, i.e., there is no need to understand the times, which are due
also well suited for real-time systems because of their fast response and computational
to their parallel architecture.
as neurology and psychology. They are
Neural networks also contribute to other areas of research such
and to investigate the internal mechanisms of the brain.
regularly used to modei parts of living organisms networks
networks is the possibility that someday "conscious"
Perhaps the most exciting aspect of neural that
believe that consciousness is a "mechanical" property and
might be produced. Today, many scientists
"conscious" neural networks area realistic possibility.
and handling data but has proven to be an excellent
Fuzzy logic was conceived as a better method for sorting
choice for many control system applications since it mimics human
control logic. It can be built into anything
It uses an inprecise but very
from small, hand-held products to large, computerized process control systems. when
like a human operator. It is robust and often works
descriptive language to deal with input data more
first implenented with little or no tuning
GAs can be used to search
When aplied to optimize ANNs for forecasting and classification problems,
for the right combination of inpur data, the most suitable forecast
horizon, the optimal or near-optimal
and the control parameters (learning rete,
network interconnection patterns and weights among the neurons,
criteria. Like ANNs,
momentum rate, tolerance level, etc.)
based on the training data used and the pre-set
an acceptable solution
cases, you can arrive at
GAs do not always guarantee you a perfect solution, but in many
without the time and expense of an exhaustive search.
term really entering general
circulation in 1994, coined by
Soft computing is a relatively new concept, the
it several fields of comput
Professor Lotfi Zadeh of the University of California, Berkeley, USA, encompasses
GAs. Neural networks are
The three that have been examined in this chapter are neural networks, FL and
ing. and GAs
FL for its exploitation of partial truth and imprecision,
important for their ability to adapt and learn,
ntroduction to Fuzzy Logic,
lassical Sets and Fuzzy Sets 7
Learning Ubjectives
Definition of classical sets and fuzzy sets. Solved problems performing the operations
The various operations and properties of and properties of fuzzy sets.
the fuzay
where logic method born in
ement about is behavior, eventually arriving point ofcomplexiry
at a
provides a
O n granularity. The fuzzy theory
that enables
Figure 7-1 A fuzzy logic system accepting imprecise data and providing a decision,
offuzzy sets lies in their ability to model uncertain or ambiguous data and to provide suitable decisian.
Figure 7-1. ons as in
Though fuzzy logic has been applied to many fields, from control theory to artificial intelligence
remains controversial among most statisticians, who preter Bayesian still
logic, and some control engineers, who
prefer traditional two-valued logic. In fuzzy systems, values are indicated by a number (called a
ranging from 0 to 1, where 0.0 represents absolute falseness and 1.0 represents absolute truth.truth valuel
range evokes the idea of probability, fuzzy logic and fuzzy sets operate quite
While thie
difterently
Fuzzy sets that represent fuzzy logic provide means to model the uncertainty associated with
from probability,
imprecision and lack of information regarding a problem or a plant or a system, etc. Consider thevagueness,
of a "short person". For an individual X, a short meaning
person may be one whose height is below 425". For
individual Y, a short person may be one whose other
height is below or equal to 3 90". The word "short is called a
linguistic descriptor. The term "short" provides the same meaning to individuals Xand Y, but it can
that they both do not provide a be seen
unique definition. The term "short" would be conveyed effectively
a
computer compares he given height value with the pre-assigned value of "short". This only when
called as linguistic variable which variable "short" is
represents the imprecision existing in the system.
The basis of the theory lies in
to 1.0. The
making the membership function lie over a range of real numbers from 0.0
fuzzy set is dharacterized by (0.0,0,1.0). Real world
is vague and assigning rigid values to linguistic
variables means that some of the
arise from ignorance, from chance and
meaning and semantic value is
invariably lost. The uncertainty is found to
the fuzziness
randomness, due to lack of knowledge, from
vagueness (unclear), like
existing in our natural language. Dr. Zadeh proposed the set
decisions when uncertainty occurs. Consider
the "short" example discussed
membership idea to make suitable
a
height equal to or less than 4 feet, then 3 90" would easily become the previously. If we take "short as
will not be a member of the set member of the set "short" and 4 2
"short." The membership value is "1" if
is not a member of the set. it belongs to the set and "0 it t
Thus membership in a set is
member of a set or not. It can be found to be
binary. that is, either the element is 2
indicated as
XAo)= *EA
0, x A
where XA (x) is the
membership of element x in the
Ifit is said that the height is 56" (or 168 cm), oneset A and A is the entire set on the universe
it asshort or not short (i.e., might think a bit before deciding whether to ider
tall). Moreover, one
make the statement
"John is short", and give it a might reckon it as short for a man
truth value of 0.70. If 0.70
ma but tall for a woman.
alue, it
would be read as "There is a 70%
short or not short, and there
chance that John is short," represented a
proba ither
exists 70% chance meaning
of knowing which group he
that itisis still
s believed thatJohn is
actually translates to "John's degree of belongs to. But
ru
inology
that if all the
(fuzzy set of) short people membership
are
in the set of short
considered and lined up. people
is
0.70, y vay to the
shortest. In conversation, it is John positioned 700 o
is
demarcation between short and generally said that John is "kind of" short s n o
d e t i n i t e
253
1
Tall
Membership
0.5
Membership
0.5
Height (cm)
"medium"' and "tall.
for fuzzysets "short,"
Figure 7-3 Graph showing membership functions
Introduction to Fuzzy Logic, Classical Set
254 a Sets and
X- universe of discourse
Fuzy Sets
capture vagueness exclusively via membership functions that are mappings from a given universe ofdice
Xto a unit interval containing membership values. It is important to note that membership can ta ourse
berween 0 and 1. values
Fuzziness describes the ambiguity event and randomness describes the
of an uncertainty in the occurrenceof
an event. It can be generally seen in classical sets that there is no
uncertainty, hence they have crisp boundaries
but in the case of a fuzzy set, since uncertaintry occurs, the boundaries may be ambiguouslyspecitied
From Figure 7-4 it can be noted that "d" is clearly a member of fuzzy set P, "e" is not a
of fuzzy set Pand the membership of "" is found to be vague. Hence "d can take membership value 1,
clearly memie
can take
membership value 0 and "b' can take membership value between 0 and 1 [0 to 1], say 0.4, 0.7, etc
This is said to be a partial membership of fuzzy set P
The membetship function for a set maps each element of the set to a membership value berween 0
and 1 and uniquely describes that set. The values 0 and I describe "not belonging to" and "belonging to' a
conventional set, respectively; values in between represent "fuzziness." Determining the nmembership function
to varying
degrees of the
is subjective depending
on the situation. It on an individua>'s
depends perception
in and does randomness. This concept is important and distinguishes fuzy
data question
theory from probability theory
depend
not on set
Fuzzy logic also consists of fuzzy inference engine or fuzzy rule-base to perform approximate reasonl
somewhat similar (but much seems
to
primitive than) that of the human brain. Computing with wo
more
to be a
slightly futuristic phrase today since only certain aspects of natural language can be repie
the calculus of
fuzzy sets; still fuzzy logic remains one of the most practical ways to mimc pert
h
in a realistic manner.
The fuzzy approach uses a premise that humans dont
represent
eg clas of bald men" or the "class of numbers which are much greater than 50") as fully dis
non
atner as sets in which there may be grades of membership intermediate between full membct
n t u a t n v e
manner.
concept to
treat fu2
breat
"IFAD
Fuzzy sets form the building blocks for fuzzy IF-THEN rules which have the
the general
form
lHEN Y s B, "where A and B are genct to systes
that.
A
consequent. fuzzy system is a set of 0
to outputs
outputs. combines
Auuzy logic principles. From a knowledge representation viewpoint, a fuzzy IF-THEN rule is a
/ h a s e d
capturing knowledge that involves imprecision. The main feature of reasoning using these rules is
sheme.
for«
maiching capabiliry, which enables an inference to be made from a fuzzry rule even when the rules
is only partially satisfied.
ndiion
a stems, on one hand, are rule-based systems that are constructed from a collection of linguistic
n the oher hand, fuzzy systems are nonlinear mappings of inputs (stimuli) to outputs (responses), that
rtin ypes of fuzzy systems can be written as compact nonlinear formulas. The inputs and outputs can
Dumbers o r vecto vectors of numbers. These rule-based systems can in theory model any system with arbitrary
aCy, that is, they work as universal approximators.
The Achilles heel of a fuzzy system is its rules; smart rules give smart systems and other rules give less
maf Of cven dumb systems. The number of rules increases exponentially with the dimension of theinpu
AEe (number of system variables). This rule explosion is called the curse of dimensionality and is a general
noblem for mathematical models. For the last 5 years several approaches based on decomposition, (cluster)
values of x
Al)= 1 ifx ¬A
The set with
A)0 ifx¢A
of an
no elements is
defined as an empty set or
impossible
The set which
event is denoted
by a null
set, and the
null set. It is denoted
by symbol o. The occurence
consists of all occurrence of a certain event
possible subsets of a given set A is called a indicates a whole set
power set and is denoted as
PA) = {xl*CA)
For
crisp sets A and B
containing some elements in universe X, the
notations used are given
below
xEAx
A>
x
belongs to A
does not x
xEX>xbelongs tobelong
to A
7.2.1 Operations on
Classical
Classical Sets
sets can
be
difference. All these manipulated through numerous i n t e r s e c t i o n , complementand
operations are
defined and exr
perations such as union,
ope
explained in the following tions.
Sets)
(Cmsp
ical
Sets
257
t 2 1 . 1 Uhion
nion berwe
een (wo sets gives all thoSe elements in the
universe that belong to either set A or set B or
The and
R The
B. The union operation can be termed as a
logical OR operation. The union of two sets A
othsets
A
and
B1s
givenas
The
union
ers Aand Bis illustrated by the Venn diagram shown in Figure 7-6.
12.1.2 I n t e r s e c t i o n
The intersection berween two sets represents all those elements in the universe that simultaneously belong to
Luh the sets. The intersection operation can be termed as a logical AND operation. The intersection of sets
boch the .
121.3 Complement
The complement of set A is defined as the collection of all elements in universe X that do not reside in set A,
ie, the entities that do not belong to A. It is denoted by A and is defined as
A= Mx 4 A,x EX}
where X is the universal set and A is a given set formed from universe X. The complement operation of set A
shown in Figure 7-8.
(0.)
Figure 7-7 Intersection of rwo sets.
(A) (B)
Figure 7-9 (A) Difference A|B or (A- B); (B) difference B\A or (B- A).
ng to
A) =
B--(BNA) =
{rlx ¬ Band x ¢ A}}
The above operations are shown in Figures 7-9(A) and (B).
7.2.2 Properties of Classical Sets
The important properties that define classical sets and show their similarity to
fuzzy sets are as follows:
1. Commutativity
AU(BUC) =
(AU B)UC; An (Bn C) =
(ANB)nC
3. Distributivity
IfAC BC Cthen
6. Identity AgC
AUD= A, An¢=¢
AUX=X, AnX=X
(Crisp Sets)
Classicalsets
19 259
Involution
(doubl
negation)
7.
=A
excluded middle
8.
Law of
AUA = X
contradiction
9, Law of
AnA =¢
10. DeMorgan's law
XACr)=, xeA
XA)=0, x4 A
where XA the membership in set A for element x in the universe. The membership
is concept represents
mapping from an element x in universe X to one of the two elements in universe Y (either to element 0
or 1). There exists a function-theoretic set called value set VA) for any set A defined on universe X, based on
the mapping of characteristic function. The whole set is assigned a membership value 1, and the null set is
assigned a membership value 0.
Let A and B be rwo sets on universe X. The function-theoretic forms of operations performed between
these two sets are given as follows:
1. Union (AUB)
XAnBx)=XAx)AXBx) =
min{xal), xsl)}
Here A is the minimum
3. Complement (A)
operator.
xa) = 1-xalx)
260 Introduction to Fuzzy Logic, Classical
gical Seta
Sets and
4. Containment
Fuzzy Seta
*2 3
In the above
representations of fuzzy sets for discrete and continuous universe, the horizontal bar s
two
not a
quotient butdelimiter. The numerator in each
a
representation is the
universe present in the denominator. Formembership
is associated with the element value in set tn
discourse U, the summation
of the discrete and finite unive of
but indicates the collection
symbol in the
representation of fuzzy set A does not denote algebraic sumu ation
fuzzy set can also be called whole fuzzy set. posible members considercu.
3 F U Z z yS e t s
261
c o l l e c t i o n
n
of allfuz
afall fuzzy sets and
fuzzy subsets on universeU is called
The
erlap,
can
dinality the ca of the fuzzy power set PMU).
fuzzy power set, npU) is infinite, Since all the
h u r z y
sets
the
O an the
o n the
universe, the following unction theoretic operations of union, intersection and complement
mentx
and B on Uu
e defined for fuzzy
sets
23.1.1 Union
23.1.2 Intersection
4anela) =
KA
sets 4 and .
Figure
7-10 Union offuzzy
Introduction to Fuzzy Logic, Classical Sets and Fir:
262 Fuzzy Set
K
X
0
7.3.1.3 Complement
When 4z) e [0, 1), the complement of 4, denoted as 4 is defined by
zr) =
1-ug() for all x ¬ U
The Venn diagram for complement operation of fuzy set A is shown in Figure 7-12.
Ha+alor)=4)+gle)-ua)-ugl)
2. Algebraic product: The algebraic product (4 ) of two fuzzy sets 4 and B is defined as
Heel)=4aa)ngle)
****
******* *******
bounaeaa rnThe
bounded diffcrence (4 O oftwo fuzzy sets 4 and Bis defined as
HyOE)=max{0, A,ls)-1Hg&))
Sets
Properties of Fuzzy
78.2
ofcontradiction.
follow the same properties
as crisp sets except for the law ofexcluded middle and law
Kuzyset
tor fuzzy
set4
Thatis,
4U4U 4n4#¢
Fræquentlyused properties
offuzzy sets are given as follows:
I.Commutativity
4U8=BU4 4nB=Bnd
2. Associativity
AUBUC) = 4UBUG
AnBnG) = 4nBng
3. Distributivity
AUBnG) = 4UÐn AUC)
AnBUC) = 4nBU4ng)
4.ldempotency
4Ud 4 4nd=4
5. ldentiry
Uuniversal set)
4UU=
AUd=4 and
4n= and 4nU=4
7. Transitivity
If4SBE G
then dEC
De Morgan's law
JUR-nEJ0=4uB
264
Introduction to Fuzzy Logic, Cassical Sets and Fuzzy Ss
Sets
7.4 Summary
In this
chapter, we
have discussed the basic
definitions, properties and operations on classical sets
Fuzzy sets are the tools that convert the
sets.
and furz
concept of fuzzy logic into algorithms.
partial membership, they provide
computer with such algorithms that extend binary
Since fuzzy sets allow
take human-like decisions.
In other words, logic and enable it to
fuzzy sets can be
thinking is transferred to a computer. One difference between thought of as a media
through which the human
do not follow the law
of excluded middle and law of
fuzzy sets and classical sets is
that the former
intersection and union contradiction. Hence, it we want to
choose fuzz
and
operations which satisfy these laws, then the operations will not
idempotency. Except the difference of set membership being an infinite valued satisfy distributiviry
binary valued quantity, fuzzy sets are treated in the same mathematical form as
quantiy instead of
classical sets.
nAX)= 2 = 23 = 8
B=1-4e)=t6t3
(d) Difference
2. Consider two
given fuzzy sets
dl 4nB= | 2+4 6 8
-
0.4 Bld Bn=+
3. Given the
Perform union, intersection, two fuzzy sets
difference and com-
plement over fuzzy sets A and B. 0.75 0.3 0.15 0
Solution: For the given fuzzy
following
sets we have the 1.015t20t25 t 30
0.6 0.2 0.1
(a) Union 1.5 2.0T 25 T 3.0o
AUB= max{uar), ug(x)) find the following
Bn-16+2+
Solution: For the given fuzzy sets we have
a &-1+152025t30 (a) Dup)
) BUBi =
0.75 0.7 0.85 =
max
{p, (), Px))
.5 T 2.0 2.5 - .35 + 0.95
30 40
) 0.2 0.1
Bn=+ 20+ 25t3.0 (b) upn )
= min {up, ) , up, ()}
( 0.8 0.9
u=
. It is
1t1.5t 2.0 2.5
necessary to compare two sensors baSed upon
3.0 -1
0.2
10
0.25
20
0.65
30
0.85
40
+
50
their
or
detection levels and gain
settings. The table (c)D
gain settings and sensor detection levels with
a
standard item being monitored = 1-up ()
given
represent the detection
in Table l.
-
10 20
, 30 40 +50
266 Introduction to Fuzzy Logic, Classical Sets and Fuzzy
Seto
(d) ) Find the following:
= l - u p , ()
(i) upilD
-0 20 50
0.05
40
0
50
()Plane =1-4plane )
train bike boat plane house
0 0.35 0.25
0.35 0.15 0 (e) Plane|Train
10 20
30 40350 = Plane Train
5. Design computer software to perform image
a
image are:
sets
representing plane a and a train
-in train bike boat plane
house
Plane=0.2
+
0.5 0.3 0.8 o.1 (f) Plane UTrzin
bike boat plane house =l-
0.2 0.4
max{4plane (x), UTrain (*)}
0.5 0.2 0.8
Traintrain bike boat = 4 0.5 0.6 0.2
plane T house
plane house trainbike T boat
15SolvedProblems
267
n Train Solution: For the
Plane
(g -1 - min|u Plane 7),jATHain(a)) two given fuzzy sets we have the
following:
0.8 0.8 0.7 0.5 0.9 (a) 4UB
train Dike boat *plane *house
= max{4al), ugl«)}
U Plane
(h) Plane = 0.75 0.5
max|4Plane(W),MPlne t)} 0.64 0.645
0.8 0.5 0.7 0.8 0.9 0.65 0.655 0.66
0.9
trainbike boat plane house (b) 4nB
)PlanePlane = min{ug),. pgl)}
0 0.25 0.75
+ 0.5 7.
7. For
o r the
the owo give fuzzysets
twogiven
0.64 0.645 0.65 0.655 0.66
-
(c) =1-ul)
-
+ + (n) AnB= min{4z), Hzl«)}
d) = 1-4g(*)
8. Let U be the universe of
military aircraft of
interest as defined below:
Solution: We have
9. 269
AUB= max(mao), 4g(x)} Consider two fuzzy sets
0.4 0.8
=
=uJtx):up(x)
- 9 -
0.02
[uztr)-ugl«)] 1 3
J0 0.3 1.0, 1.0
-
-190.10.40.605 05
-
2 3t 4t5
operations involved in
opetrfuzzy sets.