FUZZY LOGIC - AN INTRODUCTION
by Steven D. Kaehler
This is the fourth in a series of six articles intended to share information and experience in the realm of fuzzy logic (FL) and its application. This article will continue the example from Part 3 by introducing membership functions and explaining how they work. The next two articles will examine FL inference and defuzzification processes and how they work. For further information, several general references are included at the end of this article.
In the last article, the rule matrix was introduced and used. The next logical question is how to apply the rules. This leads into the next concept, the membership function.
The membership function is a graphical representation of the magnitude of participation of each input. It associates a weighting with each of the inputs that are processed, define functional overlap between inputs, and ultimately determines an output response. The rules use the input membership values as weighting factors to determine their influence on the fuzzy output sets of the final output conclusion. Once the functions are inferred, scaled, and combined, they are defuzzified into a crisp output which drives the system. There are different membership functions associated with each input and output response. Some features to note are:
SHAPE - triangular is common, but bell, trapezoidal, haversine and, exponential have been used. More complex functions are possible but require greater computing overhead to implement.. HEIGHT or magnitude (usually normalized to 1) WIDTH (of the base of function), SHOULDERING (locks height at maximum if an outer function. Shouldered functions evaluate as 1.0 past their center) CENTER points (center of the member function shape) OVERLAP (N&Z, Z&P, typically about 50% of width but can be less).
The degree of membership (DOM) is determined by plugging the selected input parameter (error or error-dot) into the horizontal axis and projecting vertically to the upper boundary of the membership function(s).
ERROR & ERROR-DOT FUNCTION MEMBERSHIP
The degree of membership for an "error" of -1.0 projects up to the middle of the overlapping part of the "negative" and "zero" function so the result is "negative" membership = 0.5 and "zero" membership = 0.5. Only rules associated with "negative" & "zero" error will actually apply to the output response. This selects only the left and middle columns of the rule matrix.
For an "error-dot" of +2.5, a "zero" and "positive" membership of 0.5 is indicated. This selects the middle and bottom rows of the rule matrix. By overlaying the two regions of the rule matrix, it can be seen that only the rules in the 2-by-2 square in the lower left corner (rules 4,5,7,8) of the rules matrix will generate non-zero output conclusions. The others have a zero weighting due to the logical AND in the rules.
There is a unique membership function associated with each input parameter. The membership functions associate a weighting factor with values of each input and the effective rules. These weighting factors determine the degree of influence or degree of membership (DOM) each active rule has. By computing the logical product of the membership weights for each active rule, a set of fuzzy output response magnitudes are produced. All that remains is to combine and defuzzify these output responses.
 "Fuzzy but Steady" (1991 Discover Awards) (Discover, Vol. 12, Dec. 1991, pp. 73).
 "Neural Networks and Fuzzy Systems--A Dynamic Systems Approach to Machine Intelligence" by B. Kosko (Prentice-Hall, Englewood Cliffs, N.J., 1992).
 "Putting Fuzzy Logic into Focus" by Janet J. Barron (Byte, Vol. 18, Apr. 1993, pp. 11).
 "Putting Fuzzy Logic in Motion" by Dr. P. Miller (Motion Control, April 1993, pp. 42-44).
File: FL_PART4.HTM 2-13-98