Unit 3 - Soft Computing
Unit 3 - Soft Computing
Unit 3 - Soft Computing
E
Subject Name: Soft Computing
Subject Code: CS-8001
Semester: 8th
Downloaded from be.rgpvnotes.in
UNIT-3 Notes
Introduction
The word "fuzzy" means "vagueness". Fuzziness occurs when the boundary of a piece of
information is not clear-cut. Fuzzy sets have been introduced by Lotfi A. Zadeh (1965) as an
extension of the classical notion of set.
Human thinking and reasoning frequently involve fuzzy information originating from inherently
inexact human concepts. Human can give satisfactory answers, which are probably true.
However our systems are unable to answer many questions. The reason is, most systems are
designed based upon classical set theory and two-valued logic which is unable to cope with
unreliable and incomplete information and give expert opinions. Fuzzy set theory is an
extension of classical set theory where elements have degree of membership.
Crisp Relation
Let A and B be two relations defined on X x Y and are represented by relational matrices. The
following operations can be performed on these relations A and B:
Intersection: A ∩ B , = i [A , ,B , ]
Fuzzy relation
. U io /Fuzzy O‘
Let us consider the following ep ese tatio to u de sta d ho the U io /Fuzz O‘ elatio
o ks −
μA˜∪B˜ =μA˜ μB˜∀y∈U
Here ep ese ts the a ope atio .
Crisp logic (crisp) is the same as Boolean logic (either 0 or 1). Either a statement is true (1) or it
is not (0), meanwhile fuzzy logic captures the degree to which something is true. Consider the
state e t: The ag eed to et at o lo k ut Be as ot pu tual.
Crisp logic: If Ben showed up precisely at 12, he is punctual; otherwise he is too early or
too late.
Fuzzy logic: The degree, to which Ben was punctual, can be identified by on how much
earlier or later he showed up (e.g. 0, if he showed up 11:45 or 12:15, 1 at 12:00 and a
linear increase / decrease in between).
Crisp is multiple times in the closely related Fuzzy Set Theory FS, where it has been used to
disti guish Ca to s set theo f o )adeh s set theo .
Fuzzy Logic
Fuzzy logic is derived from fuzzy set theory dealing with reasoning that is approximate rather
than precisely deduced from classical predicate logic. Fuzzy logic is capable of handling
inherently imprecise concepts. Fuzzy logic allows in linguistic form the set membership values
to i p e ise o epts like slightl , uite a d e .
Membership Function
Definition: a membership function for a fuzzy set A on the universe of discourse X is defined as
µA: X → [ , ], he e ea h ele e t of X is apped to a alue etween 0 and 1. This value,
called membership value or degree of membership, quantifies the grade of membership of the
element in X to the fuzzy set A.
Membership functions allow us to graphically represent a fuzzy set. The x axis represents the
universe of discourse, whereas the y axis represents the degrees of membership in the [0, 1]
interval.
Simple functions are used to build membership functions. Because we are defining fuzzy
concepts, using more complex functions does not add more precision.
1. Triangular MFs
The parameters {a, b, c} (with a < b < c) determine the x coordinates of the three corners of the
underlying triangular MF.
2. Trapezoidal MFs
The parameters {a, b, c, d} (with a < b <= c < d) determine the x coordinates of the four corners
of the underlying trapezoidal MF.
3. Gaussian MFs
Fuzzy rules are linguistic IF-THEN- constructions that have the general form "IF A THEN B"
where A and B are (collections of) propositions containing linguistic variables. A is called the
premise and B is the consequence of the rule. In effect, the use of linguistic variables and fuzzy
IF-THEN- rules exploits the tolerance for imprecision and uncertainty. In this respect, fuzzy logic
mimics the crucial ability of the human mind to summarize data and focus on decision-relevant
information.
In a more explicit form, if there are I rules each with K premises in a system, the ith rule has the
following form.
In the above equation a represents the crisp inputs to the rule and A and B are linguistic
variables. The operator 1 can be AND or OR or XOR.
Example: If a HIGH flood is expected and the reservoir level is MEDIUM, then water release is
HIGH.
Another example comes from Kosko (1993). Figures 4.1 below illustrates the notion of a simple
fuzzy rule with one input and one output applied to the problem of an air motor speed
controller for air conditioning. Rules are given. Let us say the temperature is 22 degrees. This
temperature is "right" to a degree of 0.6 and "warm" to a degree of 0.2 and it belongs to all
others to a degree of zero. This activates two of the rules shown in Figure 4.2. The rule
responses are combined to give those shown in Figure 4.3 (thick lines).
Note 1. Air motor speed controller, Temperature (input) and speed (output) are fuzzy variables
used in the set of rules.
Note 2. Temperature of 22 deg. "fires" two fuzzy rules. The resulting fuzzy value for air motor
speed is "defuzzified .
Fuzzy Proposition
Fuzz p opositio s a e assig ed to fuzz sets. “uppose a fuzz p opositio P is assig ed to a
fuzz set A , the the t uth alue of the p opositio is p oposed T P = μA he e
μA
Therefore truthness of a proposition P is membership value of x in fuzzy set A.
The logical connectives like disjunction, conjunction, negation and implication are also defined
on fuzzy propositions.
P / Q : x is A and B
2. Negation
T(Pc) = 1 – T(P)
3. Disjunction
P V Q : x in A or B
4. Implication
P → Q : is A the is B
Fuzzy Decomposition
Fuzzy Decomposition can be done using IF-THEN rules. It is a known fact that a human being is
always comfortable making conversations in natural language. The representation of human
k o ledge a e do e ith the help of follo i g atu al la guage e p essio −
IF antecedent THEN consequent
The expression as stated above is referred to as the Fuzzy IF-THEN rule base.
Assignment Statements
These ki ds of state e ts use = e ual to sig fo the purpose of assignment. They are of the
follo i g fo −
a = hello
climate = summer
Conditional Statements
These ki ds of state e ts use the IF-THEN ule ase fo fo the pu pose of o ditio . The
a e of the follo i g fo −
IF temperature is high THEN Climate is hot
IF food is fresh THEN eat.
Unconditional Statements
The a e of the follo i g fo −
GOTO 10
turn the Fan off
Fuzzy Aggregation:
Having generated the truth of each rule in the rule base, we often have to aggregate them to
evaluate the truth of some derived statement. When aggregating a large number of fuzzy rules
(``clauses'') into a single fuzzy value, we can use the min, the max or a generalized mean
operator. In the case of rare events, the attributes are distributed in such a way that, except at
the extremes, the non-events always out number events. Optimal performance would,
therefore, be achieved when the fuzzy membership functions are non-zero only in the tail-end
of the distributions.
However, in the presence of one or more zeros in the clauses, we found that the minimum and
maximum operators failed because of their dependence on all or none of their arguments
holding while the generalized means got diluted. Consequently, we use an aggregation
operator defined as:
It can be readily verified that this operator satisfies the requirements of an aggregation operator. It
satisfies the boundary conditions and is monotonic non-decreasing in all its arguments. In addition, since
we sort the arguments in descending order before doing the weighted addition, it is symmetric in its
arguments.
Fuzzy Reasoning:
Follo i g a e the diffe e t odes of app o i ate easo i g −
Categorical Reasoning
In this mode of approximate reasoning, the antecedents, containing no fuzzy quantifiers and
fuzzy probabilities, are assumed to be in canonical form.
Qualitative Reasoning
In this mode of approximate reasoning, the antecedents and consequents have fuzzy linguistic
variables; the input-output relationship of a system is expressed as a collection of fuzzy IF-THEN
rules. This reasoning is mainly used in control system analysis.
Syllogistic Reasoning
In this mode of approximation reasoning, antecedents with fuzzy quantifiers are related to
i fe e e ules. This is e p essed as −
= “ A′s a e B′s
y = “ C′s a e D′s
------------------------
z = “ E′s a e F′s
Dispositional Reasoning
In this mode of approximation reasoning, the antecedents are dispositions that may contain the
fuzz ua tifie usuall . The ua tifie Usuall li ks togethe the dispositio al a d s llogisti
reasoning; hence it pays an important role.
For example, the projection rule of inference in dispositional reasoning can be given as follows
−
usually ( (L,M) is R ) ⇒ usuall L is [‘ ↓ L]
He e [‘ ↓ L] is the p oje tio of fuzz elatio ‘ o L
The output from FIS is always a fuzzy set irrespective of its input which can be fuzzy or
Characteristics of Fuzzy Inference System
A defuzzification unit would be there with FIS to convert fuzzy variables into crisp
variables.
Knowledge Base
Working of FIS
The o ki g of the FI“ o sists of the follo i g steps −
converts the crisp input into fuzzy input.
A knowledge base - collection of rule base and database is formed upon the conversion
of crisp input into fuzzy input.
The defuzzification unit fuzzy input is finally converted into crisp output.
Let us now discuss the steps involved in the decisio aki g p o ess −
Determining the Set of Alternatives − I this step, the alte ati es f o hi h the
decision has to be taken must be determined.
Evaluating Alternative − He e, the alte ati es ust e e aluated so that the de isio
can be taken about one of the alternatives.
Comparison between Alternatives − I this step, a o pa iso et ee the e aluated
alternatives is done.
Types of Decision
1. Individual Decision Making
In this type of decision making, only a single person is responsible for taking decisions. The
de isio aki g odel i this ki d a e ha a te ized as −
The goals and constraints stated above are expressed in terms of fuzzy sets.
Now consider a set A. Then, the goal and constraints for this set are given by –
FD=min[i∈XinnfGi(a),j∈XinmfCj(a)]
Decision making in this case includes several persons so that the expert knowledge from various
persons is utilized to make decisions.
Multi-objective decision making occurs when there are several objectives to be realized. There
are following two issues in this type of de isio aki g −
A=[a1,a2,...,ai,...,an]
Multi-attribute decision making takes place when the evaluation of alternatives can be carried
out based on several attributes of the object. The attributes can be numerical data, linguistic
data and qualitative data.
Mathematically, the multi-attribute evaluation is carried out on the basis of linear equation as
follo s −
Y=A1X1+A2X2+...+AiXi+...+ArXr
1. Aerospace
12. Transportation
I Patte ‘e og itio a d Classifi atio , fuzz logi is used i the follo i g a eas −