Two-Step Model Predictive Current Control for Grid-Connected Cascaded H-Bridge Battery Energy Storage Converters

Grid-Scale Battery Storage and the Current-Loop Problem

Battery energy storage has become a routine grid asset rather than a demonstration technology. As variable renewable generation supplies a larger share of electricity, storage must absorb and release active power on timescales from milliseconds to minutes while also providing reactive support and voltage regulation. The power conversion interface determines much of the asset’s value: it sets the speed of charge/discharge transitions, the quality of the injected current, and the ability to ride through modest grid imperfections.

For medium-voltage, high-capacity applications, the cascaded H-bridge (CHB) converter is attractive because it synthesizes a multilevel waveform from low-voltage cells, scales voltage by adding series cells, and can connect to the distribution or subtransmission bus with little or no line-frequency step-up transformation. Each phase consists of several H-bridge cells in series, each with its own battery module or DC source. The AC-side current is shaped by the combined cell voltages, so the current loop is the decisive control layer.

The conventional choice is a proportional-integral (PI) regulator in the synchronous $dq$ frame with feedforward decoupling. It is well understood and easy to commission, but its performance is bounded by bandwidth, the one-sample digital delay, and the accuracy of the decoupling terms. When the active-current command steps sharply, the PI loop trades settling time against overshoot; a $q$-axis step also produces a $d$-axis disturbance because the cross-coupling term is only approximately cancelled. Under a mildly unbalanced grid, the negative-sequence component appears as a second-harmonic ripple in the $dq$ frame, and a fixed-gain PI regulator has limited ability to suppress it.

Model predictive control (MPC) uses the converter model explicitly and can improve the transient. Finite-control-set MPC evaluates candidate switching states directly, but the number of candidates grows combinatorially with the number of levels; a five-level neutral-point-clamped converter, for example, has 125 candidate states. The resulting variable switching frequency complicates filter design and electromagnetic interference. Continuous-control-set MPC instead treats a continuous voltage command as the decision variable and uses a modulator, which fixes the switching frequency and removes the exhaustive search. The remaining difficulty is timing: the voltage computed in one control period is not applied until the next, so a one-step prediction acts on a stale command. The two-step formulation described below addresses that timing problem while retaining an analytical, low-computation control law.

Containerized grid-scale battery energy storage system
Grid-scale battery energy storage: the converter current loop determines how quickly stored energy can be exchanged with the grid.

Cascaded H-Bridge Topology and Synchronous-Frame Model

Each phase leg contains $n$ H-bridge cells in series. The AC terminals connect to the grid through filter inductors $L_a$, $L_b$, $L_c$ with equivalent line resistances $R_a$, $R_b$, $R_c$. With a common neutral point $N$, the converter synthesizes phase voltages $u_a$, $u_b$, $u_c$ against grid voltages $u_{ga}$, $u_{gb}$, $u_{gc}$, and the phase currents $i_a$, $i_b$, $i_c$ are driven by the voltage difference across each filter branch. In the stationary three-phase frame,

$$\begin{aligned}
u_a &= R_a i_a + L_a \frac{di_a}{dt} + u_{ga}\\
u_b &= R_b i_b + L_b \frac{di_b}{dt} + u_{gb}\\
u_c &= R_c i_c + L_c \frac{di_c}{dt} + u_{gc}
\end{aligned}$$

Under balanced conditions, $L_a=L_b=L_c=L$ and $R_a=R_b=R_c=R$. Applying the Park transform at the grid synchronous angle $\theta_s$, with $\omega_s=d\theta_s/dt$, gives the synchronous-frame model

$$\begin{aligned}
u_d &= R_g i_d + L_g \frac{di_d}{dt} – \omega_s L_g i_q + u_{gd}\\
u_q &= R_g i_q + L_g \frac{di_q}{dt} + \omega_s L_g i_d + u_{gq}
\end{aligned}$$

where $u_d$ and $u_q$ are the converter output-voltage components, $i_d$ and $i_q$ are the AC-side current components, $u_{gd}$ and $u_{gq}$ are the grid-voltage components, and $R_g$, $L_g$ are the equivalent $d$-, $q$-axis resistance and inductance. The power exchanged with the grid is

$$\begin{aligned}
P &= u_{gd}i_d + u_{gq}i_q\\
Q &= u_{gq}i_d – u_{gd}i_q
\end{aligned}$$

With the grid-voltage vector aligned to the $q$-axis, $i_q$ carries the active component and $i_d$ the reactive component. This orientation is used in the experimental validation, so a step in $i_q$ represents a charge or discharge command, while $i_d$ should remain near zero unless reactive power is requested.

Two-Step Prediction Under Digital Delay

Let $T_s$ be the control period. Discretizing the synchronous-frame model by the forward Euler method gives the one-step prediction

$$\begin{aligned}
i_d(k+1|k) &= a i_d(k) + b i_q(k) + c u_d(k) – c u_{gd}(k)\\
i_q(k+1|k) &= a i_q(k) – b i_d(k) + c u_q(k) – c u_{gq}(k)
\end{aligned}$$

with $a=1-R_g T_s/L_g$, $b=\omega_s T_s$, and $c=T_s/L_g$. Equation (4) assumes that the voltage computed at $kT_s$ is applied immediately. In a digital controller, sampling, computation, and PWM register update consume one control period: the command calculated at $k$ is loaded for the interval from $(k+1)T_s$ to $(k+2)T_s$. The current at $k+1$ is therefore driven by $u_d(k-1)$, not $u_d(k)$, and the prediction must be written as

$$\begin{aligned}
i_d(k+1|k) &= a i_d(k) + b i_q(k) + c u_d(k-1) – c u_{gd}(k)\\
i_q(k+1|k) &= a i_q(k) – b i_d(k) + c u_q(k-1) – c u_{gq}(k)
\end{aligned}$$

To obtain the command that will act during the next interval, (5) is iterated one step forward to predict the current at $k+2$:

$$\begin{aligned}
i_d(k+2|k) &= a i_d(k+1|k) + b i_q(k+1|k) – c u_{gd}(k+1|k) + c u_d(k-1) + c\Delta u_d(k)\\
i_q(k+2|k) &= a i_q(k+1|k) – b i_d(k+1|k) – c u_{gq}(k+1|k) + c u_q(k-1) + c\Delta u_q(k)
\end{aligned}$$

The grid voltage over the next step is assumed to remain at its present value, $u_{gd}(k+1|k)=u_{gd}(k)$ and $u_{gq}(k+1|k)=u_{gq}(k)$, which is a reasonable approximation for a 1 ms control period at 50 Hz. The prediction is still open-loop and will drift with parameter error, so a feedback correction is formed from the previous prediction error:

$$\begin{aligned}
x_d(k) &= f_d\left[i_d(k)-i_{dm}(k|k-1)\right]\\
x_q(k) &= f_q\left[i_q(k)-i_{qm}(k|k-1)\right]
\end{aligned}$$

where $f_d$ and $f_q$ are correction coefficients. The corrected predictions become

$$\begin{aligned}
i_{dm}(k+1|k) &= a i_d(k) + b i_q(k) – c u_{gd}(k) + c u_d(k-1) + x_d(k)\\
i_{qm}(k+1|k) &= a i_q(k) – b i_d(k) – c u_{gq}(k) + c u_q(k-1) + x_q(k)
\end{aligned}$$

$$\begin{aligned}
i_{dm}(k+2|k) &= a i_{dm}(k+1|k) + b i_{qm}(k+1|k) – c u_{gd}(k+1|k) + c u_d(k-1) + c\Delta u_d(k) + x_d(k)\\
i_{qm}(k+2|k) &= a i_{qm}(k+1|k) – b i_{dm}(k+1|k) – c u_{gq}(k+1|k) + c u_q(k-1) + c\Delta u_q(k) + x_q(k)
\end{aligned}$$

A larger $f_d$ or $f_q$ strengthens correction of model mismatch but also amplifies sampling noise; the coefficients are therefore selected as a compromise between error compensation and noise rejection. The two-step horizon aligns the predicted current with the voltage that will actually be applied, while the correction term absorbs part of the mismatch caused by parameter error, sampling error, and external disturbance.

Cost Function and Analytical Control Law

The controller chooses the voltage increments $\Delta u_d$ and $\Delta u_q$ to minimize

$$\begin{aligned}
J(k) = {}& h_d\left[i_{dref}(k)-i_{dm}(k+2|k)\right]^2
+ h_q\left[i_{qref}(k)-i_{qm}(k+2|k)\right]^2\\
&+ l_d\left[\Delta u_d(k)\right]^2
+ l_q\left[\Delta u_q(k)\right]^2
\end{aligned}$$

The first two terms penalize predicted current error at $k+2$; the last two penalize voltage increments, which limits abrupt command changes and reduces the excitation of filter resonances and switching harmonics. The weights $h_d$, $h_q$ set the priority of current tracking, while $l_d$, $l_q$ set the smoothness of the voltage command. Increasing $h$ improves dynamic tracking but can produce more aggressive voltage changes; increasing $l$ smooths the output but can slow the current response.

Because the predicted currents are affine in the increments, write

$$\begin{aligned}
A_d &= a i_{dm}(k+1|k) + b i_{qm}(k+1|k) – c u_{gd}(k+1|k) + c u_d(k-1) + x_d(k)\\
A_q &= a i_{qm}(k+1|k) – b i_{dm}(k+1|k) – c u_{gq}(k+1|k) + c u_q(k-1) + x_q(k)
\end{aligned}$$

so that $i_{dm}(k+2|k)=A_d+c\Delta u_d(k)$ and $i_{qm}(k+2|k)=A_q+c\Delta u_q(k)$. The cost is quadratic in the two increments. With $h_d,h_q,l_d,l_q>0$, the Hessian is positive definite and the stationary point is the unique minimum. Setting the partial derivatives to zero gives

$$\begin{aligned}
\Delta u_d^*(k) &= \frac{c h_d}{c^2 h_d + l_d}\left[i_{dref}(k)-A_d\right]\\
\Delta u_q^*(k) &= \frac{c h_q}{c^2 h_q + l_q}\left[i_{qref}(k)-A_q\right]
\end{aligned}$$

and the absolute command follows from

$$\begin{aligned}
u_d^*(k) &= u_d^*(k-1) + \Delta u_d^*(k)\\
u_q^*(k) &= u_q^*(k-1) + \Delta u_q^*(k)
\end{aligned}$$

This law requires a handful of multiplications and divisions per axis; it does not enumerate switching states. The resulting voltage command is passed to a unipolar frequency-doubling modulator, so the device switching frequency is fixed and the converter presents a multilevel waveform with an equivalent switching frequency determined by the number of cells and the modulation pattern.

Experimental Platform and Test Conditions

Validation used a 380 V/50 A CHB battery energy storage platform. Each phase has four H-bridge cells, each cell is fed by an independent lithium battery module at 96 V, and the AC-side filter inductance is 6 mH. The controller is a Texas Instruments TMS320F28335, and the power switches are MOSFETs, with five devices in parallel per switch position. Unipolar frequency-doubling modulation is used, with a 1 ms current-control period, 1 kHz device switching, and an 8 kHz equivalent switching frequency. Table 1 summarizes the main parameters.

Table 1. Main parameters of the 380 V/50 A CHB battery energy storage platform.
Parameter Value Parameter Value
Grid-side rated voltage 380 V Rated AC current 50 A
Cells per phase 4 Cell DC-side voltage 96 V
AC filter inductance 6 mH Device switching frequency 1 kHz
Current-control period 1 ms Equivalent switching frequency 8 kHz

The tests were run at 20 A, about 40% of the 50 A rating, with the grid-voltage vector aligned to the $q$-axis. Before each test, the cell DC voltages were trimmed to nearly the same value. Because the test duration was short, the battery module voltages changed little, and active state-of-charge or module-voltage balancing was not part of the study.

Step Response: Speed, Overshoot, and Cross-Coupling

For a charging-current step, the tuned PI loop reached a settling time of 38.7 ms with 4.6 A overshoot and a 4.9 A peak $d$-axis disturbance. The two-step predictive controller reduced these values to 11.3 ms, 2.4 A, and 3.3 A, respectively—reductions of about 70.8%, 47.8%, and 32.7%. The steady-state current ripple was not visibly different between the two controllers. Table 2 lists the comparison.

Table 2. Charging-current step response at 20 A.
Metric PI control Two-step MPC Reduction
Settling time 38.7 ms 11.3 ms 70.8%
Overshoot current 4.6 A 2.4 A 47.8%
Peak $d$-axis disturbance 4.9 A 3.3 A 32.7%

The discharge step followed the same pattern. The improvement is consistent with the structure of the predictive law: the two-step model contains the cross-coupling term $b i_q$ and the delayed voltage $u_d(k-1)$, so the $q$-axis command anticipates the $d$-axis excursion instead of correcting it after it appears. The PI loop, with fixed gains and a one-period delay, requires a longer transient to recover. The comparison therefore reflects both delay compensation and the explicit handling of coupling, not merely a change in loop gain.

Inductance Mismatch and Feedback Correction

Parameter sensitivity was tested by varying the inductance used inside the controller model while leaving the physical filter inductor unchanged. The mismatch is defined as

$$\sigma=\frac{L_x-L}{L}\times 100\%$$

where $L$ is the actual filter inductance and $L_x$ is the value used in the prediction model. This isolates the effect of model mismatch on the control law and avoids the practical difficulty of replacing a power-stage inductor for each test.

At $\sigma=0\%$, $+50\%$, and $-50\%$, the discharge current remained controlled. The measured phase-current THD, taken up to the 50th harmonic, was 3.16%, 3.15%, and 3.16%, respectively; the background grid phase-voltage THD was 2.20%. With $+50\%$ error, the current overshoot was smaller and the settling time shorter than at the matched condition. With $-50\%$ error, the response remained stable and the harmonic distribution changed only modestly. The feedback correction is the main reason the loop tolerates this range: the previous prediction error is fed back into both the one-step and two-step predictions, so a persistent model bias is partly cancelled before it accumulates.

Table 3. Measured phase-current THD under controller inductance mismatch during discharge at 20 A.
Inductance error $\sigma$ THD up to 50th harmonic Transient observation
0% 3.16% Baseline response
+50% 3.15% Lower overshoot, shorter settling
−50% 3.16% Stable, comparable response

Unbalanced Grid Voltage

China’s GB/T 15543—2008 sets the negative-sequence voltage unbalance at the point of common coupling to 2% during normal operation and 4% for short intervals. To test the controller near the short-time limit, the C-phase voltage was reduced to 88.5% of its nominal value, producing about 4% unbalance.

Under PI control, the $q$-axis charging current developed a clear second-harmonic ripple with a peak-to-peak value of about 13.2 A, and the phase-current THD reached 20.37%. Under the two-step predictive controller, the charging step had 3.3 A overshoot and a 16.1 ms settling time, with only a slight second-harmonic ripple; the phase-current THD was 3.08%.

The 3.08% result should not be interpreted as an improvement over the balanced-case 3.16%. The unbalanced test also produced a slightly lower positive-sequence voltage, and the difference between the two THD values is small. The meaningful comparison is that the predictive loop kept the current THD close to its balanced-case level, whereas the PI loop degraded substantially. The dynamic response in the unbalanced case was somewhat slower than the 11.3 ms measured under balanced conditions, but it remained well ahead of the PI loop.

Boundaries of the Study and Engineering Implications

The study is deliberately limited to the inner current loop. Module-voltage and state-of-charge balancing were not active; in a real multi-cell storage system, the current loop must coexist with a balancing layer that adjusts cell power or modulation references. The inductance mismatch was implemented in the controller model rather than by replacing the physical inductor. That is the correct way to isolate parameter sensitivity, but it does not cover saturation, frequency-dependent inductance, or thermal drift. The tests used a single 20 A operating point on a 380 V/50 A platform; higher power, more cells, and stronger grid distortion remain to be examined.

Within those boundaries, the two-step continuous-control-set MPC provides a practical combination: fixed switching frequency, no switching-state search, explicit compensation of the digital control delay, and a feedback correction that keeps the current response stable under a ±50% inductance error and a 4% voltage unbalance. The charging step is roughly three times faster than the tuned PI loop, with about half the overshoot and a smaller $d$-axis disturbance. These are the properties that matter when a battery energy storage converter is expected to switch between charge and discharge without disturbing the grid or tripping on a modest voltage imbalance.

Scroll to Top