JP 25
JP 25
JP 25
net/publication/224560544
Real-coded genetic algorithm and fuzzy logic approach for real-time tuning of
proportional-integral - derivative controller in automatic voltage regulator
system
CITATIONS READS
101 10,153
2 authors, including:
D. Devaraj
Kalasalingam University
318 PUBLICATIONS 5,227 CITATIONS
SEE PROFILE
All content following this page was uploaded by D. Devaraj on 08 May 2014.
ISSN 1751-8687
Abstract: Optimal tuning of proportional – integral – derivative (PID) controller parameters is necessary for the
satisfactory operation of automatic voltage regulator (AVR) system. This study presents a combined genetic
algorithm (GA) and fuzzy logic approach to determine the optimal PID controller parameters in AVR system.
The problem of obtaining the optimal PID controller parameters is formulated as an optimisation problem and
a real-coded genetic algorithm (RGA) is applied to solve the optimisation problem. In the proposed RGA, the
optimisation variables are represented as floating point numbers in the genetic population. Further, for
effective genetic operation, the crossover and mutation operators which can deal directly with the floating
point numbers are used. The proposed approach has resulted in PID controller with good transient response.
The optimal PID gains obtained by the proposed GA for various operating conditions are used to develop the
rule base of the Sugeno fuzzy system. The developed fuzzy system can give the PID parameters on-line for
different operating conditions. The suitability of the proposed approach for PID controller tuning has been
demonstrated through computer simulations in an AVR system.
Osh overshoot
Nomenclature Ess steady-state error
Kp proportional gain of PID controller Ts settling time
Ki integral gain of PID controller Tr rising time
Kd derivative gain of PID controller
Ka amplifier gain
Ke exciter gain 1 Introduction
Kg generator gain
The main objective of the automatic voltage regulator
Ks sensor gain
(AVR) is to control the terminal voltage by adjusting the
ta amplifier time constant generator exciter voltage. The AVR must keep track of the
te exciter time constant generator terminal voltage all the time and under any load
tg generator time constant condition, working in order to keep the voltage within
pre-established limits. Despite significant studies in the
ts sensor time constant
development of advanced control schemes, the classical
DVt incremental change in terminal voltage proportional – integral – derivative (PID) controllers [1 – 5]
DVref incremental change in reference voltage remain the controllers of choice to control the AVR
IET Gener. Transm. Distrib., 2009, Vol. 3, Iss. 7, pp. 641 – 649 641
doi: 10.1049/iet-gtd.2008.0287 & The Institution of Engineering and Technology 2009
Authorized licensed use limited to: Arulmigu Kalasalingam College of Engineering. Downloaded on August 20, 2009 at 05:01 from IEEE Xplore. Restrictions apply.
www.ietdl.org
because of its simple structure and robustness to variations of applied to obtain the optimal PID parameters of an AVR
the system parameters. system.
642 IET Gener. Transm. Distrib., 2009, Vol. 3, Iss. 7, pp. 641– 649
& The Institution of Engineering and Technology 2009 doi: 10.1049/iet-gtd.2008.0287
Authorized licensed use limited to: Arulmigu Kalasalingam College of Engineering. Downloaded on August 20, 2009 at 05:01 from IEEE Xplore. Restrictions apply.
www.ietdl.org
IET Gener. Transm. Distrib., 2009, Vol. 3, Iss. 7, pp. 641 – 649 643
doi: 10.1049/iet-gtd.2008.0287 & The Institution of Engineering and Technology 2009
Authorized licensed use limited to: Arulmigu Kalasalingam College of Engineering. Downloaded on August 20, 2009 at 05:01 from IEEE Xplore. Restrictions apply.
www.ietdl.org
It is to be noted that e1 and e2 will lie between umin and 5.2 Fitness function
umax , the variable’s lower and upper bounds, respectively. In
a number of test problems, it was observed that a ¼ 0.5 The performance of each individual in the population is
provides good results. One interesting feature of this type evaluated according to its ‘fitness’, which is defined as the
of crossover operator is that the created point depends on non-negative figure of merit to be maximised. It is
the location of both parents. If both parents are close to associated directly with the objective function value.
each other, the new point will also be close to the parents. Evaluation of the individual is accomplished by calculating
On the other hand, if parents are far from each other, the the performance criteria given by (3) for the problem
search is more like a random search. using the parameter set. The result of the performance
criteria calculation is used to calculate the fitness value of
the individual. The fitness function is the reciprocal of the
4.3 Mutation operation performance criterion F(Kp ,Ki ,Kd) given in (3). Hence,
The mutation operator is used to inject new genetic material the minimisation of performance criteria given by (3) is
into the population. Mutation randomly alters a variable with transformed to a fitness function to be maximised as
a small probability. ‘Uniform mutation’ operator is used in
this work. In uniform mutation, the variable is set to a k
Fitness ¼ (8)
uniform random number between the variable’s lower and F (Kp , Ki , Kd )
upper limits.
where k is a constant. This is used to amplify (1/F ), the value
of which is usually small, so that the fitness value of the
5 GA implementation for PID chromosome will be in a wider range.
controller tuning
While applying GA to obtain the optimal PID controller 6 Review of Sugeno fuzzy model
parameters, two main issues need to be addressed:
Fuzzy logic was first developed by Zadeh in the mid-1960s to
† representation of the decision variables and provide a mathematical basis for human reasoning. Fuzzy logic
[15] uses fuzzy set theory, in which a variable is a member of
† formation of the fitness function. one or more sets, with a specified degree of membership.
The degree of membership in a set is expressed by a number
5.1 Variable representation between 0 and 1. 0 means entirely not in the set, 1 means
completely in the set, and a number in between means
Each individual in the genetic population represents a partially in the set. Mathematically, a fuzzy set A in the
candidate solution. For the PID controller tuning problem, universe of discourse X is defined to be a set of ordered pairs
the elements of the solution consist of proportional gain
(Kp), integral gain (Ki) and derivative gain (Kd). These A ¼ {(x, mA (x))jx [ X } (9)
variables are represented as floating point numbers in the
proposed GA population. With floating point where mA(x) is called the membership function of x in A. The
representation, an individual in the GA population for parameterisable membership functions most commonly used
computing the optimal PID gains will look like the following in practice are the triangular membership function and the
trapezoidal membership function. Fuzzy logic when applied
0:937
|fflffl{zfflffl} 0:242
|fflffl{zfflffl} 0:320
|fflffl{zfflffl} to computers allows them to emulate the human reasoning
Kp Ki Kd process, quantify imprecise information, make decisions
based on vague and incomplete data, yet by applying a
With the direct representation of the solution variables, the ‘defuzzification’ process, arrive at definite conclusions.
computer space required to store the population is reduced.
Moreover, the efficiency of the GA is increased as there is There are three main types of fuzzy logic systems, namely,
no need to convert the solution variables to the binary string. Mamdani, Sugeno and Tsukamoto fuzzy logic systems. In
644 IET Gener. Transm. Distrib., 2009, Vol. 3, Iss. 7, pp. 641– 649
& The Institution of Engineering and Technology 2009 doi: 10.1049/iet-gtd.2008.0287
Authorized licensed use limited to: Arulmigu Kalasalingam College of Engineering. Downloaded on August 20, 2009 at 05:01 from IEEE Xplore. Restrictions apply.
www.ietdl.org
where x and y are input variables, A and B are fuzzy sets in the
antecedent and f (x, y) is a crisp function in the consequent.
The fuzzy sets of each variable are described by appropriate
membership functions. A set of such rules form the heart
of the fuzzy logic system.
IET Gener. Transm. Distrib., 2009, Vol. 3, Iss. 7, pp. 641 – 649 645
doi: 10.1049/iet-gtd.2008.0287 & The Institution of Engineering and Technology 2009
Authorized licensed use limited to: Arulmigu Kalasalingam College of Engineering. Downloaded on August 20, 2009 at 05:01 from IEEE Xplore. Restrictions apply.
www.ietdl.org
Number of generations: 50
population size: 30
646 IET Gener. Transm. Distrib., 2009, Vol. 3, Iss. 7, pp. 641– 649
& The Institution of Engineering and Technology 2009 doi: 10.1049/iet-gtd.2008.0287
Authorized licensed use limited to: Arulmigu Kalasalingam College of Engineering. Downloaded on August 20, 2009 at 05:01 from IEEE Xplore. Restrictions apply.
www.ietdl.org
tg Very low Low Medium low Medium high High Very high
Kg 1 1.2 1.4 1.6 1.8 2
(a) For proportional gain Kp
low (0.7) 0.8574 0.8574 0.7246 0.5408 0.6102 0.6102
medium low (0.8) 0.4752 0.7246 0.6848 0.7246 0.5864 0.6030
medium high (0.9) 0.5321 0.7246 0.8080 0.7379 0.5864 0.5864
high (1.0) 0.5408 0.8574 0.7246 0.7246 0.7379 0.5864
(b) For integral gain Ki
low (0.7) 0.2862 0.3601 0.3601 0.3601 0.3107 0.3107
medium low (0.8) 0.1719 0.2862 0.3601 0.3601 0.3601 0.3107
medium high (0.9) 0.1719 0.2505 0.3601 0.3601 0.3601 0.3601
high (1.0) 0.1719 0.2862 0.2862 0.3601 0.3601 0.3601
(c) For derivative gain Kd
low (0.7) 0.2187 0.2078 0.1643 0.1643 0.3578 0.4207
medium low (0.8) 0.2078 0.1643 0.1643 0.1643 0.2049 0.3547
medium high (0.9) 0.1351 0.1643 0.1757 0.1643 0.1643 0.2049
high (1.0) 0.1351 0.2049 0.1643 0.1643 0.1643 0.1757
IET Gener. Transm. Distrib., 2009, Vol. 3, Iss. 7, pp. 641 – 649 647
doi: 10.1049/iet-gtd.2008.0287 & The Institution of Engineering and Technology 2009
Authorized licensed use limited to: Arulmigu Kalasalingam College of Engineering. Downloaded on August 20, 2009 at 05:01 from IEEE Xplore. Restrictions apply.
www.ietdl.org
Table 5 Optimal gains and transient parameters for off-nominal operating condition
Table 6 Optimal PID gains and transient response using RGA and SFL techniques
8 Conclusion
This paper has proposed a RGA and Sugeno fuzzy logic
approach for obtaining the optimal gains of PID controller
in AVR system. In this paper, the problem of discretisation
in the representation of the decision variables in the binary-
coded GA has been alleviated by employing floating point
numbers to represent the PID parameters. Blend crossover
and uniform mutation which can directly deal with the real
variables have been applied. The proposed GA approach
has resulted in better dynamic performance of the AVR.
Further the proposed GA occupies less computer space and
takes less time for convergence compared with the
conventional binary-coded GA. The optimal gains
produced by the GA-based approach were used to develop
the Sugeno fuzzy system. The performance of the
Figure 8 Step response of change in terminal voltage for algorithm in obtaining the optimal values of PID controller
off-nominal values parameters under various operating conditions has been
648 IET Gener. Transm. Distrib., 2009, Vol. 3, Iss. 7, pp. 641– 649
& The Institution of Engineering and Technology 2009 doi: 10.1049/iet-gtd.2008.0287
Authorized licensed use limited to: Arulmigu Kalasalingam College of Engineering. Downloaded on August 20, 2009 at 05:01 from IEEE Xplore. Restrictions apply.
www.ietdl.org
analysed through computer simulation. The simulation result [9] YU G.R. , HWANG R.C.: ‘Optimal PID speed control of
shows that the Sugeno fuzzy system can produce the optimal brushless DC motors using LQR approach’. IEEE Int. Conf.
PID values accurately in a fraction of the second and this Syst., Man Cybern., 2004, pp. 473– 478
solves the problems associated with evolutionary
computation techniques in applying to on-line application. [10] VISIOLI A.: ‘Tuning of PID controllers with fuzzy logic’,
Proc. Inst. Electron. Eng. Control Theory Appl., 2001, 148,
(1), pp. 1 – 8
9 References
[11] KROHLING R.A., REY J.P.: ‘Design of optimal disturbance
[1] ASTROM K.J. , HANG C.C., PERSSON P. , HO W.K.: ‘Towards rejection PID controllers using genetic algorithm’, IEEE
intelligent PID control’, Automatica, 1992, 28, (1), pp. 1 – 9 Trans. Evol. Comput., 2001, 5, (1), pp. 78– 82
[2] ASTROM K.J., HAGGLUND T.: ‘The future of PID control’, [12] VALARMATHI K., DEVARAJ D., RADHAKRISHNAN T.K.: ‘Enhanced
Control Eng. Pract., 2001, 9, (11), pp. 1163– 1175 genetic algorithm based proportional integral controller
tuning for pH process’, Instrumen. Sci. Technol., 2007, 35,
[3] LI Y., ANG K.H., CHONG G.C.Y.: ‘PID control system analysis (6), pp. 619– 635
and design, problems, remedies and future directions’,
IEEE Control Syst. Mag., 2006, 26, (1), pp. 32– 41 [13] KIM D.H., ABRAHAM A., CHO J.H.: ‘A hybrid genetic algorithm
and bacterial foraging approach for global optimization’, Int.
[4] LI Y., ANG K.H., CHONG G.C.Y.: ‘Patents, software and hardware J. Inf. Sci., 2007, 177, (18), pp. 3918 – 3937
for PID control’, IEEE Control Syst. Mag., 2006, 26, (1),
pp. 42–54 [14] GAING Z.L.: ‘A particle swarm optimization approach for
optimum design of PID controller in AVR system’, IEEE
[5] O’DWYER A.: ‘Handbook of PI and PID controller tuning Trans. Energy Convers., 2004, 19, (2), pp. 384– 391
rules’ (Imperial College Press, London, 2003)
[15] ROSS T.: ‘Fuzzy logic with engineering application’ (Tata
[6] SCHEI T.S.: ‘Automatic tuning of PID controllers based on McGraw Hill Inc., 1995)
transfer function estimation’, Automatica, 1994, 30, (12),
pp. 1983 – 1989 [16] GOLDBERG D.: ‘Genetic algorithms in search, optimization
and machine learning’ (Addison-Wesley, 1989)
[7] SHINSKEY F.G. : ‘Process control system: application,
design and tuning’ (McGraw-Hill, 1996, 4th edn.) [17] DEVARAJ D., YEGNANARAYANA B.: ‘Genetic algorithm-
based optimal power flow for security enhancement’,
[8] MORARI M. , ZUFIRIOU E.: ‘Robust process control’ IEE Proc. Gener., Transm. Distrib., 2005, 152, (6),
(Prentice-Hall Inc., Englewood Cliffs, NJ, 1987) pp. 899– 905
IET Gener. Transm. Distrib., 2009, Vol. 3, Iss. 7, pp. 641 – 649 649
doi: 10.1049/iet-gtd.2008.0287 & The Institution of Engineering and Technology 2009
Authorized licensed
View publication stats use limited to: Arulmigu Kalasalingam College of Engineering. Downloaded on August 20, 2009 at 05:01 from IEEE Xplore. Restrictions apply.