Control of DC Motor Using Genetic Algorithm Based PID Controller
Control of DC Motor Using Genetic Algorithm Based PID Controller
net/publication/330847332
CITATIONS READS
9 584
5 authors, including:
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Shubham Tiwari on 19 January 2020.
Abstract—The paper deals with the optimized tuning of P.I.D given control system have their certain limitations.
controller which is used to control the D C Motor. In this Therefore, this paper develops a design using Genetic
research work different PID tunings techniques are discussed. Algorithm (G.A) in MATLAB tool box. A genetic
D.C Motor due to its very simple regulated characteristics is algorithm (G.A) is an experimental quest or search model
used in this paper. Due to this fact D.C. Motors are widely used that is motivated by Charles Darwin’s theory of natural
in many industrial applications like steel mills, electric trains evolution. This algorithm has a set of rules that gives the
and many more. Here G.A-P.I.D (Genetic Algorithm – P.I.D) information of natural process of selection in which the best
with different performance indices namely Mean Square Error or fittest entities are designated work of reproduction to
(M.S.E) and Integral of Time multiplied by Absolute Error
produce new offspring for the next generation.
(I.TA.E) optimization technique is compared with standard
P.I.D parameter adjustment technique i.e. Ziegler & Nichols By using genetic algorithms for tuning the controller will
method. Comparison of results are based on standard step provide the best and most optimized result for the given
responses parameters i.e. maximum overshoot, steady state and control system when being evaluated every time. The main
rise time. objective of this research is to reveal that when GA is
employed for tuning purpose to any system , an optimized
Index Terms— DC Motor position control, PID parameters tuning parameter values can be realized. To show this,
tuning by G.A, Ziegler Nichols Method.
results obtained from GA optimized system and the
I. INTRODUCTION classically tuned system (Ziegler Nichols Method) are
compared and discussed. Subsequent section II gives the
PID control strategy is a regular feedback controlling
information of D.C Motor modelling and its parameters. The
technology and it covers 90% of regular controllers in
section III highlights on orthodox PID Controller tuning
engineering sector. The function of the controller is to
technique by Ziegler Nichols Method and Genetic Algorithm
implement an algorithm based on the control input and
optimization technique is briefed in this same section.
therefore output is maintained at certain point to make
Section IV enlightens the results by comparing different
negligible discrepancy between the system method variable
simulations of each technique which are discussed in section
and the setpoint[1]. Due to their functional simplicity and
III . Finally, section V contains conclusion and discussion
reliability PID controllers delivers consistent and robust
part.
performance for almost every system dynamics and thus it
can be tuned to guarantee an acceptable closed loop II. MODELLING OF SEPERATELY EXCITED D.C MOTOR
performance [2]. By using a PID controller transient
To realize the D.C Motor drive as a control system
response of a system improves by decreasing the rise time,
transfer function, following steps to be done in MATLAB:
eliminating the peak overshoot and shortening the settling
First step is to characterize the equivalent DC motor circuit
time of a system [3]. Proper functioning of a system highly
diagram. Then step 2 is to characterize system equations
depends on PID parameters, so they should be optimized and
from the circuit diagram. Subsequently, step 3 is to derive
tuned wisely. Many standard methods are introduced for
transfer function from derived system equations. After that
parameter tuning includes Ziegler-Nichols Ultimate-cycle
Step 4 is the Realization of the equivalent block diagram of
tuning [4], Cohen-Coon’s [6], Astrom and Hagglund [5] and
system drive. Finally, in step 5 .m file is created for model
others.
simulation and to analyze the results.
The fact that D.C Motors have outstanding speed
A. DC Motor Equivalent Circuit
regulation and simple characteristics, these motors are
broadly used in many industrial applications such as To execute the simulation of separately excited DC motor
tractions, rolling mills etc. This encourage many researchers drive [9], the equivalent circuit diagram of motor’s
to develop several algorithms and techniques associated to mechanical part and electrical portion must be obtained first
speed and position control of D.C Motor. usually, a as shown in Fig.1. Here left model represents the armature
prohibitive performing motor drives system should have circuit of D.C motor and right model represents the field
excellent dynamic response to enact angle and speed circuit which is separately excited.
tracking. In addition to this motor drive should also follow Field excitation parameters are assumed to be fixed as it
real time load change[7, 8]. Proportional-Integral Derivative is separately excited. Therefore, to make this model simple
(PID) controllers because of their easy and good controlling to study and execute, here field excitation parameters of
performance are used for this purpose. motor are not taken into account while analyzing the
Conventional methods like Ziegler-Nichols, frequency simulation model of motor.
domain and Time domain approaches of tuning PID for a
ICUE 2018 on Green Energy for Sustainable Development
Thavorn Palm Beach Resort Karon, Phuket, Thailand. 24 – 26 October 2018
system. Position of rotor is expressed as ϴ expressed and its complicated spheres and in addition to it does not encounter
transfer function is expressed in equation (12). any issues regarding abnormal dimensionality, which may
befall in other techniques like gradient decent or derivative
1.4
𝛳= (12) information methods.
𝑠 3 (0.001895) + 0.2349𝑠 2 + 1.996𝑠
Genetic Algorithm in this research is used for the
Thus, this paper uses the transfer function of rotor following two determinations:
position of motor as its plant function and to this PID
controller is attached to control the position of motor. 1. To determine the optimized value of PI controller
parameters namely Kp, Ki and Kd.
III. PID PARAMETER TUNING STRATEGIES
2. To reduce the error value between given higher order and
In this section two PID parameter tuning strategies obtained reduced order models.
namely Ziegler Nichols Method and Genetic Algorithm
which are discussed in this section. The objective function is the most important and decisive
part of Genetic algorithm to get the most optimized results.
A. Conventional Approach - Ziegler Nichols Method The objective function is employed in this algorithm to know
The extremely substantial step for operating the PID how the individual parameters will perform for given
controller is the adjusting of its parameters. The control objective. For minimization challenge, individuals which
dynamics of any system provides very poor performance have the minimum numerical value according to the
result and its characteristics comes out to be impractical, if predefined objective function are selected.
proper optimize tuning of controller is not done. Sometimes
a stable control function becomes unstable system.
Therefore, for proper and good performance proper choice of
tuning parameters is a necessity of system.
Tuning of parameters includes the identification of best Initialize Population
values of Kp, Ki, Kd when P.I.D controller is used in system.
Identification of parameters generally is a subjective and
iterative process and highly depends on the type of system
and process therefore change and need to tune them
accordingly. Ziegler Nichols Method is a broadly
acknowledged technique mainly used for adjusting
Evaluate Fitness Function
parameters. The idea is very simple and easy to implement.
Initially there is a need to adjust only P (proportional gain
Kp) to a minimal value. Now after this by changing load to a
small value, results thus obtained are analyzed. If output
result is very inactive or not up to mark this means Kp value
is low. Then to make response active, value of parameter Kp
needs to be increased by some multiple factor generally two
and again analyze the response by changing load to small Select the Best or Fittest
value. This process keeps on repeating until the output
response of system becomes incessant oscillatory.
During this whole process the Integration and Derivative
controller gain constants are adjusted to zero. The value of
Kp at which system gives consistent oscillatory response is
marked as Ultimate Gain of system (Kc). Oscillating period Mutation
at this gain is termed as Period of Oscillation (Pu). Now from
this Ultimate Gain and Period of Oscillation, value of Kp,
Ki, Kd. The value of these parameter for the given D.C
Motor control system transfer function is given in result
section.
Crossover / Reproduction
B. Genetic Algorithm for Optimal Tuning
The genetic algorithm begins with zero prior inputs or
any predefined information of the precise result and rely
totally on outputs from its surroundings and progression No Optimal Solution
parameters like reproduction, crossover and mutation to get
the best possible optimized result. By initializing with
different self-supporting objectives and hunting parallelly,
the procedure thus escapes i.e. it does not stop at local Optimal Solution
minima value of system and therefore it converges to some
semi optimized solutions. Research describes about the two types of function
shown in Table I. Figure 3. Flow chart of G.A.
By this procedure, GAs shows its capability of finding
possible areas which have maximum performance index in
ICUE 2018 on Green Energy for Sustainable Development
Thavorn Palm Beach Resort Karon, Phuket, Thailand. 24 – 26 October 2018
3. Now, the fittest members from population are selected. The step response after using this controller is shown in Fig..4
GA PROPERTY FUNCTION
DEFINITION
POPULATION SIZE
40
MAXIMUM GENERATIONS Figure 4. Step Response output using Z.N Method.
100
PERFORMANCE INDEX Table III shows the values of different step response
M.S.E / I.T.A.T.E
parameter related to Fig. 4.
SELECTION FUNCTION
Stochastic Uniform TABLE III. PERFORMANCE OF CLASSICAL Z-N METHOD
PROBABILITY OF SELECTION
0.05
PARAMETERS VALUES
CROSSOVER METHOD
Scattederd
Maximum Peak
ELITE COUNT Overshoot 3.64%
2
CROSSOVER FRACTION Rise Time
0.85 0.0235 secs
PARAMETERS VALUES
Maximum Peak
Overshoot 0.408%
Rise Time
0.0202 secs
Settling Time
0.917 secs