Unit-4 Application of Soft Computing
Unit-4 Application of Soft Computing
Unit 4
Membership Functions (MF’s)
• A fuzzy set is completely characterized by a membership
function.
– a possibility measure.
– not a probability measure.
“tall” in Asia
Membership
1
“tall” in USA
value
“tall” in NBA
0
5’10” height
Fuzzy Partitions
• Fuzzy partitions are formed by the linguistic values “young”,
“middle aged”, and “old”.
Commonly used membership functions
• Triangular MF
• Trapezoidal MF
• Gaussian MF
• Generalized bell MF
• Sigmoid MF
Modules of FLC
• The basic configuration of fuzzy logic controller (FLC) is
shown in Figure.
Input Output
Fuzzification Defuzzification
Inference Engine
Inte rface Inte rface
5
Fuzzy If-Then Rules
AB If x is A then y is B.
antecedent consequence
or or
premise conclusion
27
Knowledge Base and Fuzzy Inference
• Data base and rule base are the two components of knowledge base
of an FLC.
28
Contd……
29
Defuzzification
– Centre of sums
30
Centre of gravity method
• The crisp output value, say x*, for a continuous membership function is
expressed as:
x*
μ(x).xdx
μ(x)dx
31
Contd…..
32
Cond….
• On the other hand, for a discrete membership function, the integration is
replaced by summation.
n
μ(xi ).xi
x* i 1
n
μ(xi )
i 1
• where, n represents number of samples, xi’s are the elements and μ(xi) is
its membership value.
33
Mean of maxima method
• It may happen that several such points exit and a common practice is to
take the mean of maxima (MOM). This method is mainly used with discrete
output membership functions. The defuzzified output in this case is given
as:
•
n
xi
x M
x*M={
• where, ixi | μ(xi) is equal to the height of fuzzy set}
M
34
Mean of maxima method
35
Centre of sums method
• The overlapping area in centroid method is considered only once, whereas
in centre of sums (COS) method the overlapping area is counted twice. The
defuzzified output x* in this case is given as:
N n
xi μAk (xi )
x* i 1 k 1
N n
μAk (xi )
i 1 k 1
• where, n is the number of fuzzy sets and N is the number of fuzzy variables.
• This method is also quite popular due to its easy implementation and fast
inference cycles.
36
37