1 / 36

Fuzzy Control

Fuzzy Control. Jan Jantzen jj@inference.dk www.inference.dk 2013. Summary. Configuration of controller Design choices The Takagi- Sugeno controller. End-user. Controller. Rule. Ref. Deviations. Actions. Outputs. base. Plant. Inference. engine. Direct Control Configuration.

mairi
Download Presentation

Fuzzy Control

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Fuzzy Control Jan Jantzen jj@inference.dk www.inference.dk 2013

  2. Summary • Configuration of controller • Design choices • The Takagi-Sugeno controller

  3. End-user Controller Rule Ref Deviations Actions Outputs base Plant Inference engine Direct Control Configuration Could be a multi-input-multi-output controller

  4. V1 Example: Tank Level Control Control valve Inlet stream Tank Outlet stream

  5. Control Rules • If the level is low, then open V1 • If the level is high, then close V1 Actually, a single rule might be sufficient. Which?

  6. High Level This requires a level sensor, which is able to measure how full the tank is. Ultrasound, for instance.

  7. High And Low Levels

  8. Choice of Rule Base 1. If error is Neg and change in error is Neg then output is NB 2. If error is Neg and change in error is Zero then output is NM 3. If error is Neg and change in error is Pos then output is Zero 4. If error is Zero and change in error is Neg then output is NM 5. If error is Zero and change in error is Zero then output is Zero 6. If error is Zero and change in error is Pos then output is PM 7. If error is Pos and change in error is Neg then output is Zero 8. If error is Pos and change in error is Zero then output is PM 9. If error is Pos and change in error is Pos then output is PB Two inputs with three values each (Neg, Zero, Pos) results in nine rules. Two inputs withtwovalueseach (Neg, Pos) results in fourrules.

  9. Choice of Connectives minimum maximum product probabilistic sum Chooseproduct and probabilistic sum, ifyouwish to achievelinearity.

  10. Choice Of Primary Sets Triangular Trapezoidal Universal set Classical set Singleton An input family

  11. Inference in a Fuzzy PD Controller Sugeno type of rule base with singleton outputs Membership of input error of this set The AND of the two memberships is carried forward as a weight on the control signal singleton Membership of input change in error of this set All rules contribute, and the final control signal is the weighted average of the contributions from the rules. Input change in error enters here Input error enters here

  12. Singleton Output 1. If error is Pos then control is 10 2. If error is Zero then control is 0 3. If error is Neg then control is -10 Equivalent to a singleton placed in the position -10 in the universe. It is simpler than a full membership function, and more intuitive too.

  13. Sugeno Inference 1. If error is Pos then control is 10 2. If error is Zero then control is 0 3. If error is Neg then control is -10 Rule 3 Rule 2 Rule 1 The weighted average

  14. First Order Output 1. If error is Large then control is a1*error + b1 2. If error is Small then control is a2*error + b2 The equation for a line L2, which depends on the coefficients a2 and b2.

  15. Interpolation (Takagi-Sugeno) Interpolant Line 1 Line 2

  16. Rule Base to Table Calculate the result for every combination of the two inputs Choose discrete values, for instance one for every 10 % Same

  17. Look-Up Table Fivediscrete points werechosen in each input universe, resulting in 25 pre-calculatedvalues of the control signal

  18. Control Surface Pos Neg A mesh plot of the control table If E is Neg and CE is Neg thenu = -200 If E is Neg and CE is Pos thenu = 0 If E is Pos and CE is Neg thenu = 0 If E is Pos and CE is Pos thenu = 200

  19. Linear Rule Base

  20. Linear Control Surface

  21. Conditions For Linearity • Triangular sets, crossing at m = 0.5 • Rules: complete -combination • Define  as multiplication (×) • Use conclusion singletons, positioned at sum of input peak positions • Calculate the control signal as the weighted average These five conditions settle many design choices. Very easy!

  22. Summary Of Choices • Rule-base related choices (# of inputs and outputs, rules, universes, continuous or discrete, # of membership functions, their overlap and width, singleton conclusions) • Inference engine choices (connectives, modifiers) • Pre- and postprocessing (scaling, quantization, sampling time)

  23. AdvancedSection*

  24. Fuzzy controller Rule Prepro-cessing Fuzzi-fication Defuzzi-fication Postpro-cessing base Inference engine Building Blocks

  25. 100 50 0 scaled input -50 -100 -5 0 5 measured input Nonlinear Input Scaling

  26. Relational Rule Format

  27. Tabular Rule Format

  28. 1 0.5 0 0 50 100 Defuzzification RM LM BOA MOM COG

  29. 1 0.5 Membership 0 -1 -0.5 0 0.5 1 Input 1 0.5 Membership 0 -1 -0.5 0 0.5 1 Output FLS I/O Families Zero Neg Pos

  30. AND a 4 a 5 Activation Defuzzification Accumulation Aggregation Inference And Terminology

  31. Rule Base To Table

  32. Rule Based Controllers • If error is Neg then control is Neg • If error is Zero then control is Zero • If error is Pos then control is Pos

  33. Mamdani Inference

  34. FLS Inference

  35. Simplification of 4 rules 1. If error is Neg and change in error is Neg then control is NB 3. If error is Neg and change in error is Pos then control is Zero 7. If error is Pos and change in error is Neg then control is Zero 9. If error is Pos and change in error is Pos then control is PB is

  36. Simplification of 9 rules 1. If error is Neg and change in error is Neg then output is NB 2. If error is Neg and change in error is Zero then output is NM 3. If error is Neg and change in error is Pos then output is Zero 4. If error is Zero and change in error is Neg then output is NM 5. If error is Zero and change in error is Zero then output is Zero 6. If error is Zero and change in error is Pos then output is PM 7. If error is Pos and change in error is Neg then output is Zero 8. If error is Pos and change in error is Zero then output is PM 9. If error is Pos and change in error is Pos then output is PB is

More Related