WorksEngineering
Data-driven current control of modular multilevel converter-based HVDC transmission system
Abstract
Model-based design (MBD) is a mature framework for designing the current controllers of modular multilevel converters (MMCs) in high-voltage direct current (HVDC) transmission systems. In MBD, linear state-space models are preferred for their good trade-off between accurate dynamics prediction and simplicity. However, first-principle derivations often neglect relevant MMC dynamics, which can hinder controller performance. Data-driven (DD) methods can deliver less biased models that capture parameter uncertainties, control-loop interactions, and grid dynamics, yet they remain under-exploited for controlling MMC currents. This paper studies DD current control method based on integral Subspace Predictive Control (iSPC), synthesized directly from input–output data measured in a high fidelity real-time digital simulator (RTDS), and proposes an initial guideline outlining the main steps for its systematic application to MMC current control. The proposed iSPC is compared against state-of-the-art DD solution, and the findings are validated through simulation studies in MATLAB/Simulink.
Introduction
Nowadays, high-voltage power transmission is increasingly based on direct current (DC) technology [1]. In high-voltage direct current (HVDC) systems, modular multilevel converters (MMCs) have become the preferred solution for power conversion owing to their high efficiency, scalability, robustness, and low harmonic distortion [2]. However, the performance and safe operation of MMCs strongly depend on the design of their control systems, particularly the current controllers [3].
A mature framework for designing the current controllers of MMC is model-based design (MBD), where mathematical models and control theory are exploited to systematically synthesize controllers that offer desired closed-loop properties, such as stability, and robustness [4]. Among the examples of MBD, we can highlight optimal control [5], robust control [6], and model predictive control (MPC) [7]. Here, linear state-space (SS) models are the preferred model structure due to their good trade-off between accurate dynamics prediction and computational complexity. These features are particularly important in MPC, where prediction models are used to compute optimized control actions while explicitly considering converter constraints and future system behavior [8]. As a consequence, MPC has demonstrated the ability to enhance MMC performance, including efficiency and power quality, compared with other control methods [9].
Despite these advantages, the effectiveness of MBD strongly depends on the accuracy of the underlying model. When using first-principle SS (fSS) modeling, models rely on small-signal theory and often neglect practical effects such as digital delays, filtering, and interactions between control layers (including phase-locked loop), which may degrade performance or even induce instability [10]. These shortcomings have motivated a shift toward data-driven (DD) modeling, where frequency scanning is often used to generate input–output (I/O) data that allows to build less biased model, see e.g. [10, 11]. These models have been successfully applied to enhance stability and interaction studies; however, these advantages have not yet been leveraged in the design of MMC current controllers.
DD control is a promising alternative to MBD, synthesizing controllers from measured I/O data. Prominent examples, including data-driven LQR [12], Subspace Predictive Control (SPC) [13], and Data-Enabled Predictive Control (DeePC) [14], have been applied in power-system and power-electronics applications [15, 16, 17], yet remain unexplored for MMC current control. Their systematic implementation in this setting is still an open problem, as the closed-loop performance hinges on design choices with no counterpart in MBD [18], namely the system identification (SI) experiment design (excitation signal, amplitude, and data length), the satisfaction of persistency-of-excitation conditions [19], and the choice of horizons and regularization. In practice, they are still selected ad hoc due to the complexity of systematically applying traditional SI procedures [20], showing the need for design guidelines.
Hence, this paper proposes using DD, i.e., an integral SPC (iSPC), for current control of MMCs in HVDC systems. We first design the SI experiment to obtain informative I/O data measured in a high fidelity real-time digital simulator (RTDS®), which capture the commonly neglected dynamics. Using these data, the iSPC is designed and compared with DeePC, showing more accurate tracking and lower sensitivity to noise at a lower computation time. Based on extensive MATLAB/Simulink simulations, we further propose guidelines for tuning the iSPC, covering the selection of the prediction horizon, the data length, and excitation signal type.
MMC-based HVDC Fundamentals
Figure 1 shows the topology of a point-to-point two-terminal MMC-based HVDC link, emulating an offshore wind farm connected to an onshore AC grid. The onshore MMC controls the power flowing to the AC grid, while the offshore MMC regulates the DC voltage of the DC link. Three-level hierarchical control architectures (HCAs) are often used to control MMC [21]. At the highest level, the outer control loop regulates the active/reactive AC power or DC voltage, depending on the MMC operation mode. This control layer outputs are the current references used in the current control loop (CCL), i.e., where the circulating is set to zero . Then, the CCL computes arm voltage references that regulate MMC currents. At the lowest level, are converted into modulation indices and switching signals for the submodule gates.
Figure 1. Schema of point-to-point two terminals MMC-based HVDC link including control and SI stages.
Commissioning MMC controllers is often a complex process. Besides the practical effects, MMC controllers must handle nonlinear dynamics arising from internal arm energy, modulation, and interactions between control layers. Linear fSS models neglect these dynamics by taking the arm voltages as control inputs and assuming that they equal their references [21]. Hence, controller performance often relies on ad-hoc fine-tuning at later stages.
MMC Current Dynamics
MMCs are comprised of 3 legs with two arms, in which submodules (SMs) are connected in series to an equivalent resistor () and inductor (), see Figure 2. The arms are named as upper and lower arm, denoted by , and the phases are denoted by . Then, Kirchhoff’s voltage law shows that MMC currents are governed by the transformer (TF) (),
Figure 2. Simplified diagram of the MMC topology per-phase : (a) MMC arms; (b) Half-bridge submodule.
DC-link (), and arm voltages (), such that:
where and are the arm and transformer inductance, respectively; and and are the arm and transformer resistance, respectively. Per phase , the MMC currents determine the power transfer through the output current, i.e., and circulating current, i.e., . Related to these currents, there are the differential voltage, i.e., and common voltage, i.e., .
MMC Model: First-principle state-space derivation
Assuming an average equivalent representation of the MMC as in [8] and using the modeling procedures in [7], the dynamics of in (1) are formulated as discrete fSS models* with sampling time where the state, control input and output vectors are defined as , , and , respectively. Then, its dynamics yield:
with and are state-space matrices, such that and , where
, , , and . Operator defines a diagonal matrix where the diagonal elements are its argument.
The augmented model is derived to enforce zero-error tracking when following step references. Discrete-time derivation is denoted by the operator , such that . The augmented state vector is defined as , and an input rate vector, i.e, . Then, (2) augmented model yields
where , , and . Notation indicates an identity matrix of dimension 4, and indicates a square matrix of dimension 4 filled with zeros.
Data-driven predictive control fundamentals
MBD-MPC computes control actions, which in this case are , via solving at each discrete time step an optimal control problem (OCP), that can be represented as:
with a cost function
where is the predicted error1, is the prediction horizon, are weighting matrices, are state limits, are input limits.
DD predictive control (DPC) follows the MBD-MPC principle, except that the prediction step, i.e., (5b), relies on an identified model or directly on measured I/O data rather than on the fSS.
On the fSS. The I/O data are collected through an SI experiment, in which an excitation signal applied to the arm voltages forms the input sequence and the measured currents form the output sequence (see Figure 1). DPC builds on two key concepts: Hankel matrix and persistence of excitation. A Hankel matrix arranges a data sequence in a fixed block structure; following [18], it is defined as
Definition 3.1. A Hankel matrix constructed using an arbitrary dataset , with depth , length and starting index is denoted as:
where the samples in can comprise information incoming from multiple channels (e.g., multiple inputs or outputs), i.e., .
The I/O data collected during SI, i.e., , are used to construct the following Hankel matrices:
where is the "past horizon". These matrices are at the core of DPCs, namely SPC, DeePC, -DDPC and GDPC [18].
Remark 3.1. The past horizon is related to the system order and should satisfy ; for the current dynamics, , hence . To ensure that the data are informative, the Hankel matrix length must satisfy , where is the input dimension. Then, we define the data length as , such that .
Additionally, informativity can be ensured if is persistently exciting, defined as
Definition 3.2 (Persistence of Excitation). The input data sequence is called persistently exciting of order if the rank of the Hankel matrix satisfies
where is the dimension of the control inputs.
Integral Subspace Predictive Control (iSPC)
iSPC is an indirect DPC [17] that estimates, from I/O data, a prediction matrix that computes -step-ahead, such that
where , , and $y_{\mathrm{ini}}(k)=[y^{\mathsf{T}}(k-T_{\mathrm{ini}}),\ldots, . According to (12) future outputs are described as a linear combination of previous I/O data and . By relying on this relation, the estimation of the unknown matrix can be carried out by solving the least-squares problem:
with solution , i.e.,
where is the DD estimation of and indicates the pseudoinverse matrix. Using (14), iSPC yields
where the cost function stays as in (6). The iSPC implementation is summarized by the following algorithm.
Algorithm 1 SPC algorithm
Require:
Before closing the control loop:
Obtain from (14) and extract , and .
Construct controller as in (12).
During the control loop:
Measure and construct and .
Solve control law (12) and obtain .
Apply to the system.
Case Study
The iSPC performance is studied in a point-to-point, two-terminal MMC-based HVDC link, i.e., CIGRE DCS1 RTDS® benchmark [22], rated at 0.8 GVA and 50 Hz, with a DC-link voltage of 400 kV. On the AC side, both MMCs operate at 220 kV and are interfaced through TFs to the 380 kV onshore and 145 kV offshore grids; the TFs have a resistance of 0.006 pu and an inductance of 0.18 pu. Each MMCs, modeled with a type 5 average value model [22], have 200 SMs per arm with a 10 mF capacitance, and mH. CIGRE DCS1 benchmark [22] is a high fidelity model that includes SM-level dynamics, practical effects, and a three-level HCA, detailed in [22 Ch. 3]. iSPC is proposed to replace only the CCL PI controllers of the control architecture.
System identification and validation
Figure 3 presents the excitation input data , i.e, a random binary sequence (RBS) superimposed on white noise:
Figure 3. Input data sequence, i.e., .
where is the RBS amplitude, is a uniformly distributed random number whose seed depends on channel , and is zero-mean white noise. Whereas multisine signals are common in the literature, e.g., for frequency scans, the RBS concentrates its energy at low frequencies and captures the steady-state behavior, while the added white noise reduces the correlation between samples and improves the data PE. Choosing an large enough to excite the system without violating operating constraints or driving it toward instability is challenging. We recommend between 2% and 6% of the steady-state value; larger submodule capacitance and arm resistance allow amplitudes toward the upper end of this range. For , a small variance on the order of is suggested to preserve identification accuracy. Figure 4 compares the current measured in RTDS

Figure 4. MMC currents generated by in: (–) RTDS, (–) fSS, and (–) dSS.
data-driven SS (dSS) model obtained by subspace identification (Appendix A). The measurements and dSS matrices reveal dynamics neglected by the fSS model: cross-coupling between the output and circulating current loops, switching and modulation ripple, and pre-processing effects. The dSS model closely tracks the measured current, particularly its low-frequency content, as confirmed by its lower mean squared prediction error (MSE) in Table 1. The current spectra in Figure 5 show this more clearly: the fSS model underestimates the 0 Hz component, which sets the gain of the current dynamics, and overestimates the 50 Hz and 100 Hz components relative to RTDS and dSS. Higher-order linear models could reproduce better the RTDS time response, but would likely overfit rather than yield an unbiased predictor. These mismatches do not necessarily compromise stability or feasibility, as fSS models have been used effectively in MBD [7]; nevertheless, they reveal a modelling gap that dSS models can close, notably for controller design with theoretical guarantees.
| MSE [pu] | ||||
| fSS | 0.0723 | 0.0828 | 0.0784 | 0.1410 |
| dSS | 0.0044 | 0.0010 | 0.0049 | 0.0024 |
Table 1. MSEp comparison of fSS and dSS models
Figure 5. FFT analysis of and currents in Fig. 4.
iSPC Design and Verification
Before its implementation in the RTDS, the iSPC is designed and verified in MATLAB. The weighting matrices are chosen empirically as and , and the outputs and inputs are constrained to pu and pu, respectively. During the design, we examine how and affect the trade-off between robustness, control performance, and computational burden, with fixed. Robustness is assessed by adding output measurement noise at different signal-to-noise ratios (SNRs), i.e., , where is zero-mean white noise. Figure 6 shows the resulting mean absolute tracking error (MAE) to step response of the CCL for different SNR, , and .
Figure 6. Comparison of the iSPC tracking performance, i.e., MAE, with , , and under different conditions of SNR, and .
For SNR=12 dB, the added noise has a variance of and a peak amplitude of pu. Under this highly noisy condition, the iSPC performance degrades considerably, the MAE increases by up to a factor of 100 and even yielding infeasible OCP for . Increasing beyond yields no substantial improvement under high noise. Instead, increasing hold by proves to be the most effective way to improve iSPC performance at a lower computational burden. The same holds under cleaner conditions (SNR = 52 dB and 102 dB), where increasing remains the best strategy, whereas for short prediction horizons a larger does not guarantee better performance. Finally, increasing , and consequently , yields the best (stable/feasible) performance even under very noisy conditions (SNR 10), but at a considerably higher computational cost. Figure 7 and Figure 8 show the CCL response to successive reference steps under iSPC in a low-noise scenario (SNR dB), the references are tracked without constraint violation.

Figure 7. MMC currents under iSPC
Figure 8. CCL Control input under iSPC
Comparison DeePC vs iSPC
We compare the iSPC against DeePC [14], a DPC method widely adopted in the DD control community. Unlike iSPC, DeePC is a direct method that solves the OCP using the data directly, without an explicit identification step; implementation details can be found in [14, 18]. For a fair comparison, both DPCs use the same parameters as the previous section. For DeePC, the slack variable on the is penalized with , and no regularization on is applied. Regularized variants were tested but yielded no significant improvement under the low to moderate noise conditions considered here, while considerably increasing the computation time; hence, they are not reported. Figure 9 and Figure 10 show CCL response under iSPC and DeePC with SNR dB, , and , where the same step references as in § 4.2 is considered. Both controllers track the reference within the constraints; with identical tuning, the iSPC responds faster but with a higher overshoot, whereas DeePC is slower and more sensitive to output noise. In terms of MAE, the iSPC achieves pu, while iDeePC has a pu. The integral of the absolute control input (IAU) is 7.7846 pu for the iSPC and 6.3353 pu for DeePC. In MATLAB environment, the average computation time2 per control step is 1.15 ms for the iSPC and 268 ms for DeePC.
Figure 9. MMC currents under (—) iSPC and (—) iDeePC.
Figure 10. CCL Control input under (—) iSPC and (—) iDeePC.
The iSPC computation time in MATLAB exceeds the 50 s required for real-time implementation, mainly because the
OCP was solved via YALMIP [24], a general-purpose modeling toolbox that is not optimised for speed. However, the iSPC structure allows the OCP to be solved with Hildreth’s algorithm [25] coded in C++, which has proven effective for MMC control [7]. Future work will therefore implement the iSPC directly on RTDS.
Conclusions
This paper investigated the use of iSPC for current control of MMCs in HVDC systems. The SI experiment revealed notable cross-coupling between the output and circulating currents dynamics, often neglected in FSS models. Consequently, dSS model identified from I/O data were proposed to predict the current dynamics more accurately. Using these I/O data, we designed the iSPC and proposed a guideline for its systematic application, covering the design of the excitation signal, the selection of and , and the tuning of the prediction horizon. Apart from data quality, the prediction horizon proved to be the most influential design parameter: increasing yielded the best trade-off between control performance and computational burden, whereas increasing beyond brought no substantial improvement in low to moderate noise conditions. Compared with DeePC under identical tuning, the iSPC achieved a roughly 13 times lower tracking MSE at the cost of a moderately higher control effort, while reducing the computation time by more than two orders of magnitude. Future work will therefore implement the iSPC directly on RTDS.
Acknowledgements
The work is supported by Horizon Europe project PROS-ECCO, under grant agreement 101160687, and by NWO Veni project SAFE-GRID, with project number 20248.
Appendix
matrices derived from CIGRE B4.57 DCS1 benchmark:
from CIGRE B4.57 DCS1 benchmark:
References
References
- [1]N. Ahmed, A. Haider, D. Van Hertem, L. Zhang, and H.-P. Nee, “Prospects and challenges of future hvdc supergrids with modular multilevel converters,” in Proc. 14th Eur. Conf. Power Electron. Appl. (EPE). IEEE, 2011, pp. 1–10.
- [2]R. Marquardt, “Modular multilevel converters: State of the art and future progress,” IEEE Power Electron. Mag., vol. 5, no. 4, pp. 24–31, 2018.DOI
- [3]J. Beerten, O. Gomis-Bellmunt, X. Guillaud, J. Rimez, A. Van der Meer, and D. Van Hertem, “Modeling and control of hvdc grids: A key challenge for the future power system,” in Proc. Power Syst. Comput. Conf. (PSCC). IEEE, 2014, pp. 1–21.
- [4]V. D. R. Dreke, Y. P. Marca, M. G. Roes, and M. Lazar, “Lmi synthesis of multivariable current controllers for ac/ac modular multilevel converters,” IEEE Trans. Control Syst. Technol., 2026.DOI
- [5]M. Ayari, M. M. Belhaouane, X. Guillaud, and N. B. Braiek, “Multivariable optimal robust control strategy for mmc converter,” in Proc. Int. Conf. Adv. Syst. Electr. Technol. (IC_ASET). IEEE, 2017, pp. 210–215.DOI
- [6]S. D. Tavakoli, E. Prieto-Araujo, S. Fekriasl, J. Beerten, H. Mehrjerdi, and O. Gomis-Bellmunt, “Robust multivariable control design for hvdc systems considering ac grid impedance uncertainties,” Int. J. Elect. Power Energy Syst., vol. 141, p. 108152, 2022.DOI
- [7]A. Shetgaonkar, L. Liu, A. Lekić, M. Popov, and P. Palensky, “Model predictive control and protection of mmc-based mtdc power systems,” Int. J. Elect. Power Energy Syst., vol. 146, p. 108710, 2023.DOI
- [8]V. D. Reyes Dreke and M. Lazar, “Long-horizon nonlinear model predictive control of modular multilevel converters,” Energies, vol. 15, no. 4, p. 1376, 2022.DOI
- [9]J. Böcker, B. Freudenberg, A. The, and S. Dieckerhoff, “Experimental comparison of model predictive control and cascaded control of the modular multilevel converter,” IEEE Trans. Power Electron., vol. 30, no. 1, pp. 422–430, 2014.DOI
- [10]R. Rane, A. Kermansaravi, P. Vergara, and A. Lekić, “Transfer learning framework for impedance characterization of modular multilevel converters,” IEEE Trans. Ind. Appl., vol. 61, no. 2, pp. 2421–2433, 2025.DOI
- [11]H. Gong, D. Yang, and X. Wang, “Impact analysis and mitigation of synchronization dynamics for dq impedance measurement,” IEEE Trans. Power Electron., vol. 34, no. 9, pp. 8797–8807, 2018.DOI
- [12]G. R. Gonçalves da Silva, A. S. Bazanella, C. Lorenzini, and L. Campestrini, “Data-driven lqr control design,” IEEE Control Syst. Lett., vol. 3, no. 1, pp. 180–185, 2019.DOI
- [13]W. Favoreel, B. De Moor, and M. Gevers, “SPC: Subspace predictive control,” IFAC Proc. Vol., vol. 32, no. 2, pp. 4004–4009, 1999.DOI
- [14]J. Coulson, J. Lygeros, and F. Dörfler, “Data-enabled predictive control: In the shallows of the DeePC,” in Proc. Eur. Control Conf. (ECC), 2019, pp. 307–312.arxiv.org/abs/1811.05890
- [15]D. Bilgic, A. Koch, G. Pan, and T. Faulwasser, “Toward data-driven predictive control of multi-energy distribution systems,” Electr. Power Syst. Res., vol. 212, p. 108311, 2022.DOI
- [16]R. Leng, L. Huang, H. Xin, P. Ju, X. Wang, E. Prieto-Araujo, and F. Dörfler, “A data-driven optimal control architecture for grid-connected power converters,” IEEE Trans. Power Syst., 2026.arxiv.org/abs/2508.08578
- [17]I. Kraayeveld, T. de Jong, and M. Lazar, “Offset-free data-driven predictive control for grid-connected power converters in weak grid faults,” Electr. Power Syst. Res., vol. 263, p. 113551, 2027.DOI
- [18]P. Verheijen, V. Breschi, and M. Lazar, “Handbook of linear data-driven predictive control: Theory, implementation and design,” Annu. Rev. Control, vol. 56, p. 100914, 2023.DOI
- [19]J. C. Willems, P. Rapisarda, I. Markovsky, and B. L. M. De Moor, “A note on persistency of excitation,” Syst. Control Lett., vol. 54, no. 4, pp. 325–329, 2005.
- [20]L. Ljung, System Identification: Theory for the User, 2nd ed. Prentice Hall, 1999.
- [21]S. Du, A. Dekka, B. Wu, and N. R. Zargari, Modular Multilevel Converter: Analysis, Control and Applications, T. Samad, Ed. John Wiley and Sons, 2018.
- [22]CIGRE Working Group B4.57, “Guide for the development of models for HVDC converters in a HVDC grid,” CIGRE, Paris, France, Technical Brochure 604, 2014, working Group B4.57.
- [23]M. ApS, The MOSEK optimization toolbox for MATLAB manual. Version 10.1., 2024. [Online]. Available: http://docs.mosek.com/latest/toolbox/index.html
- [24]J. Löfberg, “YALMIP: A toolbox for modeling and optimization in MATLAB,” in Proc. IEEE Int. Conf. Comput. Aided Control Syst. Des. (CACSD), Taipei, Taiwan, 2004, pp. 284–289.DOI
- [25]L. Wang, Model predictive control system design and implementation using MATLAB®. Springer, 2009.DOI







