OPTIMAL-TUNING OF PID CONTROLLER GAINS USING GENETIC ALGORITHMS



Similar documents
FUZZY Based PID Controller for Speed Control of D.C. Motor Using LabVIEW

PID Controller Tuning: A Short Tutorial

Manufacturing Equipment Modeling

EECE 460 : Control System Design

DCMS DC MOTOR SYSTEM User Manual

Implementation of Fuzzy and PID Controller to Water Level System using LabView

Performance Analysis of Speed Control of Direct Current (DC) Motor using Traditional Tuning Controller

PID Control. Chapter 10

Drivetech, Inc. Innovations in Motor Control, Drives, and Power Electronics

Mathematical Modeling and Dynamic Simulation of a Class of Drive Systems with Permanent Magnet Synchronous Motors

Available online at Available online at

Dr. Yeffry Handoko Putra, S.T., M.T

Motor Modeling and Position Control Lab Week 3: Closed Loop Control

EE 402 RECITATION #13 REPORT

Matlab and Simulink. Matlab and Simulink for Control

ADAPTATION OF PARALLEL VIRTUAL MACHINES MECHANISMS TO PARALLEL SYSTEMS

Time Response Analysis of DC Motor using Armature Control Method and Its Performance Improvement using PID Controller

Online Tuning of Artificial Neural Networks for Induction Motor Control

dspace DSP DS-1104 based State Observer Design for Position Control of DC Servo Motor

Controller Design in Frequency Domain

Power Electronics. Prof. K. Gopakumar. Centre for Electronics Design and Technology. Indian Institute of Science, Bangalore.

Simulation of VSI-Fed Variable Speed Drive Using PI-Fuzzy based SVM-DTC Technique

EDUMECH Mechatronic Instructional Systems. Ball on Beam System

Optimal Tuning of PID Controller Using Meta Heuristic Approach

Application Information

Stabilizing a Gimbal Platform using Self-Tuning Fuzzy PID Controller

SPEED CONTROL OF INDUCTION MACHINE WITH REDUCTION IN TORQUE RIPPLE USING ROBUST SPACE-VECTOR MODULATION DTC SCHEME

PID Control. 6.1 Introduction

A Study of Speed Control of PMDC Motor Using Auto-tuning of PID Controller through LabVIEW

A simple method to determine control valve performance and its impacts on control loop performance

Brushless DC Motor Speed Control using both PI Controller and Fuzzy PI Controller

A Fuzzy-Based Speed Control of DC Motor Using Combined Armature Voltage and Field Current

SYNCHRONOUS MACHINES

QNET Experiment #06: HVAC Proportional- Integral (PI) Temperature Control Heating, Ventilation, and Air Conditioning Trainer (HVACT)

A Comparison of PID Controller Tuning Methods for Three Tank Level Process

An Industrial Case Study - Control of BeoSound 9000 Sledge System

Proceeding of 5th International Mechanical Engineering Forum 2012 June 20th 2012 June 22nd 2012, Prague, Czech Republic

SIMPLE MODEL FOR THE INPUT IMPEDANCE OF RECTANGULAR MICROSTRIP ANTENNA

Brush DC Motor Basics. by Simon Pata Business Unit Manager, Brushless DC

E x p e r i m e n t 5 DC Motor Speed Control

Technical Guide No High Performance Drives -- speed and torque regulation

Optimal PID Controller Design for AVR System

Motor Control. Suppose we wish to use a microprocessor to control a motor - (or to control the load attached to the motor!) Power supply.

Current Loop Tuning Procedure. Servo Drive Current Loop Tuning Procedure (intended for Analog input PWM output servo drives) General Procedure AN-015

The Use of Hybrid Regulator in Design of Control Systems

Ziegler-Nichols-Based Intelligent Fuzzy PID Controller Design for Antenna Tracking System

Dynamic Simulation of Induction Motor Drive using Neuro Controller

Practical Process Control For Engineers and Technicians

Lab Session 4 Introduction to the DC Motor

On the Influence of Stator Slot shape on the Energy Conservation Associated with the Submersible Induction Motors

A Design of a PID Self-Tuning Controller Using LabVIEW

ELECTRICAL ENGINEERING

SERVO CONTROL SYSTEMS 1: DC Servomechanisms

Chapter 11 Current Programmed Control

2.6. In-Laboratory Session QICii Modelling Module. Modelling Module Description

Simulation and Analysis of Parameter Identification Techniques for Induction Motor Drive

SAMPLE CHAPTERS UNESCO EOLSS PID CONTROL. Araki M. Kyoto University, Japan

An Efficient Hybrid MoM/FEM Method for Analyzing the Enclosures With Apertures Açıklıklı Kutuların Analizinde Etkin Bir Hibrid MoM/FEM Yöntemi

International Journal of Software and Web Sciences (IJSWS)

POTENTIAL OF STATE-FEEDBACK CONTROL FOR MACHINE TOOLS DRIVES

ABSTRACT. Keyword double rotary inverted pendulum, fuzzy logic controller, nonlinear system, LQR, MATLAB software 1 PREFACE

Measurement Products. PID control theory made easy Optimising plant performance with modern process controllers

13 ELECTRIC MOTORS Basic Relations

Adaptive Cruise Control of a Passenger Car Using Hybrid of Sliding Mode Control and Fuzzy Logic Control

Fault Monitoring of the Electric Machine in a Hybrid Vehicle

USE OF PHASE CHANGE MATERIAL (PCM) FOR FROST PREVENTION IN A MODEL GREENHOUSE

DECREASING HEAT TREATMENT COST OF SURFACE HARDENED MACHINE PARTS BY CASE CARBURIZATION

DC motors: dynamic model and control techniques

Adıgüzel Hydroelectric Power Plant Modeling and Load-Frequency Control

Reactive Power Control of an Alternator with Static Excitation System Connected to a Network

A Robust Method for Solving Transcendental Equations

Transient analysis of integrated solar/diesel hybrid power system using MATLAB Simulink

Power Quality Analysis and Evaluation at Water Pumping Station Supplied by Medium Voltage

Real-Time Systems Versus Cyber-Physical Systems: Where is the Difference?

Power Quality Paper #3

PC BASED PID TEMPERATURE CONTROLLER

Dually Fed Permanent Magnet Synchronous Generator Condition Monitoring Using Stator Current

SIGNAL FLOW GRAPHS. Prof. S. C.Pilli, Principal, Session: XI, 19/09/06 K.L.E.S. College of Engineering and Technology, Belgaum

Control System Definition

Understanding Poles and Zeros

Mathematical Modeling and Engineering Problem Solving

Automatic Stress and Load Testing for Embedded Systems

stable response to load disturbances, e.g., an exothermic reaction.

BSEE Degree Plan Bachelor of Science in Electrical Engineering:

Precise Modelling of a Gantry Crane System Including Friction, 3D Angular Swing and Hoisting Cable Flexibility

A Fast Computational Genetic Algorithm for Economic Load Dispatch

Active Vibration Isolation of an Unbalanced Machine Spindle

Simulation and Analysis of PWM Inverter Fed Induction Motor Drive

Physics 9e/Cutnell. correlated to the. College Board AP Physics 1 Course Objectives

CHAPTER 3 SECURITY CONSTRAINED OPTIMAL SHORT-TERM HYDROTHERMAL SCHEDULING

How to Turn an AC Induction Motor Into a DC Motor (A Matter of Perspective) Steve Bowling Application Segments Engineer Microchip Technology, Inc.

1. s to Z-Domain Transfer Function

Applications of Fuzzy Logic in Control Design

Motors and Generators

A STUDY ON THE CONVENTIONAL AND FUZZY CONTROL STEEL-CUTTING PROCESS

Advantages of Auto-tuning for Servo-motors

Flux Conference High Efficiency Motor Design for Electric Vehicles

Development and deployment of a control system for energy storage

Unsteady Pressure Measurements

Genetic Algorithms for Multi-Objective Optimization in Dynamic Systems

Transcription:

PAMUKKALE ÜNİ VERSİ TESİ MÜHENDİ SLİ K FAKÜLTESİ PAMUKKALE UNIVERSITY ENGINEERING COLLEGE MÜHENDİ SLİ K B İ L İ MLERİ DERGİ S İ JOURNAL OF ENGINEERING SCIENCES YIL CİLT SAYI SAYFA : 005 : 11 : 1 : 11-15 OPTIMAL-TUNING OF PID CONTROLLER GAINS USING GENETIC ALGORITHMS Ömer GÜNDOĞDU Atatürk Üniversitesi, Mühendislik Fakültesi, Makine Mühendisliği Bölümü, 540/Erzurum Geliş Tarihi : 18.05.004 ABSTRACT This paper presents a method of optimum parameter tuning of a PID controller to be used in driving an inertial load by a dc motor thorough a gearbox. Specifically, the method uses genetic algorithms to determine the optimum controller parameters by minimizing the sum of the integral of the squared error and the squared controller output deviated from its steady state value. The paper suggests the use of Ziegler-Nichols settings to form the intervals for the controller parameters in which the population to be formed. The results obtained from the genetic algorithms are compared with the ones from Ziegler-Nichols in both figures and tabular form. Comparatively better results are obtained in the genetic algorithm case. Key Words : PID, Controller tuning, Optimal-tuning, Genetic algorithms, DC motor control GENETİK ALGORİTMA KULLANILARAK PID KONTROLCÜ KAZANÇLARININ OPTİMUM AYARLANMASI ÖZET Makale, bir dişli kutusuyla tahrik edilen ataletli bir kütlenin kontrolünde kullanılacak PID kazançlarının optimum ayarlanmasına ait bir metodu sunar. Özellikle yöntem, hata kareleriyle kontrolcü çıkışının kararlı haldeki değeri farkının karesi toplamının integralini mizimize ederek optimum kontrolcü parametrelerini tanımlamak için genetik algoritmaları kullanır. Makale, popülasyonun oluşturulacağı kontrolcü parametre aralığını oluşturmak için, Ziegler-Nichols yönteminin önerdiği değerlerin kullanımını önerir. Genetik algoritmalardan elde edilen sonuçlar ile Ziegler-Nichols sonuçları hem tablolar hem de grafikler şeklinde karşılaştırılmıştır. Genetik algoritmalar kullanıldığında daha iyi sonuçlar elde edilmiştir. Anahtar Kelimeler : 1. INTRODUCTION At the beginning of the new millennium, PID controllers continue to be the main components of the industrial control applications. New methods were developed through the improvement of the shortcomings of PID controllers in the last century. However, because of their simple and useful nature, they still present powerful solutions to the industrial control processes (Åström et al., 001). It is certainly one of the most important topics in the design of PID controllers is the adjustment of controller parameters according to a certain tuning criteria. It is beyond the scope of this paper to cite all the investigations in the literature on the tuning of PID controllers, however some of these methods were included here to give an idea to the reader. For example, the Ziegler-Nichols formulation is a classical tuning method which found a wide range of applications in the controller design process. 11

However, computing the gains does not always give best results because the tuning criteria presume a one-fourth reduction in the first two-peaks (Goodwin et al., 001). Hence, the industrial controllers designed with this method should be tuned further before a use (Wu and Huang, 1997). Another approach in the design of controllers is the frequency response techniques for tuning the controller parameters for optimum gain and phase margins (Åström and Hägglund, 1984; Ho et al., 1999; Wang and Shao, 000). The magnitude optimum multiple integration tuning method (Vrancic et al., 1999; Vrancic et al., 001) was also used to get a non-oscillatory closed-loop response. In the last decade, artificial intelligence applications were also introduced to the PID controllers. Particularly, the fuzzy (He et al., 199; Misir et al., 1996; Blanchett et al., 000), the neuro-fuzzy (Chen and Linkens, 1998), the fuzzy-genetic (Bandyopadhyay et al., 001), and the neuro-genetic (Lima and Ruano, 000) approaches have been utilized. In this study, a simple effective method is developed to optimally tune PID controller gains using both Ziegler-Nichols (ZN) and Genetic Algorithms (GA). Since the determination of the lower and upper bounds for the PID parameter populations is difficult without making a large number of experiments (Grefenstette, 1986) in GA, ZN rules can easily be used to obtain the vicinity of the proportional, integral and derivative gains. Therefore, the ranges are initially defined from ZN rules. Then, these parameters are tuned optimally with respect to the objective function stated as sum of the integral of the squared error and the squared controller output deviated from its steady state value (Wilton, 1999). The main advantage of using genetic algorithms in the tuning of controllers rather than using ZN rules is the adaptability to any constraints desired by a designer. Other advantages include but not limited to- their ease to be used in linear or nonlinear, and continuous or discrete systems, or any combination of them. According to the results presented in this study, better results were obtained by using GA compared with the method using ZN in terms of both step response and controller output.. MATHEMATICAL MODEL The physical system to be controlled is composed of an inertial load driven by a DC motor through a gear box with a reduction ratio of N: 1. The schematic illustration of the system is presented in Figure 1. The system is to integrate a PID controller in a closed loop with a unity feedback. R L + V E Motor Bearing Output Load Speed Ω - B 1 Load Bearing Load Inertia J L B Figure1. A DC motor driven load The armature equation can be written using Kirchhhoff s voltage law as, di v (t) = E + L + Ri, (1) dt Where v is the armature voltage, E is the back electromotive force (e.m.f.) generated by the armature winding, L is the inductance of the armature winding, R is the resistance of the armature, and i is the armature current. The back e.m.f. is directly related to the motor speed, and hence E = K e ω () Where K e is the coefficient of e.m.f., and is taken as 0. V.s/rad and ω the motor angular speed (rad/sec). Mühendislik Bilimleri Dergisi 005 11 (1) 11-15 1 Journal of Engineering Sciences 005 11 (1) 11-15

Defining the load angular speed as Ω (rad/s), the speed ratio can be written as ω N = () Ω The armature current which is proportional to the motor torque T M can be written as 1 i = TM (4) K t Where K t for the motor under investigation is 0. N.m/A. The motor torque T M can be written from the balance between the power required by the load and that supplied from the motor as JL + JMN η dω B + B1N η TM = ( ) + ( ) Ω (5) Nη dt Nη Combining the equations (4) and (5), and plugging the current expression and its time derivative into the equation (1) result in a differential equation describing the input-output relation of the above system. Using the parameter values listed below (Fraser and Milne, 1994), one can obtain the differential equation describing the system as d Ω dω + 5.8 + 4.09Ω = 0.1059V dt dt and the transfer function as (6) Ω(s) 0.1059 G(s) = = (7) V(s) s + 5.8s + 4.09 Where the parameter values are shown in Table 1. Table 1. Descriptions and Values for the Parameters Used in the Formulations Description Symbols Units Numerical Values Motor armature inertia J m kg.m² 0.1 Armature resistance R ohms 0.5 Armature inductance L H 0.1 Motor bearing friction B 1 N.m.s/rad 0.05 Load bearing friction B N.m.s/rad 00 Load inertia J L kg.m² 800 Gear ratio K d - 100/1 Transmission efficiency η - 0.90. DESIGN OF A PID CONTROLLER A schematic of a block diagram representing a simple single input single output system with a negative unity feedback is shown in Figure. R(s) + - e(s) C(s u(s) G(s) Y(s) Figure. A block diagram representing a SISO system The PID controller transfer function relating the error e(s) and the controller output u(s) is given as, C(s) 1 = K P (1 + + Tds) (8) T s i Where, T i and T d are the reset and the derivative times, respectively. The first term in the Eqn. 8 represents proportionality effect on the error signal, whereas the second and the third represent the integral and the derivative effects. The reader should refer to the references representing the details of the controller parameter selection such as (Fraser and Milne, 1994; Goodwin et al., 001). One of the most effective ways for describing the selection of controller gains is to use open loop step response as suggested by Ziegler-Nichols. However, this method intends to have a ratio of 4:1 for the first and second peaks in the closed loop response curve, which results in an oscillatory response (Goodwin et al., 001). Since the optimum settings for this controller are desired, these parameter settings provide designers an excellent starting point for the parameter tuning. As a first step, the unit step response of the system (Eqn. 7) is obtained (see Figure ). The parameters required for this study can easily be found using this response as suggested by Ziegler-Nichols. The dead time and the time constant are respectively found to be T 1 = 0.1 s and T = 1.9 s, and the controller parameters found from the Ziegler-Nichols rules were presented in Table. Table. Controller parameters defined from two methods K P T d (sec) T i (sec) Ziegler-Nichols 84.4 0.05 0. Genetic Algorithm 97. 0.1 0.58 Mühendislik Bilimleri Dergisi 005 11 (1) 11-15 1 Journal of Engineering Sciences 005 11 (1) 11-15

and output difference, which has a desirable effect on the robustness and overshoot. The input error is relative to reference input, whereas the output error is due to its steady-state output (Wilton, 1999). The objective function given above was minimized by a genetic algorithm coded in MATLAB using Goldberg s (1989) algorithm. A constant population size of 0 with a string length of 0 was used in the GA by using a crossover probability, P c, of 0.001, and a mutation probability rate, P m, of 0.00. The optimized parameters were presented in Table. Figure. Open loop step response of the system 5. RESULTS AND DISCUSSION 4. OPTIMUM TUNING In the design of PID controllers, Ziegler-Nichols settings give an oscillatory response of the system; hence the parameters found by this method cannot be implemented in the designs as computed. However, it can be used with the genetic algorithm to form possible interval for the controller parameter set. Since determining precise intervals for these gains have not been developed yet, it is wise to use these gains as the first step towards tuning the controller. For example, the lower and upper bounds for the design parameters can be formed around the values found from Ziegler-Nichols method, such as one-third for lower bound and three-fold for the upper bound K as P KP [, K P ], Ti Ti [, T i ], and Td Td [, Td ]. One of the most commonly used methods in tuning of controller gains is to minimize the integral of the squared error due to a unit step change in the reference input. This tuning, however, may lead to excessive controller output swings that cause the system disturbances. Another preferred method is to minimize the integral of the squared error and the squared controller output deviation from its final value u, simultaneously. 0 c J = [e(t) + A (u(t) u ) ]dt (9) In this study, a mathematical model of a dc motor driven inertial load with a gearbox was developed and simulated both to design a PID controller and to tune it. The Ziegler-Nichols rules were used to form the intervals for the design parameters in genetic algorithms to tune the controller by minimizing an objective function described in the previous sections. The controller gains were computed by using both the Zeigler-Nichols rules and the genetic algorithms. The gains found from both methods were listed in Table. Since driving conclusions from the gains was not trivial, step responses were drawn for each case and commonly accepted performance criteria such as overshoot and settling times were computed for the comparisons. Step responses and controller outputs for the two designs were presented in the Figure 4 and 5. It is clearly shown in the figures that the genetic optimum (GA) solutions (present) are less oscillatory than those of Ziegler-Nichols (Z-N) design in both step response and controller output. Although a comparatively smaller rise time (T r ) and settling time (T s ) were obtained from Ziegler- Nichols, genetic algorithm solution had a very small overshoot (OS) with respect to the final value on the step steady-state. These results were presented in Table. In conclusion, superior results were obtained in terms of system performance and controller output by using genetic algorithms for tuning PID controllers when these values compared on the tables and figures. Table. Response Characteristics of the System for a Unit Step Overshoot (%) T r (sec) T s (sec) Ziegler-Nichols % 58 0.1 1.60 Genetic 0.9 1.68 % 1 Algorithm Where A c is a weighting parameter providing an adjustment in between the squared controller input Mühendislik Bilimleri Dergisi 005 11 (1) 11-15 14 Journal of Engineering Sciences 005 11 (1) 11-15

Chen, M. and Linkens, D.A. 1998. A hybrid Neuro- Fuzzy PID Controller, Fuzzy Sets and Systems, 99, 7-6. Fraser, C. and Milne, J. 1994. Electro-Mechanical Engineering: An Integrated Approach, IEEE Press, New Jersey. Goldberg, D. E. 1989. Genetic Algorithms in Search, Optimization and Machine Learning, Addison-Wesley, Reading, MA. Figure 4. Closed loop unit step response of the system with the controllers Goodwin, G. C., Graebe, S. F. and Salgado, M.E. 001. Control System Design, Prentice Hall Inc., New Jersey. Grefenstette, J. J. 1986. Optimization of Control Parameters for Genetic Algorithms, IEEE Trans. Systems, Man, and Cybernetics, SMC-16 (1), 1-18. He, S. Z., Tan, S., Xu, F-L. and Wang, P. Z. 199. Fuzzy self-tuning of PID controllers, Fuzzy Sets and Systems, 56, 7-46. Ho, W. K., Lim, K.W., Hang, C. C. and Ni, L.Y. 1999. Getting More Phase Margin and Performance out of PID controllers, Automatica, 5, 1579-1585. Figure 5. Controller outputs for the system with the controllers 6. REFERENCES Åström, K. J., Albertos, P. and Quevedo, J. 001. PID Control. Control Engineering Practice, 9, 1159-1161. Åström, K. J. and Hägglund, T. 1984. Automatic Tuning of Simple Rregulators With Specifications on Phase and Amplitude Margins, Automatica, 0, 645-651. Bandyopadhyay, R., Chakraborty, U. K. and Patranabis, D. 001. Autotuning a PID controller: A Fuzzy-Genetic Approach, Journal of Systems Architecture, 47, 66-67. Blanchett, T. P., Kember, G. C. and Dubay, R. 000. PID Gain Scheduling Using Fuzzy Logic, ISA Transactions, 9, 17-5. Lima, J. M. G. and Ruano, A. E. 000. Neuro- Genetic PID Autotuning: Time Invariant Case, Mathematics and Computers in Simulation, 51, 87-00. Misir, D., Malki, H. A. and Chen, G. 1996. Design and Analysis of a Fuzzy Proportional-integral- Derivative Controller, Fuzzy Sets and Systems, 79, 97-14. Vrancic, D., Peng, Y. and Strmenik, S. 1999. A New PID Controller Tuning Method Based on Multiple Integrations, Control Engineering Practice, 7, 6-6. Vrancic, D., Strmenik, S. and Juricic, D. 001. A Magnitude Optimum Integration Tuning Method for Filtered PID Controller, Automatica, 7, 147-1479. Wang, Y. G. and Shao, H. H. 000. Optimal Tuning for PI controller, Automatica, 6, 147-15. Wilton, S. R. 1999. Controller Tuning. ISA Transactions, 8, 157-170. Wu, C. J. and Huang, C.H. 1997. A Hybrid Method for Parameter Tuning of PID controllers, J. Franklin Inst., 4B (4), 547-56. Mühendislik Bilimleri Dergisi 005 11 (1) 11-15 15 Journal of Engineering Sciences 005 11 (1) 11-15