SlideShare a Scribd company logo
1 of 15
Download to read offline
International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021
DOI : 10.5121/ijfls.2021.11402 19
FUZZY CONTROL OF A SERVOMECHANISM:
PRACTICAL APPROACH USING MAMDANI AND
TAKAGI-SUGENO CONTROLLERS
Renato Aguiar and Izabella Sirqueira
Department of Electrical Engineering, Centro Universitario FEI, S.B.C, Brazil
ABSTRACT
The main objective of this work is to propose two fuzzy controllers: one based on the Mamdani inference
method and another controller based on the Takagi- Sugeno inference method, both will be designed for
application in a position control system of a servomechanism. Some comparations between the methods
mentioned above will be made with regard to the performance of the system in order to identify the
advantages of the Takagi- Sugeno method in relation to the Mamdani method in the presence of
disturbances and nonlinearities of the system. Some results of simulation and practical application are
presented and results obtained showed that controllers based on Takagi- Sugeno method is more efficient
than controllers based on Mamdani method for this specific application.
KEYWORDS
Fuzzy Logic, Fuzzy Controller, Mamdani Inference Method, Takagi- Sugeno Inference Method.
1. INTRODUCTION
The desire of human beings since first industrial revolution is to gain more control and autonomy
of processes in order to obtain more efficiency and productivity. This produces the development
of efficient machines, which solve complex problems and perform actions using the same
procedure of the reasoning of the human brain through the incorporation of skills to deal with
inaccurate and uncertain situations.
In general, industrial processes to contain many nonlinearities and may be affected by external
disturbances. These disturbances can damage the performance of the system as a whole and this
makes a major challenge with regarding to control of certain variables of a system, so that its
dynamics is satisfactory even in presence of disturbances,nonlinearities and uncertainties in
the plant model.
However, fuzzy logic is able handle with nonlinearities of a process and can imitate the human
procedure in its decisions.
The first publication on fuzzy logic emerged in the context fuzzy sets theory introduced by Lotfi
Zadeh in 1965 [1], who created logic combining the concepts of classical logic and Lukasiewicz's
sets defining the membership degrees that allow an element partially to belong to more than one
cluster simultaneously [2]. In short, fuzzy logic can be defined as a mathematical treatment of
certain linguistic terms, such as approximately, very high, very low, around, among others.
Some studies have been done applying these two inference methods: Mamdani and Takagi-
International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021
20
Sugeno. As example, in [6] is presented a comparative study of the application of these two
methods to predictive the traffic flow. In [7] the authors present a comparative study between
Mamdani and Takagi- Sugeno inference methods to control speed of an induction motor drive
system. In [8] a comparison between Mamdani and Takagi- Sugeno inference systems is realized
for dynamic spectrum allocation. Authors,in [9], applied fuzzy controller for to control position of
each finger of a robotic hand and in [10] authors used fuzzy controllers to control vibrations of 3
cars crane system, among others.
In this way, in this work will be used fuzzy set theory to position control of a servomechanism
even in presence of disturbances and nonlinearities of the system. More precisely, two
inference methods will be used for fuzzy position control: the Mamdani method and the Takagi-
Sugeno method. Simulations of these two fuzzycontrollers applied to the mathematical model of
the servomechanism will be realized and an application of these two fuzzy controllers will be
realized in the real plant, whererobustness tests will be done.
This paper is organized as follows: in section 2 a review of fuzzy concepts and Mamdaniand
Takagi- Sugeno inference methods are presented; in the section 3 the methodology adopted and
the results of the simulation and practical application are presented; in section 4 the conclusions
are recorded.
2. THEORY REVIEW
Fuzzy logic deals with vague or nebulous information, such as: very hot, warm, very high, among
others. This theory has skill of handle with imprecise and vagueness situations found in the real
world. So, fuzzy logic allows a certain element belong to more than one class simultaneously, but
with different membership degrees that are numbers contained in the range [0;1], where the
number 0 represents absence of similarity, the number 1 represents total similarities and numbers
between 0 and 1 represent partial similarities.
As an example, consider the Figure 1 that represents a set of numbers in the range [0;10]. What
is the set of numbers approximately equal to 5?
Analyzing the Figure 1 it’s possible to claim that the number 5 belongs to the set with maximum
similarity, because it is the number itself. However, there is no certainty ifthe number 4.5
belongs to the set of numbers approximately equal to 5. In this case, the answer is not unique and
objective, because belonging or not may depend on the type ofproblem in question. However, in
this case, it can be affirmed that 4.5 belongs to the set of numbers approximately equal to 5 with a
degree of similarity approximately equal to 0.9.
International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021
21
Figure 1. Cluster of the numbers approximately equal to 5
As can be seen, Figure 1 show a gaussian function that consists of numbers close to 5. Thus,
fuzzy logic theory represents a real element in a membership degree with regardto given class.
There are numerous functions to represent a class, such as: triangular, gaussian, trapezoidal,
among others. These functions are called membership functions and each class is called by a
linguistic variable that represents a certain fuzzyness.
Through these functions it is possible to perform some operations with fuzzy sets, such as
intersection, union and complement in order to obtain an interrelationship betweenthe system
variables. In addition, membership functions are fundamental elements ofthe fuzzy system [3].
Briefly, Figure 2 represents a fuzzy system
Figure 2. FuzzySystem
a. Input Variables: real values (crisp numbers) such as height equal to 10 meters, temperature
equal to 75 degrees Celsius.
b. Fuzzifier: the crisp values are transformed into degrees of similarity.
c. Fuzzy Rule Base: the fuzzy rules, also called "IF-THEN" rules represent the knowledge of
the system and information about the parameters of the membership functions (fuzzy sets).
The relationship between input and output is produced through of therules.
d. Fuzzy Inference: Performs fuzzy set mapping and interprets input values based on a ruleset
and assigning a value to the output vector, that is, determining how rules are activated and
combined.
e. Defuzzifer: this step converting a fuzzy value into a real number (crisp value). The mostused
method is based on the calculation of the area centroid of a fuzzy set, where the output value
is the center of gravity of the distribution function of possibility of the control action.
f. Output variables: Output in real values.
Clearly, can be noted that the fuzzy controller is a fuzzy system. However, there are two classes
of fuzzy controllers very utilized in the practice: the fuzzy controller based on Mamdani's
International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021
22
inference method [11] and another controller based on Takagi-Sugeno’s inference method [12].
The Mamdani method has its rules described according toequation 1 [4].
(1)
In this case, the consequential is a fuzzy number, defined by a membership function which must
go through the defuzzification process. One of defuzzification methods is the center- of- gravity
of the means of areas from each rule represented. Equation 2 represents this process [4].
(2)
On the other hand, Takagi- Sugeno's inference method work with rules that follow the format
described in equation 3 [5]:
(3)
As can be seen in equation 9 the consequence is a function of the linguistic variables of the input,
and the values from the y function is weighted by the membership degree from the
antecedent, as showed in equation 4 [5].
(4)
As can be seen, in Takagi- Sugeno’s inference method, the defuzzification step does notexist once
equation 10 produces a crisp value. In this work, two fuzzy systems (or fuzzycontrollers) will be
developed to control the position of a servo mechanism, one based on Mamdani’s inference
method and another controller based on Takagi- Sugeno's inference method. Some robustness
tests will be realized in the practical application in the real plant.
3. RESULTS
In this work, the fuzzy controller considered has the configuration shown in Figure 3, where error
and derivative of error are the inputs and output is the control effort.
International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021
23
Figure 3. Fuzzy System
The table 1 shows the input and output data, as well as the linguistic values and its
respective notation.
Table 1. Variablesandlinguistic values
Linguistic Variable: Error (E)
Linguistic Value Notation
very negative VN
negative N
null NN
positive P
very positive VP
Linguistic Variable: Derivative of Error (DE)
Linguistic Value Notation
Small S
Large L
Linguistic Variable: Control Effort (CE)
Linguistic Value Notation
Very Negative VN
Negative Medium NM
Medium M
Positive Medium PM
Very Positive VP
The Figure 4 shows the block diagram utilized in simulation, where the block called dead
zone is representing the friction existing in the motor.
International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021
24
Figure 4. Fuzzy Control System for the simulation
Figure 4 represents a position control system, and the work consists of two steps: in order to
assessing and validating the proposed controllers, simulation is done using the Matlab software.
After, the fuzzy controllers are applied in the real plant where some robustness tests will be done
in the presence uncertainties and disturbances. The table 2 summarizes the rules set proposed
when Mamdani inference method is applied.
Table 2. Mamdani rules
NVL NL N PL PVL
S X X PM X X
L X X NM X X
X VN NM M PM VP
In table 2, X means not significant, that is, it does not significantly interfere in the dynamics of
the system. The membership functions utilized were obtained after many tests and are shown in
figures 5, 6 and 7.
Figure 5. Membership functions: Error
International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021
25
Figure 6. Membership functions: Derivative of error
Figure 7. Membership functions: Output
The rules defined in Takagi- Sugeno inference method is shown in table 3.
Table 3. Takagi-Sugeno rules
if And Then control
effort is
Error is null - 0
Error is negative - -5
Error is positive - 5
Error is positive
medium
-
Error is negative
medium
-
Error is null Derivativeof
error
Error is null Derivativeof
error
International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021
26
where 𝑥1 = error and 𝑥2 = derivative of error
These rules were obtained through of knowledge of plant after many tests and changing rules and
membership functions until to obtain a satisfactory response.
3.1. Simulation Results
The simulations were done through of Matlab software and considering mathematical model of
the plant as shown in Figure 4. The system response to the step as a set point and applying
Mamdani's inference method is shown in Figure 8.
Figure 8. Response to the step of value equal to 2- Mamdani
Figure 9 shows the output of the system when is applied Takagi- Sugeno's inference method.
Figure 9. Response to the step of value equal to 2- Takagi- Sugeno
As can be seen in figures 8 and 9, the Takagi- Sugeno inference method presents better results
than Mamdani inference with regard to the steady state error and settling time. Table 4 show the
approximated values of performance of the system.
International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021
27
Table 4. Comparison of Performance- Simulation
Output Performance
Mamdani Takagi- Sugeno
Error 0.3 0.07
Settling Time 2 seconds 1.5 second
Overshoot 0% 0%
This application in simulation shows that the fuzzy controller proposed can be promising in
application in a real plant. It is known that mathematical model is an approximation of the real
plant and do not consider non- linearities, backlash effect and some parameters of the system
when compared to the real plant. So, becomes necessary to apply the fuzzy controllers obtained in
the real plant which contain non- linearities, backlash effect due to the gears and some noises.
3.2. Experimental Results
The fuzzy controllers shown in the preview section will be implemented in a real systemthrough
data acquisition process using the data acquisition toolbox contained in Matlab software. Here
was utilized a real servomechanism, a data acquisition board National Instruments 6221- 37 pin
installed in the computer and an interface National Instruments for communication between
Simulink and real plant. The Figure 9 illustrates a basic idea of the configuration utilized.
Figure 9. Layout for tests in real plant
Figure 10 shows the model utilized in the Simulink/ Matlab using data acquisition. The set point
is a square wave form of 0.2Hz and peak value equal to 2.
International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021
28
Figure 10. Fuzzy Control System
The membership functions of the inputs and outputs are showed in figures 11, 12 and 13,
respectively. In this practical application was necessary to change membership functions.
Figure 11. New membership functions: Error
Figure 12. New membership functions: Derivative of error
International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021
29
Figure 13. New membership functions: Output
The rules adopted are shown in table 5.
Table 5. Mamdani rules
if And Then control effort is
Error is null - null
Error is
negative
- negative
Error is positive - positive
Error is positive
medium
- positive medium
Error is
negativemedium
- negative medium
Error is null Derivative of
error
positive medium
Error is null Derivative of
error
negative medium
The figures 14 and 15 show the results obtained without disturbance and with disturbance,
respectively.
International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021
30
Figure 14. Response of the real system using the Mamdani inference method without disturbance
Figure 15. Response of the real system using the Mamdani inference
method with the addition ofdisturbance
The same procedure was realized applying the Takagi- Sugeno’s inference method. Inthis case,
the rules that produced the best results are shown in table 6.
International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021
31
Table 6. Takagi-Sugeno rules
if And Then control effort is
Error is null - 0
Error is
negative
- -3
Error is positive - 3
Error is positive -
medium
Error is
negativemedium
-
Error is null Derivative of error
Error is null Derivative of error
The figures 16 and 17 shown the response of the system without disturbance and with
disturbance, respectively.
Figure 16. Response of the real system using the Takagi-Sugeno inference method without disturbance
International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021
32
Figure 17. Response of the real system using the Takagi-Sugeno inference method with theaddition of
disturbance
As can be seen in the experimental results presented, Takagi- Sugeno inference method presents a
better result than Mamdani inference method in the application proposed in this work. As can be
seen in figures 16 and 17, when is utilized the fuzzy controller based in the Takagi- Sugeno
inference method, the response of the system is faster than fuzzy controller based in the Mamdani
inference method. Table 7 show the approximated values of performance of the system
Table 7. Comparison of Performance- Simulation
Output Performance
Mamdani Takagi- Sugeno
Error 0.56 0.22
Settling Time 1.5 seconds 0.5 second
Overshoot 3% 0%
Furthermore, the results indicate that for the application proposed here, the controller based on
Takagi- Sugeno inference method seems has more robustness and precision when compared to
the Mamdani inference method.
4. CONCLUSIONS
In this work, was proposed a position control using a fuzzy controller. The applicationis based
in two controllers: a fuzzy controller using Mamdani inference method and another controller
using Takagi- Sugeno inference method. Firstly, was done a simulation using the
International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021
33
mathematical model of a servomechanism in order to assessing and validating the proposed
controllers. After, the two controllers were applied in real plant, where nonlinearities, noises and
backlash effect are present in the system.
Analyzing the responses presented by the simulations, Takagi-Sugeno inference methodpresents
low settling time and very low steady state error. When comparing the results obtained with the
experiments in real plants, was found that the method of inference Takagi-Sugeno presents
greater robustness, less steady state error and less settling time even in the presence of
disturbance and nonlinearities of the system. For both methods, changes in the membership
functions were necessary in practical application due to some non-linearities, noises and backlash
effect.
So, in the application proposed in this work, Takagi- Sugeno inference method toposition
control in the presence of uncertainties, disturbance and nonlinearities, produces a better result
when compared with Mamdani inference method Here, the control based on Takagi- Sugeno
inference method shown more robustness and better relative stability. As future study, can be
very promising the application of control basedon fuzzy type- 2.
REFERENCES
[1] Zadeh L. A. Fuzzy sets, Information and Control, p. 338–353, 1965.
[2] Zimmermann H. J. Fuzzy Set Theoryand its Aplication. Kluwer Academic, Boston, 1996.
[3] Altrok, C.V. Fuzzy Logic & Neurofuzzy Applications Explained, Prentice Hall,New Jersey, 1995.
[4] Mamdani E. H; Assilian S. An Experiment in Linguistic Synthesis with a Fuzzy Logic Controller. Int.
J. Man- Machine Studies, v.7, p. 1-13, 1975.
[5] Takagi T., Sugeno M. Fuzzy Identification of Systems and Its Applications to Modeling and Control.
IEEE Transactions on Systems, Man, and Cybernetics, v.15, 1985.
[6] Wang Y., Chen, Y. A Comparison of Mamdani and Sugeno Fuzzy InferenceSystems for Traffic Flow
Prediction. Journal of Computers, v.9, n. 1, 2014.
[7] Ariff, R.M.; Hanafi, D.; Utomo, W.M.; Sim, S.Y.; Bohari, A.A. Comparison of Sugeno-Type and
Mamdani-Type Speed Controller for Induction Motor Drive System. In Proceedings of the 3rd
International Conference on Computer Engineering and Mathematical Sciences (ICCEMS 2014),
Langkawi, Malaysia,4–5 December 2014; pp. 387–391.
[8] Subhedar M, Birajdar G. Comparison of Mamdani and Sugeno inference systems for dynamic
spectrum allocation in cognitive radio networks. Wireless Pers Commun.; v. 71, p.805–819, 2013.
[9] Rakovic M. et al. Fuzzy Position- velocity Control of Underactuated Finger ofFTN Robot Hand.
Journal of Intelligent and Fuzzy Systems, v. 34, 2018.
[10] Yildirim S. Angular Position Control of 3- Cars Crane System Using ProposedFuzzy- PID Controller.
Recent Innovations in Mechatronics, v.7, 2020.
[11] Mamdani E. H. Application of Fuzzy Logic to Approximate Reasoning Using Linguistic Synthesis.
IEEE Transactions on Computers, v. C26, p. 1182- 1191,1977.
[12] Takagi T., Sugeno M. Fuzzy Identification of Systems and its Applications to Modeling and Control.
IEEE Transactions on Systems, Man, and Cybernetics, v.SMC-15, p. 116- 132, 1985.

More Related Content

What's hot

Feature selection concepts and methods
Feature selection concepts and methodsFeature selection concepts and methods
Feature selection concepts and methodsReza Ramezani
 
Piecewise Controller Design for Affine Fuzzy Systems
Piecewise Controller Design for Affine Fuzzy SystemsPiecewise Controller Design for Affine Fuzzy Systems
Piecewise Controller Design for Affine Fuzzy SystemsISA Interchange
 
Bayesian-Network-Based Algorithm Selection with High Level Representation Fee...
Bayesian-Network-Based Algorithm Selection with High Level Representation Fee...Bayesian-Network-Based Algorithm Selection with High Level Representation Fee...
Bayesian-Network-Based Algorithm Selection with High Level Representation Fee...ITIIIndustries
 
Study on Some Key Issues of Synergetic Neural Network
Study on Some Key Issues of Synergetic Neural Network  Study on Some Key Issues of Synergetic Neural Network
Study on Some Key Issues of Synergetic Neural Network Jie Bao
 
Intelligent control applicatoin
Intelligent control applicatoinIntelligent control applicatoin
Intelligent control applicatoinNJUSTAiMo
 
Wrapper feature selection method
Wrapper feature selection methodWrapper feature selection method
Wrapper feature selection methodAmir Razmjou
 
Optimization using soft computing
Optimization using soft computingOptimization using soft computing
Optimization using soft computingPurnima Pandit
 
Feature selection and microarray data
Feature selection and microarray dataFeature selection and microarray data
Feature selection and microarray dataGianluca Bontempi
 
Knowledge extraction from numerical data an abc
Knowledge extraction from numerical data an abcKnowledge extraction from numerical data an abc
Knowledge extraction from numerical data an abcIAEME Publication
 
Implementing Merge Sort
Implementing Merge SortImplementing Merge Sort
Implementing Merge Sortsmita gupta
 
Process mining approaches kashif.namal@gmail.com
Process mining approaches kashif.namal@gmail.comProcess mining approaches kashif.namal@gmail.com
Process mining approaches kashif.namal@gmail.comkashif kashif
 
A boolean modeling for improving
A boolean modeling for improvingA boolean modeling for improving
A boolean modeling for improvingcsandit
 
Parameter Estimation User Guide
Parameter Estimation User GuideParameter Estimation User Guide
Parameter Estimation User GuideAndy Salmon
 
Ijcse13 05-01-048
Ijcse13 05-01-048Ijcse13 05-01-048
Ijcse13 05-01-048vital vital
 
An introduction to variable and feature selection
An introduction to variable and feature selectionAn introduction to variable and feature selection
An introduction to variable and feature selectionMarco Meoni
 
Iaetsd an enhanced feature selection for
Iaetsd an enhanced feature selection forIaetsd an enhanced feature selection for
Iaetsd an enhanced feature selection forIaetsd Iaetsd
 

What's hot (18)

Feature selection concepts and methods
Feature selection concepts and methodsFeature selection concepts and methods
Feature selection concepts and methods
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Piecewise Controller Design for Affine Fuzzy Systems
Piecewise Controller Design for Affine Fuzzy SystemsPiecewise Controller Design for Affine Fuzzy Systems
Piecewise Controller Design for Affine Fuzzy Systems
 
Bayesian-Network-Based Algorithm Selection with High Level Representation Fee...
Bayesian-Network-Based Algorithm Selection with High Level Representation Fee...Bayesian-Network-Based Algorithm Selection with High Level Representation Fee...
Bayesian-Network-Based Algorithm Selection with High Level Representation Fee...
 
Study on Some Key Issues of Synergetic Neural Network
Study on Some Key Issues of Synergetic Neural Network  Study on Some Key Issues of Synergetic Neural Network
Study on Some Key Issues of Synergetic Neural Network
 
Intelligent control applicatoin
Intelligent control applicatoinIntelligent control applicatoin
Intelligent control applicatoin
 
Wrapper feature selection method
Wrapper feature selection methodWrapper feature selection method
Wrapper feature selection method
 
Optimization using soft computing
Optimization using soft computingOptimization using soft computing
Optimization using soft computing
 
Feature selection and microarray data
Feature selection and microarray dataFeature selection and microarray data
Feature selection and microarray data
 
Knowledge extraction from numerical data an abc
Knowledge extraction from numerical data an abcKnowledge extraction from numerical data an abc
Knowledge extraction from numerical data an abc
 
Implementing Merge Sort
Implementing Merge SortImplementing Merge Sort
Implementing Merge Sort
 
Process mining approaches kashif.namal@gmail.com
Process mining approaches kashif.namal@gmail.comProcess mining approaches kashif.namal@gmail.com
Process mining approaches kashif.namal@gmail.com
 
Interval type-2 fuzzy logic system for remote vital signs monitoring and shoc...
Interval type-2 fuzzy logic system for remote vital signs monitoring and shoc...Interval type-2 fuzzy logic system for remote vital signs monitoring and shoc...
Interval type-2 fuzzy logic system for remote vital signs monitoring and shoc...
 
A boolean modeling for improving
A boolean modeling for improvingA boolean modeling for improving
A boolean modeling for improving
 
Parameter Estimation User Guide
Parameter Estimation User GuideParameter Estimation User Guide
Parameter Estimation User Guide
 
Ijcse13 05-01-048
Ijcse13 05-01-048Ijcse13 05-01-048
Ijcse13 05-01-048
 
An introduction to variable and feature selection
An introduction to variable and feature selectionAn introduction to variable and feature selection
An introduction to variable and feature selection
 
Iaetsd an enhanced feature selection for
Iaetsd an enhanced feature selection forIaetsd an enhanced feature selection for
Iaetsd an enhanced feature selection for
 

Similar to FUZZY CONTROL OF A SERVOMECHANISM: PRACTICAL APPROACH USING MAMDANI AND TAKAGI- SUGENO CONTROLLERS

Estimation of Air-Cooling Devices Run Time Via Fuzzy Logic and Adaptive Neuro...
Estimation of Air-Cooling Devices Run Time Via Fuzzy Logic and Adaptive Neuro...Estimation of Air-Cooling Devices Run Time Via Fuzzy Logic and Adaptive Neuro...
Estimation of Air-Cooling Devices Run Time Via Fuzzy Logic and Adaptive Neuro...IRJET Journal
 
SPECIFICATION OF THE STATE’S LIFETIME IN THE DEVS FORMALISM BY FUZZY CONTROLLER
SPECIFICATION OF THE STATE’S LIFETIME IN THE DEVS FORMALISM BY FUZZY CONTROLLERSPECIFICATION OF THE STATE’S LIFETIME IN THE DEVS FORMALISM BY FUZZY CONTROLLER
SPECIFICATION OF THE STATE’S LIFETIME IN THE DEVS FORMALISM BY FUZZY CONTROLLERijait
 
An Optimum Time Quantum Using Linguistic Synthesis for Round Robin Cpu Schedu...
An Optimum Time Quantum Using Linguistic Synthesis for Round Robin Cpu Schedu...An Optimum Time Quantum Using Linguistic Synthesis for Round Robin Cpu Schedu...
An Optimum Time Quantum Using Linguistic Synthesis for Round Robin Cpu Schedu...ijsc
 
AN OPTIMUM TIME QUANTUM USING LINGUISTIC SYNTHESIS FOR ROUND ROBIN CPU SCHEDU...
AN OPTIMUM TIME QUANTUM USING LINGUISTIC SYNTHESIS FOR ROUND ROBIN CPU SCHEDU...AN OPTIMUM TIME QUANTUM USING LINGUISTIC SYNTHESIS FOR ROUND ROBIN CPU SCHEDU...
AN OPTIMUM TIME QUANTUM USING LINGUISTIC SYNTHESIS FOR ROUND ROBIN CPU SCHEDU...ijsc
 
Intelligent Controller Design for a Chemical Process
Intelligent Controller Design for a Chemical ProcessIntelligent Controller Design for a Chemical Process
Intelligent Controller Design for a Chemical ProcessCSCJournals
 
Interval Type-2 Intuitionistic Fuzzy Logic System for Time Series and Identif...
Interval Type-2 Intuitionistic Fuzzy Logic System for Time Series and Identif...Interval Type-2 Intuitionistic Fuzzy Logic System for Time Series and Identif...
Interval Type-2 Intuitionistic Fuzzy Logic System for Time Series and Identif...ijfls
 
On line Tuning Premise and Consequence FIS: Design Fuzzy Adaptive Fuzzy Slidi...
On line Tuning Premise and Consequence FIS: Design Fuzzy Adaptive Fuzzy Slidi...On line Tuning Premise and Consequence FIS: Design Fuzzy Adaptive Fuzzy Slidi...
On line Tuning Premise and Consequence FIS: Design Fuzzy Adaptive Fuzzy Slidi...Waqas Tariq
 
STABILITY ANALYSIS AND CONTROL OF A 3-D AUTONOMOUS AI-YUAN-ZHI-HAO HYPERCHAOT...
STABILITY ANALYSIS AND CONTROL OF A 3-D AUTONOMOUS AI-YUAN-ZHI-HAO HYPERCHAOT...STABILITY ANALYSIS AND CONTROL OF A 3-D AUTONOMOUS AI-YUAN-ZHI-HAO HYPERCHAOT...
STABILITY ANALYSIS AND CONTROL OF A 3-D AUTONOMOUS AI-YUAN-ZHI-HAO HYPERCHAOT...ijscai
 
FUNCTION PROJECTIVE SYNCHRONIZATION OF NEW CHAOTIC REVERSAL SYSTEMS
FUNCTION PROJECTIVE SYNCHRONIZATION OF NEW CHAOTIC REVERSAL SYSTEMSFUNCTION PROJECTIVE SYNCHRONIZATION OF NEW CHAOTIC REVERSAL SYSTEMS
FUNCTION PROJECTIVE SYNCHRONIZATION OF NEW CHAOTIC REVERSAL SYSTEMSijcseit
 
FUNCTION PROJECTIVE SYNCHRONIZATION OF NEW CHAOTIC REVERSAL SYSTEMS
FUNCTION PROJECTIVE SYNCHRONIZATION OF NEW CHAOTIC REVERSAL SYSTEMSFUNCTION PROJECTIVE SYNCHRONIZATION OF NEW CHAOTIC REVERSAL SYSTEMS
FUNCTION PROJECTIVE SYNCHRONIZATION OF NEW CHAOTIC REVERSAL SYSTEMSijcseit
 
A Learning Linguistic Teaching Control for a Multi-Area Electric Power System
A Learning Linguistic Teaching Control for a Multi-Area Electric Power SystemA Learning Linguistic Teaching Control for a Multi-Area Electric Power System
A Learning Linguistic Teaching Control for a Multi-Area Electric Power SystemCSCJournals
 

Similar to FUZZY CONTROL OF A SERVOMECHANISM: PRACTICAL APPROACH USING MAMDANI AND TAKAGI- SUGENO CONTROLLERS (20)

Ejsr 86 3
Ejsr 86 3Ejsr 86 3
Ejsr 86 3
 
109 me0422
109 me0422109 me0422
109 me0422
 
Fuzzy model reference learning control (1)
Fuzzy model reference learning control (1)Fuzzy model reference learning control (1)
Fuzzy model reference learning control (1)
 
Estimation of Air-Cooling Devices Run Time Via Fuzzy Logic and Adaptive Neuro...
Estimation of Air-Cooling Devices Run Time Via Fuzzy Logic and Adaptive Neuro...Estimation of Air-Cooling Devices Run Time Via Fuzzy Logic and Adaptive Neuro...
Estimation of Air-Cooling Devices Run Time Via Fuzzy Logic and Adaptive Neuro...
 
Db36619623
Db36619623Db36619623
Db36619623
 
27702790
2770279027702790
27702790
 
J010528691
J010528691J010528691
J010528691
 
SPECIFICATION OF THE STATE’S LIFETIME IN THE DEVS FORMALISM BY FUZZY CONTROLLER
SPECIFICATION OF THE STATE’S LIFETIME IN THE DEVS FORMALISM BY FUZZY CONTROLLERSPECIFICATION OF THE STATE’S LIFETIME IN THE DEVS FORMALISM BY FUZZY CONTROLLER
SPECIFICATION OF THE STATE’S LIFETIME IN THE DEVS FORMALISM BY FUZZY CONTROLLER
 
An Optimum Time Quantum Using Linguistic Synthesis for Round Robin Cpu Schedu...
An Optimum Time Quantum Using Linguistic Synthesis for Round Robin Cpu Schedu...An Optimum Time Quantum Using Linguistic Synthesis for Round Robin Cpu Schedu...
An Optimum Time Quantum Using Linguistic Synthesis for Round Robin Cpu Schedu...
 
TO_EDIT
TO_EDITTO_EDIT
TO_EDIT
 
AN OPTIMUM TIME QUANTUM USING LINGUISTIC SYNTHESIS FOR ROUND ROBIN CPU SCHEDU...
AN OPTIMUM TIME QUANTUM USING LINGUISTIC SYNTHESIS FOR ROUND ROBIN CPU SCHEDU...AN OPTIMUM TIME QUANTUM USING LINGUISTIC SYNTHESIS FOR ROUND ROBIN CPU SCHEDU...
AN OPTIMUM TIME QUANTUM USING LINGUISTIC SYNTHESIS FOR ROUND ROBIN CPU SCHEDU...
 
Intelligent Controller Design for a Chemical Process
Intelligent Controller Design for a Chemical ProcessIntelligent Controller Design for a Chemical Process
Intelligent Controller Design for a Chemical Process
 
Interval Type-2 Intuitionistic Fuzzy Logic System for Time Series and Identif...
Interval Type-2 Intuitionistic Fuzzy Logic System for Time Series and Identif...Interval Type-2 Intuitionistic Fuzzy Logic System for Time Series and Identif...
Interval Type-2 Intuitionistic Fuzzy Logic System for Time Series and Identif...
 
sustainability-07-12359.pdf
sustainability-07-12359.pdfsustainability-07-12359.pdf
sustainability-07-12359.pdf
 
On line Tuning Premise and Consequence FIS: Design Fuzzy Adaptive Fuzzy Slidi...
On line Tuning Premise and Consequence FIS: Design Fuzzy Adaptive Fuzzy Slidi...On line Tuning Premise and Consequence FIS: Design Fuzzy Adaptive Fuzzy Slidi...
On line Tuning Premise and Consequence FIS: Design Fuzzy Adaptive Fuzzy Slidi...
 
AI Lesson 32
AI Lesson 32AI Lesson 32
AI Lesson 32
 
STABILITY ANALYSIS AND CONTROL OF A 3-D AUTONOMOUS AI-YUAN-ZHI-HAO HYPERCHAOT...
STABILITY ANALYSIS AND CONTROL OF A 3-D AUTONOMOUS AI-YUAN-ZHI-HAO HYPERCHAOT...STABILITY ANALYSIS AND CONTROL OF A 3-D AUTONOMOUS AI-YUAN-ZHI-HAO HYPERCHAOT...
STABILITY ANALYSIS AND CONTROL OF A 3-D AUTONOMOUS AI-YUAN-ZHI-HAO HYPERCHAOT...
 
FUNCTION PROJECTIVE SYNCHRONIZATION OF NEW CHAOTIC REVERSAL SYSTEMS
FUNCTION PROJECTIVE SYNCHRONIZATION OF NEW CHAOTIC REVERSAL SYSTEMSFUNCTION PROJECTIVE SYNCHRONIZATION OF NEW CHAOTIC REVERSAL SYSTEMS
FUNCTION PROJECTIVE SYNCHRONIZATION OF NEW CHAOTIC REVERSAL SYSTEMS
 
FUNCTION PROJECTIVE SYNCHRONIZATION OF NEW CHAOTIC REVERSAL SYSTEMS
FUNCTION PROJECTIVE SYNCHRONIZATION OF NEW CHAOTIC REVERSAL SYSTEMSFUNCTION PROJECTIVE SYNCHRONIZATION OF NEW CHAOTIC REVERSAL SYSTEMS
FUNCTION PROJECTIVE SYNCHRONIZATION OF NEW CHAOTIC REVERSAL SYSTEMS
 
A Learning Linguistic Teaching Control for a Multi-Area Electric Power System
A Learning Linguistic Teaching Control for a Multi-Area Electric Power SystemA Learning Linguistic Teaching Control for a Multi-Area Electric Power System
A Learning Linguistic Teaching Control for a Multi-Area Electric Power System
 

Recently uploaded

Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 

Recently uploaded (20)

Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 

FUZZY CONTROL OF A SERVOMECHANISM: PRACTICAL APPROACH USING MAMDANI AND TAKAGI- SUGENO CONTROLLERS

  • 1. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021 DOI : 10.5121/ijfls.2021.11402 19 FUZZY CONTROL OF A SERVOMECHANISM: PRACTICAL APPROACH USING MAMDANI AND TAKAGI-SUGENO CONTROLLERS Renato Aguiar and Izabella Sirqueira Department of Electrical Engineering, Centro Universitario FEI, S.B.C, Brazil ABSTRACT The main objective of this work is to propose two fuzzy controllers: one based on the Mamdani inference method and another controller based on the Takagi- Sugeno inference method, both will be designed for application in a position control system of a servomechanism. Some comparations between the methods mentioned above will be made with regard to the performance of the system in order to identify the advantages of the Takagi- Sugeno method in relation to the Mamdani method in the presence of disturbances and nonlinearities of the system. Some results of simulation and practical application are presented and results obtained showed that controllers based on Takagi- Sugeno method is more efficient than controllers based on Mamdani method for this specific application. KEYWORDS Fuzzy Logic, Fuzzy Controller, Mamdani Inference Method, Takagi- Sugeno Inference Method. 1. INTRODUCTION The desire of human beings since first industrial revolution is to gain more control and autonomy of processes in order to obtain more efficiency and productivity. This produces the development of efficient machines, which solve complex problems and perform actions using the same procedure of the reasoning of the human brain through the incorporation of skills to deal with inaccurate and uncertain situations. In general, industrial processes to contain many nonlinearities and may be affected by external disturbances. These disturbances can damage the performance of the system as a whole and this makes a major challenge with regarding to control of certain variables of a system, so that its dynamics is satisfactory even in presence of disturbances,nonlinearities and uncertainties in the plant model. However, fuzzy logic is able handle with nonlinearities of a process and can imitate the human procedure in its decisions. The first publication on fuzzy logic emerged in the context fuzzy sets theory introduced by Lotfi Zadeh in 1965 [1], who created logic combining the concepts of classical logic and Lukasiewicz's sets defining the membership degrees that allow an element partially to belong to more than one cluster simultaneously [2]. In short, fuzzy logic can be defined as a mathematical treatment of certain linguistic terms, such as approximately, very high, very low, around, among others. Some studies have been done applying these two inference methods: Mamdani and Takagi-
  • 2. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021 20 Sugeno. As example, in [6] is presented a comparative study of the application of these two methods to predictive the traffic flow. In [7] the authors present a comparative study between Mamdani and Takagi- Sugeno inference methods to control speed of an induction motor drive system. In [8] a comparison between Mamdani and Takagi- Sugeno inference systems is realized for dynamic spectrum allocation. Authors,in [9], applied fuzzy controller for to control position of each finger of a robotic hand and in [10] authors used fuzzy controllers to control vibrations of 3 cars crane system, among others. In this way, in this work will be used fuzzy set theory to position control of a servomechanism even in presence of disturbances and nonlinearities of the system. More precisely, two inference methods will be used for fuzzy position control: the Mamdani method and the Takagi- Sugeno method. Simulations of these two fuzzycontrollers applied to the mathematical model of the servomechanism will be realized and an application of these two fuzzy controllers will be realized in the real plant, whererobustness tests will be done. This paper is organized as follows: in section 2 a review of fuzzy concepts and Mamdaniand Takagi- Sugeno inference methods are presented; in the section 3 the methodology adopted and the results of the simulation and practical application are presented; in section 4 the conclusions are recorded. 2. THEORY REVIEW Fuzzy logic deals with vague or nebulous information, such as: very hot, warm, very high, among others. This theory has skill of handle with imprecise and vagueness situations found in the real world. So, fuzzy logic allows a certain element belong to more than one class simultaneously, but with different membership degrees that are numbers contained in the range [0;1], where the number 0 represents absence of similarity, the number 1 represents total similarities and numbers between 0 and 1 represent partial similarities. As an example, consider the Figure 1 that represents a set of numbers in the range [0;10]. What is the set of numbers approximately equal to 5? Analyzing the Figure 1 it’s possible to claim that the number 5 belongs to the set with maximum similarity, because it is the number itself. However, there is no certainty ifthe number 4.5 belongs to the set of numbers approximately equal to 5. In this case, the answer is not unique and objective, because belonging or not may depend on the type ofproblem in question. However, in this case, it can be affirmed that 4.5 belongs to the set of numbers approximately equal to 5 with a degree of similarity approximately equal to 0.9.
  • 3. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021 21 Figure 1. Cluster of the numbers approximately equal to 5 As can be seen, Figure 1 show a gaussian function that consists of numbers close to 5. Thus, fuzzy logic theory represents a real element in a membership degree with regardto given class. There are numerous functions to represent a class, such as: triangular, gaussian, trapezoidal, among others. These functions are called membership functions and each class is called by a linguistic variable that represents a certain fuzzyness. Through these functions it is possible to perform some operations with fuzzy sets, such as intersection, union and complement in order to obtain an interrelationship betweenthe system variables. In addition, membership functions are fundamental elements ofthe fuzzy system [3]. Briefly, Figure 2 represents a fuzzy system Figure 2. FuzzySystem a. Input Variables: real values (crisp numbers) such as height equal to 10 meters, temperature equal to 75 degrees Celsius. b. Fuzzifier: the crisp values are transformed into degrees of similarity. c. Fuzzy Rule Base: the fuzzy rules, also called "IF-THEN" rules represent the knowledge of the system and information about the parameters of the membership functions (fuzzy sets). The relationship between input and output is produced through of therules. d. Fuzzy Inference: Performs fuzzy set mapping and interprets input values based on a ruleset and assigning a value to the output vector, that is, determining how rules are activated and combined. e. Defuzzifer: this step converting a fuzzy value into a real number (crisp value). The mostused method is based on the calculation of the area centroid of a fuzzy set, where the output value is the center of gravity of the distribution function of possibility of the control action. f. Output variables: Output in real values. Clearly, can be noted that the fuzzy controller is a fuzzy system. However, there are two classes of fuzzy controllers very utilized in the practice: the fuzzy controller based on Mamdani's
  • 4. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021 22 inference method [11] and another controller based on Takagi-Sugeno’s inference method [12]. The Mamdani method has its rules described according toequation 1 [4]. (1) In this case, the consequential is a fuzzy number, defined by a membership function which must go through the defuzzification process. One of defuzzification methods is the center- of- gravity of the means of areas from each rule represented. Equation 2 represents this process [4]. (2) On the other hand, Takagi- Sugeno's inference method work with rules that follow the format described in equation 3 [5]: (3) As can be seen in equation 9 the consequence is a function of the linguistic variables of the input, and the values from the y function is weighted by the membership degree from the antecedent, as showed in equation 4 [5]. (4) As can be seen, in Takagi- Sugeno’s inference method, the defuzzification step does notexist once equation 10 produces a crisp value. In this work, two fuzzy systems (or fuzzycontrollers) will be developed to control the position of a servo mechanism, one based on Mamdani’s inference method and another controller based on Takagi- Sugeno's inference method. Some robustness tests will be realized in the practical application in the real plant. 3. RESULTS In this work, the fuzzy controller considered has the configuration shown in Figure 3, where error and derivative of error are the inputs and output is the control effort.
  • 5. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021 23 Figure 3. Fuzzy System The table 1 shows the input and output data, as well as the linguistic values and its respective notation. Table 1. Variablesandlinguistic values Linguistic Variable: Error (E) Linguistic Value Notation very negative VN negative N null NN positive P very positive VP Linguistic Variable: Derivative of Error (DE) Linguistic Value Notation Small S Large L Linguistic Variable: Control Effort (CE) Linguistic Value Notation Very Negative VN Negative Medium NM Medium M Positive Medium PM Very Positive VP The Figure 4 shows the block diagram utilized in simulation, where the block called dead zone is representing the friction existing in the motor.
  • 6. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021 24 Figure 4. Fuzzy Control System for the simulation Figure 4 represents a position control system, and the work consists of two steps: in order to assessing and validating the proposed controllers, simulation is done using the Matlab software. After, the fuzzy controllers are applied in the real plant where some robustness tests will be done in the presence uncertainties and disturbances. The table 2 summarizes the rules set proposed when Mamdani inference method is applied. Table 2. Mamdani rules NVL NL N PL PVL S X X PM X X L X X NM X X X VN NM M PM VP In table 2, X means not significant, that is, it does not significantly interfere in the dynamics of the system. The membership functions utilized were obtained after many tests and are shown in figures 5, 6 and 7. Figure 5. Membership functions: Error
  • 7. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021 25 Figure 6. Membership functions: Derivative of error Figure 7. Membership functions: Output The rules defined in Takagi- Sugeno inference method is shown in table 3. Table 3. Takagi-Sugeno rules if And Then control effort is Error is null - 0 Error is negative - -5 Error is positive - 5 Error is positive medium - Error is negative medium - Error is null Derivativeof error Error is null Derivativeof error
  • 8. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021 26 where 𝑥1 = error and 𝑥2 = derivative of error These rules were obtained through of knowledge of plant after many tests and changing rules and membership functions until to obtain a satisfactory response. 3.1. Simulation Results The simulations were done through of Matlab software and considering mathematical model of the plant as shown in Figure 4. The system response to the step as a set point and applying Mamdani's inference method is shown in Figure 8. Figure 8. Response to the step of value equal to 2- Mamdani Figure 9 shows the output of the system when is applied Takagi- Sugeno's inference method. Figure 9. Response to the step of value equal to 2- Takagi- Sugeno As can be seen in figures 8 and 9, the Takagi- Sugeno inference method presents better results than Mamdani inference with regard to the steady state error and settling time. Table 4 show the approximated values of performance of the system.
  • 9. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021 27 Table 4. Comparison of Performance- Simulation Output Performance Mamdani Takagi- Sugeno Error 0.3 0.07 Settling Time 2 seconds 1.5 second Overshoot 0% 0% This application in simulation shows that the fuzzy controller proposed can be promising in application in a real plant. It is known that mathematical model is an approximation of the real plant and do not consider non- linearities, backlash effect and some parameters of the system when compared to the real plant. So, becomes necessary to apply the fuzzy controllers obtained in the real plant which contain non- linearities, backlash effect due to the gears and some noises. 3.2. Experimental Results The fuzzy controllers shown in the preview section will be implemented in a real systemthrough data acquisition process using the data acquisition toolbox contained in Matlab software. Here was utilized a real servomechanism, a data acquisition board National Instruments 6221- 37 pin installed in the computer and an interface National Instruments for communication between Simulink and real plant. The Figure 9 illustrates a basic idea of the configuration utilized. Figure 9. Layout for tests in real plant Figure 10 shows the model utilized in the Simulink/ Matlab using data acquisition. The set point is a square wave form of 0.2Hz and peak value equal to 2.
  • 10. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021 28 Figure 10. Fuzzy Control System The membership functions of the inputs and outputs are showed in figures 11, 12 and 13, respectively. In this practical application was necessary to change membership functions. Figure 11. New membership functions: Error Figure 12. New membership functions: Derivative of error
  • 11. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021 29 Figure 13. New membership functions: Output The rules adopted are shown in table 5. Table 5. Mamdani rules if And Then control effort is Error is null - null Error is negative - negative Error is positive - positive Error is positive medium - positive medium Error is negativemedium - negative medium Error is null Derivative of error positive medium Error is null Derivative of error negative medium The figures 14 and 15 show the results obtained without disturbance and with disturbance, respectively.
  • 12. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021 30 Figure 14. Response of the real system using the Mamdani inference method without disturbance Figure 15. Response of the real system using the Mamdani inference method with the addition ofdisturbance The same procedure was realized applying the Takagi- Sugeno’s inference method. Inthis case, the rules that produced the best results are shown in table 6.
  • 13. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021 31 Table 6. Takagi-Sugeno rules if And Then control effort is Error is null - 0 Error is negative - -3 Error is positive - 3 Error is positive - medium Error is negativemedium - Error is null Derivative of error Error is null Derivative of error The figures 16 and 17 shown the response of the system without disturbance and with disturbance, respectively. Figure 16. Response of the real system using the Takagi-Sugeno inference method without disturbance
  • 14. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021 32 Figure 17. Response of the real system using the Takagi-Sugeno inference method with theaddition of disturbance As can be seen in the experimental results presented, Takagi- Sugeno inference method presents a better result than Mamdani inference method in the application proposed in this work. As can be seen in figures 16 and 17, when is utilized the fuzzy controller based in the Takagi- Sugeno inference method, the response of the system is faster than fuzzy controller based in the Mamdani inference method. Table 7 show the approximated values of performance of the system Table 7. Comparison of Performance- Simulation Output Performance Mamdani Takagi- Sugeno Error 0.56 0.22 Settling Time 1.5 seconds 0.5 second Overshoot 3% 0% Furthermore, the results indicate that for the application proposed here, the controller based on Takagi- Sugeno inference method seems has more robustness and precision when compared to the Mamdani inference method. 4. CONCLUSIONS In this work, was proposed a position control using a fuzzy controller. The applicationis based in two controllers: a fuzzy controller using Mamdani inference method and another controller using Takagi- Sugeno inference method. Firstly, was done a simulation using the
  • 15. International Journal of Fuzzy Logic Systems (IJFLS) Vol.11, No.2/3/4, October 2021 33 mathematical model of a servomechanism in order to assessing and validating the proposed controllers. After, the two controllers were applied in real plant, where nonlinearities, noises and backlash effect are present in the system. Analyzing the responses presented by the simulations, Takagi-Sugeno inference methodpresents low settling time and very low steady state error. When comparing the results obtained with the experiments in real plants, was found that the method of inference Takagi-Sugeno presents greater robustness, less steady state error and less settling time even in the presence of disturbance and nonlinearities of the system. For both methods, changes in the membership functions were necessary in practical application due to some non-linearities, noises and backlash effect. So, in the application proposed in this work, Takagi- Sugeno inference method toposition control in the presence of uncertainties, disturbance and nonlinearities, produces a better result when compared with Mamdani inference method Here, the control based on Takagi- Sugeno inference method shown more robustness and better relative stability. As future study, can be very promising the application of control basedon fuzzy type- 2. REFERENCES [1] Zadeh L. A. Fuzzy sets, Information and Control, p. 338–353, 1965. [2] Zimmermann H. J. Fuzzy Set Theoryand its Aplication. Kluwer Academic, Boston, 1996. [3] Altrok, C.V. Fuzzy Logic & Neurofuzzy Applications Explained, Prentice Hall,New Jersey, 1995. [4] Mamdani E. H; Assilian S. An Experiment in Linguistic Synthesis with a Fuzzy Logic Controller. Int. J. Man- Machine Studies, v.7, p. 1-13, 1975. [5] Takagi T., Sugeno M. Fuzzy Identification of Systems and Its Applications to Modeling and Control. IEEE Transactions on Systems, Man, and Cybernetics, v.15, 1985. [6] Wang Y., Chen, Y. A Comparison of Mamdani and Sugeno Fuzzy InferenceSystems for Traffic Flow Prediction. Journal of Computers, v.9, n. 1, 2014. [7] Ariff, R.M.; Hanafi, D.; Utomo, W.M.; Sim, S.Y.; Bohari, A.A. Comparison of Sugeno-Type and Mamdani-Type Speed Controller for Induction Motor Drive System. In Proceedings of the 3rd International Conference on Computer Engineering and Mathematical Sciences (ICCEMS 2014), Langkawi, Malaysia,4–5 December 2014; pp. 387–391. [8] Subhedar M, Birajdar G. Comparison of Mamdani and Sugeno inference systems for dynamic spectrum allocation in cognitive radio networks. Wireless Pers Commun.; v. 71, p.805–819, 2013. [9] Rakovic M. et al. Fuzzy Position- velocity Control of Underactuated Finger ofFTN Robot Hand. Journal of Intelligent and Fuzzy Systems, v. 34, 2018. [10] Yildirim S. Angular Position Control of 3- Cars Crane System Using ProposedFuzzy- PID Controller. Recent Innovations in Mechatronics, v.7, 2020. [11] Mamdani E. H. Application of Fuzzy Logic to Approximate Reasoning Using Linguistic Synthesis. IEEE Transactions on Computers, v. C26, p. 1182- 1191,1977. [12] Takagi T., Sugeno M. Fuzzy Identification of Systems and its Applications to Modeling and Control. IEEE Transactions on Systems, Man, and Cybernetics, v.SMC-15, p. 116- 132, 1985.