Next Article in Journal
Design of a Waste Classification System Using a Low Experimental Cost Capacitive Sensor and Machine Learning Algorithms
Previous Article in Journal
Engineering Properties of Television Plastic Shell Waste (TPSW) to Replace Part of Sand–Cement Mortar
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Experimental Validation of Offset-Free Model-Based Predictive Control in Voltage Source Inverters for Grid Connected and Microgrids Applications

by
Reinier López Ahuar
1,*,
Dave Figueroa
1,
Juan C. Agüero
1,2 and
César A. Silva
1,3
1
Departamento Electrónica, Universidad Técnica Federico Santa María (UTFSM), Av. España 1680, Valparaíso 2390123, Chile
2
Advanced Center for Electrical and Electronic Engineering (AC3E), Gral. Bari 699, Valparaíso 2390136, Chile
3
Centro Científico Tecnológico de Valparaíso (CCTVal), Gral. Bari 699, Valparaíso 2390136, Chile
*
Author to whom correspondence should be addressed.
Appl. Sci. 2025, 15(3), 1567; https://doi.org/10.3390/app15031567
Submission received: 20 December 2024 / Revised: 28 January 2025 / Accepted: 30 January 2025 / Published: 4 February 2025

Abstract

:
This article presents the experimental validation of a model-based predictive control (MPC) strategy for the safe interconnection of voltage source inverters (VSI) with output LC filters for the grid connection of DC energy resources. The MPC is formulated as a quadratic programming (QP) problem and solved using the operator splitting quadratic programs (OSQP). The proposed approach incorporates integral action to achieve precise voltage magnitude reference tracking while accounting for modulated voltage limits and nominal current constraints within the control design. The effectiveness of the proposed strategy is validated through simulations conducted in MATLAB, demonstrating superior dynamic performance compared to the traditional hierarchical PI control. The implementation of the proposed MPC is experimentally verified on a VSI setup using the dSPACE MicroLabBox. The results confirm that the computational requirements are satisfied, establishing this approach as a practical alternative for modern power electronic systems. The proposed MPC for VSIs offers an effective approach to enforcing operational constraints, improving dynamic performance, and facilitating the robust integration of renewable energy sources in microgrids.

1. Introduction

Voltage source inverters (VSIs) are a common interface in modern power electronic systems, facilitating the conversion between direct-current (DC) and alternating-current (AC) domains [1,2]. These devices are widely used in various technological applications, such as advanced motor drive systems [3,4], renewable energy systems, and distributed energy resources (DERs) [5].
Figure 1 presents a generic representation of the VSI control system. The energy resource (ER) typically consists of sources such as photovoltaic panels (PV) [6], battery energy storage systems (BESS) [7], or wind energy systems (WES) [8]. The inverter converts the ER’s DC voltage into AC and is connected through an LC filter to attenuate high-frequency harmonics. An isolation transformer is used to connect to the point of coupling (PC), facilitating the connection to the microgrid or local loads. This system is equipped with sensors to measure the voltages and currents required for the VSI controller. The control objective of the VSI is to achieve reference tracking of the LC filter’s output voltage with robustness and low distortion. The control action is sent to a pulse-width modulation (PWM) to generate the inverter’s triggering pulses [9,10].
The voltage control of the LC filter requires advanced strategies compared to current control in grid-connected converters [9]. Typically, proportional-integral (PI) cascaded control strategies are employed [11,12]. These strategies have the advantage of imposing restrictions on the converter current by imposing limits on its reference; however, they result in limited dynamic performance [13]. Multiple-input multiple-output (MIMO) control strategies have been proposed [12] for VSI control. Nevertheless, these approaches often preserve the cascaded control structure. State feedback control with disturbance compensation has also been proposed [14], satisfying the dynamic performance objectives. However, this strategy does not allow for imposing the converter’s physical constraint. The control of VSIs can be formulated using Model Predictive Control (MPC) to achieve a dynamic performance consistent with MIMO optimal control when operational constraints are not violated. Furthermore, MPC offers the distinctive advantage of directly incorporating operational and physical constraints into the control design process [15], effectively overcoming the performance limitations of hierarchical control structures. This topic has gained significant attention in recent years, prompting researchers to propose various MPC strategies for VSIs [16,17,18]. In [16], an implicit MPC is proposed, using a custom active set method to solve the optimization problem. The estimated computational complexity of the algorithm is five times lower than explicit MPC formulations, but only for a prediction horizon of one, and only simulation results are presented. In [18], simulation results using MATLAB / Simulink show the use of finite control set model predictive control (FCS-MPC) with horizon one for voltage control of VSIs in a droop-controlled standalone AC microgrid. None of the two previous works incorporate integration for voltage regulation. In [19], an FCS-MPC strategy is proposed again with a prediction horizon of one, but with delay compensation, incorporating an observer that provides integration to the control. This mitigates the effects of uncertainties in voltage regulation. Experimental results obtained in a laboratory setup validate the proposal. However, tuning the bandwidth of an FCS-MPC controlled system is not possible; it has stringent requirements on sampling time and produces a spread switching harmonics spectra, which is undesirable.
In general, the MPC strategy can be formulated as a quadratic programming (QP) problem, minimizing a quadratic cost function subject to linear constraints [20,21]. Several solvers are available for QP problems, such as MOSEK [22], GUROBI [23], ECOS [24], and OSQP [25]. Proper selection of the QP solver is crucial to meet the time requirements for fast dynamic systems. In [25], the authors present a benchmark comparing OSQP with MOSEK, GUROBI, and ECOS. This work shows that the OSQP solver, based on the alternating direction method of multipliers (ADMM), has fast response times and reliable performance compared to other alternatives. Moreover, it is open-source and suitable for embedded implementations. Additionally, other implementations of ADMM have been extensively studied for power electronic systems applications [26,27,28].
This work introduces an MPC for the control of a voltage source inverter. The proposed algorithm is formulated based on dynamic performance criteria and incorporates integral action to mitigate unmodeled errors and system disturbances. The MPC is designed as a QP problem, where the predictive dynamic model is included as a linear equality constraint and physical and operational constraints are expressed as linear inequalities. MATLAB simulations demonstrate the superior performance of the proposed approach compared to conventional hierarchical PI control. The optimization problem is solved using the OSQP algorithm, achieving real-time execution with an average computation time of approximately 70 μ s using the MicroLabox controller of dSPACE, confirming its suitability for microgrid applications.

2. Materials and Methods

Figure 2 presents the schematic of the voltage source inverter connected to the grid and the voltage control system examined in this paper. To focus exclusively on voltage control, the grid interaction is excluded from this study, and the inverter is connected to a local resistive load. The controller processes measurements of the output voltage, filter current, and output current, converting them into the d q reference frame. These d q variables are subsequently used to formulate a quadratic programming (QP) problem. The optimal control problem is solved using the OSQP solver with a receding horizon approach. The resulting control actions are then transformed back into the a b c reference frame and applied using PWM modulation. The parameters of the laboratory experimental setup used in this study are summarized in Table 1.
Figure 3 shows the experimental setup used to evaluate the proposed MPC control for the voltage source inverter (VSI). In this setup, the energy resource (ER) is emulated using a Chroma 62060 regenerative DC power supply, which provides the necessary DC-link voltage for a Semikron three-phase inverter. An LC filter is implemented to attenuate high-frequency harmonics in the three-phase voltage ( v s ) and produce a smooth output capacitor voltage ( v c ). The VSI configuration includes an output transformer, modeled as an unknown series impedance for control purposes, that is connected to a star-connected resistor bank with a resistance of 47 Ω per phase. Furthermore, a star-connected resistor bank of 23 Ω is connected in parallel through a breaker, allowing the introduction of a load disturbance into the system. Filter currents, output voltages, and output currents are measured using custom-designed sensor boards. The dSPACE MicroLabBox acquires these measurements via its analog-to-digital (ADC) channels for control purposes.

3. Voltage Source Inverter Model

This section provides a brief description of the dynamic model of the VSI and the filter used in the experimental setup for this study. The dynamic model of the filter is expressed in the d q synchronous reference frame by applying the Clarke and Park transformations (1) and (2):
v c α v c β = 2 3 1 3 1 3 0 1 3 1 3 v c a v c b v c c ,
v c d v c q = cos θ sin θ sin θ cos θ v c α v c β .
In (2), the angle θ is determined by integrating the reference frequency of capacitor voltage ( θ = ω d t ). The resulting dynamic model of the LC filter is described by the following equations [14,26]:
L f d i f d t = R f i f j ω L f i f v c + v s , C f d v c d t = i f j ω C f v c i o .
where { L f , R f , C f } are the LC filter parameters, i f = [ i fd i fq ] is the current vector at the inductor, v s = [ v sd v sq ] is the inverter modulated voltage vector, and i o = [ i od i oq ] is the output current. Equation (3) can be expressed in a continuous state-space model, where the voltage and current are separated into their real and imaginary components:
d d t i fd i fq v cd v cq = R f L f ω 1 L f 0 ω R f L f 0 1 L f 1 C f 0 0 ω 0 1 C f ω 0 i fd i fq v cd v cq + 1 L f 0 0 1 L f 0 0 0 0 v s + 0 0 0 0 1 C f 0 0 1 C f i o , y = 0 2 × 2 I 2 × 2 i fd i fq v cd v cq .
The system of Equation (4) can be expressed in its compact form as follows:
x ˙ = A x + B u + B p i o , y = C x .
From (5), the system’s discrete state-space representation is derived using a sampling period T s , as outlined in [14,26]:
x t + 1 = A d x t + B d u t + B pd i o , t , y t = C x t ,
where
A d = e A T s , B d = ( e A T s I 4 × 4 ) A 1 B , B pd = ( e A T s I 4 × 4 ) A 1 B p .
The discrete-time model in (6) serves as the foundation for constructing the prediction model required for MPC control. This work uses the multivariable frequency response of the model in (6) to establish design criteria for the closed-loop control. Figure 4 illustrates the eigenvalues that define the bandwidth of the open-loop system. Although the model is stable, it exhibits resonance points near 4500 rad/s and 5000 rad/s. Therefore, the control design must ensure robustness to effectively mitigate these oscillations at the resonant frequency. Moreover, it is essential to impose current constraints considering the nominal current of the VSI’s power semiconductors and ensure a feasible modulation voltage for safe operation. The voltage magnitude constraints at the converter output, which serves as the input to the LC filter, along with the system’s current constraints, are used to formulate the MPC optimization problem. The MPC formulation requires that the constraints be expressed as linear inequalities using the QP approach [15,21]. However, controlling the VSI in d q coordinates introduces specific challenges. To overcome these issues, this work adopts the approximations proposed in [29], using polygonal restrictions to the modulated voltage and current restrictions. To ensure the operation of the current within the nominal range, it is crucial to limit the output current of the converter ( i fdq ) within a circular boundary of radius r = i n , where i n is the nominal current of the inverter. As discussed previously, these constraints must be reformulated as linear inequalities. In this study, this is achieved by approximating the circle with a regular dodecagon, as depicted in Figure 5. The current generation capacity accounts for 95.5% of the total circumference, with the remainder sacrificed due to the approximation. This strategy ensures rapid and robust control and maintains safe operation within the limits of the semiconductor. However, it involves a trade-off between the current restriction design’s precision and the optimization solver’s computational cost. The current constraints i fdq shown in Figure 5 can be expressed as inequality constraints by utilizing trigonometric identities, as follows:
l x J x k u x ,
where the vectors and matrices are given by the following:
l x = i n 3.73 1.36 1.00 1.00 1.36 3.73 , J = 3.73 1.00 0.00 0.00 1.00 1.00 0.00 0.00 0.27 1.00 0.00 0.00 0.27 1.00 0.00 0.00 1.00 1.00 0.00 0.00 3.73 1.00 0.00 0.00 u x = l x .
In (8), the current constraints are represented using a constant matrix ( J ) and a vector parameterized by i n , allowing generalization for various VSI generation capacities.
The voltage actuation, on the other hand, is achieved using space vector pulse width modulation (SV-PWM). This technique is widely employed in power electronics and is readily implemented in digital signal processors. The objective of the SV-PWM modulator is to generate a pulsed voltage with the desired average value, ensuring constant switching frequency and optimal utilization of the DC bus voltage. SV-PWM achieves approximately 15% greater utilization of the DC bus voltage compared to sinusoidal PWM techniques [30]. When the Clarke transformation is applied to all modulated inverter voltages, v s α β , t = v s α , t + j v s β , t , these voltages are constrained within the hexagon defined by the six active vectors of the inverter, as illustrated in Figure 6. These constraints can be formulated as constant linear inequalities in the α β frame. However, the control of the inverter with an LC filter is performed in the d q frame, requiring the rotation of these constraints. This results in θ -dependent, time-varying constraints [29], which can be expressed in the d q frame but involve a high computational cost. To avoid this cost, the voltage is limited to the circle inscribed within the hexagon, approximated using the same method applied to the filter current, i.e., with a dodecagon in d q coordinates, as illustrated in Figure 6. These voltage constraints can be expressed as inequality constraints in d q using (10).
l u E u k u u ,
where the vectors and matrices are given by the following:
l u = v dc 3 3.73 1.36 1.00 1.00 1.36 3.73 , E = 3.73 1.00 1.00 1.00 0.27 1.00 0.27 1.00 1.00 1.00 3.73 1.00 u u = l u .
In (10), the modulated voltage constraints are represented using a constant matrix ( E ) and a vector parameterized by v dc , allowing for generalization across VSIs with different DC-link voltages. The following sections detail the control design based on the model (6) and describe how the constraints in (8) and (10) are incorporated into the proposed MPC strategy.

4. Optimal Control Problem with Reference Tracking of the VSI Output Voltage

This section introduces reference tracking for the capacitor voltage magnitude using the linear quadratic regulator with integral action (LQI) method [31]. The integral action aims to reject the unmodeled errors and the disturbances in the system described in (6). To achieve this, newly expanded states are introduced to include the integral of the desired tracking error. The dynamic model of the augmented estates is given by the following:
s 1 , t + 1 s 2 , t + 1 = s 1 , t s 2 , t + ( y t r ) .
where s 1 , t s 2 , t are the expanded states and r is the voltage reference. Using (12) and treating the output current ( i o ) as an unmeasured disturbance, the model in (6) is expanded as follows:
x e , t + 1 = A e x e , t + B e u t + B pe i o , t , y t = C e x pe , t ,
where the augmented state is x e , t = [ i fd , t , i fq , t , v cd , t , v cq , t , s 1 , t , s 2 , t ] , and the matrices of the augmented system are as follows:
A e = A d 0 4 × 2 C I 2 × 2 , B e = B d 0 2 × 2 , B pe = B dp 0 2 × 2 , C e = C 0 2 × 2 .
The control feedback matrix is obtained by solving the following optimization problem:
min k = 0 x e , k Q x e , k + u e , k R u e , k ,
s . t . x e , k + 1 = A e x e , k + B e u k ,
where { Q , R } > 0 are weighting matrices that define the desired closed-loop performance of the system. Limiting the closed-loop system’s bandwidth is crucial to achieving a robust design and mitigating system resonances. Conversely, ensuring a sufficiently high bandwidth is essential for enhancing the dynamic performance of the control loop. This trade-off is addressed by adjusting the values of Q and R . Following the methodology proposed in [32], the matrices are adjusted as Q = diag ( I 4 × 4 , ρ 1 I 2 × 2 ) and R = I 2 × 2 . Consequently, the control design is simplified to tuning the parameter ρ 1 to achieve the desired closed-loop bandwidth. The LQI control law is given by the following:
u t = K x e , t ,
with K = ( B e T S B e + R 1 ( B e T S A e T ) the optimal gain matrix, and S the solution to the Riccati, and the closed-loop system transition matrix is given by the following:
A closed = A e B e · K .
Figure 7 illustrates the multivariable frequency response of the closed-loop system with the parameter ρ 1 = 1 e 2 . This design criterion ensures the damping of critical frequencies near 4500 rad/s and 5000 rad/s, and cero db gain at dc, i.e., achieving reference tracking at steady state. However, it is essential to reformulate this problem as a constrained QP optimization problem to incorporate the system constraints described in (8) and (10). The next section introduces the MPC framework to address this requirement. This leads to a constrained MPC formulation with explicit integration [33].

5. Model-Based Predictive Control of the VSI

The model in (6) and the inequality constraints in (8) and (10) are used to formulate the control algorithm as a quadratic programming (QP) problem, based on the following quadratic cost function [33]:
V ( x ˜ , u ˜ ) = x ˜ e , N Q N x ˜ e , N + k = 0 N 1 x ˜ e , k Q x ˜ e , k + u ˜ k R u ˜ k ,
where Q and R are the same weighting matrices for the state and input defined of (15), and Q N is the solution of the discrete-time Riccati equation associated with the optimal control problem. This criterion ensures system stability while maintaining the same dynamic response as the LQI when the constraints are not active. The prediction horizon is N, and { x ˜ e , k , u ˜ k } represent deviation variables around de desired steady-state operating point,
x ˜ e , k = x e , t x ¯ s 0 2 × 1 ,
u ˜ k = u t u ¯ s .
The steady-state operating point { x ¯ s , u ¯ s } is computed as follows:
x ¯ s u ¯ s = I 4 × 4 A d B d C 0 2 × 2 1 B pd i o , t r .
The state and input constraints are given by the following:
x ˜ e , k + 1 = A e x ˜ e , k + B e u ˜ k ,
x ˜ min J e x ˜ k x ˜ max ,
u ˜ min E u ˜ k u ˜ max ,
x 0 = x t ,
where J e = J 0 6 × 2 , and (24) and (25) represent the states and inputs constraints using the transformations (20) and (21). The control action is computed by solving the optimization problem and using a receding horizon scheme (RHC) at time t. This approach accelerates the steady state convergence of the system by forwarding the steady state operating point, using the references and known disturbances, improving the system’s time response. However, when current constraints are active, the integral of the error between the voltage and its references becomes an open integrator, leading to numerical problems in the MPC control. To address this challenge, this work adopts the incremental formulation proposed in [34].

Incremental Formulation

Following the MPC formulation presented in [34], the quadratic cost function can be rewritten as follows:
V 2 ( x ˜ , u ˜ ) = Δ x ˜ e , N Q N Δ x ˜ e , N + k = 0 N 1 Δ x ˜ e , k Q Δ x ˜ e , k + Δ u ˜ k R Δ u ˜ k ,
where,
Δ x ˜ e , k = x ˜ t y t 1 x ˜ t 1 r ,
Δ u ˜ k = u ˜ t u ˜ t 1 ,
represent the incremental variables. Given these transformations, the state and input constraints are given by the following:
Δ x ˜ e , k + 1 = A e Δ x ˜ e , k + B e Δ u ˜ k , Δ x ˜ min J Δ x ˜ k Δ x ˜ max , Δ u ˜ min E Δ u ˜ k Δ u ˜ max , x 0 = x t ,
where
Δ x ˜ min = l x J ( x k 1 + Δ x ¯ s , t ) ,
Δ x ˜ max = u x J ( x k 1 + Δ x ¯ s , t ) ,
Δ u ˜ min = l u E ( u k 1 + Δ u ¯ s , t ) ,
Δ u ˜ max = u u E ( u k 1 + Δ u ¯ s , t ) .
The optimization problem must be reformulated to a standard form to be compatible with the OSQP solver [25], as follows:
                  min 1 2 ψ H ψ + h ψ ,
s . t . F ψ = f ,
                        a P ψ b .
There are two mathematically equivalent alternatives to express the problem (27)–(34): the condensed and non-condensed approaches [35]. However, each approach offers different numerical properties [35]. Following the more intuitive non-condensed approach, the problem of interest is described as follows:
ψ = Δ x ˜ o Δ x ˜ N Δ u ˜ o u ˜ N 1 , H = Q 0 0 0 0 0 0 0 0 0 0 0 Q 0 0 0 0 0 Q N 0 0 R 0 0 R ,
ψ is the decision vector, H is the Hessian matrix, and h is a zero column vector. The initial condition of the QP problem and the predictive model (16) are formulated as the equality constraints in (36) with the following:
F = I 6 × 6 0 0 0 A e I 6 × 6 0 B e 0 0 A e I 6 × 6 B e 0 , f = Δ x ˜ 0 0 0 0 .
The constraint in (39) represents the current behavior of the system while forecasting its future dynamics over N steps to ensure optimal performance. The constraints on the LC filter current and the modulated voltage are formulated as the inequality constraints in (37), where
P = J e 0 0 0 0 0 0 0 0 0 0 J e 0 0 0 0 0 E 0 0 0 0 0 0 0 E , a = Δ x ˜ min Δ x ˜ min Δ u ˜ min Δ u ˜ min , b = Δ x ˜ max Δ x ˜ max Δ u ˜ max Δ u ˜ max .
Solving the optimization problem (35), subject to the constraints (36) and (37), the algorithm computes the MPC output thought the OSQP solver using the RHC approach:
Δ u ˜ 0 = OSQP ( H , h , F , f , P , a , b ) ,
where the control of the system is given by the following:
u t = Δ u ˜ 0 + u t 1 + Δ u ¯ s , t .
Interested readers are encouraged to consult [25] for more information on the OSQP solver. The proposed control strategy in (42) achieves reference tracking of the capacitor voltage in the VSI. Additionally, it accounts for operational constraints on the modulated voltage and physical limitations of the filter current through a QP approach. Including deviation variables in the MPC accelerates the system’s steady-state convergence by feed-forwarding the steady-state operating point, thereby feeding forward the reference and the known disturbances and improving the system’s time response. For embedded implementation, this work reformulates the equivalent optimization problem using the condensed approach for a more efficient implementation [35], achieving reduced computational costs and enabling average solution times of 70 μs. Details of the condensed implementation are provided in Appendix A.

6. Results

This section presents the results of controlling a VSI using the proposed strategy detailed in Section 5. Specifically, the tests assess the performance of the MPC controller, designed with a prediction horizon N = 2 , derived from the system’s dynamic model and extended with integral action [34], in achieving offset-free voltage reference tracking. Additionally, the analysis evaluates the system’s compliance with operational and physical limitations, which are incorporated into the MPC formulation as linear constraints. The proposed approach is first tested through MATLAB simulations to evaluate its functionality. Finally, experimental results are presented to validate the proposed method.
To evaluate its performance, a simulation comparison is conducted with a conventional cascaded PI control strategy presented in [36]. The system parameters used in this work are summarized in Table 1, and correspond to the experimental setup in the electronic power laboratory discussed in Section 2.

6.1. Simulation Results

The time-response simulations are performed in MATLAB. Figure 8 presents the simulation results in the d q reference frame, with the hierarchical control response based on PIs shown on the left and the response of the proposed MPC strategy displayed on the right. Initially, the VSI supplies a resistive load of 47 Ω with a reference voltage of 150 V . Both control strategies achieve offset-free behavior due to the integral action. However, the MPC approach achieves steady-state operation faster than the PI-based approach, demonstrating improved settling time. At t = 0.07 s , the resistive load is increased to 100 Ω to evaluate the system’s response to load changes when no constraints are active. The MPC response is almost instantaneous, attributed to the feed-forward compensation of the measured disturbance, i o .
At t = 0.12 s , the load resistance is changed to 11 Ω to evaluate compliance with the current limitation depicted in Figure 5. The MPC controller effectively enforces the steady-state current limit of 8 A by reducing the modulated voltage ( v sdq ). Additionally, the MPC demonstrates improved settling time compared to the PI controllers. While transient responses briefly exceed the limits, the PI controllers exhibit significantly higher overshoot and are unable to restrict the load current effectively.

6.2. Experimental Results

This section presents the VSI control of the experimental setup illustrated in Figure 3. The MPC is formulated as a QP problem, as described in Section 5, and implemented in C code using the OSQP solver [25,37]. The RHC computes the MPC control input, which is transformed back to a b c coordinates ( v abc ). The inverter pulses are generated using the space vector pulse-width modulator (SVPWM) in the dSPACE system. The human–machine interface (HMI) displays the voltage magnitude, filter current, output current, and execution time of the MPC algorithm in the ControlDesk software, enabling the evaluation of the VSI’s dynamic performance and computational cost.
This work evaluates the performance of the OSQP solver under various important operating conditions. Specifically, it focuses on voltage reference tracking and the activation of constraints for modulated voltage and filter current. In all cases, the iterative computation of voltage actuation is performed with 10 iterations, allowing the OSQP solver to achieve the solution in an average time of 70 μ s, demonstrating its suitability for MPC implementation in VSI control with the target sampling time of 200 μ s. For simplicity in the experimental tests, the steady-state values in the MPC algorithm design are set to zero, i.e., x ¯ s = 0 and u ¯ s = 0 . Although this decision slows the system’s convergence to a steady state, offset-free performance is ensured by the integral action included in the control design.

6.3. Voltage Magnitude Reference Tracking

Figure 9 illustrates the filter current, output current, and capacitor voltage in a b c coordinates, highlighting the VSI’s voltage tracking response to the capacitor voltage reference. The modulated voltage and current constraints are represented by dashed lines. At t = 2.60 s, a step voltage reference is applied, resulting in an output voltage of 120 V . The MPC controller successfully tracks the desired reference voltage, demonstrating the fast response of the proposed control strategy.

6.4. Modulated Voltage Constraints

Figure 10 illustrates the VSI transient response under active modulated voltage constraints. The voltage amplitude constraint is fixed to 138 V and originally the system operates in the unconstrained region with a reference of 120 V . At t = 2.75 s; the voltage reference is changed to 150 V exceeding the specified restriction. In this case, the filter current and modulated voltage are constrained to ensure compliance with the imposed limits, even when the reference signal exceeds the defined limit. The experimental results show that the modulated voltage remains within the specified limits enforced by the MPC control strategy.

6.5. Filter Current Restriction

Figure 11 illustrates the VSI response when current limit constraints are activated. Initially, the VSI operates with an output voltage of 100 V , supplying a load resistance of 47 Ω and a current limit of 3 A , i.e., in unconstrained operation mode. At t = 2.66 s , a load breaker is closed, connecting an additional bank of 23 Ω load resistances in parallel, activating the current limit. During the transient response, the current constraint is briefly exceeded due to large output current disturbances. The algorithm responds by reducing the output voltage, albeit at a limited rate, resulting in a transient overcurrent. However, the MPC controller quickly adjusts the modulated voltage to ensure that the output current remains within the predefined limit of 3 A in steady state, as set by the current constraints.

7. Discussion

Advancements in computational resources have enabled the application of MPC in systems requiring high dynamic performance, such as VSI control. Unlike conventional control strategies, MPC can predict system behavior and incorporate operational constraints directly into control design. In this context, the proposed MPC computes the optimal control action to achieve the voltage magnitude reference while considering filter current and voltage modulation constraints. Additionally, the method leverages an augmented system to incorporate integral action, improving steady-state accuracy, and utilizes the system’s steady-state behavior to enhance the transient response, ensuring faster convergence.
This article presents an offset-free MPC for the VSI using the OSQP solver, which efficiently solves the resulting QP problem. The computational cost is evaluated on the dSPACE MicroLabBox platform, demonstrating the feasibility of this approach via the condensed problem formulation. The proposed methodology is applicable to voltage control in DERs within microgrids, meeting the growing demand for advanced control strategies in modern decentralized power systems. This control approach could be extended to higher-level control loops in microgrids [38], such as secondary control, to achieve reference tracking of voltage and operating frequency while also incorporating operational constraints.

8. Conclusions

This work proposed an MPC technique with integral action for the control of voltage source inverters with LC filters in grid-connected applications and validated it in an experimental VSI setup. The control design enabled accurate reference tracking of the output voltage within the model predictive control framework while achieving a suitable transient response to load current disturbances. Furthermore, the method integrates operational constraints on the filter current and modulated voltage, providing effective protection for the power converter during grid faults or significant network transients. Simulation results conducted in MATLAB demonstrate the dynamic performance of the proposed MPC algorithm and its capability to protect critical power electronics assets in the grid, making it a superior alternative to traditional hierarchical PI controllers. Furthermore, the experimental implementation achieved resolution times for the resulting QP problem of less than 70 μs using the readily available OSQP solver, appropriately configured and tuned. This validates the feasibility of the proposed method for practical implementation in VSIs with LC filters for grid-connected applications. Finally, the experimental offset-free MPC could be explored for extension to higher closed-loop levels in the microgrid hierarchy that require integration, such as secondary control, to enhance stability, incorporate operational constraints, and ensure accurate voltage and frequency tracking.

Author Contributions

Conceptualization, R.L.A., C.A.S. and J.C.A.; methodology, R.L.A., C.A.S. and J.C.A.; software, R.L.A., D.F. and C.A.S.; validation, R.L.A. and D.F.; formal analysis, R.L.A., C.A.S. and J.C.A.; investigation, R.L.A., C.A.S. and J.C.A.; resources, R.L.A., D.F. and C.A.S.; writing—original draft preparation, R.L.A., D.F. and C.A.S.; writing—review and editing, R.L.A., D.F. and C.A.S.; visualization, R.L.A., D.F. and C.A.S.; supervision, J.C.A. and C.A.S.; project administration, C.A.S. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by the Chilean National Agency for Research and Development (ANID) Scholarship Program/doctorado nacional 2021-21211446, in part by the PIIC program of DGP at Universidad Técnica Federico Santa María No 061/2023, and in part by the grants ANID-Fondecyt 1211630 and 1211676, ANID-Basal Project FB0008 (AC3E) and ANID-PIA/Apoyo AFB180002 (CCTVal).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

No new data were created or analyzed in this study. Data sharing is not applicable to this article.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ADCAnalog to Digital Converter
ADMMAlternating Directions Method of Multipliers
DERDistributed Energy Resources
EREnergy Resource
HMIHuman–Machine Interface
LQILinear Quadratic Regulator with Integral Action
MPCModel Predictive Control
MIMOMultiple Input Multiple Output
OSQPOperator Splitting Quadratic Programs
QPQuadratic Programming
SVPWMSpace Vector Pulse-Width Modulator
VSIVoltage Source Inverter

Appendix A. Condensed Approach

Considers the following QP problem:
min 1 2 ψ H ψ + h ψ ,
s . t . a P ψ b .
The decision variable includes only the input sequence, expanded over the prediction horizon, and the current state, considering the following system:
x = A e A e 2 A e N Δ x ˜ e , t + B e 0 0 A e B e B e 0 A e N 1 A e N 2 B e B e u , = A Δ x ˜ e , t + O u ,
where,
x = Δ x ˜ e , 0 Δ x ˜ e , 1 Δ x ˜ e , N ,
u = Δ u ˜ 0 Δ u ˜ 1 Δ u ˜ N 1 .
The dense matrices are given by the following:
H = I N R + O diag ( I N 1 Q , Q N ) O , h = 2 Δ x ˜ e , t A diag ( I N 1 Q , Q N ) O ,
where ⊗ denotes the Kronecker product, with the following constraint:
a = 1 N Δ u ˜ min 1 N Δ x ˜ min ( I N J e ) A Δ x ˜ e , t , P = I N E ( I N J e ) O , b = 1 N Δ u ˜ max 1 N Δ x ˜ max ( I N J e ) A Δ x ˜ e , t .

References

  1. Machado, E.P.; Pinto, A.C.; Ramos, R.P.; Prates, R.M.; Sá, J.d.; de Lima, J.I.; Costa, F.B.; Fernandes, D.; Pereira, A.C. Modeling, Control and Validation of a Three-Phase Single-Stage Photovoltaic System. Energies 2024, 17, 5953. [Google Scholar] [CrossRef]
  2. Han, H.; Hou, X.; Yang, J.; Wu, J.; Su, M.; Guerrero, J.M. Review of Power Sharing Control Strategies for Islanding Operation of AC Microgrids. IEEE Trans. Smart Grid 2016, 7, 200–215. [Google Scholar] [CrossRef]
  3. Lee, K.-B.; Blaabjerg, F. Simple Power Control for Sensorless Induction Motor Drives Fed by a Matrix Converter. IEEE Trans. Energy Convers. 2008, 23, 781–788. [Google Scholar] [CrossRef]
  4. Cai, J.; Dou, X.; Cheok, A.D.; Ding, W.; Yan, Y.; Zhang, X. Model Predictive Control Strategies in Switched Reluctance Motor Drives—An Overview. IEEE Trans. Power Electron. 2025, 40, 1669–1685. [Google Scholar] [CrossRef]
  5. Wang, T.; O’Neill, D.; Kamath, H. Dynamic Control and Optimization of Distributed Energy Resources in a Microgrid. IEEE Trans. Smart Grid 2015, 6, 2884–2894. [Google Scholar] [CrossRef]
  6. Khan, M.N.H.; Forouzesh, M.; Siwakoti, Y.P.; Li, L.; Kerekes, T.; Blaabjerg, F. Transformerless Inverter Topologies for Single-Phase Photovoltaic Systems: A Comparative Review. IEEE J. Emerg. Sel. Top. Power Electron. 2020, 8, 805–835. [Google Scholar] [CrossRef]
  7. Cedeño, A.L.; Ahuar, R.L.; Rojas, J.; Carvajal, G.; Silva, C.; Agüero, J.C. Model Predictive Control for Photovoltaic Plants with Non-Ideal Energy Storage Using Mixed Integer Linear Programming. Energies 2022, 15, 6427. [Google Scholar] [CrossRef]
  8. Ibrahim, H.; Ghandour, M.; Dimitrova, M.; Ilinca, A.; Perron, J. Integration of Wind Energy into Electricity Systems: Technical Challenges and Actual Solutions. Energy Procedia 2011, 6, 815–824. [Google Scholar] [CrossRef]
  9. Malinowski, M.; Bernet, S. A Simple Voltage Sensorless Active Damping Scheme for Three-Phase PWM Converters With an LCL Filter. IEEE Trans. Ind. Electron. 2008, 55, 1876–1880. [Google Scholar] [CrossRef]
  10. Espín-Sarzosa, D.; Palma-Behnke, R.; Cañizares, C.A.; Annakkage, U.; Elizondo, M.; Espina, E.; Du, W.; Kabalan, M.; Meegahapola, L.; Mendoza-Araya, P.A.; et al. Microgrid Modeling for Stability Analysis. IEEE Trans. Smart Grid 2024, 15, 2459–2479. [Google Scholar] [CrossRef]
  11. Yazdani, A. Control of an Islanded Distributed Energy Resource Unit with Load Compensating Feed-Forward. In Proceedings of the 2008 IEEE Power and Energy Society General Meeting—Conversion and Delivery of Electrical Energy in the 21st Century, Pittsburgh, PA, USA, 20–24 July 2008; pp. 1–7. [Google Scholar] [CrossRef]
  12. Gholami, S.; Aldeen, M.; Saha, S. Control Strategy for Dispatchable Distributed Energy Resources in Islanded Microgrids. IEEE Trans. Power Syst. 2017, 33, 141–152. [Google Scholar] [CrossRef]
  13. Bolton, W. Control Systems. In Instrumentation and Control Systems; Elsevier: Amsterdam, The Netherlands, 2015; pp. 281–302. [Google Scholar] [CrossRef]
  14. Pérez-Ibacache, R.; Pimentel, G.A.; Silva, C.A.; Agüero, J.C. State Feedback Control with Full Disturbance Compensation for an LC Filtered Grid-Forming Converter. In Proceedings of the 2019 IEEE PES Innovative Smart Grid Technologies Conference - Latin America (ISGT Latin America), Gramado, Brazil, 15–18 September 2019; pp. 1–6. [Google Scholar] [CrossRef]
  15. Borrelli, F.; Bemporad, A.; Morari, M. Predictive Control for Linear and Hybrid Systems; Cambridge University Press: Cambridge, UK, 2017; ISBN 9781107652873. [Google Scholar]
  16. Nauman, M.; Hasan, A. Efficient Implicit Model-Predictive Control of a Three-Phase Inverter with an Output LC Filter. IEEE Trans. Power Electron. 2016, 31, 6075–6078. [Google Scholar] [CrossRef]
  17. Alhosaini, W.; Zhao, Y. A Model Predictive Voltage Control Using Virtual Space Vectors for Grid-Forming Energy Storage Converters. In Proceedings of the 2019 IEEE Applied Power Electronics Conference and Exposition (APEC), Anaheim, CA, USA, 17–21 March 2019; pp. 1466–1471. [Google Scholar] [CrossRef]
  18. Ullah, Q.; Resende, E.C.; Freitas, L.C.G.; Laaksonen, H.; Simões, M.G. Enhancing voltage stability of grid forming power converters based on model predictive controller. Int. J. Electr. Power Energy Syst. 2024, 163, 110317. [Google Scholar] [CrossRef]
  19. Gholami-Khesht, H.; Davari, P.; Blaabjerg, F. An adaptive model predictive voltage control for LC-filtered voltage source inverters. Appl. Sci. 2021, 11, 704. [Google Scholar] [CrossRef]
  20. Bidram, A.; Nasirian, V.; Davoudi, A.; Lewis, F.L. Cooperative Synchronization in Distributed Microgrid Control; Springer: Berlin/Heidelberg, Germany, 2017. [Google Scholar]
  21. Rawlings, J.B.; Mayne, D.Q.; Diehl, M. Model Predictive Control: Theory, Computation, and Design; Nob Hill Publishing: Madison, WI, USA, 2017; Volume 2. [Google Scholar]
  22. Mosek ApS. MOSEK Optimization Toolbox for MATLAB. 2024. Available online: https://www.mosek.com/documentation/ (accessed on 17 December 2024).
  23. Gurobi Optimization, Inc. Gurobi Optimizer Reference Manual. 2024. Available online: http://www.gurobi.com (accessed on 17 December 2024).
  24. Domahidi, A.; Chu, E.; Boyd, S. ECOS: An SOCP solver for embedded systems. In Proceedings of the 2013 European Control Conference, ECC 2013, Zurich, Switzerland, 17–19 July 2013; pp. 3071–3076. [Google Scholar] [CrossRef]
  25. Stellato, B.; Banjac, G.; Goulart, P.; Bemporad, A.; Boyd, S. OSQP: An Operator Splitting Solver for Quadratic Programs. Math. Program. Comput. 2020, 12, 637–672. [Google Scholar] [CrossRef]
  26. Ahuar, R.L.; Cedeño, A.L.; Pérez-Ibacache, R.; Agüero, J.C.; Silva, C.A. Comments on the Numerical Efficiency of Constrained MPC of an Inverter with LC Output Filter. In Proceedings of the 2021 IEEE International Conference on Automation/XXIV Congress of the Chilean Association of Automatic Control (ICA-ACCA), Valparaíso, Chile, 22–26 March 2021; pp. 1–7. [Google Scholar] [CrossRef]
  27. Far, S.R.; Moeini, A.; Chandra, A.; Kamwa, I. ADMM-Based Multi-Objective Control Scheme for Mitigating the Impact of High Penetration DER Integration in the Modern Distribution Systems. IEEE Access 2023, 11, 38589–38603. [Google Scholar] [CrossRef]
  28. Wang, Z.; Ding, T.; Mu, C.; Huang, Y.; Yang, M.; Yang, Y.; Chen, Z.; Lin, Y.; Li, M. An ADMM-based power system partitioned black-start and parallel restoration method considering high-penetrated renewable energy. Int. J. Electr. Power Energy Syst. 2024, 155, 109532. [Google Scholar] [CrossRef]
  29. Pérez-Ibacache, R.; Cedeño, A.L.; Silva, C.A.; Carvajal, G.; Agüero, J.C.; Yazdani, A. Decentralized Model-Based Predictive Control for DER Units Integration in AC Microgrids Subject to Operational and Safety Constraints. IEEE Trans. Power Deliv. 2020, 36, 2479–2489. [Google Scholar] [CrossRef]
  30. Mohan, N.; Robbins, W.P.; Undeland, M.N. Power Electronics: Converters, Applications, and Design; John Wiley & Sons: Hoboken, NJ, USA, 1995; p. 763. [Google Scholar]
  31. Ogata, K. Discrete-Time Control Systems; Prentice-Hall, Inc.: Hoboken, NJ, USA, 1995. [Google Scholar]
  32. Söderström, T. Discrete-Time Stochastic Systems: Estimation and Control; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2002. [Google Scholar]
  33. Bemporad, A.; Patrinos, P. Simple and Certifiable Quadratic Programming Algorithms for Embedded Linear Model Predictive Control. IFAC Proc. Vol. 2012, 45, 14–20. [Google Scholar] [CrossRef]
  34. Ruscio, D.D. Model Predictive Control with Integral Action: A simple MPC algorithm. Model. Identif. Control 2013, 34, 119–129. [Google Scholar] [CrossRef]
  35. Perez, J.L.; Kerrigan, E.C.; Constantinides, G.A. A condensed and sparse QP formulation for predictive control. In Proceedings of the 2011 50th IEEE Conference on Decision and Control and European Control Conference, Orlando, FL, USA, 12–15 December 2011; IEEE: Piscataway, NJ, USA, 2011; pp. 5217–5222. [Google Scholar]
  36. Prodanovic, M.; Green, T.C. High-Quality Power Generation Through Distributed Control of a Power Park Microgrid. IEEE Trans. Ind. Electron. 2006, 53, 1471–1482. [Google Scholar] [CrossRef]
  37. Banjac, G.; Stellato, B.; Moehle, N.; Goulart, P.; Bemporad, A.; Boyd, S. Embedded Code Generation Using the OSQP Solver. In Proceedings of the IEEE Conference on Decision and Control (CDC), Melbourne, VIC, Australia, 12–15 December 2017. [Google Scholar] [CrossRef]
  38. Palizban, O.; Kauhaniemi, K. Hierarchical control structure in microgrids with distributed generation: Island and grid connected mode. Renew. Sustain. Energy Rev. 2015, 44, 797–813. [Google Scholar] [CrossRef]
Figure 1. Generic representation of the voltage source inverter control system.
Figure 1. Generic representation of the voltage source inverter control system.
Applsci 15 01567 g001
Figure 2. Schematic setup for MPC in voltage source inverters.
Figure 2. Schematic setup for MPC in voltage source inverters.
Applsci 15 01567 g002
Figure 3. Experimental setup for MPC in voltage source inverters.
Figure 3. Experimental setup for MPC in voltage source inverters.
Applsci 15 01567 g003
Figure 4. Frequency response of the open loop VSI.
Figure 4. Frequency response of the open loop VSI.
Applsci 15 01567 g004
Figure 5. Regular polygon approximating the constraints of the current i f d q .
Figure 5. Regular polygon approximating the constraints of the current i f d q .
Applsci 15 01567 g005
Figure 6. Hexagonal boundary defining the voltage amplitude in the α β plane.
Figure 6. Hexagonal boundary defining the voltage amplitude in the α β plane.
Applsci 15 01567 g006
Figure 7. Frequency response of the close loop system.
Figure 7. Frequency response of the close loop system.
Applsci 15 01567 g007
Figure 8. Comparison of the simulated responses of hierarchical PI control and the proposed MPC strategy to output current disturbances caused by abrupt resistive load changes.
Figure 8. Comparison of the simulated responses of hierarchical PI control and the proposed MPC strategy to output current disturbances caused by abrupt resistive load changes.
Applsci 15 01567 g008
Figure 9. Experimental results to evaluate the capacitor voltage magnitude reference tracking, considering a step reference at t = 2.60 s.
Figure 9. Experimental results to evaluate the capacitor voltage magnitude reference tracking, considering a step reference at t = 2.60 s.
Applsci 15 01567 g009
Figure 10. Experimental results under active voltage constraints, with a voltage reference exceeding the imposed voltage limit at t = 2.75 s.
Figure 10. Experimental results under active voltage constraints, with a voltage reference exceeding the imposed voltage limit at t = 2.75 s.
Applsci 15 01567 g010
Figure 11. Experimental results when the 3 A current limit is activated by connecting an additional load resistance bank of 23 Ω at t = 2.66 s.
Figure 11. Experimental results when the 3 A current limit is activated by connecting an additional load resistance bank of 23 Ω at t = 2.66 s.
Applsci 15 01567 g011
Table 1. Parameters of the system.
Table 1. Parameters of the system.
System ParametersValueRemark
v dc 300 V DC Bus
i n 10 A Nominal current
L f 5 mH Filter inductance
C f 12 μ F Filter capacitor
R f 0.065 Ω Filter resistance
ω 2 π 50 rad / s Nominal frequency
T s 200 μ s Sampling time
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ahuar, R.L.; Figueroa, D.; Agüero, J.C.; Silva, C.A. Experimental Validation of Offset-Free Model-Based Predictive Control in Voltage Source Inverters for Grid Connected and Microgrids Applications. Appl. Sci. 2025, 15, 1567. https://doi.org/10.3390/app15031567

AMA Style

Ahuar RL, Figueroa D, Agüero JC, Silva CA. Experimental Validation of Offset-Free Model-Based Predictive Control in Voltage Source Inverters for Grid Connected and Microgrids Applications. Applied Sciences. 2025; 15(3):1567. https://doi.org/10.3390/app15031567

Chicago/Turabian Style

Ahuar, Reinier López, Dave Figueroa, Juan C. Agüero, and César A. Silva. 2025. "Experimental Validation of Offset-Free Model-Based Predictive Control in Voltage Source Inverters for Grid Connected and Microgrids Applications" Applied Sciences 15, no. 3: 1567. https://doi.org/10.3390/app15031567

APA Style

Ahuar, R. L., Figueroa, D., Agüero, J. C., & Silva, C. A. (2025). Experimental Validation of Offset-Free Model-Based Predictive Control in Voltage Source Inverters for Grid Connected and Microgrids Applications. Applied Sciences, 15(3), 1567. https://doi.org/10.3390/app15031567

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop