In the rapidly evolving landscape of renewable energy integration, the role of power electronic converters has become increasingly critical. Solar photovoltaic systems, being one of the most widely deployed distributed energy resources, rely heavily on inverters to interface with the utility grid. Understanding the distinct types of solar inverters and their control paradigms is essential for ensuring stable and efficient operation, especially under weak grid conditions. In this study, we focus on the modeling and control of grid-forming inverters, which represent a key advancement among the various types of solar inverters. Unlike grid-following inverters that synchronize via a phase-locked loop (PLL), grid-forming inverters establish the grid voltage and frequency autonomously, making them more suitable for high-penetration renewable scenarios. We propose a hybrid control strategy that integrates virtual impedance with model predictive control (MPC) to address the inherent challenges of power coupling and slow dynamic response in conventional proportional-integral (PI) dual-loop schemes. Through detailed mathematical derivations and simulation validations, we demonstrate the superior performance of the proposed approach.
1. Introduction
The increasing penetration of solar photovoltaics has led to a paradigm shift in power system operation. Traditionally, most grid-connected inverters operate in a grid-following mode, where they inject power according to the grid conditions. However, as the share of inverter-based resources grows, the grid becomes weaker, and the limitations of grid-following inverters become apparent. Consequently, grid-forming inverters have emerged as a promising solution to provide voltage and frequency support, mimicking the behavior of synchronous machines. Among the different types of solar inverters, the grid-forming type is gaining attention for its ability to operate in islanded microgrids and weak grids. This paper investigates the control design for grid-forming inverters, emphasizing the benefits of model predictive control combined with virtual impedance shaping. We aim to provide a comprehensive comparison of the control performance under various operating conditions.
2. Mathematical Modeling of Grid-Connected Inverters
The three-phase grid-connected inverter is the fundamental building block of solar energy systems. Its dynamic behavior can be described by the voltage balance equation in the abc reference frame:
$$
E_{abc} = u_{abc} + L \frac{di_{Labc}}{dt} + R i_{Labc}
$$
where \(E_{abc}\) is the grid voltage, \(u_{abc}\) is the inverter output voltage, \(i_{Labc}\) is the inductor current, \(L\) is the filter inductance, and \(R\) is the parasitic resistance. By applying the Clarke transformation to the αβ stationary reference frame, we obtain:
$$
E_{\alpha\beta} = u_{\alpha\beta} + L \frac{di_{L\alpha\beta}}{dt} + R i_{L\alpha\beta}
$$
These equations form the basis for the discrete-time model used in MPC. For digital implementation, we discretize the system using forward Euler approximation with sampling period \(T_s\):
$$
i_{L\alpha\beta}(k+1) = \left(1 – \frac{T_s R}{L}\right) i_{L\alpha\beta}(k) + \frac{T_s}{L} \left( E_{\alpha\beta}(k) – u_{\alpha\beta}(k) \right)
$$
This predictive model allows us to forecast the current at the next sampling instant for each possible switching state of the inverter.
3. Types of Solar Inverters: Grid-Following vs Grid-Forming
To understand the context of our control strategy, we first classify the two primary types of solar inverters. Table 1 summarizes the key differences between grid-following and grid-forming inverters.
| Feature | Grid-Following Inverter | Grid-Forming Inverter |
|---|---|---|
| Synchronization | Phase-Locked Loop (PLL) | Self-synchronized (no PLL) |
| Grid impedance sensitivity | High, PLL coupling degrades performance | Low, robust in weak grids |
| Inertia contribution | Negligible | Virtual inertia (emulated) |
| Power decoupling | Requires dedicated controller tuning | Enhanced via virtual impedance |
| Dynamic response | Fast but prone to instability | Slower with traditional PI, improved with MPC |
| Typical control structure | Current control loop | Voltage & current dual loop or single loop |
Grid-forming inverters are further classified into different control architectures. The most common approach is the virtual synchronous generator (VSG) control, which mimics the swing equation of a synchronous machine:
$$
P_m – P_e – D(\omega – \omega_0) = J \omega \frac{d\omega}{dt} \approx J \omega_0 \frac{d\omega}{dt}
$$
where \(P_m\) is the virtual mechanical power, \(P_e\) the electrical power, \(D\) the damping coefficient, \(J\) the inertia constant, \(\omega\) the angular frequency, and \(\omega_0\) the nominal frequency. The droop characteristics for active power and reactive power are given by:
$$
P_m = P_{ref} + \frac{1}{m} (\omega_0 – \omega)
$$
$$
U_{ref} = U_0 + n (Q_{ref} – Q_e)
$$
Here, \(m\) and \(n\) are the droop coefficients, \(U_{ref}\) is the voltage reference, \(U_0\) the nominal voltage, and \(Q_e\) the measured reactive power.
4. Virtual Impedance Control for Power Decoupling
In low-voltage distribution networks, the line impedance is often resistive or resistive-inductive, leading to strong coupling between active and reactive power. Virtual impedance control is an effective technique to reshape the inverter output impedance and achieve decoupled power regulation. By emulating a virtual inductance \(L_v\) and/or virtual resistance \(R_v\) in the control loop, the equivalent output impedance seen by the grid becomes predominantly inductive. The virtual impedance is implemented by modifying the voltage reference:
$$
u_{ref, \alpha\beta} = u_{VSG, \alpha\beta} – (R_v + j \omega L_v) i_{L\alpha\beta}
$$
This approach simplifies the outer voltage control loop and allows us to use a single current loop for the inner control, as illustrated in the proposed architecture. Table 2 displays the parameters used in our simulation study.
| Parameter | Value |
|---|---|
| Grid voltage (line-to-line RMS) | 220 V |
| DC-link voltage | 700 V |
| Rated power | 15 kW |
| Nominal frequency | 50 Hz |
| Filter inductance \(L\) | 3 mH |
| Line resistance \(R\) | 0.2 Ω |
| Active droop coefficient \(m\) | 4774.65 |
| Reactive droop coefficient \(n\) | 0.02 |
| Virtual inertia \(J\) | 0.2 |
| Damping coefficient \(D\) | 5 |
5. Model Predictive Control for Grid-Forming Inverters
Finite control set model predictive control (FCS-MPC) is particularly suitable for power converters due to its intuitive handling of discrete switching states. In our design, we replace the conventional PI current regulator with an MPC that minimizes a cost function based on the current tracking error. The cost function is defined as:
$$
J = \left| i_{L\alpha}^*(k+1) – i_{L\alpha}(k+1) \right| + \left| i_{L\beta}^*(k+1) – i_{L\beta}(k+1) \right|
$$
To compensate for the computational delay inherent in digital implementation, we employ a two-step-ahead prediction. First, we predict the state at \(k+1\) using the measured values at \(k\), then we use this predicted state to forecast the state at \(k+2\) for all possible switching vectors. The optimal switching state is selected to minimize the cost function at \(k+2\). The reference currents in the αβ frame are obtained from the dq reference frame via inverse Park transformation:
$$
i_{L\alpha}^*(k+1) = i_{Ld}^*(k) \cos\theta(k) – i_{Lq}^*(k) \sin\theta(k)
$$
$$
i_{L\beta}^*(k+1) = i_{Ld}^*(k) \sin\theta(k) + i_{Lq}^*(k) \cos\theta(k)
$$
Figure 1 illustrates the complete control block diagram of the proposed virtual impedance-MPC strategy. The outer power loop generates the voltage magnitude and phase angle, while the virtual impedance block computes the current reference. The MPC inner loop directly governs the switching signals.

6. Simulation Results and Performance Evaluation
We built a 15 kW grid-forming inverter simulation model in MATLAB/Simulink to validate the proposed controller. The initial active power reference was set to 5 kW, and at \(t=3\) s, a step change to 10 kW was applied while the reactive power reference remained zero. We compared three control strategies: (a) traditional dual-loop PI control, (b) voltage outer loop with MPC current inner loop (without virtual impedance), and (c) the proposed virtual impedance-MPC single-loop control. The dynamic responses are summarized in Table 3.
| Control Strategy | Settling Time (s) | Overshoot (%) | Oscillation Amplitude (kW) | Reactive Power Coupling |
|---|---|---|---|---|
| Traditional PI dual-loop | 3.0 | ≈ 25% | 1.5 | Moderate |
| Voltage loop + MPC (no virtual impedance) | 2.5 | ≈ 15% | 1.0 | Low |
| Proposed virtual impedance-MPC | 2.0 | ≈ 5% | 0.5 | Negligible |
From Table 3, we observe that the proposed virtual impedance-MPC strategy reduces the settling time by approximately 33% compared to the traditional PI method, while also lowering the power overshoot by about 10%. Furthermore, the oscillation amplitude is halved relative to the voltage-loop MPC scheme. The reactive power output remains stable throughout the transient, confirming effective power decoupling. These results highlight the advantages of combining virtual impedance with model predictive control for grid-forming inverters. The improved dynamic performance directly benefits the integration of solar photovoltaic systems, especially when multiple types of solar inverters coexist in a weak grid environment.
7. Conclusion
In this work, we have presented a novel control strategy for grid-forming inverters that merges virtual impedance compensation with finite control set model predictive control. By reshaping the output impedance via virtual impedance, the outer voltage control loop is simplified, and the power coupling is significantly mitigated. The MPC inner loop replaces the conventional PI regulator, providing faster dynamic response and lower overshoot. Our simulation results on a 15 kW system demonstrate that the proposed method outperforms both traditional PI dual-loop control and voltage-loop MPC without virtual impedance. The settling time is reduced by 1 second (from 3 s to 2 s), and the power oscillation amplitude decreases by 50% compared to the voltage-loop MPC scheme. These improvements make the proposed control particularly attractive for modern solar energy systems, where different types of solar inverters must operate reliably under varying grid conditions. Future work will focus on multi-step prediction to further enhance robustness against parameter uncertainties and communication delays in large-scale installations.
