Download presentation
Presentation is loading. Please wait.
1
Introduction to Fuzzy Logic
Fuzzy Inference Shadi T. Kalat 2/2 05/27/2016
2
Fuzzy Sets Fuzzy sets Crisp sets:
3
Membership Functions Triangular membership function
Trapezoidal membership function Membership Grade Membership Grade Gaussian membership function Generalized bell membership function Membership Grade Membership Grade
4
Fuzzy Rules Assume A is a fuzzy member of X π¦=π(π₯) π₯=π΄ π¦=π π΄ =π΅
π π΅ π¦ = π π΄ (π₯) π π΅ π¦ = π π΄ ( π β1 (π¦)) π π΅ π¦ βπππ₯ π π΄ (π₯) π₯= π β1 (π¦) π¦=π(π₯) π₯=π΄ π¦=π π΄ =π΅ πππππ= π¦= π₯ 2 ππππ π 2 =
5
Fuzzy Relations Max-Min Composition Max-Dot Product
π£βπ, π₯βπ, π¦βπ π π
π₯,π¦ =πππ₯ π π
1 π₯,π£ , π π
2 π£,π¦ π£βπ, π₯βπ, π¦βπ
6
IF THEN rules If π is π 1 and π is π 1 Then π’ is π’ 1 π( π’ 1 ) π( π 1 )
π( π 1 ) π 1 π 2 π π π’ π 1 π 1 π’ 1 =? T-norm
7
Fuzzy and Approximate Reasoning
Inference of a (possible) conclusion from a set of premises Fuzzy Reasoning Approximate Reasoning This tomato is red If a tomato is red, then it is ripe This tomato is ripe This tomato is very red If a tomato is red, then it is ripe This tomato is very ripe
8
Fuzzy Inference Zadeh/Mamdani Inference: minβ‘( π 1 , π 2 )
Larsen Product: π 1 Γ π 2 Bounded Product: maxβ‘( π 1 + π 2 β1,0) Drastic Product: π 1 πππ π 2 =1 π 2 πππ π 1 =1 0 πππ π 1,2 <1
9
Approximate Inference (SISR)
π π΅ β² π¦ =maxβ‘( π π΄ β² π₯ , π π΄ π₯ )β§ π π΅ (π¦) π€
10
Approximate Inference (MISR)
π πΆ β² π§ =maxβ‘( π π΄ β² π₯ , π π΄ π₯ )β§ maxβ‘( π π΅ β² π¦ , π π΅ π¦ )π πΆ (π§) π€ 1 π€ 2 π€= π€ 1 β§ π€ 2 Firing Strength
11
Fuzzy Inference System
A Fuzzy Inference System (FIS) is a way of mapping an input space to an output space using fuzzy logic FIS uses a collection of fuzzy membership functions and rules, instead of Boolean logic, to reason about data. The rules in FIS (sometimes may be called as fuzzy expert system) are fuzzy production rules of the form: if p then q, where p and q are fuzzy statements. For example, in a fuzzy rule if x is low and y is high then z is medium. Here x is low; y is high; z is medium are fuzzy statements; x and y are input variables; z is an output variable, low, high, and medium are fuzzy sets.
12
Fuzzy Control
13
Mamdani Fuzzy Inference System
14
Sugeno FIS Outputβπ
15
Tsukamoto FIS
16
Example Automotive Speed Controller 3 inputs: speed (5 levels)
acceleration (3 levels) distance to destination (3 levels) 1 output: power (fuel flow to engine) Set of rules to determine output based on input values
17
Example
18
Example Example Rules IF speed is TOO SLOW and acceleration is DECELERATING, THEN INCREASE POWER GREATLY IF speed is SLOW and acceleration is DECREASING, THEN INCREASE POWER SLIGHTLY IF distance is CLOSE, THEN DECREASE POWER SLIGHTLY
19
Example Output Determination
Degree of membership in an output fuzzy set now represents each fuzzy action. Fuzzy actions are combined to form a system output.
20
Example Steps Fuzzification: determines an input's degree of membership in overlapping sets. Rules: determine outputs based on inputs and rules. Combination/Defuzzification: combine all fuzzy actions into a single fuzzy action and transform the single fuzzy action into a crisp, executable system output. May use centroid of weighted sets.
21
Example Defuzzification Max Membership Weighted Average Centroid
a b z ο .9 .5 z* z ο 1 Max Membership Weighted Average z* z ο 1 a z* b z ο 1 Centroid Mean max
22
Summary Note there would be a total of 95 different rules for all combinations of inputs of 1, 2, or 3 at a time. In practice, a system won't require all of the rules. System could be improved by adding or changing rules and by adjusting set boundaries. Doesn't require an understanding of process but any knowledge will help formulate rules. Complicated systems may require several iterations to find a set of rules resulting in a stable system.
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.