Development of Genetic Algorithm (GA) Based Optimized PID Controller for Stability Analysis of DC-DC Buck Converter ()
1. Introduction
As human civilization is stepping into 22nd century the researchers are more enthusiastic to build robust and electrically stable systems. In this regard, DC-DC converters [1] are top of the list as it is utilized in numerous equipment like Motor drivers, Robotic hands [2], and Smart Home systems [3] and so on. Among various DC-DC converters, Buck, Boost, Buck-Boost, SEPIC and Cuk [4] [5] [6] [7] [8] converters are the most commonly used converters. Generally, Boost converters increase the output voltages according to the demand on load side and duty cycle. Both Buck-Boost and Cuk converters can increase and decrease the output voltage. In case of the boost converters researchers have found that the efficiency is very poor for high gain and it fails big time when it comes in case of controlling it. On the other hand, for Buck-Boost converters, the charging current of output capacitor is discontinuous and the controlling mechanism is also troublesome [9] [10].
Therefore, Buck converters significantly overcome the above problems and can be controlled by numerous controlling methods. Among various methods, PID (Proportional, Integral, and Differential) controller [11] [12] is the most widely employed controller. But tuning these parameters and obtaining the optimized values are the major challenges for control engineers. Therefore, different algorithms i.e. inpaint [13] [14], spectroscopy [15], annealing are deployed in order to achieve the optimized values of the controller. For this, Genetic Algorithm proves to be a handy tool as it utilizes the concept of probabilistic search algorithm. In each generation, the fitness of the whole population is evaluated, multiple individuals are stochastically selected from the current population (based on their fitness) and modified (mutated or recombined) to form a new population. This process is repeated until the conditions are satisfied [16] [17] [18] [19] [20].
In Section 2, the circuit of conventional Buck converter is studied and State Space Modeling of the converter is illustrated. The elaborate discussion on implementation of Genetic Algorithm is depicted in Section 3 where overviews, objective function of the algorithm and design of the GA based PID Controller are stated. Finally, the results of the simulation and stability analysis of the system are shown and discussed in Section 4. Lastly, the overall comparative analysis is presented. All the simulations are carried out in MATLAB.
2. State Space Average Method
The conventional DC-DC Buck Converter comprises of inductor (L), capacitor (C), diode D, switch (S) and load resistance (R) which is shown in Figure 1.
When the switch S is ON, the diode becomes open and capacitor (C) discharges through load resistance (R). When the switch (S) is OFF, the diode is closed and current iL passes through the capacitor (C) and load resistance (R). For mathematical modeling of DC-DC Buck Converter, State Space Modeling [22] is employed so that the system can be illustrated by first order differential equations followed by matrix representation.
The system matrix is denoted as A, B, C and D; u and y are referred as input and output respectively. The state variable is indicated as x and xꞌ is the derivative of state variables. Here, current iL and voltage vC are system variables which are mapped as iL = x1 and vC = x2.
(1)
Figure 1. Circuit diagram of conventional buck converter [21].
(2)
The circuit diagrams for ON and OFF condition of the switch (S) are shown in Figure 2(a) and Figure 2(b) respectively. The equations derived for these two conditions are presented as follows.
When S is ON:
(3)
(4)
(5)
(6)
(7)
When S is OFF:
(8)
(9)
(10)
(11)
(12)
The average of the state space model is illustrated below where switching duty cycle (d) is taken into consideration.
(13)
(a)(b)
Figure 2. Circuits of buck converter at switch, S (a) ON and (b) OFF.
(14)
(15)
(16)
Hence, the completed buck converter state space model is shown below:
(17)
3. Implementation of Genetic Algorithm
Genetic algorithm (GA) is the method for solving both constrained and unconstrained optimization problems based on natural selection process that mimics biological evolution. The algorithm repeatedly modifies a population of individual solutions. At each step, the genetic algorithm randomly selects individuals from the current population and uses them as parents to produce the children for the next generation [23] [24] [25]. In genetic algorithm, a fitness function is taken into account to check how close a given design solution is in order to achieve the set value. Chromosome or genotype is a set of parameters which defines a proposed solution to the problem that the algorithm is trying to solve. The set of all solutions is known as the population.
However, crossover is a genetic operator used to vary the programming of a chromosome or chromosomes from one generation to the next. It is analogous to reproduction and biological crossover, upon which genetic algorithms are based on. Mutation is a used to maintain genetic diversity from one generation of a population to the next generations. It alters one or more gene values in a chromosome from its initial state. Moreover, Selection is the stage of a genetic algorithm in which individual genomes are chosen from a population for later breeding. The flow chart for the algorithm is shown in Figure 3.
In order to implement Genetic Algorithm, objective functions are chosen to evaluate the fitness of the chromosome [27]. In this paper, four performance indices are selected to minimize the error which defined as Integral of Absolute Magnitude of Error (IAE), Integral of Time multiplied by Absolute Error (ITAE), Integral of Squared Error (ISE) and Integral of Time multiplied by Squared Error (ITSE).The corresponding equations of the performance indices are as follows:
(18)
(19)
Figure 3. Flow chart of genetic algorithm [26].
(20)
(21)
The basic block diagram of the system is shown in Figure 4. In order to tune the parameters of PID controller through genetic algorithm, the kP, kI and kD are taken and the chromosome is formed. The main objective of the study is to minimize the error between the input and the plant’s output.
4. Simulation Results and Stability Analysis
Model order reduction technique is carried out in MATLAB so that the higher order transfer function obtained from the state space modeling can be converted into a simpler form. Table 1 presents the converter parameters that are used for mathematical calculation and simulation of the stability of the Buck converter.
Firstly, Buck converter for the conventional PID controller is employed and the response is taken to observe the stability of the system which is shown in Figure 5.
So, from Figure 5, gain values of kP, kI and kD are accumulated, tabulated and shown in Table 3. After that, Genetic Algorithm (GA) based PID controller is deployed in the system to determine more optimum values of kP, kI and kD. The parameters are listed in Table 2.
After rigorous simulation in MATLAB, the values of kP, kI and kD are obtained for all of the four performance indices of GA based PID controller which is evident in Table 3 along with the conventional PID controller.
Step responses for IAE, ITAE, ISE and ITSE and performance parameters are illustrated in Figures 6-9 respectively.
Figure 4. Basic block diagram of GA based PID controller [28].
Figure 5. Step response of conventional PID controller.
Table 1. Parameters of the buck converter.
Table 2. Parameters of genetic algorithm.
Table 3. Gain values for both conventional and GA Based PID controller.
The performance parameters like Percentage of Overshoot (%OS), Rise Time (Tr), Settling Time (Ts) and Peak Amplitude are tabulated for both conventional and GA based PID Controller which is presented in Table 4.
It is evident from the results that IAE portrays better results than other controllers. The overall comparative analysis of the step responses is illustrated in Figure 10.
Figure 10. Comparative analyses of step responses.
Table 4. Performance parameters for both conventional and GA based PID controller.
5. Conclusion
In this paper, an investigative study on stability analysis of closed loop Buck converter is brought into action by GA based PID controller. It is observed that IAE depicts more optimized results in terms of overshoot (4.17%), rise time (0.0000504 s), settling time (0.000538 s) than other performance indices. The overall comparative analysis of step response provides an idea of the stability of the converter. Hence, it can be concluded that GA based PID controller is more convenient than other tuning methods for Buck converter. Thus, more efficient and stable equipment can be designed by utilizing this modern algorithm based technique.