The integration of high-penetration renewable energy sources, primarily through power electronic converters like grid tied inverters, introduces significant stability challenges to modern power systems. The inherent weak grid characteristics, characterized by non-negligible grid impedance from long-distance transmission lines and the proliferation of power electronics, create an environment prone to wideband oscillations. These oscillations, typically occurring in the range of several hertz to several kilohertz, threaten the secure and stable operation of the power grid. This article presents a systematic, optimization-based approach to suppress these oscillations by reshaping the output impedance of photovoltaic (PV) grid tied inverters.

The core instability mechanism under weak grid conditions stems from an undesirable interaction between the inverter’s output impedance and the grid impedance. When the grid tied inverter‘s impedance exhibits negative damping characteristics across a wide frequency band, the system can become unstable according to the Nyquist stability criterion. Traditional methods for impedance reshaping, such as virtual impedance or passive damping, often involve trade-offs between stability enhancement and dynamic performance or suffer from limitations in handling time-varying grid conditions across wide frequency ranges. This work addresses these limitations by focusing on the optimization of the current control loop parameters within the grid tied inverter, leveraging a global search algorithm to find a parameter set that optimally enhances system stability without compromising other key performance metrics.
1. Impedance Modeling of the Grid-Tied PV System
Accurate impedance modeling is the foundational step for stability analysis. A typical three-phase two-level voltage source grid tied inverter with an LCL filter is considered. The system includes the inverter-side inductor \(L_f\), filter capacitor \(C_f\), damping resistor \(R_d\), and the grid impedance modeled as a series \(R_g\)-\(L_g\) branch. The controller employs a standard dual-loop structure in the synchronous reference frame (d-q), with a Phase-Locked Loop (PLL) for synchronization.
1.1. Sequence Impedance Modeling
To analyze the system’s response to perturbations across different sequences, a positive/negative sequence impedance model is derived. The modeling process involves injecting a small-signal voltage perturbation at a frequency \(f_p\) (positive sequence) or \(f_n\) (negative sequence) superimposed on the fundamental grid frequency \(f_1\) at the Point of Common Coupling (PCC). By applying Park’s transformation and considering the linearized dynamics of the PLL and current controllers, the closed-loop output impedance of the grid tied inverter can be derived.
Let the current controller’s PI transfer function be \(H_i(s) = k_{pi} + k_{ii}/s\), the PLL’s transfer function be \(G_{PLL}(s)\), and the feedforward gains be \(K_d\) (decoupling) and \(K_f\) (voltage feedforward). Under a steady-state operating point with DC-link voltage \(V_{dc}\), d-axis current reference \(I_{dr}\), and q-axis current reference \(I_{qr}\), the positive-sequence impedance \(Z_p(s)\) and negative-sequence impedance \(Z_n(s)\) of the inverter are given by:
$$
Z_p(s) = sL_f + \frac{ \frac{V_{dc}}{2} \left( H_i(s-j\omega_1) – jK_d \right) }{ G_i(s) } – \frac{ \frac{V_{dc}}{2} K_f G_v(s) }{ 1 } – \frac{ \frac{V_{dc}}{4} T_{PLL}(s-j\omega_1) }{ V_1 } G_v(s) H_i(s-j\omega_1) (I_{dr} + jI_{qr})
$$
$$
Z_n(s) = sL_f + \frac{ \frac{V_{dc}}{2} \left( H_i(s+j\omega_1) + jK_d \right) }{ G_i(s) } – \frac{ \frac{V_{dc}}{2} K_f G_v(s) }{ 1 } – \frac{ \frac{V_{dc}}{4} T_{PLL}(s+j\omega_1) }{ V_1 } G_v(s) H_i(s+j\omega_1) (I_{dr} – jI_{qr})
$$
where \(\omega_1 = 2\pi f_1\), \(V_1\) is the peak phase voltage, and \(G_i(s)\), \(G_v(s)\) are transfer functions related to the PWM and measurement delays. The grid impedance for a balanced, passive network is identical for both sequences: \(Z_g(s) = R_g + sL_g\).
1.2. Stability Criterion Based on Impedance Ratio
The interconnected system comprising the grid tied inverter and the grid can be assessed using the Generalized Nyquist Criterion (GNC) based on the minor loop gain. For a current-controlled inverter (Norton equivalent), the stability is determined by the return ratio \(L(s) = Z_g(s) / Z_{inv}(s)\), where \(Z_{inv}(s)\) is the inverter’s output impedance (\(Z_p(s)\) or \(Z_n(s)\)). The system is stable if the Nyquist plot of \(L(s)\) does not encircle the critical point \((-1, j0)\). Furthermore, the distance from the Nyquist curve to this point serves as a quantitative stability margin. Alternatively, using the Bode plot of the impedance ratio, stability is indicated if the phase difference at the frequency where \(|Z_{inv}(j\omega)| = |Z_g(j\omega)|\) is less than 180°. The phase margin is defined as \(PM = 180° – \phi_{diff}\).
2. Sensitivity Analysis for Parameter Screening
Before optimization, it is crucial to identify which control parameters of the grid tied inverter have the most significant influence on the output impedance, particularly in the frequency range where oscillations are likely. This prevents the optimization algorithm from wasting computational resources on insensitive parameters. A multi-frequency finite-difference sensitivity analysis is employed.
Let the parameter vector be \(\mathbf{p} = [k_{pi}, k_{ii}, K_d, K_f]^T\). The sensitivity of the impedance magnitude \(|Z(j\omega, \mathbf{p})|\) to a parameter \(p_i\) at a specific frequency \(\omega_k\) is calculated using the central difference method:
$$
S_{p_i}(\omega_k) = \frac{p_i}{|Z(j\omega_k, \mathbf{p})|} \cdot \frac{|Z(j\omega_k, \mathbf{p} + \Delta p_i \mathbf{e}_i)| – |Z(j\omega_k, \mathbf{p} – \Delta p_i \mathbf{e}_i)|}{2 \Delta p_i}
$$
where \(\mathbf{e}_i\) is the unit vector for parameter \(p_i\), and \(\Delta p_i\) is a small perturbation (e.g., 5% of \(p_i\)). This calculation is performed across a wide frequency spectrum (e.g., 1 Hz to 10 kHz). A global sensitivity index \(SI_i\) for each parameter is then computed as the average of the absolute sensitivity values over all sampled frequencies:
$$
SI_i = \frac{1}{N} \sum_{k=1}^{N} |S_{p_i}(\omega_k)|
$$
Based on the \(SI_i\) value, the feasible optimization range for each parameter is determined:
– \(SI_i \geq 0.8\) (High Sensitivity): Narrow search range (\(\pm 10\%\) of nominal value).
– \(SI_i \leq 0.3\) (Low Sensitivity): Wider search range (\(\pm 30\%\) of nominal value).
– \(0.3 < SI_i < 0.8\): Intermediate range.
The results of this analysis for a typical grid tied inverter setup are summarized in the table below. It clearly shows that the voltage feedforward coefficient \(K_f\) is the most sensitive parameter across the frequency band, followed by the current controller gains. The decoupling gain \(K_d\) shows relatively lower sensitivity.
| Control Parameter | Symbol | Global Sensitivity Index (SI) | Proposed Optimization Range |
|---|---|---|---|
| Current PI Proportional Gain | \(k_{pi}\) | 0.18 | \([0.0240, 0.0446]\) |
| Current PI Integral Gain | \(k_{ii}\) | 0.09 | \([32.00, 59.43]\) |
| Decoupling Feedforward Gain | \(K_d\) | 0.02 | \([0.0019, 0.0035]\) |
| Voltage Feedforward Coefficient | \(K_f\) | 1.25 | \([0.0028, 0.0034]\) |
3. Formulation of the Optimization Problem
The goal is to find the optimal parameter set \(\mathbf{p}^*\) within the defined feasible ranges that maximizes the stability margin of the grid tied inverter system. The objective function is constructed to directly reflect the insights from the Nyquist and Bode stability criteria.
Let \(G(j\omega, \mathbf{p}) = Z_g(j\omega) / Z_{inv}(j\omega, \mathbf{p})\) be the minor loop gain. The objective is to maximize the minimum distance from the Nyquist curve of \(G\) to the critical point \((-1, j0)\) and to maximize the phase margin (PM). A combined objective function \(F(\mathbf{p})\) is formulated:
$$
\max_{\mathbf{p}} \ F(\mathbf{p}) = \omega_1 \cdot \min_{\omega} \left\| G(j\omega, \mathbf{p}) + 1 \right\| + \omega_2 \cdot PM(\mathbf{p})
$$
Subject to:
$$
GM(\mathbf{p}) \geq GM_{min} \quad \text{(e.g., 6 dB)}
$$
$$
PM(\mathbf{p}) \geq PM_{min} \quad \text{(e.g., 45^\circ)}
$$
$$
\mathbf{p}_{lb} \leq \mathbf{p} \leq \mathbf{p}_{ub}
$$
where \(\omega_1\) and \(\omega_2\) are weighting factors, \(GM\) is the gain margin, and \(\mathbf{p}_{lb}, \mathbf{p}_{ub}\) are the lower and upper bounds from the sensitivity analysis. The term \(\min \left\| G(j\omega, \mathbf{p}) + 1 \right\|\) is the minimum Euclidean distance in the complex plane, providing a direct and scalar measure of Nyquist stability margin.
4. Parameter Optimization Using the Whale Migration Algorithm (WMA)
To solve this nonlinear, constrained optimization problem effectively and avoid local optima, a metaheuristic algorithm called the Whale Migration Algorithm (WMA) is employed. WMA is inspired by the collective migratory behavior of humpback whales and is known for balancing exploration and exploitation.
The algorithm initializes a population of \(N_{pop}\) whales, each representing a candidate parameter vector \(\mathbf{p}\). The population is dynamically divided into leaders (\(N_L\)) and followers based on fitness (the value of \(F(\mathbf{p})\)). Leaders, representing whales with better knowledge of the migration path (optimal region), guide the search. Their position update mimics exploration:
$$
\mathbf{W}_{i}^{new} = \mathbf{W}_{i} + \text{rand}(1,D) \odot \mathbf{L} + \text{rand}(1,D) \odot (\mathbf{U} – \mathbf{L})
$$
Followers update their positions based on the average position of leaders \(\mathbf{W}_{mean}\) and the global best position \(\mathbf{W}_{best}\), promoting exploitation:
$$
\mathbf{W}_{i}^{new} = \mathbf{W}_{mean} + \text{rand}(1,D) \odot (\mathbf{W}_{i-1} – \mathbf{W}_{i}) + \text{rand}(1,D) \odot (\mathbf{W}_{best} – \mathbf{W}_{mean})
$$
where \(\mathbf{U}\) and \(\mathbf{L}\) are the bound vectors, \(\odot\) denotes element-wise multiplication, and \(\text{rand}(1,D)\) generates a random vector. The adaptive threshold for classifying leaders and followers allows WMA to adjust its search strategy, ensuring robust convergence to a near-global optimum for the grid tied inverter parameter set.
5. Simulation Results and Comparative Analysis
The proposed method is validated through simulation of a 500 kW grid tied inverter system. The main circuit and initial controller parameters are listed below.
| Parameter | Symbol | Value |
|---|---|---|
| Filter Inductance | \(L_f\) | 3 mH |
| Filter Capacitance | \(C_f\) | 20 µF |
| Damping Resistor | \(R_d\) | 1.5 Ω |
| Grid Inductance (Weak Grid) | \(L_g\) | 9.2 mH |
| Grid Resistance | \(R_g\) | 0 Ω |
| DC-Link Voltage | \(V_{dc}\) | 700 V |
| Grid Voltage (L-L RMS) | \(V_g\) | 380 V |
The WMA was used to optimize the parameter vector \(\mathbf{p}\). The optimized parameters are compared with the initial settings.
| Control Parameter | Initial Value | WMA-Optimized Value |
|---|---|---|
| \(k_{pi}\) | 0.0500 | 0.0345 |
| \(k_{ii}\) | 45.7143 | 45.7140 |
| \(K_d\) | 0.0030 | 0.0026 |
| \(K_f\) | 0.0031 | 0.0028 |
The stability analysis results before and after optimization are quantitatively compared using the defined metrics: the minimum Euclidean distance to \((-1, j0)\) in the Nyquist plot (\(X_{min}\)) and the Phase Margin (PM) from the Bode plot.
| Stability Metric | Sequence | Before Optimization | After WMA Optimization | Improvement |
|---|---|---|---|---|
| Min. Nyquist Distance (\(X_{min}\)) | Positive | -0.460 | 0.480 | +0.940 |
| Negative | -0.230 | 0.730 | +0.960 | |
| Phase Margin (PM) | Positive | 207.05° (Unstable) | 148.95° | +58.10° (to stable) |
| Negative | 195.43° (Unstable) | 126.80° | +68.63° (to stable) |
The results are conclusive. Before optimization, the negative \(X_{min}\) values and PMs greater than 180° confirm system instability. After applying the optimized parameters from the WMA, the \(X_{min}\) becomes positive and the PMs are well below 180°, indicating a stable system with substantial stability margins. The optimization successfully reshaped the impedance of the grid tied inverter to avoid detrimental interactions with the weak grid.
To highlight the effectiveness of the WMA, its performance is compared with other common optimization algorithms like Particle Swarm Optimization (PSO) and the standard Whale Optimization Algorithm (WOA). The comparison metric is the final optimized value of the primary objective component, the minimum Nyquist distance \(X_{min}\).
| Optimization Algorithm | Positive Seq. \(X_{min}\) | Negative Seq. \(X_{min}\) | Remark |
|---|---|---|---|
| Particle Swarm Optimization (PSO) | 0.510 | 0.210 | Poor convergence in negative sequence |
| Whale Optimization Algorithm (WOA) | 0.490 | 0.370 | Suboptimal result |
| Chaotic WOA (CIWOA) | 0.630 | 0.440 | Improved but lower than WMA |
| Whale Migration Algorithm (WMA) | 0.700 | 0.520 | Best overall performance |
WMA consistently achieved higher stability margins, demonstrating its superior global search capability and reliability for this application in tuning the grid tied inverter.
6. Conclusion
This article has presented a systematic and effective method for suppressing wideband oscillations in weak grids by optimizing the control parameters of photovoltaic grid tied inverters. The methodology is built upon a solid foundation of sequence-based impedance modeling, which accurately captures the inverter-grid interaction dynamics. The innovative application of a multi-frequency sensitivity analysis provides a principled way to identify critical parameters and define their feasible optimization ranges, focusing the computational effort efficiently.
The core of the method lies in formulating stability enhancement as a direct optimization problem, maximizing the Nyquist distance and phase margin, and solving it using the advanced Whale Migration Algorithm. The WMA’s balanced exploration-exploitation strategy proves effective in finding a global optimum, outperforming traditional algorithms like PSO and WOA. Simulation results validate that the optimized parameters significantly reshape the output impedance of the grid tied inverter, transforming an unstable system into a stable one with robust stability margins. This approach offers a powerful and practical tool for improving the stability and power quality of future renewable-rich power systems.
