Pure Mathematics for Theoretical Computer Science

On the Improving of the Efficiency of FL Controller Based on Genetic Algorithms to Control (DC-DC) Converters

Khaled Moaz
Volume 4, Issue 1, pp. 18–25 (2024)
DOI: https://doi.org/10.54216/PMTCS.040104
Online: https://www.americaspg.com/journal/40/article/3072

Abstract

DC-DC converter circuits effectively convert the DC input voltage into a regulated output voltage more efficiently than linear regulators or magnetic transformers. The electronic switches of these converters are controlled to obtain the desired regulated output voltage value. In recent years, the concept of using Artificial Intelligence systems to control electrical circuits and their practical applications has expanded, as Fuzzy Logic Controller (FLC) is one of the most famous types of these systems because it uses inferential logic to simulate the work of the human brain by formulating the fuzzy rule and following the membership of the system’s input and output and converting the output into a numerical value that controls it’s in turn the duty cycle of the converter. The research proposes the use of Genetic Algorithms (GA) that simulate the principle of natural inheritance (the survival of the fittest principle) to improve the accuracy of the fuzzy controller and thus the efficiency of the step-down converter (Buck) by finding the ideal values for its coefficients in order to obtain the closest value for the reference voltage by improving the parameters of the gain constants and changing the shape of membership.

The results of the research using MATLAB show the improvement provided by the Genetic-Fuzzy controller (GA-FLC) compared to the fuzzy logic controller in terms of the response parameters and output curves of the Buck converter.

Keywords: Fuzzy logic; Fuzzy set; Fuzzy controller; Genetic algorithm

1. INTRODUCTION

logic in the performance of many applications, and the most important shift of the interaction between artificial intelligence and fuzzy logic was precisely because of its ability to control many artificial intelligence applications in a way that simulates human logic. It assumes that facts may not be conclusive and may be achieved between the values of 0 and 1. Mathematician Lotfi Zadeh formulated fuzzy logic in the sixties as part of his research on language understanding by computers, where he proposed designing a model that works with logic closer to the work of the human brain, where it tends to collect partial facts to reach a logical decision [4, 5].

DC–DC converters are generally based on electronic switches such as transistors and diodes that operate in ON–OFF mode, and they use energy storage elements such as capacitors and coils to store energy in addition to acting as low-pass filters. There are several types of switches, the most famous of which are the buck converter, the boost converter and other forms derived from these two types [1], and they also have many uses in applications that are powered by batteries in general (such as laptops and electric cars) [2] or solar-power maximum-capacity-point tracking systems [3].

Fuzzy logic has many advantages that have made it widely spread since the sixties of the last century in the field of expert

Artificial intelligence researchers realized the importance of systems, medical diagnostics, meteorology, control systems, information retrieval, robotic systems, decision-making systems and others [6]. The most prominent of these advantages is the ability to deal with fuzzy input, the lack of the need for an accurate mathematical model, the ability to deal with nonlinearities and approach the standard value with the least possible fluctuation compared to traditional control systems such as PID [7].

Genetic Algorithms are intelligent search algorithms that use processes found in natural genetics to guide the journey through the search space. Genetic algorithms have many applications, the most famous of which are prediction of nonlinear dynamic systems, data analysis and robot path planning [8]. Perhaps one of their most prominent advantages is the possibility of combining them with other control systems such as fuzzy controllers to obtain outputs that are more accurate.

The research provides an analysis of the operation of a voltage-reducing switching system (Buck Converter) whose duty cycle (α) is controlled using a fuzzy controller (FLC) and a GA–fuzzy controller (GA–FLC). The research shows the steps of modeling the operation of the system using the SIMULINK/MATLAB environment. As a result, the modeling parameters show the importance of applying genetic algorithms to raise the reliability of the fuzzy controller and thus obtain the best efficiency of the switch (Buck).

2. THE IMPORTANCE OF RESEARCH AND ITS GOALS

3. RESEARCH METHODS AND MATERIALS

3.1 Analytical Approach

3.2 Experimental Approach

In modeling, we relied on MATLAB libraries at several levels: basic software files (M-files), function M-file software dependency files, and modeling system stages within the Simulink library.

4. RESULTS AND DISCUSSION

4.1 Analysis of the Components of the Voltage-Reducing Commutator Control System

Figure 1 shows the components of the control addressed by the research and consists of three main sections: low-voltage switch (Buck Converter), fuzzy controller (FLC), and genetic algorithm (GA). The work of the system components will be analyzed in addition to connecting the fuzzy controller to the genetic algorithm within a GA–fuzzy controller (GA–FLC).

Figure 1. Components of the voltage-reducing commutator control system.
Figure 1. Components of the voltage-reducing commutator control system.

4.1.1 Low Voltage Switch (DC–DC Buck Converter)

Figure 2 shows a typical buck converter consisting of an input voltage source Vi, a control switch, a transistor (T1), a coil (L), a capacitor (C), a diode (D1) and a load R.

The average voltage on the load in such commutators is less than the input voltage on them as reduction commutators. Figure 2 shows the equivalent circuit of the commutator, and Figure 3 shows the voltages and currents depending on the state of the switch in the buck commutator [9].

Figure 2. A typical Buck changer.
Figure 2. A typical Buck changer.
Figure 3. The voltages and currents of the Buck circuit depending on the state of the switch.
Figure 3. The voltages and currents of the Buck circuit depending on the state of the switch.

Analysis of the work of a voltage-reducing commutator. As shown in Figure 4, the work of the voltage-reducing commutator can be summarized by relying on the connection and disconnection cycles of the two-phase transistor T1:

Figure 4. Two stages of the commutator operation: (A) the first stage and (B) the second stage.
Figure 4. Two stages of the commutator operation: (A) the first stage and (B) the second stage.

The voltage-lifting commutator can also work with one of two systems: Continuous Conduction Mode (CCM) or Discontinuous Conduction Mode (DCM), depending on the values of the elements and the work cycle specified by the user.

The research deals with the case of a Continuous Conduction Mode (CCM), where the pulse width applied to the switch is controlled by transverse pulse modulation (PWM) via a pulse train controlled by the FLC fuzzy logic controller.

The relation determining the voltage on the inductive filter curve is

VL = LdiL

dt . (1)

At the first stage, the induction current increases from the value I1 = iLm to the value I2 = I1m during the time t1 = αT:

Vi −Vo = LI2 −I2

= L∆I t1 = αT = L ∆I Vi −Vo

In the second stage, the current of the inductor decreases from the value I2 = I1m to the value I1 = iLm during the time t2 = T −αT:

t2 = T(1−α) = L∆I

From the two previous equations, we deduce the following. The average value of the output voltage is

Vo = αVi. (2)

The ripple-current relationship is

L αT = α(1−α)Vi LF . (3)

∆Il = Vi −Vo

The output-voltage ripple relationship is

∆Vo = α(1−α)Vi

8LCF2 . (4)

The average value of the output current is

I0 = 1 α Ii. (5)

The reverse stresses on diode VdM,IDmax and transistor VTM,IT max are

VT max = Vi, VDmax = Vi,

2LF , IDmax = Ii + α(1−α)Vi

IT max = Ii + α(1−α)Vi

2LF .

In order to select the values of the limit elements of the commutator and as a continuous-mode commutator design (CCM), the smallest value of the coil and capacitor is given based on the limit values of the current deviation on the coil shown in Equation (3) and the voltage deviation on the capacitor shown in Equation (4) [13]. The value of opposition coil L is

L ≥α(1−α)Vi ∆Il ×F . (7)

The input capacitor (usually used for filtering input voltage), C1, is

C ≥ ∆Il 8×∆Vi ×F . (8)

4.1.2 Fuzzy Logic Controller

Fuzzy logic control generally consists of four stages, as shown in Figure 5: fuzzification, fuzzy inference system, knowledge base, and defuzzification.

Figure 5. General structure of fuzzy system.
Figure 5. General structure of fuzzy system.

1. Database: represents a number of rules of conditions (probabilities) in an ambiguous rule, and the rules may use several variants of input or output rules. For example, seven fuzzy levels can be used. 2. Rule base: represents the rules for associating the values of output variables with input variables, which depend on the work cycle of the commutator and on the knowledge of the designer. • Stage (Fuzzy Inference System): there are two main types of fuzzy inference systems: Mamdani FIS and Sugeno FIS. • Decoding stage (Defuzzification): the output of the fuzzy logic controller switches from the language variable to the numerical one that uses the membership dependent. This variable provides the value necessary to set the pulse-width value that drives key T1 [4, 5, 10].

In this research, there are two inputs (Error and Change of Error) and one output, the duty-cycle change (α). The Mamdani model is used as a fuzzy inference system; the input and output have seven organic functions. Centroid is used to decode the rule base, which includes the following rule:

IF error is zero AND change of error is zero THEN change of duty cycle is zero.

4.1.3 Genetic Algorithms

Figure 6 shows a systematic scheme of the structure of the work of genetic algorithms, which adopts the biological principle (survival of the fittest) and therefore proposes some solutions to the problem randomly and initially during the first stage, which is called the initial population generation. The problem solutions are called chromosomes and are then evaluated through the fitness function developed by the designer, and accordingly the most efficient are selected.

The next step is to pair the solutions chosen as the most efficient solutions (Crossover) to produce new solutions, as happens in living organisms by mixing their genes so that the new organism carries traits that are a combination of the traits of its parents.

If the efficiency of the new solution is proven, it remains; otherwise, it is neglected. At the next stage, genetic mutations (Mutation) are induced to create new offspring, and so mating and selection processes take place until the process reaches either a certain number of repetitions (determined by the user of the system), the resulting solutions or one of them reaches an efficiency ratio or a small error ratio (also determined by the user), or the best solution is obtained [8, 11].

Figure 6. General structure of Genetic Algorithms.
Figure 6. General structure of Genetic Algorithms.

4.2 Fuzzy Genetic Controllers

The research proposes to develop the operation of the fuzzy system (FLC) using genetic algorithms (GA) to obtain results that are more accurate by improving the components of the cognitive fuzzy base, organic dependent determinants, or both.

The genetic adjustment of the fuzzy rule is usually done by adjusting the system profit constant (GA), which is applied to the input and output (FLC), where the genetic individual refers to the constant (G). Using the efficiency dependent, the best individual that gives the best value of this constant can be calculated. In the case of the membership dependent, the coefficients of the membership dependent are adjusted in this way. The membership of the input and output fuzzy and the system profit constant do not change, but the sequence of rules (IF–THEN) is adjusted to give the best result. In this way, an individual is represented for one rule or for all rules, and the rule base (RB) is represented by a relational matrix, a decision table or a list of rules [12].

4.2.1 Modeling of Components of a Voltage-Reducing Commutator Control System

Based on Equations (7) and (8) and on the limit values of the current and voltage deviation shown in Equations (3) and (4), the elements of the commutator and circuit modeling were selected within the MATLAB/Simulink environment, as shown in Figure 7. The circuit modeling of the transverse pulse controller (PWM) is shown in Figure 8, and the control system designed in two stages was tested [13].

The first stage: a logic controller (FLC). The controller is based on the error value of the voltage and the error change. A fuzzy controller is designed with two inputs: the error signal (E) and the error-signal change. Equations (9) and (10) calculate ∆E and their value:

E = VO −VREF, (9)
∆E = E(n)−E(n−1), (10)

where VO is the output voltage of the fuzzy logic controller, VREF is the reference signal of the input voltage, ∆E(n) is the

Figure 7. Buck Converter.
Figure 7. Buck Converter.
Figure 8. Transverse pulse controller circuit (PWM).
Figure 8. Transverse pulse controller circuit (PWM).

error change, and n is the value taken at the beginning of the nth operating cycle.

The output of the fuzzy controller is the change of the operating cycle of the commutator switch, ∆α, which is given by

dα = dα−1 +h∆dα. (11)

Each of the control values was divided into seven fuzzy subgroups (organic dependent): NB (large negative), NM (medium negative), NS (small negative), ZE (zero), PS (small positive), PM (medium positive), and PB (large positive). Figure 9 shows the organic relationship of the inputs and outputs of the fuzzy logic controller [14]. The fuzzy base of the controller (FLC) is also scheduled in 49 bases, as shown in Figure 10.

Figure 9. Organic relationship of inputs and outputs of the fuzzy logic controller.
Figure 9. Organic relationship of inputs and outputs of the fuzzy logic controller.

Figure 11 shows the modeling of the circuit of the Buck converter driven using the fuzzy logic controller (FLC). In order to simplify the final circuit, the switch circuit shown in Figure 7 and the PWM circuit shown in Figure 8 were converted to subsystem blocks.

Figure 10. The fuzzy basic rule.
Figure 10. The fuzzy basic rule.

The modeling was tested for different reference voltage values (12, 13, 14 and 15 V). Table 1 shows the modeling parameters provided by the controller (FLC): maximum overshoot, rise time, and stability time.

Table 1. Modeling parameters provided by the controller (FLC).
Table 1. Modeling parameters provided by the controller (FLC).

Stability time (ms) 24 12 0.225% 0.027 0.037 24 13 0.235% 0.029 0.038 24 14 0.88% 0.032 0.040 24 15 0.88% 0.033 0.045

The second stage: design and modeling of the genetic— fuzzy controller (GA–FLC). There are many parameters that affect the control process in the Buck model, in addition to the shape of the inputs and outputs of the fog controller, such as the error gain constant (EG), the change-in-error gain constant (CG), and the output constant of the fuzzy controller (OG). These parameters can be adjusted to give almost perfect results.

GA was used to improve these parameters and improve the form of membership of the fuzzy controller by improving the accuracy of profit constants and changing the form of membership. M-file code was designed within the MATLAB environment and divided into two parts: a main section dedicated to the selection of intersection points, mutations and the formation of a new group, and a section responsible for the selection of new populations by calculating efficiency and selecting the best efficiency value [15, 16], according to the sequence of steps shown in Figure 12.

Some rules were adopted to simplify writing GA code: the time interval of inputs and outputs remained in the range [−1,1] and the symmetric point is at zero, and the inputs and outputs have the same form. After maintaining these parameters, the number of variables became 7 for membership functions and 3 for profit constants, the number of individuals was 50, the number of generations was 100, and the probability of intersection was 0.7.

Comparison of results by output curves for a reference output voltage of 14 V. Figure 13 shows the response curve of the output voltage of the switch (Buck) controlled using the controller (FLC). Figure 14 shows the response curve of the output voltage of the alternator (Buck) using the GA– fogging controller (GA–FLC). In addition, Figure 15 shows

Figure 11. Modeling the circuit of the Buck converter driven using the fuzzy logic controller (FLC).
Figure 11. Modeling the circuit of the Buck converter driven using the fuzzy logic controller (FLC).
Figure 12. Steps for designing a genetic algorithm (GA).
Figure 12. Steps for designing a genetic algorithm (GA).
Figure 13. The output-voltage response of the alternator (Buck) controlled using the microcontroller (FLC).
Figure 13. The output-voltage response of the alternator (Buck) controlled using the microcontroller (FLC).

oscillation of the output voltage of the alternator (Buck) controlled using the microcontroller (FLC), and Figure 16 shows oscillation using the GA–fog controller (GA–FLC).

Table 2 shows a comparison of the modeling parameters provided by the fuzzy logic controller (FLC) and the fuzzy– genetic controller (GA–FLC).

Table 2. Comparison of the modeling parameters provided by FLC and GA–FLC.
Table 2. Comparison of the modeling parameters provided by FLC and GA–FLC.

Parameter FLC GA–FLC Maximum yield 0.88% 0.1% Stability time 0.040 0.039 Rise time 0.033 0.032 Ripple voltage 53 mV 10 mV Error 1.6% 0.4%

5. CONCLUSION

Research results. The genetic blur controller was designed using the MATLAB program to control the voltage-reducing switch (Buck), after analyzing the work of the switch, the blur controller and the genetic algorithm, and the modeling results showed the following.

Based on curves (12 and 14) and Table 1, we conclude that the voltage-reducing commutator (Buck) provided a satisfactory response when using the fuzzy logic controller (FLC) in terms of stable output voltage and proximity to the reference voltage, the maximum bypass of the output voltage, the rise time and the stabilization time. This proves that Fuzzy Logic Control is considered one of the most effective artificial intelligence technologies and it offers an alternative solution to

Figure 14. The output-voltage response of the alternator (Buck) controlled using the microcontroller (GA–FLC).
Figure 14. The output-voltage response of the alternator (Buck) controlled using the microcontroller (GA–FLC).
Figure 15. Alternator output-voltage ripple (Buck) controlled using the microcontroller (FLC).
Figure 15. Alternator output-voltage ripple (Buck) controlled using the microcontroller (FLC).

classical control methods in terms of response speed and low complexity.

Genetic algorithms (GA) were used to improve the work of the controller (FLC) by optimizing the organic follower of the input and output of the fog controller and the profit constants. The modeling results in Table 2 showed the superiority of the genetic fog controller (GA–FLC) over the fog controller (FLC) in terms of reducing the stability and rise time and reducing the value of the maximum bypass, ripple and error value of the output voltage, which is shown when comparing the output curves (13, 15) with the output curves (12, 14).

Thus, we conclude that the use of the genetic algorithm has raised the efficiency of the fuzzy logic controller and thus radically raised the efficiency of the system, which is the main goal and the essence of the research.

References

Figure 16. Ripple of the output voltage of the alternator (Buck) using the microcontroller (GA–FLC).
Figure 16. Ripple of the output voltage of the alternator (Buck) using the microcontroller (GA–FLC).
  1. S. Kumaar, “DC–DC Converters: A Study of Technol- ogy,” India, 2021.
  2. S. Chakraborty, H.-N. Vu, M. M. Hasan, D.-D. Tran, M. El Baghdadi, and O. Hegazy, “DC–DC Converter Topologies for Electric Vehicles, Plug-in Hybrid Elec- tric Vehicles and Fast Charging Stations: State of the Art and Future Trends,” Energies, vol. 12, no. 8, p. 1569, 2019.
  3. ELECTROMOTION, Vol. 11, pp. 213–224, 2019.
  4. T. Ibrahim and A. Zina, “Study and Design of Stand- Alone Photovoltaic System to Achieve Maximum Power Point Using Digital Control Systems for Stages of Adaptation (DC/DC) and (DC/AC),” Tishreen University Journal for Studies and Scientific Research— Engineering Sciences Series, vol. 38, no. 3, 2016.
  5. L. Zadeh, “Fuzzy sets,” Information and Control, vol. 8, 1965.
  6. ——, “Knowledge representation in fuzzy logic,” IEEE Transactions on Knowledge and Data Engineering, vol. 1, pp. 89–100, 1989.
  7. K. Vairal, S. Kulkarni, and V. Basotia, “Fuzzy logic and its applications in some area: Mini review,” Journal of Engineering Science, vol. 11, no. 8, 2020.
  8. H. Farahani and A. Feshki, “Designing and Implemen- tation of a Fuzzy Controller for DC–DC Converters and Comparing with PI Digital Controller,” Journal of Applied Sciences Research, vol. 7, no. 7, 2011.
  9. G. Shankar and A. Kaur, “Optimization of energy in robotic arm using genetic algorithm,” IJCST, vol. 2, no. 2, 2011.
  10. R. Abhishek, P. Zoting, and P. Ragit, “Design and Anal- ysis of a DC–DC Buck Converter and Boost Converter to Achieve High Efficiency by Altering Duty Cycle and Input Voltage,” International Journal of Scientific and Research Publications, vol. 10, no. 6, 2020.
  11. F. Dernoncourt, “Introduction to fuzzy logic,” MIT, USA, 2013.
  12. K. Man, K. Tang, and S. Kwong, “Genetic algorithms: Concepts and applications in engineering design,” IEEE, vol. 43, no. 5, pp. 519–534, 1996.
  13. O. Eyes, G. Sánchez, and M. Strefezza, “Multiobjective GA–FUZZY Logic Controller,” Ph.D. thesis, ICINCO, Venezuela, pp. 384–389, 2009.
  14. C. Batard, F. Poitiers, C. Millet, and N. Ginot, “Simu- lation of power converters using matlab–simulink,” In MATLAB—A Fundamental Tool for Scientific Computing and Engineering Applications, vol. 1, pp. 44–68, 2012.
  15. The MathWorks, Fuzzy Logic Toolbox User’s Guide, MathWorks, Natick, MA, USA, 2014.
  16. L. F. S. C. Pereira, E. Batista, M. A. G. de Brito, and R. B. Godoy, “A Robustness Analysis of a Fuzzy Fractional Order PID Controller Based on Genetic Algorithm for a DC–DC Boost Converter,” Electronics, vol. 11, no. 12, p. 1894, 2022.
  17. A. Chipperfield, P. Fleming, and H. Pohlheim, Genetic Algorithm Toolbox User’s Guide, MathWorks, USA, 2014.