Enhancing the Performance of Grid-Tied Renewable Power Systems Using an Optimized PI Controller for STATCOM
International Journal of Robotics and Control Systems Vol. 5 No. 2 (2025) 748-762
Abstract
Integrating electrical networks with renewable energy sources in hybrid systems may effectively meet increasing power demands while reducing reliance on traditional energy sources. Wind gusts in wind energy conversion systems (WECSs), along with variations in temperature and irradiance in photovoltaic (PV) systems, render these systems vulnerable. Three-phase faults at the point of common coupling (PCC) can disconnect renewable energy sources (RESs) from the grid, threatening system stability. This study enhances a hybrid PV-WECS system through the implementation of a static synchronous compensator (STATCOM) to mitigate wind gust effects and maintain RES connectivity during three-phase faults at the point of common coupling (PCC). STATCOM manages reactive power exchange between renewable energy sources and the grid through two PI controllers. The gains of the PI controller are optimized through elephant herding optimization (EHO), demonstrating superior performance compared to particle swarm optimization (PSO) in terms of PCC voltage stability and system efficiency. In three-phase faults, the EHO demonstrates superior performance over the PSO, achieving a PCC voltage of 0.7 in contrast to 0.37, thereby maintaining voltage levels within acceptable limits in the connecting zone according to grid codes. The EHO-optimized PI controllers for the STATCOM successfully reduce the SRG current during this fault, decreasing it from 155 (with PSO) to 111 (with EHO). Under wind gust conditions, the power profile obtained from the SRG is markedly enhanced when employing EHO in comparison to PSO.
1.Introduction
Integrating renewable energy sources (RESs) into electrical systems has become crucial to meet escalating energy consumption and mitigate fossil fuel emissions. Common RESs include wind, photovoltaic (PV), fuel cells, and biomass [1]-[4], with wind and PV the most widely deployed [5]. Global installed PV capacity now stands at around 1185 GW—over 6% of worldwide electricity consumption—rising from ~3% in 2019 [6]. Concurrently, global wind power capacity reached approximately 1021 GW in 2023 [7]. Hybridization efforts for various renewables aim to efficiently generate clean and economical power [8]-[10].
WECSs and PV-based hybrid power systems often do not supply sufficient reactive power during faults, causing voltage fluctuations at the RES–grid point of common coupling (PCC). These fluctuations can degrade system stability, power factor, and overall power quality. When reactive power is insufficient, voltage swings can escalate to unsafe levels. If not properly managed, RESs may disconnect from the grid to comply with regulations. Reactive power demands are met using flexible alternating current transmission systems (FACTS) [11], [12], which include series and shunt compensators or combined devices.
Series devices—often called dynamic voltage restorers (DVRs)—offer reactive power support to hybrid renewables, while shunt compensators such as static var compensators (SVCs), static synchronous compensators (STATCOMs), and superconductors also maintain voltage stability [13], [14]. Compound-type unified power flow controllers (UPFCs) have been applied to bolster grid connectivity for diverse RESs [15]. Multiple FACTS devices in series or shunt modes address sags, swells, and harmonics that can threaten grid stability [16]-[22]. As grids become more interconnected, advanced devices like DVRs, STATCOMs, and superconductors mitigate power-quality (PQ) issues [23]. Regulatory standards and customer expectations drive the adoption of sophisticated devices, particularly STATCOMs, to ensure uninterrupted high-quality supply.
Proportional–integral (PI) controllers remain prevalent thanks to simplicity and user-friendliness, enhancing performance in fuel cells, PV systems, and wind turbines [24]. However, inaccurate PI tuning can undermine system objectives. Hybrid systems, featuring nonlinear components such as converters and inverters, complicate PI parameterization under linear control methods. Consequently, conventional optimization methods have emerged to fine-tune PI controllers in these environments [25].
Among the most effective optimizers for PI gains is the genetic algorithm (GA) [26]. Contemporary methods include follower pollination and harmony search, while particle swarm optimization (PSO) also optimizes PI gains for inverters connecting fuel cells to the grid. WECS typically employ switched reluctance generators (SRGs), self-excited induction generators (SEIGs), or doubly-fed induction generators (DFIGs) [27]-[29]. Although DFIGs can tolerate wind velocity variations, slip rings often need maintenance. SRGs, despite lower maintenance requirements and robustness, still require external reactive support.
Elephant herding optimization (EHO) has proven successful for PV and WECS applications, particularly in refining proportional–integral–derivative (PID) tuning for frequency regulation [30]. Compared with PSO and teaching–learning-based methods, EHO yields efficient low-voltage ride-through in grid-connected wind generation. It can also optimally calibrate SRG–WECS off-delay angles for improved performance [31]. In parallel, whale optimization algorithm (WOA) sometimes surpasses PSO and cuckoo search (CSO).
STATCOM is a widely adopted FACTS device delivering reactive power compensation, voltage control, and dynamic stability [32]. Designing and controlling STATCOM for RES integration remains a challenge due to the nonlinear nature of these systems [33], [34]. Researchers have proposed methods such as GA, artificial neural networks (ANN), and adaptive-network-based fuzzy inference systems (ANFIS) to update the PI gains [35], [36]. WOA has also seen varied usage [37]. These optimization algorithms typically run offline to determine best-fit PI controller parameters.
EHO, a more recent approach [38], mimics elephant herding behavior to explore solution spaces under uncertain conditions effectively. While highly intricate problems can challenge EHO’s search diversity, it remains robust for many applications. This work presents two optimized PI controllers for STATCOM, enabling integration of both WECS–SRG and PV. By adjusting reactive power flow between the system and STATCOM at PCC, voltage stability is improved and fault ride-through (FRT) is maintained. EHO mitigates the limitations of conventional PI optimization in grid-connected renewable systems, with PSO serving as a benchmark for performance comparisons.
This study examines the enhancement of grid integration for PV and WECS-based SRG through the incorporation of a STATCOM. The STATCOM is regulated through two PI controllers that have been optimized using the EHO algorithm. The proposed EHO-PI-STATCOM's effectiveness in improving the hybrid system is evaluated using two test cases. The initial case examines a three-phase fault at the PCC to assess the connection stability of PV systems and WECS to the grid during the fault, following Spain's grid code. The second case assesses the improvement of the WECS power profile in response to wind gusts. The performance of the EHO-based optimization for the PI-STATCOM controller is compared with the PSO optimization technique.
2.System Under Investigation
The system under investigation consists of two RESs: WECS-SRG and PV, where the used SRG is a four-pole 8/6 type. The two RESs are connected to the system through a bus at PCC. Two transformers and two transmission lines connect the grid to this shared connector bus. Fig. 1 illustrates the connection between PCC and STATCOM, which is implemented to enhance the system performance. The Voltage Source Converter (VSC)-STATCOM type is utilized in this work. WECS-SRG has a power rating of 24.8 kW. The PV system has a capacity of 150 kW and consists of 100 strings, with each string comprising five modules connected in series [39]. This PV system incorporates the maximum power point tracking (MPPT) technique to optimize its energy production under different weather conditions. Here the used MPPT is the conventional incremental conductance. The detailed information about the system can be referred to Appendix. Each source (PV and SRG) is linked to PCC via the DC-DC converter and DC-AC inverter.
3.System Modeling
3.1.Switched Reluctance Generator (SRG)
Switched reluctance generators (SRGs) exhibit several merits for WECS applications, such as mechanical robustness, simple design, high efficiency, broad operational speed range, and resilience to certain fault conditions. The stator windings use concentrated coils in a relatively simple arrangement. In the standard configuration, opposing stator windings connect in series to produce a two-pole field pattern. With no magnets on the rotor, windage decreases and inertia remains low. Owing to its doubly salient structure—salient stator and rotor poles—an asymmetric bridge converter excites the SRG. This study employs a four-phase, 8/6 SRG [30]. The linkage flux is defined by:
where is terminal voltage, is the phase current, and is stator resistance.
The four SRG phases are excited via an asymmetric converter, allowing independent regulation of each phase current. Rotor position detection enables precise control of turn-on and turn-off angles for each phase. A four-channel hysteresis controller manages the stator phase currents. Magnetic flux linkage is computed by integrating the difference between input voltage and the drop across .
The total SRG torque equals the sum of individual phase torques:
where is the number of phases and is the phase angle of the terminal voltage.
The average electrical power output is:
Here, denotes each phase conduction period; and are the voltage and current of phase . Comprehensive SRG modeling details can be found in [20] and [27].
3.2.PV System
Photovoltaic (PV) systems offer notable cost advantages over other renewables. One common model uses a p–n diode and parallel current source [40], establishing a current–voltage (I–V) profile for the PV array. Fig. 2 depicts the PV module’s equivalent circuit [31], where the output current is and the output voltage is , [45].
The I–V characteristic is:
where are the PV output current and voltage, is photocurrent, is reverse saturation current, is module current, is parallel cell count, is series cell count, is diode ideality factor, are temperature coefficients, and is the temperature difference from nominal. is the open-circuit voltage, is instantaneous irradiance, and is irradiance at nominal conditions. The thermal voltage is:
where is Boltzmann’s constant, is the absolute temperature, and is electron charge [32], [33]. A conventional incremental conductance (INC)- MPPT algorithm is employed for the KC200GT module [30], [31].
3.3.STATCOM Modeling
Appendix Section 2 contains the general mathematical model for STATCOM, expressed via active power, reactive power, and STATCOM output voltage.
3.4.STATCOM Operation and Control
A STATCOM is powered through the PCC voltage, producing capacitive or inductive current. Fig. 3 illustrates the STATCOM system, including the coupling transformer linking the voltage source inverter (VSI) to the power network at the PCC, along with a DC capacitor for energy storage. The VSI generates a voltage with adjustable amplitude and synchronous frequency. Comparing the PCC voltage to the reference (1 p.u. at 0.26 kV) allows STATCOM to operate in capacitive or inductive modes. During undervoltage, STATCOM delivers a leading current (capacitive mode); in overvoltage scenarios, it draws current (inductive mode). Failure to adjust the PCC voltage results in zero power transfer. By injecting current to support PCC voltage during faults, STATCOM augments the dynamic stability of the hybrid power system [44].
Two PI controllers regulate the STATCOM to offset voltage variations. Here, EHO optimizes the PI parameters by minimizing the integral of the squared error (ISE) between the reference and PCC voltages [41], [42]. Controller 1 updates the quadrature-axis current (), based on the measured–reference voltage mismatch, while Controller 2 regulates the PCC terminal voltage angle ().
In this study, the three-level STATCOM inverter employs sinusoidal pulse width modulation (SPWM). The inverter output voltage phase angle controls the power flow into the grid [22]. EHO optimizes the PI controller parameters driving the STATCOM, while PSO serves as a comparative benchmark.
3.5.PSO for Tuning PI Control Parameters
Particle swarm optimization (PSO) is used to determine optimal PI gains for controlling reactive power flow between STATCOM and RES. Two PI controllers (each with a proportional and integral gain) manage the STATCOM. PSO updates controller parameters to minimize an objective function . Iteratively, each particle’s position and velocity are refined until the best global solution emerges [32].
3.6.Elephant Herding Optimization (EHO)
PI controller parameters significantly influence system performance, particularly for nonlinear RESs. Classic tuning approaches may be insufficient. EHO is a modern algorithm well-suited for PV and other applications. In this paper, EHO reduces the integral of squared error between the reference voltage () and actual DC voltage ():
Drawing on natural elephant herd behavior, EHO partitions populations into subgroups (clans), updates positions based on a matriarch’s leadership, and disrupts local minima through worst-position transformations [46]-[50]. Initialization sets EHO parameters, population size, maximum iterations, and potential solutions. Each elephant’s position encodes four PI controller parameters, and the best solutions are updated dynamically until termination. EHO is mainly based on elephant herding behavior. Initialization sets EHO parameters, population size, maximum iterations, and potential solutions. Each elephant’s position encodes four PI controller parameters, and the best solutions are updated dynamically until termination. For the detailed mathematical formulations of EHO ((9)– (12)), please refer to Appendix A. Fig. 4 depicts the EHO flow chart for STATCOM PI controller tuning.
4.Results and Discussion
MATLAB/Simulink is used to simulate a grid-tied hybrid system (WECS–SRG + PV) with a controlled STATCOM. The system is evaluated under both three-phase faults and wind gust conditions, demonstrating reactive power management. In our experiments, both elephant herding optimization (EHO) and particle swarm optimization (PSO) are used to set the PI controller parameters for comparison [32], [43].
4.1.Three-Phase Fault
A three-phase fault (line-to-ground) is induced at the PCC from 2.00 s to 2.25 s, with a 48 kV STATCOM rating [14]. Fig. 5 illustrates the convergence of the objective function . EHO outperforms PSO by achieving a minimum value of 0.25 against PSO’s 0.36.
If PCC voltage deviates from accepted thresholds (per Spanish/US grid codes), RESs disconnect. Reconnection is complex. A well-tuned STATCOM boosts PCC voltage during faults. Using EHO yields minimum PCC voltages of 0.37 pu, compared with 0.59 pu from PSO, and exhibits lower overshoot (Fig. 6). Thus, EHO outperforms PSO.
Because the STATCOM upholds the PCC voltage, the RESs endure short-circuit events without disconnecting. In the absence of STATCOM, the PCC current spikes to 1.43 pu, triggering overcurrent protection and disconnecting the RES. With STATCOM in place, PCC current only slightly increases (0.74 pu for PSO, 0.72 pu for EHO), as shown in Fig. 7.
4.1.1.SRG Performance
Post-fault clearance at 2.25 s sees SRG output power surge to 28 kW, which cannot revert to the steady-state value (25 kW) without STATCOM. With STATCOM support, the SRG power recovers to 25 kW (Fig. 8 a), and its current stabilizes near 155 A vs. 111 A otherwise (Fig. 8 b). Without STATCOM, overcurrent protection would disconnect the WECS entirely.
4.1.2.PV Performance
Fig. 9 shows the PV system under three-phase faults. With MPPT, the PV adjusts operating voltage and current. Short-circuiting at the PCC causes transient voltage drops, but MPPT lowers the current to prevent overheating. As a result, the PV module rapidly returns to near-maximum power after fault clearance.
4.2.Wind Gust
A wind gust causes yet another disruption in the system by affecting the voltage profile at PCC and the SRG voltage. In this work, the wind gust is simulated by applying random wind speed variations to WECS between 2 m/s and 15 m/s, as shown in Fig. 10 (a). Without STATCOM, the PCC voltage varies around the rated value, with increased harmonics and distortions caused by wind gusts. The increased voltage at PCC is larger than that with STATCOM, as shown in Fig. 10 (b). As for the case with STATCOM, it is obvious that this value is lower when EHO is applied compared with that of PSO. STATCOMs are used to control voltage levels in the power system via providing reactive power assistance. It can stabilize the voltage in the presence of wind gusts, which results in rapid changes in the power output from WECS.
5.Summary and Discussions
Similar studies [14] report minimum PCC voltages around 0.40 p.u., highlighting that our EHO-based method achieves competitive—if not superior—FRT performance. As shown in Table 1. The improved FRT is attributed to the reactive power injection by STATCOM, which swiftly counters voltage sags during faults.
| Metric | Result | ||
|---|---|---|---|
| EHO-based STATCOM | PSO-based STATCOM | WOA-based STATCOM [14] | |
| Minimum PCC Voltage (p.u.) | 0.37 | 0.59 | 0.35 |
| Convergence Objective (J) | 0.25 | 0.36 | 0.29 |
| Maximum PCC Current (p.u.) | 0.72 | 0.74 | 0.73 |
The EHO method demonstrates enhanced efficacy relative to PSO by achieving faster convergence and improved fault ride-through (FRT) performance, as evidenced by reduced PCC voltage fluctuations and minimized current overshoots. Compared to previous studies, the EHO-based approach delivers superior performance metrics, highlighting its effectiveness in managing fault conditions and its potential applicability in real-world scenarios. A critical factor in this achievement is the STATCOM's ability to inject reactive power during both fault and wind gust events, which is essential for maintaining grid voltage stability.
However, this research also recognizes significant limitations. The simulation relies on a simplified grid model and assumes specific grid code parameters, which may not fully capture the complexities of actual power systems. Furthermore, although the simulation results are promising, the system's performance under more complex grid conditions and potential hardware imperfections has yet to be evaluated. Future research will focus on addressing these limitations by exploring adaptive and machine-learning-based controllers, conducting hardware-in-the-loop tests, and refining the grid model to ensure the robustness and practical applicability of the EHO-based optimization technique.
6.Conclusion
This study reaffirms the main theoretical contribution that EHO-based PI tuning in a STATCOM effectively maintains renewable energy system (RES) connectivity during severe grid disturbances. Simulation results illustrate that during three-phase faults, the EHO-tuned STATCOM sustains a minimum point-of-common-coupling (PCC) voltage of 0.37 p.u. (compared to 0.59 p.u. with PSO) and significantly reduces transient overshoots under wind gust conditions (2–15 m/s). These metrics underscore the value of our approach in ensuring continuous RES operation, which is critical for grid stability and reliability.
By maintaining voltage stability during faults, the proposed method helps grid operators manage large-scale intermittent sources with minimal risk of disconnection, thereby enhancing overall system reliability. EHO was selected over PSO due to its robustness to parameter variations and slightly faster convergence when navigating the nonlinear control challenges inherent in hybrid PV–WECS systems.
Looking ahead, future research will pursue the development of adaptive, machine-learning-based controllers and fuzzy-based algorithms for real-time PI gain retuning. Additionally, we plan to validate the proposed strategy through hardware-in-the-loop (HIL) tests on high-voltage grids. These directions are expected to further enhance the practicality of our approach, offering grid operators improved tools for managing dynamic and large-scale renewable integrations with reduced risk of service interruption.
Author Contribution: All authors contributed equally to the main contributor to this paper. All authors read and approved the final paper.
Funding: This research received no external funding.
Conflicts of Interest: The authors declare no conflict of interest.
Appendix
A. System Data and Parameters
1. KC200GT Module Parameters
| Quantity | Value |
|---|---|
| 7.61 A | |
| 26.3 V | |
| 200.143 W | |
| 8.21 A | |
| 32.9 V | |
| 8.211 A | |
| Diode ideality | 1.3 |
| Parallel resistance | 415.406 |
| Series resistance | 0.221 |
2. SRG Parameters
3. STATCOM Data
| Rating | 48 kVA |
|---|---|
| Line resistance | 0.34 |
| Line reactance | 3.63 |
| DC-link capacitance | 250 |
B. STATCOM Modeling
The general mathematical model of the STATCOM can be expressed in terms of active power (), reactive power (), and STATCOM output voltage :
On the AC side, the first-order differential equations are:
When converted into the rotating (R–I) reference frame:
On the DC side, the voltage is governed by:
Ensuring power balance:
C. Elephant Herding Optimization Equations
Equations (9)-(12) detail how elephant positions are updated in EHO. In the main text (Section 3.6), you can reference “Appendix, Section C” for these derivations.
Where:
is the th elephant’s position in the th clan,
is a scaling factor in ,
is a uniform random variable in ,
is the matriarch’s scaling factor in ,
is the average position of the th clan, and
denotes the worst-positioned elephant for additional exploration.
References
Original publication: International Journal of Robotics and Control Systems. Copyright © 2025 The Authors. CC BY-SA 4.0. This reading version reformats the supplied article for browser presentation and converts TeX equations to MathML.
Publication information
Published: 2025-02-13