Download presentation
Presentation is loading. Please wait.
Published byBarbra Pearson Modified over 8 years ago
1
Ming-Feng Yeh2-32 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.
2
Ming-Feng Yeh2-33 A Tutorial 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
3
Ming-Feng Yeh2-34 Choosing 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.
4
Ming-Feng Yeh2-35 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.
5
Ming-Feng Yeh2-36 Fuzzy Control System
6
Ming-Feng Yeh2-37 Putting Control Knowledge into 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.
7
Ming-Feng Yeh2-38 Linguistic 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.
8
Ming-Feng Yeh2-39 Linguistic 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
9
Ming-Feng Yeh2-40 How 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.
10
Ming-Feng Yeh2-41 Quantification 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.
11
Ming-Feng Yeh2-42 Fuzzy 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.
12
Ming-Feng Yeh2-43 Linguistic 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.
13
Ming-Feng Yeh2-44 Form of Linguistic Rules General form: If premise Then consequent The 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”.
14
Ming-Feng Yeh2-45 Rule Bases (Tables) For the pendulum problem, with two inputs and five linguistic values for each of these, there are at most 5 2 = 25 possible rules. Tabular representation of linguistic rules: neglarge: -2 negsmall: -1 zero: 0 possmall: +1 poslarge: +2
15
Ming-Feng Yeh2-46 Membership Functions for 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.
16
Ming-Feng Yeh2-47 Fuzzification 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.
17
Ming-Feng Yeh2-48 Inference 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.
18
Ming-Feng Yeh2-49 Premise Quantification via Fuzzy Logic “error is zero and change-in-error is possmall”
19
Ming-Feng Yeh2-50 Certainty of Premise If error is zero and change-in-error is possmall Then force is negsmall. Minimum: Product: Consider all possible e(t) and de(t)/dt values, we will obtain a multidimensional membership function
20
Ming-Feng Yeh2-51 Determining Which Rules Are 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.
21
Ming-Feng Yeh2-52 Numerical Example The rules that have the premise terms “error is zero” “change-in-error is zero” “change-in-error is possmall” are on.
22
Ming-Feng Yeh2-53 Determining Which Rules Are On If error is zero and change-in-error is zero Then force is zero. If error is zero and change-in-error is possmall Then force is negsmall. We have at most two membership functions overlapping, we will never have more than four rules on at one time.
23
Ming-Feng Yeh2-54 Inference Step: Determining Conclusions Rule 1: If error is zero and change-in-error is zero Then 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.
24
Ming-Feng Yeh2-55 Determining Conclusion The membership function for the conclusion reached by rule (1) is given by min. operation: chop off the top
25
Ming-Feng Yeh2-56 Recommendation from 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.
26
Ming-Feng Yeh2-57 Recommendation from 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):
27
Ming-Feng Yeh2-58 Converting Decisions into Actions 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.
28
Ming-Feng Yeh2-59 Combining Recommendations
29
Ming-Feng Yeh2-60 Center of Gravity Defuz. : the center of the membership function of the consequent of rule (i) : the area under the membership function
30
Ming-Feng Yeh2-61 Range of Defuzzification Value
31
Ming-Feng Yeh2-62 Center-Average Defuz. Use the product to represent the implication
32
Ming-Feng Yeh2-63 COG 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.
33
Ming-Feng Yeh2-64 Graphical Depiction
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.