Download - Flnn
![Page 1: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/1.jpg)
INTRODUCTION TO FUZZY CONTROLLERS-PART 1
![Page 2: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/2.jpg)
![Page 3: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/3.jpg)
![Page 4: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/4.jpg)
![Page 5: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/5.jpg)
![Page 6: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/6.jpg)
• There are several ways to define the result of a rule, but one of the mostcommon and simplest is the "max-min" inference method, in which theoutput membership function is given the truth value generated by thepremise.
• Rules can be solved in parallel in hardware, or sequentially in software.The results of all the rules that have fired are "defuzzified" to a crisp valueby one of several methods. There are dozens, in theory, each with variousadvantages or drawbacks.
• The "centroid" method is very popular, in which the "center of mass" ofthe result provides the crisp value. Another approach is the "height"method, which takes the value of the biggest contributor.
•The centroid method favors the rule with the output of greatest area,while the height method obviously favors the rule with the greatest outputvalue.
![Page 7: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/7.jpg)
The diagram below demonstrates max-min inferencing and centroiddefuzzification for a system with input variables "x", "y", and "z" and an output variable "n". Note that "mu" is standard fuzzy-logic nomenclature for "truth value":
![Page 8: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/8.jpg)
Fuzzy control system design is based on empirical methods, basically amethodical approach to trial-and-error. The general process is as follows:
1. Document the system's operational specifications and inputs and
outputs.
2. Document the fuzzy sets for the inputs.
3. Document the rule set.
4. Determine the defuzzification method.
5. Run through test suite to validate system, adjust details as required.
6. Complete document and release to production.
![Page 9: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/9.jpg)
As a general example, consider the design of a fuzzy controller for a steamturbine. The block diagram of this control system appears as follows:The input and output variables map into the following fuzzy set:
![Page 10: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/10.jpg)
where:N3: Large negative. N2: Medium negative. N1: Small negative. Z: Zero. P1: Small positive. P2: Medium positive. P3: Large positive.
The rule set includes such rules as:
rule 1: IF temperature IS cool AND pressure IS weak, THEN throttle is P3.
rule 2: IF temperature IS cool AND pressure IS low, THEN throttle is P2.
rule 3: IF temperature IS cool AND pressure IS ok, THEN throttle is Z.
rule 4: IF temperature IS cool AND pressure IS strong, THEN throttle is N2.
![Page 11: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/11.jpg)
![Page 12: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/12.jpg)
Methods1 for defuzzifying fuzzy output functions
1. Max membership principle: (Also known as the height method)where z∗isthe defuzzified value
![Page 13: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/13.jpg)
Methods2 for defuzzifying fuzzy output functions
2. Centroid method: (also called center of area, center of gravity)
![Page 14: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/14.jpg)
Method 3 for defuzzifying fuzzy output functions
Weighted average method: (it is usually restricted to symmetrical output membership functions.)Z is the centroid of each symmetric membership function
![Page 15: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/15.jpg)
Weighted average method
As an example,
![Page 16: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/16.jpg)
Method 4 for defuzzifying fuzzy output functions
Mean max membership: (also called middle-of-maxima)
the maximum membership can be a plateau rather than a single point).
![Page 17: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/17.jpg)
![Page 18: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/18.jpg)
![Page 19: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/19.jpg)
![Page 20: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/20.jpg)
Z ^is the centroid of each symmetric membership function.
![Page 21: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/21.jpg)
According to the mean max membership method, Eq. (4.7), z∗is given by (6 + 7)/2 = 6.5 meters.
![Page 22: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/22.jpg)
![Page 23: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/23.jpg)
![Page 24: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/24.jpg)
FUZZY BASED TEMPERATURE CONTROL
There are 5 steps in implementing the Fuzzy Logic.
They are :
• Defining inputs and outputs.
• Fuzzification of input.
• Fuzzification of output.
• Create Fuzzy rule base.
• Defuzzification of output.
![Page 25: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/25.jpg)
Defining Inputs and Outputs For Fuzzy Logic ControlThis step involves the declaration of the range of inputs and outputs. This process ofdeclaring is called Universe of Discourse.
![Page 26: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/26.jpg)
![Page 27: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/27.jpg)
![Page 28: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/28.jpg)
![Page 29: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/29.jpg)
![Page 30: Flnn](https://reader036.vdocuments.net/reader036/viewer/2022062710/55a24ba31a28ab41088b45d4/html5/thumbnails/30.jpg)