Top Banner
INTRODUCTION TO FUZZY CONTROLLERS-PART 1
30
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Flnn

INTRODUCTION TO FUZZY CONTROLLERS-PART 1

Page 2: Flnn
Page 3: Flnn
Page 4: Flnn
Page 5: Flnn
Page 6: Flnn

• 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

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

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

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

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
Page 12: Flnn

Methods1 for defuzzifying fuzzy output functions

1. Max membership principle: (Also known as the height method)where z∗isthe defuzzified value

Page 13: Flnn

Methods2 for defuzzifying fuzzy output functions

2. Centroid method: (also called center of area, center of gravity)

Page 14: Flnn

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

Weighted average method

As an example,

Page 16: Flnn

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
Page 18: Flnn
Page 19: Flnn
Page 20: Flnn

Z ^is the centroid of each symmetric membership function.

Page 21: Flnn

According to the mean max membership method, Eq. (4.7), z∗is given by (6 + 7)/2 = 6.5 meters.

Page 22: Flnn
Page 23: Flnn
Page 24: Flnn

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

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
Page 27: Flnn
Page 28: Flnn
Page 29: Flnn
Page 30: Flnn