Professional Documents
Culture Documents
Created by Eli Hait to help people in understanding Fuzzy Logic principle, methodology and possible applications
INTRODUCTION
+u""y ,ogic deals with Emembership in groupF functions. In this e&le, someone whose height is 680, is a member in both groups. 2ince his membership in group of *A,, is 0.5 while in group of 2H(@* only 0.6, it may be seen that he is much more *A,, than 2H(@*.
Another way to loo% at the fu""y Emembership in groupFG each circle represents a group. As closer to center to particular circle -group., the membership in that group is EstrongerF. In this e&le, a valid value may be member of $roup 6, $roup #, both or neither.
Fu++y O*erations
Crisp logic is a subset of +u""y ,ogic
Starting the *ro%ess*he first step in implementing +, is to decide e&actly what is to be controlled and how. +or e&le, suppose we want to design a simple proportional temperature controller with an electric heating element and a variable speed cooling fan. A positive signal output calls for 0 600 percent heat while a negative signal output calls for 0 600 percent cooling. Control is achieved through proper balance and control of these two active devicesG
I.
+u""ificationG converting the crisp inputs to membership functions which comply to intuitive perception of system status. @ules 5rocessingG calculating the response from system status inputs according to the pre defined rules matri& -control algorythm implementation.. >e +u""ificationG converting the @ules 5rocessing results to crisp outputJs to feed into the control devices.
'&leG consider an BerrorB of 6.0 and an Berror dotB of K#.5. *he degree of membership would beG L 'rror H 6.5 L 'rr dot H K# . HM DegativeH0.1 /eroH0.#5 5ositiveH0 HM DegativeH0 /eroH0.N 5ositiveH0.I
Rules E$aluation
*he @ule ?atri& summari"e the %nowledge about how the control output should behave in response to relevant inputs. It is a matri& presentation of e&pected behavior of control -algorithm implementation.. *he minimum si"e for practical @? is I&I -7 rules., but so small matrics can represent only very simple system behavior. 0sually, the @?;s are much more complicated. 9hen more than one control outputs needed or the number of inputs to each table, it may be splitted into few different tables. *he 3uality of the whole control function depends on precision and coverage of the rule matri&.
*he rules use the input membership values as weighting factors to determine their influence on the fu""y output sets of the final output conclusion.
I+ 'rrorHD and 'rror dotHD then (utputHH I+ 'rrorH/ and 'rror dotHD then (utputHH I+ 'rrorH5 and 'rror dotHD then (utputHC I+ 'rrorHD and 'rror dotH/ then (utputHH I+ 'rrorH/ and 'rror dotH/ then (utputHD I+ 'rrorH5 and 'rror dotH/ then (utputHC I+ 'rrorHD and 'rror dotH5 then (utputHC I+ 'rrorH/ and 'rror dotH5 then (utputHC I+ 'rrorH5 and 'rror dotH5 then (utputHC
Dow we calculate the strength for each rule by selecting the ?ID value of each of the variables contained in its AD> functionG
N. 1. 8. 7. 60. 66. 6#. 6I. 6O. I+ 'rrorHD and 'rror dotHD then (utputHH I+ 'rrorH/ and 'rror dotHD then (utputHH I+ 'rrorH5 and 'rror dotHD then (utputHC I+ 'rrorHD and 'rror dotH/ then (utputHH I+ 'rrorH/ and 'rror dotH/ then (utputHD I+ 'rrorH5 and 'rror dotH/ then (utputHC I+ 'rrorHD and 'rror dotH5 then (utputHC I+ 'rrorH/ and 'rror dotH5 then (utputHC I+ 'rrorH5 and 'rror dotH5 then (utputHC HM 2trength H minP0.1, 0Q H 0 HM 2trength H minP0.#5, 0Q H 0 HM 2trength H minP0, 0Q H 0 HM 2trength H minP0.1, 0.NQ H 0.N Heat HM 2trength H minP0.#5, 0.NQ H 0.#5 Dothing HM 2trength H minP0, 0.NQ H 0 HM 2trength H minP0.1, 0.IQ H 0.I Cool HM 2trength H minP0.#5, 0.IQ H 0.#5 Cool HM 2trength H minP0, 0.IQ H 0
Dote that only rules O,5,1 and 8 get strength higher than 0, only these rules would EfireF the output.
Defu++ifi%ation 1etho4s5
Combines all fu""y conclusions obtained by inference into a single conclusion. 2ince different fu""y rules might have different conclusions, consider all rules. (nce the functions are inferred, scaled, and combined, they should be defu""ified into a crisp output which drives the system. *here are few methods of >efu""ication, but all of them apply the E@ules Cumulative 2trengthF values on the E(utput ?embership +unctionF. +or e&le, output membership function for the e&le may be something li%e this *he cumulative strengths calculated in the e&le areG 2H'A*H0.N 2D(*HID$H0.#5 2C((,H0.I7
H (utput