+ All Categories
Home > Documents > 3. Fuzzy Control

3. Fuzzy Control

Date post: 19-Jan-2016
Category:
Upload: jase
View: 44 times
Download: 2 times
Share this document with a friend
Description:
3. Fuzzy Control. The primary goal of control engineering is to distill and apply knowledge about how to control a process so that the resulting control system will reliably and safely achieve high-performance operation . - PowerPoint PPT Presentation
33
Ming-Feng Yeh 2-1 3. Fuzzy Control 3. Fuzzy Control The primary goal of control engineering is to distill and apply knowledge about how to control a process so that the resulting control system will reliably and safely achieve high-performance operation. This section shows how fuzzy logic provides a methodology for representing and implementing our knowledge about how best to control a process.
Transcript
Page 1: 3. Fuzzy Control

Ming-Feng Yeh 2-1

3. Fuzzy Control3. Fuzzy Control

The primary goal of control engineering is to distill and apply knowledge about how to control a process so that the resulting control system will reliably and safely achieve high-performance operation.

This section shows how fuzzy logic provides a methodology for representing and implementing our knowledge about how best to control a process.

Page 2: 3. Fuzzy Control

Ming-Feng Yeh 2-2

A TutoriaA Tutoriall Introduction Introduction

The fuzzy controller is to be designed to automate how a human expert who is successful at this task would control the system.Human-in-the-loop to control the pendulum

Page 3: 3. Fuzzy Control

Ming-Feng Yeh 2-3

Choosing ProcedureChoosing Procedure

First, the expert tells us (the designer of the fuzzy controller) what information she or he will use as inputs to the decision-making process.

Next, we must identify the controlled variable. You want to make sure that the controller will have the proper information available to be able to make good decisions and have proper inputs to be able to steer the system in the directions needed to be able to achieve high-performance operation.

dttetedt

dtytrte )(),(),()()(

Page 4: 3. Fuzzy Control

Ming-Feng Yeh 2-4

Choosing Procedure (cont.)Choosing Procedure (cont.)

Once the fuzzy controller inputs and outputs are chosen, you must determine what the reference inputs are.For the inverted pendulum:

the control variable: the force (u) the reference input: r = 0

After all the inputs and outputs are defined for the fuzzy controller, we can specify the fuzzy control system.

Page 5: 3. Fuzzy Control

Ming-Feng Yeh 2-5

Fuzzy Control SystemFuzzy Control System

Page 6: 3. Fuzzy Control

Ming-Feng Yeh 2-6

Putting Control Knowledge Putting Control Knowledge into Rule-Basesinto Rule-Bases

The human expert shown in Fig. 2.3 provides a description of how best to control the plant in some natural language (e.g., English).

We seek to take this “linguistic” description and load it into the fuzzy controller, as in Fig. 2.4.

Page 7: 3. Fuzzy Control

Ming-Feng Yeh 2-7

Linguistic VariablesLinguistic Variables

Linguistic variables describe each of the time-varying fuzzy controller inputs and outputs.

error: e(t), change-in-error: de(t)/dt, force: u(t)

The choice of the linguistic variables has no impact on the way that the fuzzy controller operates; it is simply a notation that helps to facilitate the construction of the fuzzy controller via fuzzy logic.

Page 8: 3. Fuzzy Control

Ming-Feng Yeh 2-8

Linguistic ValuesLinguistic Values

Linguistic values that linguistic variables take on over time change dynamically.

neglarge (NL, negative large in size): -2 negsmall(NS): -1, zero (ZR): 0 possmall (PS, positive small in size): +1 poslarge (PL): +2

Page 9: 3. Fuzzy Control

Ming-Feng Yeh 2-9

How to Quantify KnowledgeHow to Quantify Knowledge

For the inverted pendulum r = 0 and e = r – y so that e = –y and de/dt = –dy/dt.

“error is poslarge”: the pendulum is at a significant angle to the left of the vertical.

“error is negsmall”: the pendulum is just slightly to the right of the vertical.

“error is zero”: the pendulum is very near the vertical position.

Page 10: 3. Fuzzy Control

Ming-Feng Yeh 2-10

Quantification StatementsQuantification Statements

The pendulum is moving counterclockwise.

“error is poslarge and change-in-error is possmall”:the pendulum is at the significant angle to the left of the vertical and, since dy/dt <0, the pendulum is moving away from the upright position.

“error is negsamll and change-in-error is possmall”:the pendulum is slightly to the right of the vertical and, since dy/dt <0, the pendulum is moving toward the upright position.

Page 11: 3. Fuzzy Control

Ming-Feng Yeh 2-11

Fuzzy RulesFuzzy Rules

(a) If error is neglarge and change-in-error is neglarge Then force is poslarge.

(b) If error is zero and change-in-error is possmall Then force is negsmall.

(c) If error is poslarge and change-in-error is negsmall Then force is negsmall.

Page 12: 3. Fuzzy Control

Ming-Feng Yeh 2-12

Linguistic RulesLinguistic Rules

A linguistic rule is formed solely from linguistic variables and values.

Since linguistic values are not precise representations of the underlying quantities that they describe, linguistic rules are not precise either.

Linguistic rules are simply abstract ideas about how to achieve good control that could mean somewhat different things to different people.

Page 13: 3. Fuzzy Control

Ming-Feng Yeh 2-13

Form of Linguistic RulesForm of Linguistic Rules

General form: If premise Then consequentThe premises (antecedents) are associated with the fuzzy controllers inputs.The consequents (actions) are associated with the fuzzy controllers outputs.Each premise (or consequent) can be composed of the conjunction (e.g., and, or) of several “terms”.

Page 14: 3. Fuzzy Control

Ming-Feng Yeh 2-14

Rule Bases (Tables)Rule Bases (Tables)

For the pendulum problem, with two inputs and five linguistic values for each of these, there are at most 52 = 25 possible rules.Tabular representation of linguistic rules:

neglarge: -2 negsmall: -1 zero: 0 possmall: +1 poslarge: +2

Page 15: 3. Fuzzy Control

Ming-Feng Yeh 2-15

Membership Functions foMembership Functions for Inputs and Outputr Inputs and Output

For the inputs e(t) and de(t)/dt, the outmost membership functions “saturate” at a value of one.For the output u, the outmost membership functions cannot be saturated for the fuzzy system to be properly defined.

Page 16: 3. Fuzzy Control

Ming-Feng Yeh 2-16

FuzzificationFuzzification

Fuzzification process as the act of obtaining a value of an input variable and finding the numerical values of the membership function(s) that are defined for that variable.

The membership function values as an “encoding” of the fuzzy controller numeric input values.

.1))((4)( tete possmall.5.0))(())((16)( tetete dt

dpossmalldt

dzerodt

d

Page 17: 3. Fuzzy Control

Ming-Feng Yeh 2-17

Inference ProcessInference Process

The premises of all the rules are compared to the controller inputs to determine which rules apply to the current situation. This “matching” process involves determining the certainty that each rule applies.The conclusions are determined using the rule that have been determined to apply at the current time. The conclusions are characterized with a fuzzy set (or sets) that represents that the input to the plant should take on various values.

Page 18: 3. Fuzzy Control

Ming-Feng Yeh 2-18

Premise Quantification viPremise Quantification via Fuzzy Logica Fuzzy Logic

“error is zero and change-in-error is possmall”

5.0))((

8)(

te

te

zero

25.0))((

32)(

te

te

dtd

possmall

dtd

Page 19: 3. Fuzzy Control

Ming-Feng Yeh 2-19

Certainty of PremiseCertainty of Premise

If error is zero and change-in-error is possmall Then force is negsmall.Minimum:Product:Consider all possible e(t) andde(t)/dt values, we will obtaina multidimensionalmembership function

25.0}25.0,5.0min{ premise125.025.05.0 premise

)(),( tete dtd

premise

Page 20: 3. Fuzzy Control

Ming-Feng Yeh 2-20

Determining Which Rules Determining Which Rules Are OnAre On

Determining the applicability of each rule is called “matching.”

A rule is “on at time t ” if its premise membership function

The inference mechanism seeks to determine which rules are on to find out which rules are relevant to the current situation.

0)(),( tete dtd

premise

Page 21: 3. Fuzzy Control

Ming-Feng Yeh 2-21

Numerical ExampleNumerical Example

The rules that have thepremise terms

“error is zero” “change-in-error is zero” “change-in-error is possmall” are on.

328)(,0)( tete etd

Page 22: 3. Fuzzy Control

Ming-Feng Yeh 2-22

Determining Which Rules Determining Which Rules Are OnAre On

If error is zero and change-in-error is zeroThen force is zero.If error is zero and change-in-error is possmall Then force is negsmall.We have at most twomembership functionsoverlapping, we willnever have more thanfour rules on at onetime.

Page 23: 3. Fuzzy Control

Ming-Feng Yeh 2-23

Inference Step:Inference Step:Determining ConclusionsDetermining Conclusions

Rule 1: If error is zero and change-in-error is zeroThen force is zero.

We are 0.25 certain that this rule applies to the current situation.

The rule indicates that if its premise is true then the action indicated by its consequent should be taken.

25.0}1,25.0min{)1( premise

Page 24: 3. Fuzzy Control

Ming-Feng Yeh 2-24

Determining ConclusionDetermining Conclusion

The membership function for the conclusion reached by rule (1) is given by

)}(,25.0min{)()1( uu zero

min. operation: chop off the top

Page 25: 3. Fuzzy Control

Ming-Feng Yeh 2-25

Recommendation fromRecommendation from One Rule One Rule

The membership function of the implied fuzzy set for rule (1):

The justification for the use of the minimum (product) operator to represent the implication is that we can be no more certain about our consequent than our premise.

)}(,25.0min{)()1( uu zero

Page 26: 3. Fuzzy Control

Ming-Feng Yeh 2-26

Recommendation fromRecommendation from Another Rule Another Rule

Rule 2: If error is zero and change-in-error is possmall, Then force is negsmall. The membership function of the implied fuzzy set for rule (2):

75.0}1,75.0min{)2( premise

)}(,75.0min{)()2( uu zero

Page 27: 3. Fuzzy Control

Ming-Feng Yeh 2-27

Converting Decisions into Converting Decisions into ActionsActions

Defuzzification operates on the implied fuzzy sets produced by inference mechanism and combines their effects to provide the “most certain” controller output (plant input).

Defuzzification as “decoding” the fuzzy set information produced by the inference process (i.e., the implied fuzzy sets) into numerical fuzzy controller outputs.

Page 28: 3. Fuzzy Control

Ming-Feng Yeh 2-28

Combining RecommendatiCombining Recommendationsons

crispu

Page 29: 3. Fuzzy Control

Ming-Feng Yeh 2-29

Center of Gravity Defuz.Center of Gravity Defuz.

: the center of the membership function of the consequent of rule (i)

: the area under the membership function

ib

)(i )(i

i i

i iicrisp bu

)(

)(

.10,0.0 21 bb

81.6

375.9

375.4

)2(

)1(

crispu

Page 30: 3. Fuzzy Control

Ming-Feng Yeh 2-30

Range of Defuzzification ValRange of Defuzzification Valueue

2020 cirspu

Page 31: 3. Fuzzy Control

Ming-Feng Yeh 2-31

Center-Average Defuz.Center-Average Defuz.

Use the product to represent the implication

),(25.0)()1( uu zero )(75.0)()2( uu negsmall

5.75.75.2

)5.7)(10()5.2)(0(

crispu

5.2area5.7area

Page 32: 3. Fuzzy Control

Ming-Feng Yeh 2-32

COG DefuzzificationCOG Defuzzification

The area of the implied fuzzy set is generally proportional to since it used to chop the top of (minimum) or scale (product) the triangular output membership function when COG is used for our example.

)(ipremise

i ipremise

i ipremiseicrisp bu

)(

)(

Page 33: 3. Fuzzy Control

Ming-Feng Yeh 2-33

Graphical DepictionGraphical Depiction


Recommended