Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Fuzzy Logic

Similar presentations


Presentation on theme: "Introduction to Fuzzy Logic"β€” Presentation transcript:

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.


Download ppt "Introduction to Fuzzy Logic"

Similar presentations


Ads by Google