1. Introduction
The Four-Switch Buck–Boost (FSBB) converter represents a highly versatile DC-DC converter topology, capable of efficiently handling a wide range of input and output voltage levels [
1,
2]. In recent years, the FSBB converter has gained significant attention due to its versatility and ability to operate in both buck and boost modes. Numerous studies have explored various aspects of FSBB converters, including their design, control strategies, and applications. As a result, the converter is considered a crucial component in various power electronics applications. For example, ref. [
3] provides an extensive analysis of FSBB converter topologies and their advantages in applications such as renewable energy systems and electric vehicles, where a wide input voltage range is required. In [
4], The article presents an improved control strategy for the Four-Switch Buck–Boost (FSBB) converter, focusing on enhancing efficiency across a wide conversion ratio. The advantages include improved efficiency through Zero Voltage Switching (ZVS) for all switches, seamless mode transitions, and the elimination of dead zones, which enhances output voltage regulation and stability. The flexible strategy is implemented in a real-time digital controller without needing pre-calculated lookup tables. However, it also involves complex implementation, requiring precise control of the duty cycle and phase shift, and necessitates high-speed components, increasing costs. Despite a constant switching frequency, the wide range of operating conditions may still present challenges in electromagnetic compatibility (EMC) design. Overall, the strategy significantly boosts performance but introduces complexity and design challenges. Additionally, ref. [
5] discusses a sliding-mode control (SMC) method for stabilizing a boost converter under constant power loading (CPL) conditions. The main advantages of this approach include robust performance, fast response, and independence from the converter parameters. SMC effectively combines unstable ON and OFF state trajectories to achieve a stable converter dynamics, offering a good trade-off between response speed and inrush current. However, challenges include potential complexity in implementation and the requirement for precise tuning of the control parameters to ensure stability and optimal performance.
Attaining precise and stable control of the FSBB converter presents a significant challenge, primarily due to its highly nonlinear dynamics, variable operating conditions, and the necessity for rapid transient response. While traditional proportional–integral–derivative (PID) controllers have been widely employed to regulate FSBB converters, they frequently prove inadequate in terms of adaptability and robustness, particularly when subjected to varying load and input conditions. To address these limitations, backpropagation neural networks (BPNNs) have emerged as a powerful tool for optimizing PID controllers [
6]. BPNNs are capable of learning and adapting to the dynamic characteristics of the FSBB converter, thereby enhancing the performance of the control system. Nevertheless, while BPNNs offer considerable potential, they can be prone to issues such as slow convergence and local minima, which may result in suboptimal control performance.
To overcome these challenges, particle swarm optimization (PSO), a population-based optimization technique inspired by the social behavior of birds, has been integrated with BPNN with the objective of enhancing its ability to find optimal control parameters [
7]. The incorporation of PSO into BPNN-based controllers has resulted in enhanced performance, particularly in terms of convergence speed and accuracy. However, PSO algorithms may still demonstrate premature convergence and restricted global search capabilities, particularly in intricate, high-dimensional search spaces.
In this context, the introduction of chaos theory into PSO algorithms represents a promising avenue for further research. Chaotic particle swarm optimization (CPSO) employs the intrinsic randomness and unpredictability of chaotic systems to augment the global search capacity of the PSO algorithm, thus circumventing premature convergence and enhancing stability. Chaotic systems possess intrinsic properties such as sensitivity to initial conditions, topological mixing, and periodic orbital densities, which can be skillfully exploited to traverse the search space chaotically, increasing the probability of reaching the global optimum or better approximating a given cost function [
8]. Chaotic logistic maps are used not only to replace the two random parameters that influence the convergence behavior but also for chaotic local searches of the global optimum, thus easily avoiding premature convergence of the particles throughout the search space. Although these phenomena may appear as arbitrary patterns, they are, in fact, conditionally deterministic and recurrently traversed throughout the search space. These properties have attracted considerable interest from the scientific community, with researchers and practitioners worldwide employing chaos theory to investigate the challenges of control, synchronization, prediction, and optimization of nonlinear dynamical systems. The conjunction of chaos theory and heuristics in optimization has given rise to a significant body of research, with numerous studies conducted in recent years on chaotic optimization heuristics. For example, one study proposes a methodology for improving the search capability of particle swarms by integrating chaotic logic and adaptive inertia weighting factors into PSO [
9]. To address the issue of power load forecasting, the article employs the chaotic PSO algorithm in the context of vector regression model selection [
10]. Another study proposes an enhanced PSO algorithm with intergroup interactive learning strategies, inspired by the interactive learning behaviors observed between different groups in human society [
11].
In summary, the performance of optimization algorithms can be drastically improved with chaotic mapping, where evolutionary variables are closely associated with chaotic attractors and bumps. The general idea is to map the relevant variables or sets in the problem from the chaotic space to the search space and then use chaotic traversal orbits to search for optimal values instead of using random orbits. Several optimization algorithms, including Genetic Algorithms (GAs), Reconciliation Algorithms, PSO, Artificial Bee Colony (ABC), Firefly Algorithms (FA), Ant Colony Optimization (ACO), and Bacterial Foraging Optimization Algorithms (BFOA), can be enhanced through the introduction of chaotic algorithms [
12,
13,
14,
15,
16].
The objective of the proposed CPSO-BPNN-PID controller is to achieve precise, robust, and rapid control of the FSBB converter by integrating CPSO with BPNN-based PID controllers. This novel approach not only accelerates the convergence process but also enhances the overall stability and dynamic response of the control system. This paper examines the deployment of the CPSO-BPNN-PID controller in the context of the FSBB converter, with a particular focus on the efficacy of this approach as demonstrated through comprehensive simulations. The results demonstrate that the proposed controller achieves a faster and more stable steady-state response compared to classical PID controllers, thereby validating the effectiveness of the CPSO-BPNN approach in optimizing the performance of FSBB converters.
In this paper, a neural network is used to dynamically adjust the PID controller parameters in real time according to the current system state. The innovative use of the CPSO algorithm for optimizing the weights of the BPNN ensures that the network can effectively generalize and adapt to different operating conditions. The following sections of the paper are organized as follows:
Section 2 presents an analysis of the operating modes and mathematical modeling of the FSBB converter.
Section 3 discusses the BPNN-based PID controller.
Section 4 details the use of CPSO to optimize the controller. The results of the simulation and experimental studies on closed-loop control are presented in
Section 5.
Section 6 provides a summary of the findings of the study.
2. Establishment of FSBB Converter Model
The FSBB converter is a highly versatile power electronic device, capable of operating in multiple modes to achieve both step-up (boost) and step-down (buck) voltage conversion, as well as a combination of both. The FSBB converter circuit is shown in
Figure 1. The versatility of the FSBB converter makes it an optimal choice for applications that necessitate a wide range of input and output voltage levels, including renewable energy systems, battery management systems, and electric vehicles. A comprehensive understanding of the converter’s operational modes and associated control strategies is essential for achieving optimal performance.
2.1. Review of FSBB Converter Operation Modes
In the Buck mode, as shown in
Figure 2, the FSBB converter operates to reduce the input voltage to a lower output voltage. This mode is selected when the desired output voltage is less than the input voltage. During this operational phase, the converter functions similarly to a conventional buck converter, but with the added flexibility afforded by the four-switch topology.
Switches S1 and S3 are primarily used to control the voltage conversion. S1 is turned on to allow current to flow through the inductor L, storing energy while increasing the inductor current. When S1 is turned off, S3 is turned on, allowing the inductor to release its stored energy to the load through the output capacitor C. The duty cycle of S1 is adjusted based on the desired output voltage. A PID controller is typically employed to maintain output voltage regulation by adjusting the duty cycle in response to alterations in load or input voltage.
In Boost mode, as shown in
Figure 3, the FSBB converter increases the input voltage to a higher output voltage. This mode is used when the output voltage requirement exceeds the input voltage level.
Switches S2 and S4 are primarily involved in this mode. S2 is turned on to allow current to flow through the inductor L, storing energy. When S2 is turned off, S4 is turned on, and the energy stored in the inductor is released to the output, boosting the voltage across the load. The duty cycle of S2 is adjusted to control the output voltage. As with the Buck mode, a PID controller may be employed to regulate the output voltage by modulating the duty cycle in accordance with the feedback received from the output voltage.
The Buck–Boost mode is a distinctive feature of the FSBB converter, as shown in
Figure 4, enabling both step-up and step-down voltage conversion contingent on the specific duty cycle applied. This mode is particularly advantageous in scenarios where the input voltage is close to the desired output voltage or when the input voltage exhibits considerable variability.
The FSBB converter combines the Buck and Boost operations by alternately switching between S1, S2, S3 and S4. Initially, S1 and S4 are turned on to store energy in the inductor, similar to Buck mode. Subsequently, S2 and S3 are turned on, allowing the stored energy to be released to the output, boosting the voltage if necessary. The control in Buck–Boost mode is more complex due to the dual nature of the operation. To achieve optimal control, advanced techniques such as a backpropagation neural network (BPNN) optimized with particle swarm optimization (PSO) are often employed to dynamically adjust the duty cycles of the switches. The control strategy must balance the two modes to attain the desired output voltage while minimizing losses and ensuring stability.
2.2. Mathematical Modeling of FSBB Converter
In a DC converter system, it is essential to ensure that the output voltage remains stable when the input voltage or load size changes. To achieve this, a closed-loop feedback mechanism must be incorporated to facilitate the adjustment of the converter’s duty cycle. The FSBB converter is capable of operating in three distinct modes over a broad input range. To achieve closed-loop control of the system over this entire input range, it is necessary to construct a small-signal model for each of the three modes and design the controller. Once the controller parameters have been designed, the static and dynamic characteristics of the system can be tested through closed-loop simulation to ascertain the reasonableness of the controller design. D1 is the input duty cycle and D2 is the output duty cycle.
Figure 5 illustrates the principal waveforms of the FSBB converter. The subsequent equations can be derived through an analysis of the operational modes:
By analyzing the key waveforms of the converter, the parameters in Equation (1) are obtained and presented in
Table 1. The table lists the values in Matrix A and Matrix B for the four time periods in a cycle (T
1, T
2, T
3, T
4), where A = [A
11 A
12; A
21 A
22] and B = [B
11; B
21].
The averaged model is obtained by integrating the duty cycles (D
1, D
2) over the specified period and subsequently averaging the resulting equations:
The introduction of a minor signal disturbance is proposed as a means of:
It can be assumed that the steady-state DC component is significantly larger than the AC perturbation.
The conversion of Equation (2) to the s-domain via Laplace transformation, collapsing and simplifying, and the neglect of higher-order AC terms yield the following result:
The FSBB converter control-output transfer function
can be derived from Equation (5).
3. Controller Design and Optimization
3.1. Proportional–Integral–Derivative Controller
The proportional–integral–derivative (PID) controller is one of the most prevalent control strategies in industrial applications, largely due to its simplicity and effectiveness.
Figure 6 provides a visual illustration of the PID controller’s structure.
In the context of the FSBB converter, the PID controller is responsible for regulating the output voltage by adjusting the duty cycle of the converter’s switches in response to deviations from the desired voltage set-point. The PID controller operates based on three fundamental components [
17] as set out in the following three paragraphs.
Proportional (P): This provides an output that is proportional to the current error , where is the reference voltage and is the output voltage. The proportional gain determines the responsiveness of the controller.
Integration (I): The integration of the error over time provides a corrective action based on the accumulated error. The integral gain is instrumental in the elimination of steady-state error.
Derivative (D): This provides a prediction of future error based on its rate of change, helping to dampen the system’s response and reduce overshoot. The derivative gain controls the damping effect.
The output of the PID controller
is given by:
Although the PID controller is effective for many applications, it has limitations when applied to nonlinear systems such as the FSBB converter. These limitations include sensitivity to parameter variations and external disturbances, difficulty in tuning the PID parameters for optimal performance, and an inability to handle significant changes in operating conditions without requiring retuning [
18,
19]. These limitations provide the impetus for the development of more sophisticated control strategies, such as the PID controller based on backpropagation neural networks, which will be discussed in the following section.
3.2. PID Controller Based on BPNN
The backpropagation neural network (BPNN) is a specific type of artificial neural network that employs supervised learning to modify its weights based on the discrepancy between the predicted output and the actual output. In the context of FSBB converters, BPNNs can be employed to dynamically adjust the PID controller parameters, thereby enhancing the controller’s adaptability and performance [
20,
21]. The BPNN−PID controller structure is shown in
Figure 7.
The main objective of the training process was to map the system’s error signal (i.e., the difference between the reference output voltage and the actual output voltage) to the appropriate PID parameters (Kp, Ki, and Kd). These parameters were optimized to minimize the error and improve dynamic response, overshoot, and settling time.
The BPNN used in the PID controller has the following configuration.
Input Layer: The input to the BPNN consists of the error signal e(t) (the difference between the reference voltage and the actual output voltage) and the change in error Δe(t) over time.
Hidden Layers: The neural network has one hidden layers, each consisting of three neurons. A sigmoid activation function was used for the hidden layers to introduce nonlinearity into the system and enable the network to learn complex mappings between the input error signal and the PID parameters.
Output Layer: The output layer consists of three neurons, representing the proportional gain Kp, the integral gain Ki, and the derivative gain Kd of the PID controller. The output layer uses a linear activation function, as the PID parameters are continuous values.
Training Algorithm: The training of the BPNN was carried out using the Levenberg–Marquardt algorithm, which is an efficient method for training feedforward neural networks. The performance of the network was evaluated using the Mean Squared Error (MSE) as the loss function, and the training process was stopped when the MSE reached a pre-defined threshold or after a maximum number of iterations.
Training Data: The training data were generated using MATLAB/Simulink simulations of the FSBB converter.
The configuration of the neural network used is shown in
Table 2.
The BPNN outputs are used to dynamically adjust the PID parameters as follows:
where
fp,
fi, and
fd are the functions learned by the BPNN.
The block diagram of the BPNN-PID algorithm is presented in
Figure 8.
4. CSPO-Improved Backpropagation Neural Networks for PID Controller
4.1. BPNN-PID for PSO Optimization
Particle swarm optimization (PSO) is a population-based stochastic optimization algorithm inspired by the social behavior of flocking birds and schooling fish. PSO optimizes a problem through an iterative process that improves a candidate solution based on a given quality measure, expressed through an objective function. The algorithm works by initializing a swarm of particles, where each particle represents a potential solution within the search space.
The velocity of each particle serves to determine both the direction and the magnitude of movement within the search space. The particles traverse the search space by modifying their velocities and positions in accordance with their own optimal experience and that of the collective. The velocity and position of each particle are updated according to the following equations:
where
is the velocity of particle
i at iteration
k;
is the position of particle
i at iteration
k;
is the best position found by particle
i is so far;
is the best position found by any particle in the swarm;
w is the inertia weight, controlling the influence of the previous velocity;
c1 and
c2 are cognitive and social coefficients, which determine the relative influence of personal and global best positions, respectively; and
r1 and
r2 are random numbers uniformly distributed in the range [0, 1].
In the context of PID controller design, the PSO algorithm is used to optimize three parameters: , , and . The fitness function is designed to evaluate the PID controller’s performance, considering factors like rise time, overshoot, settling time, and steady-state error. The objective is to find the optimal set of PID parameters that minimize the fitness function, ensuring a well-tuned controller.
The fitness function
could be expressed as:
where
w1,
w2, and
w3 are weights assigned to each performance criterion, reflecting their relative importance. The application of PSO enables the determination of optimal PID parameters, minimizing the fitness function and thereby enhancing control performance.
4.2. PSO Based on Chaotic Variables
The integration of chaotic variables into PSO gives rise to a novel approach, designated as chaotic particle swarm optimization (CPSO). This approach entails the substitution of random components in the velocity update equation with chaotic sequences, thereby enhancing the diversity and exploration capabilities of the algorithm.
In CPSO, chaotic sequences are used in place of the random numbers and
r1 and
r2 that are conventionally utilized in the standard PSO velocity update equation. One of the most commonly used chaotic maps is the logistic map, defined by the following equation:
where
xn is the chaotic variable at iteration
n and
μ is a control parameter, typically set to 4 for the logistic map to exhibit chaotic behavior.
In CPSO, chaotic sequences generated by the logistic map are substituted for the random components in the velocity update equation:
where
chaos1 and
chaos2 are chaotic sequences generated from the logistic map.
The CPSO algorithm follows these steps, as shown in
Figure 10.
The number of iterations required to reach the optimal solution was used as the criterion for evaluating the performance of PSO and CPSO. The objective of the tests was to optimize the initial weights of the BPNN-PID controller using PSO and CPSO, respectively. The fitness curves for CPSO are shown in
Figure 11, and those for PSO are shown in
Figure 12.
Under the same conditions, optimization tests were conducted using two different algorithms, and the number of iterations required to reach the optimal value was recorded. The results of multiple repeated tests are presented in
Table 3. CPSO demonstrated a superior convergence rate compared to PSO, reaching the optimal solution in approximately 6.2 iterations, whereas PSO required 26.8 iterations. This improvement can be attributed to the chaotic sequences in CPSO, which facilitated more effective exploration of the search space during the initial stages of the optimization process.
To further validate the superiority of CPSO, an optimization test was chosen for the Rastrigin function, which is given by:
The simulation results are shown in
Figure 13. By visualizing the performance of the two algorithms in optimizing the same function, it can be intuitively seen that CPSO outperforms PSO in terms of convergence speed and global search capability.
CPSO converged more quickly than PSO, reducing the number of iterations required to reach the optimal solution. This can be a critical factor in real-time applications where computational efficiency is essential. This section compares the performance of PSO and CPSO in optimizing the weights and biases of the BPNN-PID controller. CPSO outperforms PSO in terms of convergence speed, control accuracy, and robustness. These results demonstrate the potential of CPSO as a powerful optimization tool for control systems, especially in applications where high accuracy and robustness are critical.
4.3. BPNN-PID for CPSO Optimization
The BPNN-PID approach leverages a neural network to dynamically adjust the PID controller parameters in real time, based on the current system state. The CPSO algorithm is used to optimize the weights of the BPNN, ensuring that the network can effectively generalize and adapt to different operating conditions. The improved CPSO-BPNN-PID controller structure is shown in
Figure 14.
The CPSO optimization process for BPNN-PID begins with the initialization of the BPNN using random weights and biases, followed by the initialization of the CPSO algorithm with a swarm of particles, each representing different sets of weights and biases. The performance of each particle is then evaluated by applying the corresponding BPNN-PID controller to the system and measuring its control performance using a fitness function. Chaotic sequences are used to update the positions and velocities of the particles, thereby optimizing the weights and biases of the BPNN. Once the optimal weights and biases are identified, the BPNN is trained accordingly. Finally, the trained BPNN-PID controller is implemented in a real-time system, where it dynamically adjusts the PID parameters based on the current error and system state to achieve optimal control.
The flowchart of the CPSO-BPNN-PID algorithm is shown in
Figure 15.
5. Test Results and Performance Evaluation
In order to evaluate the performance of the CPSO-BPNN-PID controller in the control of FSBB, a series of tests were conducted on a simulated control system. The performance of the controllers was compared to that of a standard PID controller modulated by conventional methods and to that of a standard BPNN-PID controller. The principal objective of the tests was to evaluate the control accuracy, response time, robustness, and adaptability.
The method is initially validated using the transfer function of the FSBB converter (Equation (6)) in lieu of the circuit system.
The parameters required for the experiment are given in
Table 4, and the simulation results of the CPSO-BPNN-PID controller, BPNN-PID controller, and classical PID controller under the same conditions are shown in
Figure 16. The CPSO-BPNN-PID controller parameter adaptive curves are given in
Figure 17. From
Figure 17, it can be seen that the designed controller can stabilize the output of the three parameters of the PID.
Figure 17 shows the self-tuning capability of the CPSO-BPNN-PID controller, where the PID parameters dynamically adapt to varying conditions. This adaptability allows the controller to maintain optimal performance in real time, as evidenced by the smooth stabilization of parameters without oscillations.
One of the key performance indicators of a voltage regulation system is the prevention of voltage overshoot during the transient response. In our tests, the CPSO-optimized PID controller effectively minimized overvoltage overshoot, whereas the other controllers exhibited voltage overshoot. Another critical parameter is settling time, which represents the time required for the system to reach and maintain a stable state after a disturbance or change in the reference signal. The CPSO-optimized controller showed a significant improvement in settling time compared to conventional controllers. A comparison with two other controllers revealed a substantial reduction in settling time. This reduction is crucial for applications requiring rapid voltage regulation, as it enhances system responsiveness and overall efficiency.
Figure 18 illustrates the block diagram of the proposed closed-loop control system. The output voltage is collected by the voltage sensor at the output side, and the error is transmitted to the neural network PID controller, which has been designed in accordance with the specifications set out in this paper, in order to generate the control waveform. Subsequently, the control signal for the switch is transmitted to the FSBB controller via pulse width modulation, thereby completing the closed-loop control.
Figure 19 illustrates the switching states of Q1, Q2, Q3, and Q4, respectively. The driving signals for these switching transistors are VS1, VS2, VS3, and VS4, respectively. The inductor current waveform is shown in
Figure 20.
Figure 21 illustrates the output voltage plots of the PID controller and the controller proposed in this paper under identical conditions. Specifically, the CPSO-optimized controller demonstrated a 0.33% overcharge, indicating that it effectively constrained the output voltage within the desired range, thus protecting the system’s components. In comparison, other controllers, including the traditional PID and PSO-optimized BPNN-PID, experienced overcharge values of 11.66% and 3.3%, respectively.
The settling time of the CPSO-optimized BPNN-PID controller was 50% shorter than that of the classical PID controller. The CPSO-optimized controller reached steady state in 0.08 s, while the classical PID required 0.16 s to stabilize.
The steady-state error is a critical metric for ensuring the long-term accuracy of the control system. Our tests demonstrated that the steady-state error of the CPSO-optimized BPNN-PID controller was negligible. In comparison, the steady-state error of the classical PID controller was 0.1%, while the BPNN-PID controller exhibited a higher error of 0.3%.
In order to demonstrate the robustness of the designed controller, the input voltage was modified to simulate fluctuations in external factors. The test results are shown in
Figure 22. At the same time, the inductor parameters are changed to simulate the parameter deviation problem in real working conditions, and the test results are shown in
Figure 23.
Figure 22 and
Figure 23 demonstrate the robustness of the CPSO-BPNN-PID controller against input voltage fluctuations and inductance changes. The results show that the controller maintains stable operation and outputs the desired voltage, even with significant deviations in input conditions. This clearly illustrates the controller’s ability to handle real-world variations and disturbances, ensuring reliable performance.
Meanwhile, the output voltage setting was changed and the test results are shown in
Figure 24.
To further validate the robustness of the proposed CPSO-BPNN-PID controller, additional simulations were conducted with an inductive load, specifically an electric DC machine, connected to the output of the FSBB converter. We set the resistive resistor as 30 Ω, and at the same time connected the permanent magnet synchronous motor in parallel as an inductive load; its load torque was 12 Nm. At 0.5 s, the speed of the control motor changed abruptly from 1200 rpm to 1500 rpm, at which time the constant power load represented by the motor jumped from 1200/9.55 × 12 ≈ 1.51 kW to 1500/9.55 × 12 ≈ 1.88 kW. Within 1–1.05 s, the speed of the control motor was uniformly reduced from 1500 rpm to 900 rpm, at which time the constant power load represented by the motor was reduced from 1500/9.55 × 12 ≈ 1.88 kW to 900/9.55 × 12 ≈ 1.113 kW.
The simulation results, as shown in
Figure 25 and
Figure 26, demonstrate that the CPSO-BPNN-PID controller is capable of maintaining stable operation and accurately regulating the output voltage and motor RPM. The controller effectively compensates for the inductive load’s influence. Additionally, the output voltage waveform remains stable, indicating that the controller can handle the increased complexity associated with the inductive load. These results further validate the controller’s adaptability and robustness in real-world applications where inductive loads are commonly used.
To provide a comprehensive evaluation of the CPSO-BPNN-PID controller, we compared it with other control strategies in terms of memory usage, software and hardware implementation complexity, mathematical burden, and overall cost.
Table 5 summarizes the comparison between the CPSO-BPNN-PID controller, PSO-optimized BPNN-PID controller, and traditional PID controller.