Crest Factor Oriented Finite Set Model Predictive Control of The Mesh Microgrid
Crest Factor Oriented Finite Set Model Predictive Control of The Mesh Microgrid
IHP—Leibniz Institute
for High Performance Microelectronics
Frankfurt (Oder), Germany
† [email protected], ‡ [email protected]
2023 International Conference on Power and Renewable Energy Engineering (PREE) | 979-8-3503-2190-6/23/$31.00 ©2023 IEEE | DOI: 10.1109/PREE57903.2023.10370442
∗ Corresponding author
Abstract—Single-phase voltage source inverters with an LC fil- dead-beat controller are used [3]. Nevertheless, the cascaded
ter are widely used in islanded Microgrids (MGs) for Renewable loops tend to limit bandwidth and complicate the tuning [4].
Energy Sources (RES) or Distributed Energy Resources (DER). In recent years, the rapid development and falling cost of
It is crucial for MGs that are highly penetrated by these energy
sources to maximize the power quality in the presence of the powerful processors have allowed high computational burden
higher order harmonics. This work presents the Finite Control methods to become more popular. One of these methods is
Set Model Predictive Control (FCS-MPC) for a single-phase Model Predictive Control (MPC). In principle, this method
voltage source inverter with an LC filter, applicable in islanded calculates the optimization problem with cost function at each
MGs. It is a strategy that determines the optimal switching sampling interval, across the prediction horizon. Nevertheless,
states within the inverters, operating over a finite set of possible
voltage levels to regulate the power flow and voltage in the whole only the first element in the sequence is executed. In the
microgrid, while considering operational constraints. We propose next iteration, the process is repeated with taking into account
to extend the cost function of this method to include not only new inputs. It can be easily adapted to a variety of systems
the voltage and current factors, but also the Crest Factor (CF), and is easy to understand [5]. MPC is widely used in power
which is calculated as the ratio of the peak value and the root electronics due to its fast dynamic response [6].
mean square of the signal. This factor shows how extreme the
peaks are and therefore indicates the power quality. The model There are plenty of different types of MPC. The most
performance was simulated using MATLAB/Simulink tools in commonly used in inverter control are Finite Control Set
a mesh microgrid with consideration of line impedance effects, MPC (FCS-MPC) and Continuous Control Set MPC (CCS-
where the power and load sharing were successfully validated MPC). The latter requires a modulator to calculate the optimal
with the use of Droop Control. Our approach improves the switching states to the controller [7]. This is not necessary
Total Harmonic Distortion (THD) of both voltage and current,
comparing with the typically used cost functions. when using the FCS-MPC [5]. Another difference is that CCS-
Index Terms—crest factor, mesh microgrid, finite control set MPC works with a fixed frequency, on the contrary to FCS-
model predictive control, primary control, inverter MPC. CCS-MPC may lead to complex algorithms, whereas
FCS-MPC is well-known as an easy and intuitive method [8].
I. I NTRODUCTION Therefore, for our approach, the FCS-MPC was chosen as
The use of Distributed Energy Resources (DER) rises dy- inverter control.
namically due to the energy grid transition triggered by the In principle, FCS-MPC is a finite horizon optimization,
climate change [1]. Single-phase inverters are widely used where the optimal solution is chosen from a set of possible
interfaces between DER and loads, especially in residential switching states. At each sampling time, the cost function is
loads. When DERs are linked to local loads and have the calculated for each possible state and then compared with
potential to function as an island, they form a Microgrid (MG). the reference value [9]. The cost function normally consists
Providing energy from non-dispatchable renewable sources of predicted either voltage or current, depending upon the
might generate lots of power quality issues due to their function of the inverter. Some studies use both variables in the
intermittency [2]. cost function to eliminate energy resonance between passive
The selection of the control method is critical to achieving components [4]. Authors in [4] and [8] used switching factors
appropriate power quality with the use of multiple inverters. to minimize energy losses during switching transitions. The
The most basic approach is to divide the control into two author in [10] used the current limit penalty to safeguard
cascaded loops. The inner loop is the current control loop, the inverter in the face of short circuit faults or further
where the signal is directly delivered to the gate drivers of disruptive current circumstances. Nevertheless, none of the
the transistors based on current measurements and references. above studies performed additional direct efforts to improve
The outer loop is the voltage control loop, where references power quality. Only in [11] the author include directly THD in
for the inner loop are set based on voltage measurements. the cost function but the implementation of THD prediction is
To perform this control, modulator-required methods such complex. However, to the best of the author’s knowledge, Crest
as Proportional–Integral (PI), Proportional-Resonant (PR), or Factor (CF) has not been yet included in the cost function. The
175
Authorized licensed use limited to: Hochschule Bochum (FH). Downloaded on February 20,2025 at 12:33:28 UTC from IEEE Xplore. Restrictions apply.
Start
for k=1:3
Calculate predicted
The CF value for the pure sinusoidal wave is 1.414 and it can CF(k+1) by using (11)
serve as a reference for the calculations. Any fluctuations from
this value can cause voltage stress and higher THD.
176
Authorized licensed use limited to: Hochschule Bochum (FH). Downloaded on February 20,2025 at 12:33:28 UTC from IEEE Xplore. Restrictions apply.
two rows present frequency and RMS voltage respectively.
Both quantities are presented in per-unit values. The change
in power sharing did not influence the frequency and only
TABLE II
PARAMETERS OF THE SYSTEM
Grid voltage 24 V / 50 Hz
DC Bus voltage 35 V
Filter inductance 10 mH
Filter capacitance 20 µF
Transmission line inductance 2.1 mH/km
Transmission line resistance 0.5 Ω/km
Load active power 2.88 W
Voltage weighting factor λv 1
Current weighting factor λi 0.3
CF weighting factor λCF 1.2
Fig. 4. Diagram of the system with MPC controller
IV. R ESULTS
MATLAB/Simulink was used for investigating and model-
ing the proposed approach. The system was modeled according
to the smart grid emulator presented in [16]. The emulator was
created to imitate, as much as possible, the real behavior of the
electricity grid. It helps to define conditions and scenarios for
testing, which is hard to produce within a real energy network.
In the emulator, voltages and currents were scaled-down to
allow testing to be carried out safely.
The specification of the system is summarized in Table II. Fig. 5. Power sharing between two inverters
The simulations are presented in three parts. The aim of the
first two is the validation of the basic function of the MG
like the droop control and the load changes, when the CF
is included in the cost function. The second one presents the
comparison of the THD for steady-state work for systems with
and without CF in cost function. The simulations were made
for different lengths of the transmission lines, namely 1, 10,
and 20 km.
177
Authorized licensed use limited to: Hochschule Bochum (FH). Downloaded on February 20,2025 at 12:33:28 UTC from IEEE Xplore. Restrictions apply.
the small disturbances in voltage exist. These deviations from C. Waveform quality
reference value can be easily restored by secondary control.
The bottom row presents the active and reactive power. The
To compare the quality of the output waveforms of the
blue line is Inverter 1 and the red is Inverter 2. The system
inverter, the THD was used. The system worked in a steady-
did not consume any reactive power and the step of the active
state condition for 2 seconds. Both voltage and current were
power happens quick and without overshoots. Fig. 6 presents
measured at the point of connection of the load. The results for
the closer look at the moment of the transition. The first
different lengths of transmission lines are presented in Fig. 8.
row presents the voltage in per-unit values and the second
The blue bars represent the system without CF in the cost
row present the current in per-unit values. The green line
function, and the red bars represent the system with CF in
is the output current of Inverter 1 and the red line is the
the cost function. The THD of the system with CF was better
output current of Inverter 2. The blue line is the load current.
in both current and voltage measurements. Independent of the
With longer transmission lines, there is a small difference
length of the transmission line, the THD without CF reaches
between the shared current of the inverters in the period of
around 1.2%, where the cost function with CF has the result of
1:1 ratio. The longer the line, the bigger the difference, but the
an average of 0.8%. The Fig. 9 presented the detailed harmonic
value of the difference is not of concern. During power ratio
distribution after FFT analysis. The frequency plot starts with
changes, only small disturbances in both voltage and current
second harmonics.
are presented, and the transition overall is happening without
notable overshoot in voltage or current.
178
Authorized licensed use limited to: Hochschule Bochum (FH). Downloaded on February 20,2025 at 12:33:28 UTC from IEEE Xplore. Restrictions apply.
V. C ONCLUSIONS AND F UTURE W ORK [9] P. Li, Z. Song, H. Zhang and W. Jin, ”Adaptive Finite Control Set Model
Predictive Control Scheme for Single-phase Inverters with LCL Filter,”
In this paper, FCS-MPC as the inverter control algorithm in 39th Chinese Control Conference (CCC), Shenyang, China, 2020.
with a modified cost function was presented. The system under [10] A. M. Taher, H. M. Hasanien, A. R. Ginidi and A. T. Taha, ”Hierarchical
test presents a mesh MG, that consists of two inverters with Model Predictive Control for Performance Enhancement of Autonomous
Microgrids,” Ain Shams Engineering Journal, vol. 12, no. 2, pp. 1867-
LC filter, load, and transmission lines. CF, as one of the 1881, 2021.
widely used by engineers indicators of waveform quality, was [11] P. Li, R. Li and H. Feng, ”Total Harmonic Distortion Oriented Finite
included in the cost function of FCS-MPC. The simplicity of Control Set Model Predictive Control for Single-Phase Inverters,” Ener-
gies, vol. 11, no. 12, p. 3467, 2018.
calculation and correlation with THD leads to a decrease in [12] W. E. P. Sampath Ediriweera, N. W. A. Lidula, ”Design and protection
the amount of the harmonics in the output waveforms. The of microgrid clusters: A comprehensive review,” AIMS Energy, vol. 10,
system was validated in a mesh microgrid and shows that no. 3, pp. 375-411, 2022.
[13] M. Azab, ”A finite control set model predictive control scheme for
the system can handle basic primary control responsibilities single-phase grid-connected inverters,” Renewable and Sustainable En-
such as changes in load or power references. It is shown that ergy Reviews,, vol. 135, 2021.
the suggested method can meet the basic tasks of primary [14] W. G. Morsi and M. E. El-Hawary, ”Wavelet Packet Transform-Based
Power Quality Indices for Balanced and Unbalanced Three-Phase Sys-
control. The transitions in load changes as well as power tems Under Stationary or Nonstationary Operating Conditions,” IEEE
references were smooth and did not create spikes, nor ex- Transactions on Power Delivery, vol. 24, no. 4, pp. 2300-2310, 2009.
cessive generation of the reactive power. It can be concluded [15] S. Bayhan and H. Abu-Rub, ”Model Predictive Droop Control of
Distributed Generation Inverters in Islanded AC Microgrid,” in 11th
that the single-phase inverter with LC filter based on FCS- IEEE International Conference on Compatibility, Power Electronics and
MPC with CF included in the cost function can output a Power Engineering (CPE-POWERENG), Cadiz, Spain, 2017, 2017.
stable waveform that can track reference precisely and has [16] M. Krysik, K. Piotrowski and K. Turchan, ”Testing Smart Grid Scenarios
with Small Volume Testbed and Flexible Power Inverter,” Energies, vol.
good steady-state and dynamic performance in parallel work 15, no. 2, p. 428, 2022.
of the inverters. Independently of the transmission lines, the [17] ”IEEE Standard for Interconnection and Interoperability of Distributed
presented approach is superior to the traditional FCS-MPC. Energy Resources with Associated Electric Power Systems Interfaces,”
in IEEE Std 1547-2018 (Revision of IEEE Std 1547-2003), pp.1-138,
In the future, the algorithm will be implemented in the 2018,
DSP microcontroller. The system will be tested with nonlinear
loads, and more primary control features like Low Voltage
Ride Through or grid synchronization will be tested.
ACKNOWLEDGMENT
This work was supported by the European Union ebalance-
plus project under the H2020 grant no. 864283. The funding
institutions had no role in the design of the study, the collec-
tion, analyses, or interpretation of data, in the writing of the
manuscript, or in the decision to publish the results.
R EFERENCES
[1] C. Inês, P. L. Guilherme, M. G. Esther, G. Swantje, H. Stephen and H.
Lars, ”Regulatory challenges and opportunities for collective renewable
energy prosumers in the EU”, Energy Policy, Vol. 138, 2020.
[2] S. Parhizi, H. Lotfi, A. Khodaei and S. Bahramirad, ”State of the Art in
Research on Microgrids: A Review,” IEEE Access, vol. 3, pp. 890-925,
2015.
[3] Q. Liu, T. Caldognetto and S. Buso, ”Review and Comparison of Grid-
Tied Inverter Controllers in Microgrids,” IEEE Transactions on Power
Electronics, vol. 35, no. 7, pp. 7624-7639, 2020.
[4] Y. Li and Z. Zhang, ”FCS-MPC Based Primary Control With Improved
Performance for Islanded AC Microgrids,” in 11th Power Electronics,
Drive Systems, and Technologies Conference (PEDSTC), 2020.
[5] C. Liu, L. Lei, Q. Chen, L. Zhang and S. Quan, ”Model predictive
control of single phase grid-connected inverter with LC filter,” 2017
32nd Youth Academic Annual Conference of Chinese Association of
Automation (YAC), Hefei, China, 2017, pp. 115-119
[6] S. Vazquez, J. I. Leon, L. G. Franquelo, J. Rodriguez, H. A. Young,
A. Marquez and P. Zanchetta, ”Model Predictive Control: A Review
of Its Applications in Power Electronics,” IEEE Industrial Electronics
Magazine, vol. 8, no. 1, pp. 16-31, 2014.
[7] M. M. Aghdam, L. Li and J. Zhu, ”A Model Predictive Control of
Parallel Inverters for Distributed Generations in Microgrids,” in IEEE
International Conference on Power System Technology (POWERCON),
Wollongong, NSW, Australia, 2016.
[8] Z. Zhang, O. Babayomi, T. Dragicevic, R. Heydari, C. Garcia, J.
Rodriguez and R. Kennel, ”Advances and Opportunities in the Model
Predictive Control of Microgrids: Part I–Primary Layer,” International
Journal of Electrical Power & Energy Systems, vol. 34, 2022.
179
Authorized licensed use limited to: Hochschule Bochum (FH). Downloaded on February 20,2025 at 12:33:28 UTC from IEEE Xplore. Restrictions apply.