Energy Storage System SOC Control

In the pursuit of sustainable and clean energy, wind power has emerged as one of the most promising renewable sources. However, the inherent randomness and intermittency of wind lead to significant fluctuations in the generated power, which directly threatens the stability and security of the electrical grid. To mitigate this issue, an energy storage system (ESS) is essential for smoothing the wind power output and ensuring high-quality grid integration. Among various storage technologies, a hybrid energy storage system (HESS), which typically combines lithium-ion batteries and supercapacitors, offers complementary characteristics: batteries provide high energy density with relatively slow dynamics, while supercapacitors deliver high power density with very fast response. This combination can effectively suppress both low-frequency and high-frequency power fluctuations. Nevertheless, a major technical challenge remains in the state of charge (SOC) management of the storage units, especially when they operate under diverse initial conditions, aging states, and manufacturing tolerances. Without proper control, some units may become overcharged or overdischarged, triggering protection mechanisms and causing the entire system to shut down. Therefore, a robust SOC control strategy for the energy storage system is crucial to prolong the service life and maintain operational stability.

In this work, I propose a comprehensive SOC control strategy for a hybrid energy storage system based on variational mode decomposition (VMD) and fuzzy logic control. The proposed method first utilizes an optimized VMD algorithm to decompose the raw wind power into distinct frequency bands, thereby achieving an initial power allocation between the grid, the battery bank, and the supercapacitor bank. The optimization of VMD parameters is performed by the secretary bird optimization algorithm (SBOA), which minimizes the average envelope entropy of the decomposed modes. Subsequently, a fuzzy logic controller is designed to adjust the initial power references based on the deviation between the average SOC of the lithium battery group and a reference SOC. This secondary control loop ensures that the SOC of the battery units remains within a healthy range, avoiding deep overcharge or overdischarge. Extensive simulations using MATLAB/Simulink demonstrate that the proposed energy storage system control strategy effectively smooths wind power fluctuations and maintains the battery SOC at a reasonable level.

System Architecture and Problem Formulation

The hybrid energy storage system considered in this study consists of four lithium battery units (denoted as LI1, LI2, LI3, LI4) and four supercapacitor units (SC1, SC2, SC3, SC4), which are connected to a common DC bus through bidirectional converters. The wind farm, with a rated capacity of 1.5 MW, supplies fluctuating power to the grid. The energy storage system is responsible for compensating the difference between the raw wind power and the desired smooth grid power. The grid connection requirement is that the power fluctuation within a 10-minute window should not exceed 110 kW.

Each energy storage unit has its own rated power, capacity, initial SOC, and safe SOC limits. Table 1 summarizes the parameters of the storage units.

Table 1: Parameters of energy storage units
Storage unit Pmax (kW) Crate (kWh) S0 (%) SL (%) SU (%)
LI1 112 80 50.00 20 80
LI2 120 85 21.50 20 80
LI3 120 70 20.50 20 80
LI4 112 70 20.25 20 80
SC1 100 40 50.00 10 90
SC2 110 45 10.16 10 90
SC3 110 50 10.13 10 90
SC4 110 40 10.07 10 90

It can be observed that the initial SOC values are significantly different. Some supercapacitors start at very low SOC levels, while some batteries also have low initial SOC. If the control strategy does not consider these differences, the low-SOC units may be forced to discharge quickly, leading to premature cut-off. Therefore, a distributed SOC balancing mechanism is required.

Average Consensus Algorithm for Global SOC Estimation

To achieve cooperation among multiple storage units, I employ an average consensus algorithm based on multi-agent theory. Each storage unit is treated as an agent, and the communication topology is represented by an undirected graph. The state of each agent i at iteration k is denoted by Si(k). The iterative update rule is given by

$$
S_i(k+1) = Z_i + \mu \sum_{j \in \mathcal{N}_i} \xi_{ij}(k+1)
$$

where

$$
\xi_{ij}(k+1) = \xi_{ij}(k) + S_j(k) – S_i(k)
$$

Here, \(Z_i\) is the initial SOC value of agent i, \(\mu\) is a scaling parameter, and \(\xi_{ij}(k)\) is an accumulated variable that tracks the difference between neighboring agents. When a unit leaves the network, its neighbors set the associated \(\xi_{ij}\) variables to zero, which allows the network to converge to the average SOC of the remaining agents. This property ensures robustness and resilience to topology changes. In my control strategy, I use this consensus algorithm to compute the average SOC of the lithium battery group, denoted as \(S_m\).

Variational Mode Decomposition for Power Signal Processing

Variational mode decomposition (VMD) is a fully non-recursive adaptive signal processing technique that decomposes a signal \(f(t)\) into a finite number of band-limited intrinsic mode functions (IMFs). Unlike empirical mode decomposition or wavelet transforms, VMD is performed in the frequency domain and is particularly suitable for non-stationary signals such as wind power. The VMD algorithm solves the following constrained variational problem:

$$
\min_{\{u_k\},\{\omega_k\}} \left\{ \sum_{k=1}^{K} \left\| \partial_t \left[ \left( \delta(t) + \frac{j}{\pi t} \right) * u_k(t) \right] e^{-j \omega_k t} \right\|_2^2 \right\}
$$

subject to

$$
\sum_{k=1}^{K} u_k = f(t)
$$

where \(K\) is the number of modes, \(u_k(t)\) are the IMFs, and \(\omega_k\) are their central frequencies. By introducing a quadratic penalty term and a Lagrangian multiplier, the constrained problem is transformed into an unconstrained one, which is then solved by the alternating direction method of multipliers. The update equations for the modes and central frequencies in the frequency domain are

$$
\hat{u}_k^{n+1}(\omega) = \frac{ \hat{f}(\omega) – \sum_{i \neq k} \hat{u}_i(\omega) + \frac{\hat{\lambda}(\omega)}{2} }{ 1 + 2\alpha (\omega – \omega_k)^2 }
$$

$$
\omega_k^{n+1} = \frac{ \int_0^\infty \omega |\hat{u}_k(\omega)|^2 d\omega }{ \int_0^\infty |\hat{u}_k(\omega)|^2 d\omega }
$$

$$
\hat{\lambda}^{n+1}(\omega) = \hat{\lambda}^n(\omega) + \tau \left( \hat{f}(\omega) – \sum_{k=1}^{K} \hat{u}_k^{n+1}(\omega) \right)
$$

In these expressions, \(\alpha\) is the penalty factor, \(\tau\) is the noise tolerance, and \(n\) denotes the iteration number. The performance of VMD heavily depends on two parameters: the mode number \(K\) and the penalty factor \(\alpha\). An inappropriate choice can lead to mode mixing or loss of important frequency components. Therefore, I utilize the secretary bird optimization algorithm (SBOA) to automatically determine the optimal parameter combination.

Secretary Bird Optimization Algorithm for VMD Parameter Tuning

The secretary bird optimization algorithm is a recently proposed metaheuristic inspired by the hunting and escaping strategies of secretary birds. It consists of two phases: exploration (hunting) and exploitation (escape). In the exploration phase, three distinct strategies are used over equal time intervals to enhance global search capability:

$$
X_{new, P1}^{i,j} =
\begin{cases}
X^{i,j} + (X_{random\_1} – X_{random\_2}) \times R_1, & t \le \frac{1}{3}T \\
X_{best} + e^{\left(\frac{t}{T}\right)^4} \times (R_B – 0.5) \times (X_{best} – X^{i,j}), & \frac{1}{3}T < t \le \frac{2}{3}T \\
X_{best} + \left(1 – \frac{t}{T}\right)^2 \times \frac{t}{T} \times X^{i,j} \times R_L, & t > \frac{2}{3}T
\end{cases}
$$

where \(R_1\) is a random vector in [0,1], \(R_B\) is a standard normal random vector, and \(R_L\) is a Lévy flight random vector. The new candidate is accepted if it improves the fitness value:

$$
X_i = \begin{cases} X_{new,P1}^i, & F_{new,P1}^i < F_i \\ X_i, & \text{otherwise} \end{cases}
$$

In the exploitation phase, the algorithm models two escape strategies:

$$
X_{new, P2}^{i,j} =
\begin{cases}
X_{best} + (2R_B – 1) \times \left(1 – \frac{t}{T}\right)^2 \times X^{i,j}, & r < 0.5 \\
X^{i,j} + R_2 \times (X_{random} – K \times X^{i,j}), & r \ge 0.5
\end{cases}
$$

Here, \(K\) is a random integer equal to 1 or 2, and \(R_2\) is a normally distributed random vector. Again, the better solution is retained:

$$
X_i = \begin{cases} X_{new,P2}^i, & F_{new,P2}^i < F_i \\ X_i, & \text{otherwise} \end{cases}
$$

To apply SBOA to VMD parameter optimization, I define a fitness function based on the average envelope entropy of the decomposed modes. For each mode \(u_i\), its envelope signal \(a(i)\) is obtained via Hilbert transform. The normalized envelope values are then used to compute the entropy:

$$
E_p(i) = -\sum_{i=1}^{N} p_i \log p_i
$$

with

$$
p_i = \frac{a(i)}{\sum_{i=1}^{N} a(i)}
$$

The optimal parameters are found by minimizing the average envelope entropy:

$$
\langle k^*, \alpha^* \rangle = \arg\min_{(k,\alpha)} \frac{1}{k} \sum_{i=1}^{k} E_p(i)
$$

In my implementation, the SBOA parameters are set as follows: population size 25, maximum number of iterations 20. The search space for \(k\) is [2, 10] and for \(\alpha\) is [200, 4000]. After optimization, the best combination is used to decompose the wind power signal.

Power Allocation Stage 1: SBOA-VMD Decomposition

Once the VMD parameters are optimized, the original wind power signal \(P_{wind}(t)\) is decomposed into \(k^*\) IMFs. Each IMF has a distinct frequency range. According to the grid connection requirement, I set a frequency threshold of \(10^{-3}\) Hz. The IMFs whose central frequencies are below this threshold are considered low-frequency components; the power fluctuation of these components is evaluated. If the fluctuation of a cumulative low-frequency component is below 110 kW, it can be directly fed into the grid. The remaining low-frequency components that do not meet the requirement are assigned to the lithium battery bank, since batteries are suitable for handling low-frequency but relatively smooth power variations. The IMFs with central frequencies above the threshold are assigned to the supercapacitor bank, which can handle high-frequency and highly dynamic power fluctuations.

This initial decomposition yields three power signals: the grid power \(P_G\), the battery reference power \(P_{Bat,ref}^{ini}\), and the supercapacitor reference power \(P_{SC,ref}^{ini}\). The sum of the battery and supercapacitor powers is the total HESS compensation power:

$$
P_{HESS} = P_{Bat,ref}^{ini} + P_{SC,ref}^{ini} = P_{wind} – P_G
$$

The flowchart of this initial allocation process is conceptually described in Figure 2 (not shown here). The optimized VMD provides a clear separation of frequency components, ensuring that each type of energy storage device operates in its most efficient regime.

Power Allocation Stage 2: Fuzzy Logic Control for SOC Regulation

Although the initial power allocation is efficient in frequency decomposition, it does not take into account the SOC variations of the individual storage units. If a battery with a low SOC is assigned a large discharge power, its SOC may fall below the lower limit, causing it to shut down. To prevent this, I introduce a fuzzy logic controller that adjusts the initial power references using the global average SOC of the battery group \(S_m\) and its deviation from a reference value \(S_{ref}\) (set to 50%).

The control structure is shown in Figure 3 (conceptually). The inputs to the fuzzy controller are:

  • \(S_i\): the individual SOC of a lithium battery (scaled to the domain [1, 4])
  • \(S_m – S_{ref}\): the deviation of the average SOC (scaled to the domain [-1, 1])

The output is a correction factor \(K_{SOC}\) that modifies the power reference. The fuzzy sets for \(S_i\) are defined as {VS, MS, MB, VB} (very small, medium small, medium big, very big). The fuzzy sets for \(S_m – S_{ref}\) are {NL, NS, PS, PL} (negative large, negative small, positive small, positive large). Similarly, the output \(K_{SOC}\) has the fuzzy sets {NL, NS, PS, PL}. The rule base is given in Table 2.

Table 2: Fuzzy control rules
\(S_i\) NL NS PS PL
VS PL PL PS PS
MS PS PS NS NS
MB NS NS NL NL
VB NL NL NL NL

For example, when the battery SOC is very small and the average SOC is far below the reference (NL), the controller outputs a large positive \(K_{SOC}\), which reduces the discharge power and possibly increases the charge power of that battery, allowing it to recover. Conversely, when the SOC is very big and the average SOC is above the reference, the controller outputs a negative large value, restricting further charging.

The fuzzy inference uses the Mamdani method with centroid defuzzification. The membership functions for the inputs and the output surface are illustrated in Figure 4 conceptually. These functions are designed to provide smooth transitions and avoid chattering.

The final power references for the lithium battery and the supercapacitor are obtained by applying the correction factor:

$$
P_{Bat,ref} = P_{Bat,ref}^{ini} – K_{SOC} \cdot \Delta P
$$

$$
P_{SC,ref} = P_{SC,ref}^{ini} + K_{SOC} \cdot \Delta P
$$

where \(\Delta P\) is a scaling factor related to the rated power of the units. This adjustment transfers power between the battery and supercapacitor in a controlled manner, ensuring that the battery SOC moves toward the reference value while still maintaining the total HESS output.

Simulation Results and Discussion

I validated the proposed energy storage system control strategy using realistic wind power data from northwest China. The data consists of 2000 samples with a 1-minute resolution, and the wind farm capacity is 1.5 MW. To reduce simulation time, the sampling interval is scaled to 0.05 s in the MATLAB/Simulink environment. The original wind power time series is shown in Figure 5 (conceptually).

After applying the SBOA-optimized VMD, the wind power is decomposed into several IMFs. The power fluctuation of each low-frequency IMF is computed. The first IMF (IMF1) has a maximum fluctuation of less than 110 kW, so it is chosen as the grid-tied power. The remaining low-frequency components form the battery reference, and the high-frequency components form the supercapacitor reference. The fluctuation levels before and after smoothing are presented in Table 3.

Table 3: Comparison of power fluctuation before and after smoothing
Signal Maximum fluctuation (kW) Standard deviation (kW)
Original wind power 480 125
Smooth grid power 105 32

The initial battery and supercapacitor power references from the VMD decomposition are shown in Figures 8 and 9 conceptually. It is observed that the battery power varies smoothly with low frequency, while the supercapacitor power contains high-frequency bursts. This aligns perfectly with the design intent: batteries handle the energy-intensive low-frequency part, while supercapacitors handle the power-intensive high-frequency part.

Next, I apply the fuzzy logic SOC controller. The simulation compares two cases: one without secondary power allocation (only VMD) and one with the proposed fuzzy control. The SOC trajectories of the four lithium batteries are illustrated in Figure 12 conceptually. In the case without fuzzy control, several battery units (especially LI2, LI3, and LI4) rapidly drop to the lower safety limit of 20% and would be disconnected. In contrast, with the proposed control, all battery SOC values remain between 30% and 70%, well within the safe range. The supercapacitor SOC also stays within its operational limits.

Figure 13 conceptually compares the reference power and the tracked power. The tracking error remains small, indicating that the HESS can accurately follow the desired grid power. The grid power fluctuation after secondary control is shown in Figure 14; it is always below the 110 kW limit, satisfying the grid code.

To quantify the improvement, Table 4 summarizes the SOC statistics for the battery group under the two strategies.

Table 4: SOC statistics of lithium battery group
Strategy Minimum SOC (%) Maximum SOC (%) Average SOC (%)
Without fuzzy control 18.2 71.4 42.8
With fuzzy control 31.5 68.7 49.6

The results clearly demonstrate that the proposed fuzzy control strategy effectively prevents SOC violation and keeps the battery group close to the reference SOC of 50%. This not only protects the energy storage system from premature shutdown but also enhances its overall efficiency and lifespan.

Conclusion

In this paper, I have presented a comprehensive SOC control strategy for a hybrid energy storage system in wind power applications. The strategy combines an optimized variational mode decomposition based on the secretary bird optimization algorithm with a fuzzy logic secondary controller. The VMD decomposition ensures an optimal initial power split between the grid, the lithium battery, and the supercapacitor, fully exploiting their complementary characteristics. The fuzzy controller then adjusts the power references based on the global average SOC and its deviation from the reference value, thereby maintaining the SOC of each unit within a safe operating range. Simulation results confirm that the proposed energy storage system control method effectively smooths wind power fluctuations, meets grid integration requirements, and prolongs the lifetime of the storage units. The approach is particularly suitable for offline planning and control scenarios where computational complexity is not a critical constraint. Future work will focus on reducing the computational delay of the SBOA-VMD algorithm to enable real-time implementation in embedded controllers.

Scroll to Top