Abstract
The aim of this paper is to design a controller for Inverted Pendulum. With the help of PID Controller, it develops for tuning Fuzzy Logic Controller, Adaptive Neuro Fuzzy Inference System (ANFIS) Controller. PID Controller has been certain limitations. These limitations can be taken to acumen methods. This paper presents the acumen methods based on Fuzzy Logic, ANFIS for tuning a PID Controller used for the control of Inverted Pendulum. It reveals Fuzzy Logic Controller and ANFIS are acumen methods provide better performance than the PID Controller.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
The Inverted Pendulum is one of the most ancient problems of control engineering. Inverted Pendulum is highly nonlinear system and unstable (upwards) in open loop. It consists of a moving cart and oscillating pendulum. The aim of the work is to move the cart to its commanded position without causing the pendulum to tip over. PID Controller is a commonly used in controlling industrial loops owing to its simple structure, easy implementation, robust nature, and less numbers of parameters [1, 2]. Proportional, integral, and derivative are the controllers output, a control variable (CV) is a measure of error (e) between set point (SP) and process variable (PV) [3]. However, the method is not suitable for higher order systems. Fuzzy control techniques can provide a good solution for those above problems by introducing linguistic information. Fuzzy systems are knowledge-based or rule-based systems that contain descriptive IF-THEN rules that are created from human knowledge and experience. ANFIS is a combination of both Neural Network and Fuzzy system. The ANFIS control is developed using supervised learning (i.e., the input–output data sets are known). ANFIS refers to a set of adaptive networks, having a similar function corresponds to fuzzy inference systems.
The acumen method based on Fuzzy Logic and ANFIS for tuning a PID Controller has been compared. The controller tuned by various methods has been used for the control of Inverted Pendulum. The acumen methods provide better performance in terms of various performance specifications than the PID Controller.
This paper is organized in four sections. Section 1 gives the general introduction of the paper. Section 2 represents the problem formulation. Section 3 the tuning of PID Controller using various acumen methods such as Fuzzy Logic and ANFIS has been discussed. The results, comparison, and discussion are given in Sect. 4. At the end conclusion and brief list of references are given.
2 Problem Formulations
The aim of this paper is to design a PID, Fuzzy Logic and ANFIS controller. The Inverted Pendulum is unstable in an open loop system (i.e., without any controller). To control this system, we have to design a controller. Finally, these controllers which will give the effective output are compared. The dynamic equation of the cart and pendulum in Laplace transform form is as follows:
The plant has two transfer function model. The first is the Cart’s position and the second is the pendulum of the angle given below [4]:
3 Conventional and Acumen Methods
3.1 PID Controller
A control loop feedback device for a Proportional-Integral-Derivative (PID) controller is extensively used in industrial control loops [5]. It calculates an error value as the deviation between PV and SP. The output of the PID Controller in the time domain is as follows [6]:
The control signal (u) to the plant is the super-positioned output of the proportional (k p ), derivative (k d ) and integral term (k i ) of the error with respect to time.
3.2 Fuzzy Logic Controller
Nonlinear, unstable, process dynamics system proves that the conventional PID Controller will not produce better performance. To get better response, it is essential to tune automatically the PID Controller. Fuzzy Logic controller will do the automatic tuning of PID Controller. Fuzzy Logic system translates the linguistic control scheme into robotic control scheme. A fuzzy is characterized by a membership function which provides a grade between 0 and 1 for all the objects defined in the set. Fuzzy sets allow partial membership which means that an element may partially belong to more than one set [7]. The inputs are error and the rate of change of error (Δe) while the output is controller output (y). For finding the universe of discourse for the input and output membership functions, the PID Controller has been tuned using Ziegler–Nicholas method, and hence the input output membership functions will be found out [8].
The position FIS has nine rules with the three membership functions triangular type. The input1 (error) membership function ranges are from −1 to 1 and the input2 (derivative) membership function ranges are from −1 to 1 respectively. The output membership function ranges are from −1 to 1 respectively. The angle FIS structure has twenty five rules with the five membership functions triangular type. The input1 (error) membership function ranges are from −5 to 5 and the input2 (derivative) membership function ranges are from −7 to 7 respectively. The output membership function ranges are from −35 to 35 respectively.
3.3 ANFIS Controller
ANFIS is a combination of neural network and Fuzzy Logic features [9]. ANFIS develops a Takagi Sugeno fuzzy inference system (FIS) with the help of the input output dataset. Using the back propagation algorithm, error tolerance, and epochs the membership functions are acquired. The input–output dataset will be taken from the PID Controller tuning using conventional method for both position and angle [10–13]. The inputs are error and the rate of change of error, while the output is controller output (y). The input–output dataset will be loaded in the ANFIS toolbox for both position and angle.
Initially, the position data set will be loaded and then by assigning the above terms will acquire the membership function. We have to reduce the average error into minimum range and then it will be saved as a FIS structure. Figure 1 shows that the loading of training data in ANFIS and Fig. 2 shows that the training of FIS in ANFIS for position control.
A total of 736 data points are considered which are collected from PID position control and stored in workspace of MATLAB ANFIS toolbox. FIS are generated using subtractive clustering with two membership function and two rules. The average testing error of position control is as 0.23624. Figure 3 shows that the loading of training data in ANFIS and Fig. 4 shows that the training of FIS in ANFIS for angle control.
A total of 2740 data points are considered which are collected from PID angle control and stored in workspace of MATLAB ANFIS toolbox. FIS are generated using grid partition with five membership function and twenty five rules. The error of angle control is as 0.57216. That FIS structure should be placed in the control system block instead of controller. The input can be any test signal, usually we use step signal as input for the position control and we use discrete impulse as input for the angle control. Hence, the output should track the input which we are giving.
4 Results, Comparison, and Discussion
The transfer function of Cart’s Position is subjected to step input and the transfer function of Pendulum’s angle is subjected to discrete impulse. The design of the controller corresponds to various methods has been shown in Figs. 5, 6, 7, 8, 9 and 10 using different tuning methods.
4.1 PID Controller
The response of the PID Controller for the position of the cart with input step time as 2 and final set point value as 1.
The response of the PID Controller for the Pendulum’s angle with discrete impulse input delay as 2 and final set point value as 0.
4.2 Fuzzy Logic Controller
The response of the Fuzzy Logic controller for the position of the cart with input step time as 1 and final set point value as 1.
The response of the Fuzzy Logic controller for the angle of the pendulum with discrete impulse input delay as 2 and final set point value as 0.
4.3 ANFIS Controller
The response of the ANFIS controller for the position of the cart with input step time as 1 and final set point value as 1.
The response of the ANFIS controller for the angle of the pendulum with discrete impulse input delay as 2 and final set point value as 0.
The comparison among different acumen methods in terms of various performance specifications using acumen and conventional methods has been shown in Table 1.
From comparison among two acumen methods for tuning a PID Controller can be concluded that
-
The rise time is less in conventional PID Controller than the acumen methods.
-
Settling time and overshoot has given best performance in ANFIS and PID.
-
Hence, the acumen methods give the better performance when compared with conventional PID Controller.
5 Conclusion
The controller for Inverted Pendulum has been designed. The tuning of a PID Controller is compared with Fuzzy Logic and Adaptive Neuro Fuzzy Inference System (ANFIS). The controller tuned by the acumen methods is used to control the Inverted Pendulum. This investigation result shows that by using both PID and Fuzzy Logic approach, ANFIS provides better performance. The future work can be carried out by applying neuro fuzzy architecture techniques like FALCON, GARIC, or NEFCON to control the Inverted Pendulum.
References
Er MJ, Lei Ya (2001) Hybrid fuzzy proportional-integral plus conventional derivative control of linear and nonlinear systems. IEEE Trans Industr Electron 48(6):1109–1117
Prasad LB, Tyagi B, Gupta HO (2011) Optimal control of nonlinear inverted pendulum dynamical system with disturbance input using PID controller and LQR. In: IEEE international conference on control system. ISSN:978-1-4577-1642-3
Kumar R, Singh RB, Das J (2013) Modeling and simulation of inverted pendulum system using matlab: overview. Int J Mech Prod Eng 1(4). ISSN:2320-2092
Krishnan TR, Ghosh SS, Ghosh A, Subudhi B (2012) Periodic compensation of an inverted-cart pendulum system. Advances in control and optimization of dynamical systems (ACODS), IISC Bangalore
Astrom KJ, Hagglund T (1995) PID controllers: theory, design and tuning, 2nd edn. Instrument Society of America
Coughanowr DR (1991) Process system analysis and control, 2nd edn
Ji CW, Lei F, Kin LK (1997) Fuzzy logic controller for an inverted pendulum system. IEEE Int Conf Intell Process Syst. ISSN:0-7803-4253-4
Prasad LB, Tyagi B, Gupta HO (2011) Intelligent control of nonlinear inverted pendulum dynamical system with disturbance input using fuzzy logic systems. Int Conf Recent Adv Electr. ISSN:978-1-4577-2149-6
Shing J, Jang R (1993) ANFIS: adaptive network based fuzzy inference system. IEEE Trans Syst Man Cybern 23(3)
Kharola A, Gupta P (2014) Stabilization of inverted pendulum using hybrid adaptive neuro fuzzy (ANFIS) controller. Eng Sci Lett. ISSN:2052-5257
Goswami A (2013) The analysis of inverted pendulum control and its other applications. J Appl Math Bioinform 3(2). ISSN:1792-6602 (print), 1792-6939 (online)
Gite AV, Bodade RM, Raut BM (2013) ANFIS controller and its application. Int J Eng Res Technol (IJERT) 2(2). ISSN:2278-0181
Somwanshi K, Srivastava M, Panchariya R (2012) Analysis of control of inverted pendulum using adaptive neuro fuzzy system. Int J Adv Res Comput Eng Technol (IJARCET) 1(6). ISSN:2278-1323
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2016 Springer India
About this paper
Cite this paper
Nemitha, S., Vijaya Bhaskar, B., Rakesh Kumar, S. (2016). A Comparative Study of Inverted Pendulum. In: Suresh, L., Panigrahi, B. (eds) Proceedings of the International Conference on Soft Computing Systems. Advances in Intelligent Systems and Computing, vol 397. Springer, New Delhi. https://doi.org/10.1007/978-81-322-2671-0_57
Download citation
DOI: https://doi.org/10.1007/978-81-322-2671-0_57
Published:
Publisher Name: Springer, New Delhi
Print ISBN: 978-81-322-2669-7
Online ISBN: 978-81-322-2671-0
eBook Packages: EngineeringEngineering (R0)