Genetic Algorithm Based Pid Tuning for a DTC Controlled Induction Motor

DOI : 10.17577/IJERTV4IS100276

Download Full-Text PDF Cite this Publication

Text Only Version

Genetic Algorithm Based Pid Tuning for a DTC Controlled Induction Motor

Amal K Paul

Department of Electrical & Electronics Engineering Rajagiri School of Engineering & Technology Kochi, India

Ginnes K John

Department of Electrical & Electronics Engineering Rajagiri School of Engineering & Technology Kochi, India

AbstractDirect Torque Control [1][5][10] is one of the most advanced techniques for control of induction motors, which is widely used in industries [1][3][5]. Low response time and high reliability are what it makes imperative. Although some of the DTC techniques make use of adaptive motor model for making the motor work at optimal operating point under varying machine parameters, many of them lack an adaptive PID control mechanism. This can eventually result in unwanted machine performance. Genetic Algorithm being a metaheuristic algorithm has been in use for search and optimization problems for several years [2][4][8]. It can be used to find out optimal gain values for aforementioned system. This will make the DTC more robust with respect to parameter variations. This paper examines the various aspects of using Genetic Algorithm for the same. Simulation was done in Matlab-Simulink. Direct Torque Control of induction motor was achieved with PID gain values tuned by Genetic Algorithm.

KeywordsDirect Torque Control; Genetic Algorithm; PID Tuning; Space Vector Modulation

  1. INTRODUCTION

    Direct Torque Control for control of induction motors, shown in Fig. 1, has been in theory [5][10] since 1980s. The concept first introduced by Takahachi and Noguchi can be applied to synchronous drives also. Although, DTC has many advantages including good dynamic performance [11], it still has the inherent disadvantage of having torque and flux ripples due to the fact that it produces variable switching frequency which is depended on speed, load torque and hysteresis bands.

    Fig. 1. Direct Torque Control of three phase AC motor [11]

    DTC is now becoming popular [1][3][5][6][7] because, it is overcoming its inherent disadvantages by employing multilevel inverter and high frequency switching. The most recent research in this field includes hybridization with advanced algorithms for parameter estimation and automatic tuning of PID gain values.

    Genetic algorithm is one among the evolutionary algorithms which was made popular by John Holland in 1970s. It is based on Theory of Evolution by Natural Selection proposed by Charles Darwin.

    Genetic algorithms [2][4][8] as shown in Fig. 2, unlike conventional heuristic methods, can be used to solve multi model-multi dimensional global optimization problems without the need of exact mathematical relationship and it does not get stuck at local optima.

    GA is thus well suited for optimizing PID gain values for a plant whose parameters can vary over time that cannot be fully predetermined, such as thermal variation of stator resistance of an induction motor.

    This means, live monitoring of error for tuning the PID gain values accurately in each control loop iteration, for a plant with varying parameters, to make the control system adaptive and robust.

    This paper consists of DTC controlled induction motor which is the plant (non adaptive) and the PID controller which establishes the speed-torque relationship modeled to be adaptive. The genetic algorithm is used here to find best gain values for PID controller and make it adaptive.

    Thus the speed-torque relationship will be always maintained irrespective of the variations in the plant parameters. This will improve the dynamic performance of induction motor.

    The electromagnetic torque developed is given by [5][7][9],

    Fig. 2. Flow chart of Genectic Algorithm

  2. MODELING OF INDUCTION MOTOR IN STATIONARY REFERENCE FRAME

    A set of four differential equations are used in stationary reference frame model to mathematically model the induction motor. It is the simplest and one of the most used induction motor model for simulations.

    Where,

    Since, squirrel cage induction motor is used.

    To find out the values of currents we make use of the equations relating current and flux given below.

  3. SIMULATION SETTINGS

    The simulation was done in Matlab-Simulink R2012b on Windows 7 (both, 32-bit) operating system. It took 5 minutes to execute the 5 seconds discrete simulation with no continuous states. The fundamental sample time used is 1 microsecond. The decimation setting of scope used to plot all the graphs in this paper is 20. The reference speed is 1250 rpm and reference torque is 0 Nm from 0 s and 2 Nm from

    2.5 s.

    The DSP block as shown in Fig. 5 is a Stateflow block, it is provided with gate trigger output for connection to the inverter if needed (This paper focuses only on the control part. So, inverter is simulated using a Matlab Function block and not using power electronic switches). The DSP block contains the Genetic Algorithm as shown in Fig. 5 and Fig. 6. The DTC Controlled induction motor system as shown in Fig.

    1. is given as Simulink Function from inside the genetic algorithm code as shown in Fig. 6. The numbers in the Fig. 6 indicate the order of execution. State 1 initializes all variables. States 2-3-4-5-6-7 is the proportional gain tuning loop. States 8-9-10-11-12-13 is the integral gain tuning loop. States 14-15-16-17-18-19 is the derivative gain tuning loop.

      The simulation has initialization function and stop function callbacks. During simulation dead time safety margin for inverter switches to completely turnoff to avoid short circuiting was not executed, since it took large time to run the simulation. It might not make significant effect on the performance of induction motor.

  4. SIMULATION

    The simulation presented in this paper consists of a modified version (Fig. 7, Fig. 4, Fig. 3) of another simulation covered under Free-BSD license (see Appendix 1) which was obtained from website of Mathworks (File Exchange). Incorporation of Genetic Algorithm is the major modification.

    The Genetic Algorithm as shown in Fig. 6 is firstly used to tune the proportional gain until the error is less than or equal to 10 rpm at which proportional gain tuning is halted and the integral gain tuning is commenced until error is less than or equal to 5 rpm at which integral gain tuning is halted and the derivative gain tuning is commenced until error is less than or equal to 10 rpm and greater than 1 rpm. If error is greater than 10 rpm proportional gain tuning is commenced. All tuning is halted when the error is less than or equal to 1

    rpm. All variables used in the Genetic Algorithm code are initialized in State 1. States 2 to 7 is the proportional gain tuning loop. State 2 to State 4 are used to put various proportional gain values to the plant (Fig. 7) through State 3.5 (Simulink Function) and collect corresponding error values one after the other. From the collected data, State 5 does selection. State 6 does crossover, mutation and elitism. State 7 puts random proportional gain values to the population. The new population is then given to the plant again and it loops. Similar is the case with states in integral and derivative loops.

    From Fig. 3 to Fig. 7, the GA PID Controller block takes the speed error and gives the reference torque. The instantaneous PID gain values generated from Genetic Algorithm is used for this purpose.

    It is clearly possible to manipulate the torque and speed of aninduction motor by manipulating the stator supply. The DTC Controller block as shown in Fig. 4 utilizes a hysteresis controller inside it to calculate the maximum and minimum tolerance limits. It is then fed to Switching Vector Table that selects the corresponding vector for triggering the inverter so that the rotor flux follows the stator flux. The vector number is decoded into gate trigger signals inside the Vector to Gate Map.

    The Inverter Simulator simulates the magnitude and polarity of output phase voltage across the inverter output terminals.

    The induction motor model is used to calculate the electromagnetic torque, stator and rotor fluxes. These data are then used to give inputs to other subsystems. Mechanical subsystem utilizes torque equation to find out actual speed. Actual speed, actual torque and actual stator flux are fed back to form the loop.

    The GA PID Controller establishes a non linear relationship between torque and speed using dynamically tuned PID gain values. This dynamic tuning of PID gain values makes the DTC Controlled induction motor more robust to parameter variations.

    Fig. 3. GA PID Controller

    Fig. 4. DTC Controller

    Fig. 5. DSP Block

    Fig. 6. Genetic Algorithm

    Fig. 7. Direct Torque Control of Induction Motor

  5. SIMULATION RESULT

    The Fig. 8 to Fig. 14 shows relevant graphs of genetic algorithm based PID tuning for DTC controlled induction motor at stator resistance, Rs = 1.77 ohm.

    Initially all PID gain values are 0. It is clear from the Fig.

    1. that, the proportional gain is tuned throughout the simulation until the error in speed was less than or equal to 10 rpm at around 0.5s. During that time the integral gain was tuned. When the error in speed became less than or equal to 5 rpm, derivative gain tuning was commenced. But, the oscillations in the speed response resulted in rise of error. So the derivative gain value was locked at its previous tuned value. When the error still rose, the integral gain value was also locked at its previous tuned value and proportional gain tuning commenced once again. It was observed that the convergence time for genetic algorithm for tuning such a non linear system is high.

    The Fig. 13 shows the absolute error in speed. The graph reduces to zero rapidly until around 0.5s, after which error gradually rises and then falls. The current drawn is high corresponding to the initial surge in torque but at 0.5 s it settles down below to plus or minus 3.5 A.

    TABLE I. PARAMETER VARIATIONS

    Stator Resist ance Rs

    (ohm)

    Values at the end of simulation

    Proportional Gain

    Integral Gain

    Derivative Gain

    Error (rpm)

    1.77

    44

    4.09

    23.0015

    56.7033

    2.77

    12.24

    2.304

    9.27

    27.3849

    3.77

    14

    39.08

    25

    6.2549

    4.77

    18

    9.48

    45.005

    42.5336

    5.77

    19.07

    44.08

    54

    16.6359

    The PID gain values and the corresponding error in speed are given in Table 1. The influence of 2 Nm torque from 2.5 s on speed response is little under stator resistance of 1.77 ohm.

    Fig. 8. Proportional Gain

    Fig. 9. Integral Gain

    Fig. 10. Derivative Gain

    Fig. 11. Speed response of DTC controlled induction motor with PID gain values tuned from Genetic Algorithm

    Fig. 12. Torque response of DTC controlled induction motor with PID gain values tuned from Genetic Algorithm

    Fig. 13. Absolute Error in speed of DTC controlled induction motor with PID gain values tuned from Genetic Algorithm

    Fig. 14. Current response of DTC controlled induction motor with PID gain values tuned from Genetic Algorithm

  6. CONCLUSION

    In this paper, a three phase squirrel cage induction motor was controlled using genetic algorithm based PID tuned DTC control and its performance was analyzed.

    The performance of Genetic Algorithm based PID tuning for a DTC controlled induction motor was evaluated through simulation. Kp, Ki, Kd values are dynamically tuned.

    Parameters inside genetic algorithm need to be carefully selected to improve the convergence of Kp, Ki, Kd values.

    Induction motors with DTC have an inherent obstacle which is torque ripples. The main advantage of using GA is dynamic tuning of PID gain values for making the machine operate under best operating point every time.

  7. SPECIFICATIONS OF THE INDUCTION MOTOR USED

Stator Resistance (Rs) = 1.77 ohm Rotor Resistance (Rr) = 1.34 ohm

Stator Leakage Inductance (Lsl) = 13.93e-3 H Rotor Leakage Inductance (Lrl) = 12.12e-3 H Mutual Inductance (Lm) = 369e-3 H

Stator Inductance (Ls) = (Lm+Lsl) H Rotor Inductance (Lr) = (Lm+Lrl) H Moment of Inertia (J) = 0.025 Ns2 Frictional Coefficient (B) = 1e-5 Ns Number of Poles (p) = 4

Number of Phases = 3 Type = Squirrel Cage Stator Connection = Yn Rated speed = 1500 rpm

REFERENCES

  1. Jef Beerten, Jan Verveckken and Johan Driesen, Predictive Direct Torque Control for Flux and Torque Ripple Reduction, IEEE TRANSACTIONS ON INDUSTRIAL ELECTRONICS, vol. 57, no. 1, January 2010.

  2. Michael J. Neath, Akshya K. Swain, Udaya K. Madawala and Duleepa

    J. Thrimawithana, An Optimal PID Controller for a Bidirectional Inductive Power Transfer System Using Multiobjective Genetic Algorithm, IEEE TRANSACTIONS ON POWER ELECTRONICS, vol. 29, no. 3, March 2014.

  3. Zhe Zhang, Yue Zhao, Wei Qiao and Liyan Qu, A Space-Vector- Modulated Sensorless Direct-Torque Control for Direct-Drive PMSG Wind Turbines, IEEE TRANSACTIONS ON INDUSTRY APPLICATIONS, vol. 50, no. 4, July/August 2014.

  4. W. H. Ip, Dingwei Wang and Vincent Cho, Aircraft Ground Service Scheduling Problems and Their Genetic Algorithm With Hybrid Assignment and Sequence Encoding Scheme, IEEE SYSTEMS JOURNAL, vol. 7, no. 4, December 2013.

  5. Salih Baris Ozturk, and Hamid A. Toliyat, Direct Torque and Indirect Flux Control of Brushless DC Motor, IEEE/ASME TRANSACTIONS ON MECHATRONICS, vol. 16, no. 2, April 2011.

  6. Libo Zheng, John E. Fletcher, Barry W. Williams, and Xiangning He, A Novel Direct Torque Control Scheme for a Sensorless Five-Phase Induction Motor Drive, IEEE TRANSACTIONS ON INDUSTRIAL ELECTRONICS, vol. 58, no. 2, February 2011.

  7. Joon Hyoung Ryu, Kwang Won Lee, and Ja Sung Lee, A Unified Flux and Torque Control Method for DTC-Based Induction-Motor Drives, IEEE TRANSACTIONS ON POWER ELECTRONICS, vol. 21, no. 1, January 2006.

  8. J. A. Vasconcelos, J. A. Ramrez, R. H. C. Takahashi, and R. R. Saldanha, Improvements in Genetic Algorithms, IEEE TRANSACTIONS ON MAGNETICS, vol. 37, no. 5, September 2001.

  9. Thomas G. Habetler, Francesco Profumo, Michele Pastorelli, and Leon

    M. Tolbert, Direct Torque Control of Induction Machines Using Space Vector Modulation, IEEE TRANSACTIONS ON INDUSTRY APPLICATIONS, vol. 28, no. 5, September/October 1992.

  10. Isao Takahashi and Youichi Ohmori, High-Performance Direct Torque Control of an Induction Motor, IEEE TRANSACTIONS ON INDUSTRY APPLICATIONS, vol. 25, no. 2, March/April 1989.

  11. ABB drives (2011), Technical guide No. 1 Direct torque control – the worlds most advanced AC drive technology, ABB.

APPENDIX 1

Free-BSD License

Copyright (c) 2013, Syed Abdul Rahman Kashif All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code mst retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Leave a Reply