Fuzzy Controller
Fuzzy Controller
Fuzzy Controller
The fuzzy controllers are widely used in the daily life style like for
controlling room temperature with the help of AC, in washing
machines, for auto-speed control in cars etc.
In the classical set theory the output variables are only two – true (1)
and false (0) or say the membership function is either 1 or 0, but true
and false is sometimes insufficient when describing human
reasoning. In the fuzzy set theory the output variables/membership
function have a certain degree which lies between 0 and 1 and
instead of values such as true and false, it has multivalued logics such
as true, very true, less true, false, very false, less false etc. Unlike
classical sets, the fuzzy sets have a certain degree of membership for
each element. This allows the plant to settle on the reference input
smoothly. And thus for the imprecise data, fuzzy set is used.
The fuzzy controller controls the working of the plant (ex. Air
conditioner, washing machine etc.). The controller tries to match the
reference/desired input with the response output of the signal
(sensed by the sensor).
There are 3 major components used in the fuzzy controller, which
are:
3. Defuzzification
Fuzzification
The relation between error and change in error to get certain output
is fed into the fuzzy rule base.
Z – Zero
PM – Positive Medium
NM –Negative Medium
PL – Positive Large
NL – Negative Large
Consider these 5 variables for the ‘error’ and 5 for the ‘change in
error’. And the same 5 variables for the output too.
It is like,
If e is Z
and
ce is PM
then
output is PM
ce\e NL NM Z PM PL
NL NL NM NM NM Z
NM NM NL NM Z PM
Z NM NM Z PM PM
PM NM Z PM PM PL
PL Z PM PM PL PL
Membership Function
NL NM Z PM PL
-2 -1 0 1 2 error
Defuzzification
The centre of gravity method is mostly used method and this method
the centre of gravity of the fuzzy set region is used. The most fuzzy
sets involves a triangle shape. The triangle is to be cut from the top
and the top part is removed, the remaining figure is in the
trapezoidal shape. Now the centroid of this trapezoid is calculated
and it gives the defuzzified crisp output.