Journal of Robotics and Control (JRC) Volume 7. Issue 2. March 2026 ISSN: 2715-5072. DOI: 10. 18196/jrc. Optimized PI Control for Microgrid Power Management Using a Hybrid Spherical Vector PSOAeDifferential Evolution Method Veera Narasimha Murthy Mogilicharla1*. Sambasiva Rao2 Research Scholar. Department of Electrical & Electronics Engineering. University college of Engineering and Technology. Acharya Nagarjuna University. Guntur. Andhra Pradesh Professor. Department of Electrical & Electronics Engineering. & J. College of Engineering Chandramoulipuram. Chowdavaram. Guntur. Andhra Pradesh. India Email: 1 murthyeps@gmail. *Corresponding Author AbstractAi Microgrids play an essential role in supporting reliable and sustainable energy supply, yet their performance is strongly affected by the intermittency of renewable sources such as photovoltaic and wind systems. These variations introduce nonlinear dynamics that challenge conventional control strategies, particularly in maintaining stable activeAereactive power flow and DC-link voltage. This study addresses these challenges by optimizing the ProportionalAeIntegral (PI) controller used in a Voltage Source Converter within a hybrid PVAewindAebattery microgrid. The research contribution is the development and benchmarking of a hybrid Spherical Vector Particle Swarm Optimization and Differential Evolution (HSPSO-DE) method for PI tuning to improve dynamic response and overall microgrid performance. The microgrid incorporates standard Perturb-and-Observe MPPT for the PV subsystem and an adaptive P&O variant for wind energy to support improved power harvesting, while the battery system ensures loadAegeneration balance during fluctuations. Simulation analysis demonstrates that the HSPSO-DE-tuned PI controller achieves faster convergence, reduced steady-state error, and lower power oscillations when compared with GA. PSO, and GWO-based tuning. Total Harmonic Distortion results confirm improved power quality and enhanced operational stability. The findings establish the proposed hybrid optimizationAebased PI control as an effective solution for robust microgrid performance under dynamic and uncertain operating KeywordsAi Microgrid Control. PI Optimization. Hybrid PSO-DE. Renewable Energy Integration. Power Quality INTRODUCTION The growing demand for reliable, clean, and sustainable electricity has accelerated the adoption of microgrid systems. These localized energy networks, capable of operating either independently or in coordination with the main grid, play a crucial role in integrating distributed energy resources (DER. such as photovoltaic (PV) arrays, wind turbines, and battery energy storage systems (BESS) . However, the intermittent, nonlinear, and stochastic nature of renewable energy introduces significant challenges related to voltage stability, power quality, and coordinated energy management . Effective control strategies are therefore essential for stable microgrid operation. Among the available techniques, the ProportionalAeIntegral (PI) controller remains widely utilized due to its structural simplicity, ease of implementation, and proven reliability in converter-based PI controllers are commonly employed to regulate DC-link voltage, control active and reactive power flow in Voltage Source Converters (VSC. , and maintain overall system stability . Despite these advantages, conventionally tuned PI controllers often struggle under highly dynamic conditions typical of renewable-rich microgrids. Their fixed gain values cannot adequately adapt to rapid fluctuations in generation and load, resulting in increased steady-state error, slower settling times, and degraded transient performance . To address these limitations, numerous optimization techniques have been introduced to enhance PI controller Classical methods like Genetic Algorithm (GA). Particle Swarm Optimization (PSO), and Grey Wolf Optimizer (GWO) have shown promise in tuning PI parameters . The advancement of control strategies for hybrid microgrids has been a growing area of research due to the increasing integration of renewable energy sources. In . , a conventional PI control scheme was applied in a PV-based While the approach ensured basic stability, it lacked adaptability under dynamic load and weather conditions, resulting in performance degradation. Similarly, . explored the use of GA for tuning PI controllers in windintegrated systems, achieving improved stability but suffering from slow convergence and premature stagnation. In . PSO was applied for PI tuning in hybrid microgrids. Although it provided faster convergence compared to GA, it frequently fell into local optima in highly nonlinear In . presented an improved PSO for power flow control in microgrids, yet its performance was sensitive to the initial population, affecting repeatability. Differential Evolution (DE) was used in . to address convergence speed in PI tuning, but its performance deteriorated with an increase in dimensionality. In . , an Ant Colony Optimization (ACO)-based method improved the efficiency of microgrid control but required high computational resources and exhibited instability in real-time scenarios. Bat Algorithm for optimizing control parameters in . demonstrated improved voltage stability but lacked robustness against sudden disturbances. In . , a hybrid GAPSO was introduced to overcome the limitations of individual Journal Web site: http://journal. id/index. php/jrc Journal Email: jrc@umy. Journal of Robotics and Control (JRC) ISSN: 2715-5072 Though it offered better performance than standalone methods, it required complex parameter tuning and exhibited instability under fluctuating renewable inputs. Fuzzy Logic with PSO is used in . , which improved decision-making under uncertainty, but the fuzzy rule base design remained heuristic and unscalable. In . , a Grey Wolf Optimizer (GWO)-based PI controller showed robust performance in microgrid applications, but it suffered from poor exploitation ability near the global optimum. Whale Optimization Algorithm (WOA) was applied in . for MPPT and control parameter tuning, showing smooth convergence but poor response to rapidly changing input scenarios. Reference . used a Sine Cosine Algorithm (SCA) for parameter optimization, yet it showed limited exploration capability in higher-dimensional search spaces. An Improved Harmony Search Algorithm was implemented in . , which provided enhanced diversity but still required manual intervention for convergence control. In . Bacterial Foraging Optimization (BFO) improved accuracy in control tuning but was computationally expensive and slow in convergence. Firefly Algorithm (FA) was investigated in . , improving local search but lacking a mechanism for maintaining solution diversity. In . , a Jaya algorithm was applied for PI tuning in inverter-based microgrids, offering simplicity but lacking adaptive In . evaluated Seagull Optimization Algorithm (SOA) for voltage and frequency control. however, it faced convergence speed limitations under variable loads. In . , a Cuckoo Search Algorithm (CSA) was tested, which handled nonlinear constraints well but suffered from poor balance between exploration and exploitation. In . employed an Enhanced Teaching-Learning-Based Optimization (ETLBO), which showed improved learning ability but required high memory storage and frequent function In . introduced a hybrid PSO-DE method for power system control, but its effectiveness declined due to insufficient directional guidance in high-dimensional search Building on these efforts, . proposed a hybrid GWOAe DE scheme for microgrid voltage regulation, achieving better convergence but exhibiting high sensitivity to parameter In . , a modified WOAAePSO approach was applied for PI tuning, yet it struggled to maintain performance consistency across different loading conditions. A multiobjective GAAePSO framework in . considered both power quality and efficiency but introduced significant computational burden, limiting real-time applicability. , a hybrid CSAAeDE algorithm improved search capability but required complex control parameter calibration, making practical deployment challenging. An improved SCAAeGWO method was reported in . for inverter control. however, it showed oscillatory behavior under rapid irradiance In . , an adaptive fuzzyAeGA approach was used for microgrid power management, enhancing flexibility but depending heavily on expert-designed fuzzy rules. reinforcement learning-based PI tuning strategy in . demonstrated promising adaptability yet required large training datasets and extensive offline computation. In . , a neural network-based controller was proposed for microgrid stability, but its black-box nature and training complexity limited interpretability and robustness. A model predictive control scheme optimized by DE was introduced in . , offering strong dynamic performance but at the expense of high online computation. In . , a hybrid ACOAe PSO algorithm improved convergence diversity but remained vulnerable to premature stagnation in highly nonlinear operating regions. An improved BFOAePSO algorithm in . enhanced exploitation capability but suffered from slow initial In . , a harmony searchAeGWO hybrid method was employed for current control in inverters, yet its performance degraded significantly under parameter A hybrid TLBOAeDE algorithm in . provided good steady-state accuracy but displayed overshoot in transient conditions. In . , a gravitational search algorithm (GSA) was used for PI tuning, yielding acceptable results but struggling with population diversity in later iterations. memetic PSO variant in . attempted to integrate local search, but the additional complexity did not consistently translate to performance gains. In . , a shuffled frog leaping algorithm (SFLA) was applied to optimize microgrid controllers, achieving moderate improvement but incurring considerable iteration A hybrid FAAeGWO method in . improved voltage stability but required extensive trial-and-error for parameter setting. In . , a chaotic PSO variant was introduced to enhance exploration, though the chaotic maps complicated reproducibility and tuning. A multi-swarm PSO strategy in . improved robustness to local optima but increased communication and coordination complexity among swarms. In . , a biogeography-based optimization (BBO) approach was implemented for PI tuning, which provided diversity but had slow convergence in refined search stages. A hybrid PSOAeGWO approach was reported in . for DC-link voltage regulation, but it showed inconsistent performance under severe disturbances. In . , an improved JayaAeDE algorithm was proposed, which reduced parameter dependency but still lacked strong exploitation near the A salp swarm algorithm (SSA)-based controller in . displayed good tracking performance under nominal conditions yet deteriorated under large parameter In . , a grasshopper optimization algorithm (GOA) was applied to microgrid control, but its performance was highly sensitive to population size and control A marine predators algorithm-based scheme in . offered faster convergence but exhibited instability in low-inertia microgrids. In . , a hybrid PSOAeGSA method attempted to combine exploration and exploitation but faced difficulties balancing the two across different operating points. An improved DE variant using adaptive scaling factors in . enhanced convergence but required careful tuning to avoid divergence. In . , an equilibrium optimizer was used for PI tuning, showing potential yet lacking extensive validation under diverse scenarios. A hybrid CSAAeGWO algorithm in . improved constraint handling but suffered from computational complexity. In . , a metaheuristic based on Veera Narasimha Murthy Mogilicharla. Optimized PI Control for Microgrid Power Management Using a Hybrid Spherical Vector PSOAeDifferential Evolution Method Journal of Robotics and Control (JRC) ISSN: 2715-5072 moth-flame optimization was tested for microgrid applications, but it showed susceptibility to trap in local optima under nonlinear disturbances. More recently, . employed a tunicate swarm algorithm for inverter control, exhibiting competitive performance but high parameter sensitivity. In . , a hybrid SSAAeFA optimization technique was proposed, yet its gains over simpler methods were marginal considering the added A physics-inspired optimization approach in . provided good theoretical properties but lacked demonstration in realistic, large-scale microgrids. In . , a hybrid multi-objective evolutionary algorithm addressed power quality and economic dispatch simultaneously, though it was computationally intensive and difficult to implement in real time. Finally, . introduced a cooperative coevolution framework for controller tuning, which improved modularity but required problem-specific decomposition Collectively, these studies indicate that while a wide variety of metaheuristic and hybrid algorithms have been applied to microgrid PI tuning, many still suffer from issues such as premature convergence, parameter sensitivity, computational burden, limited scalability, and difficulties in balancing exploration and exploitation. These persistent challenges motivate the need for more geometry-aware, robust, and computationally efficient optimization frameworks such as the proposed HSPSO-DE. Existing studies on optimization-based PI tuning consistently reveal several unresolved limitations that hinder reliable microgrid operation under dynamic conditions. Many algorithms suffer from premature convergence, insufficient adaptability to nonlinear system variations, slow convergence rates, or extensive parameter tuning requirements. These issues become more pronounced in hybrid microgrids, where the variability of photovoltaic and wind energy sources demands fast, robust, and adaptive control strategies to maintain stable voltage, frequency, and power quality in the presence of uncertainty. Consequently, a more capable optimization framework is required to ensure reliable controller performance in such complex environments. The proposed Hybrid Spherical Vector Particle Swarm OptimizationAeDifferential Evolution (HSPSO-DE) algorithm offers a new direction for enhanced PI controller tuning. key theoretical advancement lies in the adoption of spherical vector representation within the PSO component. Unlike conventional Cartesian PSO, which restricts particles to axisaligned movement and often collapses directional diversity, the spherical-vector formulation decomposes particle motion into independent magnitude and angular components. This geometric interpretation enables richer directional exploration, superior boundary handling, and improved capability to escape local optima. Such properties are essential for high-dimensional optimization problems like simultaneous tuning of multiple PI parameters in converterdriven microgrids. By maintaining search diversity while moderating step-size sensitivity, spherical-vector PSO provides a more suitable search landscape for the nonlinear, multi-parameter control problem considered in this study. Complementing this. Differential Evolution contributes strong exploitation capability through differential mutation and crossover, enabling precise local refinement once promising regions of the search space are identified. The hybrid integration of SVPSO and DE allows the algorithm to capitalize on their complementary strengths: SVPSO drives global exploration and avoids premature convergence, while DE accelerates local convergence and enhances fine-tuning This synergy yields a balanced globalAelocal search mechanism that is particularly effective for tuning PI controllers under fluctuating renewable inputs. The HSPSODE framework is applied to a PVAeWindAeBattery hybrid microgrid, where PI controllers regulate DC-link voltage and activeAereactive power flow in the Voltage Source Converter. Standard Perturb and Observe (P&O) MPPT is used for the PV subsystem, whereas an adaptive P&O technique enhances wind energy extraction. however, these MPPT algorithms serve only as supporting components and are not claimed as novel contributions. The battery system dynamically manages chargeAedischarge behavior to maintain supplyAe demand balance, ensuring stable operation under varying environmental conditions. To validate the proposed approach, extensive MATLAB/Simulink benchmarking HSPSO-DE against established techniques such as GA. PSO, and GWO. Performance metricsAi including transient response characteristics, steady-state error, power fluctuations, and Total Harmonic Distortion (THD)Aiare analyzed to demonstrate the algorithmAos Results consistently show that HSPSO-DE achieves faster convergence, reduced steady-state error, improved dynamic stability, and superior power quality relative to competing methods. These outcomes confirm the algorithmAos suitability for real-time control in renewable-rich The main contributions of this work can be summarized as follows: A Development of a hybrid HSPSO-DE algorithm tailored for high-dimensional PI controller tuning using sphericalvector geometry. A Integration of P&O and adaptive P&O strategies to support stable renewable energy extraction. A Comprehensive benchmarking against widely used optimization techniques. A Demonstrated improvement in microgrid power quality and stability through THD minimization and enhanced transient response. The remainder of the paper is organized as follows: Section 2 introduces the hybrid DC microgrid system. Section 3 presents the modeling of individual energy sources. Section 4 details the HSPSO-DE algorithm. Section 5 provides simulation results and discussion. and Section 6 concludes the work with future research directions. Veera Narasimha Murthy Mogilicharla. Optimized PI Control for Microgrid Power Management Using a Hybrid Spherical Vector PSOAeDifferential Evolution Method Journal of Robotics and Control (JRC) ISSN: 2715-5072 Fig. Hybrid DG system design II. HYBRID DG SYSTEM (HDGS) Figure 1 shows the hybrid system, which integrates a PVWind-Battery configuration. The microgrid system integrates a WT. PV system, and a battery storage unit, all interconnected to aid efficient energy flow from the DC bus to the utility grid. The PV system is linked to the DC bus via a DC-DC converter that operates under MPPT control to maximize energy extraction from solar irradiance. Similarly, the WT is connected to the DC bus via a rectifier followed by a DC-DC converter, both controlled by an MPPT algorithm to optimize wind energy capture. The battery storage unit is linked to the DC bus through a bidirectional DC-DC converter, enabling it to either store surplus energy or supply power back to the system based on demand. The overall power flow and energy management of this hybrid systemAi comprising PV, wind, and batteryAiare determined by the microgridAos operational mode, particularly when operating in grid-connected mode. In grid-connected mode, the system actively regulates the delivery of active and reactive power to match predefined reference values. This is accomplished through a Voltage Source Inverter (VSI), which interfaces the DC microgrid with the AC utility grid. The VSI is controlled using sinusoidal pulse width modulation (SPWM), ensuring highquality voltage and current waveforms. To accommodate fluctuating load demands, the control strategy dynamically adjusts power contributions from the grid and distributed energy sources. Ensuring reliable and continuous distribution of active and reactive power requires a well-coordinated power-sharing strategy among the PV system, wind turbine, battery storage, and grid components. A key factor for system stability is maintaining power balance at two levels: the DC link, where all generation units are interconnected, and the point of common coupling (PCC) with the grid. Maintaining this balance is crucial for the seamless operation and integration of DG units with the main power system. The total DC power supplied by the combined RES must equal the power demanded by the inverter and the load, forming the foundation for real-time energy management within the microgrid. This relationship is expressed as: ycEyccyca . = ycEycOycN . ycEycEycO . ycEyaAycayc . ycEycOycN : wind generated power, ycEycEycO : PV generated power, ycEycaycayc : terminal power of the battery, ycEyccyca : power available at DC bus. The total power generated by the RES is calculated using Equation . and integrated into the overall power flow framework of the microgrid. This ensures precise accounting of the contributions from the PV system, wind turbine, and battery storage. Power balance is maintained by comparing the total output from the hybrid sources with the load demand at the AC bus, enabling effective coordination and ensuring stable operation of the microgrid system. ycEyci . = . cEyco . Oe ycEEaycyceyc . ] . ycEyco . = . cEEaycyceyc . ycEyci . ] . ycEyci . = . cEyco . Oe ycEEaycyceyc . ] . ycEyco . = . cEEaycyceyc . ycEyci . ] . ycEyci and ycEyci : Active and Reactive powers delivered by the grid, ycEyco and ycEyco : Active and Reactive power consumed by the load, ycEEaycyceyc and ycEEaycyceyc : generated active and reactive power by the HDGS. Battery power in the storage system varies depending on the duration of its discharge . upplying energ. and charge . toring energ. Maintaining a stable power balance is challenging due to the unpredictable nature of RES and fluctuating consumer demand. To manage this effectively, a high-performance control strategy is required to regulate power efficiently. Active and reactive power in the system are calculated using the direct . -axi. and quadrature . -axi. components of voltage and current. ycEya . = . cycc O ycnycc ycyc O ycnyc ] ycEya . = . cyc O ycnycc ycycc O ycnyc ] . Veera Narasimha Murthy Mogilicharla. Optimized PI Control for Microgrid Power Management Using a Hybrid Spherical Vector PSOAeDifferential Evolution Method Journal of Robotics and Control (JRC) i. ISSN: 2715-5072 MICROGRID CONTROL SYSTEM PV Array Figure 2 shows a simplified circuit model of a solar panel. In this model, the PV cell is represented as an ideal current source, yaycyEa , combined with series and parallel resistances to capture real-world characteristics. The output current of the solar cell is given by . ya = yaycyEa Oe yaycc Here. I represent the output current from the PV panel. Iph is the photon-generated current, and Id is the diode current. According to semiconductor theory, the current-voltage (I-V) characteristics of a PV cell are described by the Shockley diode equation . yaycc = yayc . ceycuycy ( ycycOycuyca ycAyc yayaycNycu ) Oe . maintain a stable output voltage and maximize power generation, a DC-DC converter is employed. Figure 3 highlights the importance of aligning the PV voltage with the maximum power point voltage . cOycoycyycy ) to extract the highest possible power from the PV arrays. To accomplish this, the system employs the Perturb and Observe (P&O) MPPT This algorithm continuously adjusts the duty cycle of the DC-DC converter to maintain the PV voltage at ycOycoycyycy , ensuring optimal power output. Figure 4 shows the configuration of the DC-DC converter used in the PV system. By substituting Equation . into Equation . , the final expression for the PV output current is derived as . yaycc = yaycyEa Oe yayc . ceycuycy ( ycycOycuyca ycAyc yayaycNycu ) Oe . yayc is the diode saturation current, q is the electron charge, ycOycuyca is the open-circuit voltage, ycAyc represents the number of series-connected cells in the module. K is BoltzmannAos constant, and ycNycu is the nominal cell temperature in Kelvin. Fig. PV system with boost converter PMSG and Wind Turbine The output power from a WT, ycEyui , is taken by the following equation . ycEyui = yuUyayaycy . uI, y. ycOyui3 . Here, yuU is the air density, ya is the swept area of the turbine blades, ycOyui is the wind speed, yuI is the tip speed ratio, and yu is the blade pitch angle. The tip speed ratio yuI is estimated as: yuI= yui ycOyui Fig. Equivalent circuit of real model for PV panel where yc is the blade radius and yui is the angular speed of the rotor. The mechanical power generated by the WT can be optimized by adjusting the tip speed ratio () and the pitch angle (). For a given pitch angle, there is a specific tip speed ratio that maximizes the power coefficient yaycy , known as yaycy,ycuycyyc . This optimal condition is achieved when yu = 0 and the turbine operates at the optimal tip speed ratio yuIycuycyyc . The electrical power generated by the wind turbine is harnessed using a Permanent Magnet Synchronous Generator (PMSG) connected to a diode bridge rectifier. The rectified output is then regulated using a DC-DC boost converter, which is controlled by a MPPT algorithm. To enhance system performance and tracking speed, an adaptive version of the P&O MPPT algorithm is employed . This adaptive method dynamically adjusts the step size based on variations in rotor speed and inertia. Fig. I-V and P-V characteristics of PV Array PV power output is highly sensitive to variations in weather conditions such as irradiance and temperature. The optimal rotor speed yuiycuycyycyco is assessed by: yuiycuycyyc_yco = ycuycyyc yc Veera Narasimha Murthy Mogilicharla. Optimized PI Control for Microgrid Power Management Using a Hybrid Spherical Vector PSOAeDifferential Evolution Method Journal of Robotics and Control (JRC) ISSN: 2715-5072 Instead, it can be stated relative to a base wind speed yuaycaycaycyce and corresponding base rotor speed yuiycaycaycyceyco : yuiycuycyyc_ycoycy = yuiycaycaycyce_yco yuayc yuaycaycaycyce If the actual rotor speed yuiyco deviates from the optimal value, the control system adjusts it by an adaptive ratio ycIycayccycy , determined as: yuiycuycyyc_ycoycy Oeyuiyco ycIycayccycy = yaycyyceyc ( yuiycuycyyc_ycoycy . Here, yaycyyceyc is a perturbation constant used to fine-tune the rotor speed. Once the desired rotor speed is regulated, a PI controller generates the reference torque yuaycuycyycyco : yuaycuycyycyco = yaycy1 . Oe yuiyco . ) yaycn1 O . ) yccyc This reference torque is used to compute the reference input current yaycycyceyce for the DC-DC converter: yaycycyceyce = yuaycuycyyc_yco yuiyco ycOyccycayc The converterAos duty cycle yccyc is then assessed by another PI controller: yccyc = yaycy2 . aycOycyceyce . Oe yaycO . ) yaycn2 O . aycOycyceyce . yaycO . ) yccyc The bidirectional converter of the BESS regulates the voltage across the DC bus . The DC bus voltage is used as feedback and compared with a reference DC voltage to generate a reference DC current. As showed in Figure 6, the PICE controller generates the battery reference current, yaycaycaycycyceyce as follows: yaycaycaycycyceyce = yaycy3 . cOycaycaycycyceyce . Oe ycOyccycaycaycayc . ) yaycn3 O . cOycaycaycycyceyce . Oe ycOyccycaycaycayc . ) yccyc yaycy3 and yaycn3 are gains of PI regulator, ycOycaycaycycyceyce reference value and ycOyccycaycaycayc real value of battery voltage, ycEya4 controller generates duty cycle given as yccycaycayc = yaycy4 . Oe yaycaycayc . ) yaycn4 O . ) yccyc yaycy4 and yaycn4 are gains of PI regulator, yaycaycaycycyceyce reference value and yaycaycayc real value of battery current. Inverter controlling Figure 7 presents the controlling approach of the inverter. To ensure accurate control of active and reactive power within the system, 2 PI controllers are applied to the reference current signals. These controllers are defined by the following equations . Reference direct-axis current: ycnyccycyceyce = yaycy5 . cEycyceyce . Oe ycE. ) yaycn5 O . cEycyceyce . ) yccyc Reference quadrature-axis current: ycnycycyceyce = yaycy6 . cEycyceyce . Oe ycE. ) yaycn6 O . cEycyceyce . ) yccyc Fig. Wind generation system with boost converter The duty cycle is used to control the IGBT switch in the DC-DC converter. Figure 5 presents the complete wind energy system, comprising the PMSG, diode rectifier. MPPT-controlled DC-DC converter, and associated control Battery energy storage system (BESS) Here, ycEycyceyce and ycEycyceyce are the reference active and reactive power values, while ycE and ycE are the actual values. yaycy5 , yaycn5 , yaycy6 ycaycuycc yaycn6 are the PI controller gains. The outputs of these controllers generate the required reference currents for the inverter, enabling precise power tracking and minimizing current ripple. To further improve system performance, two additional PI controllers are employed to correct any discrepancies between the reference and actual inverter currents. These control loops incorporate feedback from the inverter current and feedforward from the grid voltage, enhancing both steady-state accuracy and dynamic response. The voltage reference vectors are stated as: Direct-axis voltage reference: ycyccycyceyce = yaycy7 . Oe ycnycc . ) yaycn7 O . ) yccyc Quadrature-axis voltage reference: Fig. BESS with DC-DC converter Veera Narasimha Murthy Mogilicharla. Optimized PI Control for Microgrid Power Management Using a Hybrid Spherical Vector PSOAeDifferential Evolution Method Journal of Robotics and Control (JRC) ISSN: 2715-5072 Fig. Controlling approach of the Inverter ycycycyceyce = yaycy8 . Oe ycnyc . ) yaycn8 O . ) yccyc Here, ycnycc and ycnyc represent the actual direct and quadrature axis currents, respectively, while yaycy7 , yaycn7 , yaycy8 ycaycuycc yaycn8 are the proportional and integral gains of the respective PI The resulting reference voltages are fed into the PWM system, which generates the inverterAos switching This process minimizes harmonic distortion and ensures stable, efficient system operation. In grid-connected mode, the hybrid distributed generation system (HDGS) adjusts the inverter currentAos magnitude and phase to deliver the required active and reactive power to the This is accomplished using a control strategy centred on frequency and voltage regulation. HDGS performance is assessed by analyzing the outputs of the PV array, wind turbine, and battery storage. Central to stable and efficient operation is the precise tuning of PI controllers, which regulate critical process variables throughout the system. To automate and enhance PI controller tuning, heuristic optimization algorithms are utilized. These algorithms search for optimal combinations of controller gains by minimizing performance criteria such as the Integral of Time-weighted Absolute Error (ITAE) . , overshoot, and settling time. The success of this approach relies on clearly defining the objective function based on control system goals and carefully selecting key optimization parameters such as population size and mutation rate. Conducting multiple optimizations runs helps ensure the robustness and reliability of the resulting controller settings. Design optimization seeks to identify the optimal configuration by minimizing an objective function, adjusting design variables, and satisfying defined constraints. When multiple objectives are present, the task becomes a multiobjective optimization problem, which is more complex than single-objective cases due to the need to balance potentially conflicting goals. To address this complexity, multi-objective optimization methodsAisuch as the weighted-sum techniqueAiconvert several objectives into a single composite function. Each individual objective is assigned a weight and combined according to: yaycuycaycyceycaycycnycyce = yca1 ya1 yca2 ya2 U ycaycu yaycu Here yca1 , yca2 A , ycaycu , are the weights assigned to each When these weights lie between 0 and 1 and sum to one, they create a convex combination, enabling exploration of various optimal points along the Pareto front. In this study. PI controller tuning is simplified to a singleobjective problem that minimizes ITAE, yielding the following objective function: yaycuycaycyceycaycycnycyce = yca1 yaycNyaya1 yca2 yaycNyaya2 U ycaycu yaycNyayaycu This method enhances the systemAos dynamic response and overall control performance. To achieve optimal tuning, the GWO algorithm is employed due to its proven effectiveness in solving complex, multi-parameter optimization problems. The objective is to optimize the gains of eight PI controllers utilized within the system. Two of these controllers govern the boost converter in the wind generation unit, another two manage the bidirectional converter for the battery system, and the remaining four control the DC-AC converter. These controllers play a vital role in regulating active and reactive power flow as well as stabilizing both DC and AC voltage The optimization focuses on tuning the proportional gains . aycy1 to yaycy8 ) and integral gains . aycn1 to yaycn8 ), ensuring the HDGS performs efficiently and reliably across diverse load and generation scenarios. IV. PROPOSED HYBRID SPSO-DE ALGORITHM FOR PI CONTROL OPTIMIZATION Optimization algorithms play a pivotal role in tuning PI controller parameters for microgrids, where system stability, fast dynamic response, and robustness are essential under varying generation and load conditions. Among the numerous metaheuristic methods. Particle Swarm Optimization (PSO) and Differential Evolution (DE) have been widely used for control parameter tuning due to their simplicity and effectiveness. However, each algorithm has inherent limitations that restrict their performance when applied individually. To overcome these drawbacks, this study introduces a hybrid algorithm that integrates Spherical Vector-Based PSO (SPSO). with Differential Evolution (DE) . to enhance both global and local search This hybrid framework synergistically combines the global search capabilities of Spherical Particle Swarm Optimization (SPSO) with the local search refinement of Differential Evolution (DE) to improve convergence speed, accuracy, and robustness in high-dimensional parameter Particle Swarm Optimization (PSO) is a populationbased stochastic optimization technique inspired by the social behaviour of birds and fish. In PSO, each particle represents a potential solution and flies through the search space by Veera Narasimha Murthy Mogilicharla. Optimized PI Control for Microgrid Power Management Using a Hybrid Spherical Vector PSOAeDifferential Evolution Method Journal of Robotics and Control (JRC) ISSN: 2715-5072 adjusting its velocity and position based on its own best experience . ersonal bes. and the swarm's best experience . lobal bes. The velocity and position of each particle are updated using: ycycnyc 1 = yuiycycnyc yca1 yc1 . cyycnycayceycyc Oe ycuycnyc ) yca2 yc2 . ciycayceycyc Oe ycuycnyc ) . ycuycnyc 1 = ycuycnyc ycycnyc 1 where yui is the inertia weight, yca1 and yca2 are acceleration coefficients, and yc1 , yc2 are random numbers in the range . Although PSO offers good convergence in the early search stage, it often suffers from premature convergence, especially in complex or multimodal problem spaces. On the other hand. Differential Evolution (DE) is a robust and straightforward evolutionary algorithm designed for continuous optimization problems. It evolves a population by applying mutation, crossover, and selection operators. In the mutation step, a donor vector is generated by adding the weighted difference between two randomly selected individuals to a third one. Crossover then combines this donor vector with the current vector to produce a trial solution, and selection chooses the better of the two for the next generation. The standard mutation operation is expressed as: ycOycn = ycUyc1 ya. cUyc2 Oe ycUyc3 ) . where ycUyc1 , ycUyc2 , ycUyc3 are distinct individuals, and ya OO . , . is the mutation scaling factor. DE is known for its simplicity and strong global search capability. however, it may require a large number of generations to fine-tune parameters locally and is sensitive to the choice of control To harness the complementary strengths of both methods, this study proposes a Hybrid SPSO-DE algorithm. The foundation of this approach lies in enhancing the standard PSO by introducing spherical vector representation, allowing each particleAos position to be defined in spherical coordinatesAiradial distance . uU), polar angle . uO), and azimuthal angle . This spherical model enables better spatial exploration and prevents particles from converging prematurely along straight-line trajectories, which are common in Cartesian PSO. In the Spherical PSO (SPSO) component, the particles update their velocities and positions using spherical motion The update mechanism incorporates adaptive strategies for inertia weight and acceleration coefficients based on the current iteration and fitness performance. These adaptive parameters help balance exploration in the early stages and exploitation in later iterations. Furthermore, an additional acceleration term is included for particles that stagnate, boosting their ability to escape local optima. Once the SPSO phase completes its velocity and position updates, the algorithm transitions to the DE phase, where selected elite or stagnated particles undergo mutation, crossover, and selection. By applying DE locally to highpotential solutions, the algorithm refines their positions, effectively enhancing precision near optimal regions. The integration of DE ensures that particles do not become trapped in sub-optimal areas and introduces diversity into the swarm, maintaining a healthy search dynamic. To further improve convergence quality, the initial population in SPSO-DE is generated using a chaotic tent map with opposition-based learning (OBL). This dualinitialization approach ensures a well-dispersed and diverse set of solutions, reducing the likelihood of poor performance due to an ill-initialized swarm. Spherical Particle Representation Unlike traditional Cartesian-based PSO, the SPSO employs a spherical coordinate system to represent particles. Each particle yuNycnyc is encoded as a triplet . uUycnyc , yuOycnyc , yuoycnyc ), corresponding to radial distance, polar angle, and azimuthal angle, respectively. This representation is particularly advantageous for spherical problem spaces such as multivariable PI control surfaces in microgrids. The velocity update in SPSO is expressed as: iyuNycnyc 1 = yuiyc iyuNycnyc yca1yc yc1,ycn . cEycayceycyc,ycn Oe yuNycnyc ) yca2yc yc2,ycn . aycayceycyc Oe yuNycn ) ycaycn yuNycnyc 1 = yuNycnyc iyuNycnyc 1 Where yuiyc is inertia weight, adapted based on fitness variance, yca1yc , yca2yc is cognitive and social coefficients, dynamically modulated, yc1,ycn , yc2,ycn OO . are random numbers, ycaycnyc is additional acceleration applied when particles stagnate. The spherical positions are converted to Cartesian form for objective function evaluation: ycuycnycu = ycu. cnOe. ycu yuUycnOe1 cos yuOycnOe1 cos yuoycnOe1 ycuycnyc = ycu. cnOe. yc yuUycnOe1 cos yuOycnOe1 sin yuoycnOe1 ycuycnyc = ycu. cnOe. yc yuUycnOe1 sin yuOycnOe1 Adaptive Mechanisms To enhance dynamic control during optimization, adaptive mechanisms are introduced: Inertia weight yuiyc is updated based on a fitness accuracy parameter yceycaycyyc : yc yuiyc = yuiycoycaycu Oe . uiycoycaycu Oe yuiycoycnycu ). Learning factors yca1yc and yca2yc vary nonlinearly over time: ycu yc = sin ( yuU Oe ) . yca1 = ycaycoycaycu Oe . caycoycaycu Oe ycaycoycnycu )ycu yceycaycy . yca2yc = ycaycoycnycu . caycoycaycu Oe ycaycoycnycu )ycu yc yceycaycyyc Fig. Variation trends of learning factors during the iterative process Veera Narasimha Murthy Mogilicharla. Optimized PI Control for Microgrid Power Management Using a Hybrid Spherical Vector PSOAeDifferential Evolution Method Journal of Robotics and Control (JRC) ISSN: 2715-5072 These adaptations ensure a balanced trade-off between exploration and exploitation during the search process. Figure 8 presents variation trends of learning factors during the iterative process. Integration of Differential Evolution To overcome stagnation and refine local search, a Differential Evolution (DE) strategy is integrated into the SPSO framework, particularly targeting the elite and stagnated particles. This integration proceeds through three primary operations: Mutation: ycOycn = yuNyc1 ya. uNyc2 Oe yuNyc3 ) . Where yuNyc1 , yuNyc2 , yuNyc3 are distinct randomly selected particles, and ya OO . is the scaling factor. Crossover: ycOycn,yc , ycOycn,yc = { yuNycn,yc ycnyce ycycaycuyccyc O yaycI ycuyc yc = ycycycaycuycc ycuycEayceycycycnycyce . ycnyce yce. cOycn ) < yce. uNycn ) ycuycEayceycycycnycyce yueyuyc , yue. Oe yuyc ), ycnyce yuyc < 0. ycnyce yuyc Ou 0. yue1 yuyc . yc1 Oe . , 2yc2 Oe1 yue2 yc3 , . By embedding DE operations directly within the spherical framework, the proposed algorithm significantly improves the convergence behaviour, particularly in nonlinear PI optimization landscapes. Initialization Strategy To maximize initial diversity and search efficacy, a tent chaotic map with perturbation is employed during This is complemented with opposition-based learning (OBL), where both original and opposite solutions are generated, and the best among them is retained based on This dual-stage initialization ensures robust global coverage and avoids premature convergence. Enhanced Initialization Using Tent Map with Perturbation and Opposition-Based Learning In conventional metaheuristic algorithms, the initialization of the population typically relies on the use of the standard pseudo-random number generator function, such as rand(). While simple and computationally efficient, such randomization methods often fail to provide a uniformly diverse distribution across the search space. This limited diversity in the early stages can significantly affect the convergence speed and global search capability of the To overcome these shortcomings, the proposed hybrid SPSO-DE algorithm adopts a chaotic initialization technique based on the tent map, augmented with perturbation mechanisms, and further improved using opposition-based learning (OBL) . The tent map is a deterministic chaotic map that generates sequences within the interval . , . and is defined as follows: Here, yue is a control parameter that influences the chaotic behavior of the system and is typically chosen within the range . , . When yue = 2, the tent map reaches a fully chaotic regime, known as the central tent map, producing sequences with high randomness and coverage over . , . However, despite its chaos, the tent map may still suffer from small periodic cycles. For example, if yuyc OO . 2, 0. 4, 0. 6, 0. , the sequence can become trapped in a loop. Furthermore, when yuyc equals specific values like 0. 25, 0. 5, or 0. 75, the generated sequence may converge toward zero, leading to insufficient diversity in the initialized population as shown in figure 9. To address these limitations, a perturbation strategy is The modified tent map with perturbation applies random corrections to break periodic cycles and avoid fixedpoint convergence. The enhanced chaotic generator is defined as: yuyc 1 = yceyue . uyc ) = { yue1 . Oe yuyc ) Where yaycI is the crossover probability Selection: ycO, yuNycnyc 1 = { ycn yuNycn , yuyc 1 = yceyue . uyc ) = { 0 < yuyc < 0. 5 < yuyc < 1 ycuycEayceycycycnycyce . In this formulation, yc1 , yc2 , yc3 are uniformly distributed random numbers in . , . generated using ycycaycuycc(), while yue1 and yue2 are constants typically set to 2 and 100, respectively. These additional random perturbations ensure the generation of more scattered and non-repetitive values, thus promoting greater initial diversity and enhancing the exploration capability of the algorithm. Fig. Tent map under different parameters. Once the chaotic sequence yu is generated using the perturbed tent map, it is mapped to the problemAos decision space to initialize the search agents. For a search space defined by lower and upper bounds ycoycaycn and ycycaycn , the initial position of each agent is calculated as: ycUyc,ycn = ycoycaycn . cycaycn Oe ycoycaycn ). where yc denotes the yc-th particle and ycn denotes the ycn-th dimension of the problem. This transformation ensures that all initialized particles are uniformly distributed within their respective search space limits. Veera Narasimha Murthy Mogilicharla. Optimized PI Control for Microgrid Power Management Using a Hybrid Spherical Vector PSOAeDifferential Evolution Method Journal of Robotics and Control (JRC) ISSN: 2715-5072 To further improve the initialization quality and accelerate convergence, the method incorporates OppositionBased Learning (OBL). Instead of relying solely on the current solution. OBL simultaneously generates an opposite solution for each agent. The opposite solution for each dimension is calculated using: ycUyc,ycn = ycoycaycn ycycaycn Oe ycuyc,ycn Similarly. Figure 10. shows the DC-link voltage regulation, confirming that HSPSO-DE maintains tighter voltage control throughout transient disturbances. Table 2 provides a summary of the optimized PI gains, while Table 3 presents the comparative performance indices, clearly showing that the proposed hybrid optimization method outperforms the conventional algorithms reported in the literature. TABLE I. PARAMETERS OF THE HYBRID DG SYSTEM This approach doubles the candidate pool by producing both an initial solution and its corresponding opposite, forming a combined set of 2yca agents, where yca is the number of particles in the population. These 2yca agents are evaluated based on the objective function, and the top yca solutions with the best fitness values are retained as the final initialized By integrating chaotic initialization with perturbation and OBL, the proposed strategy significantly enhances the diversity, uniformity, and coverage of the initial search space. This diverse initial population helps the SPSO-DE algorithm avoids premature convergence and local optima while accelerating the convergence rate. The dual-layer randomness introduced by chaotic dynamics and the balance offered by opposition-based reflection together ensure a strong foundation for the algorithmAos subsequent optimization phases. Algorithm Summary The SPSO-DE algorithm proceeds as follows: Initialize particles using chaotic tent map and OBL. Evaluate objective fitness For each iteration: A Update inertia and learning factors adaptively. A Update particle positions using SPSO equations. A Apply DE operations to elite or stagnated particles. A Evaluate and select best solutions. A Update personal and global best positions. Terminate upon convergence or maximum iterations. SIMULATION RESULTS This section presents the simulation results used to evaluate the effectiveness of the proposed Hybrid Spherical Vector Particle Swarm OptimizationAeDifferential Evolution (HSPSO-DE) control strategy. All simulations were performed in MATLAB/Simulink, with the system parameters summarized in Table 1. To objectively assess performance. HSPSO-DE is benchmarked against three widely adopted optimization techniques: Genetic Algorithm (GA) . Particle Swarm Optimization (PSO) . , and Grey Wolf Optimizer (GWO) . The control architecture described in Section 3 is applied to the microgrid configuration shown in Figure 1, and the PI controller gains optimized by each algorithm are listed in Table 2. The systemAos dynamic response is evaluated under three representative operating conditions: . variations in irradiance, temperature, and wind speed. step changes in reference power. fluctuations in load demand. Figure 10. illustrates the active power tracking performance, where HSPSO-DE demonstrates noticeably faster response and reduced tracking error compared to GA. PSO, and GWO. Parameter Value PV Array Manufacturer and Model Open Circuit Voltage . cOycuyca ) Short Circuit Current . aycyca ) Maximum power point voltage . cOycoycyycy ) Maximum power point current aycoycyycy ) Series-connected modules per Parallel strings LG. LG350N2W-B3 PMSG Stator Resistance Stator Inductance Torque Constant Inertia 8121 AAH Wind Turbine Mechanical output power Base wind speed Rotor diameter Swept rotor area 150 kW 11 m/s 480 m2 Battery Nominal voltage Rated capacity Grid 11 kV, 50 Hz Case 1: Analysis of Irradiance. Temperature, and Wind Speed Variations Case 1 examines the dynamic behavior of the proposed HSPSO-DEAebased PI control strategy under fluctuating environmental conditions. Since real-world microgrids frequently operate under unpredictable solar and wind patterns, this scenario provides a realistic assessment of the systemAos capability to maintain stability, power balance, and power quality. MATLAB/Simulink is used to simulate a 20second operating period during which irradiance, temperature, and wind speed are deliberately varied to introduce nonlinearity and stress the hybrid renewable energy The irradiance and temperature profiles used in the simulation are shown in Figure 11. These conditions are intentionally chosen to represent typical daytime variations that a microgrid may encounter. From 0 to 4 seconds, solar irradiance is maintained at a low value of 200 W/mA with a temperature of 30AC, representing early morning conditions. Between 4 and 8 seconds, irradiance gradually increases to 400 W/mA and temperature rises to 32AC. A further increase is introduced between 8 and 12 seconds, where irradiance reaches 600 W/mA and temperature rises to 34AC. From 12 to 20 seconds, the irradiance profile progresses through 800 W/mA at 36AC until it reaches a peak of 1000 W/mA at 38AC. These meticulously constructed test intervals introduce nonlinear changes that challenge the systemAos ability to track the maximum power point and regulate converter outputs Veera Narasimha Murthy Mogilicharla. Optimized PI Control for Microgrid Power Management Using a Hybrid Spherical Vector PSOAeDifferential Evolution Method Journal of Robotics and Control (JRC) ISSN: 2715-5072 Simultaneously, wind speed variations are applied to stress-test the wind energy conversion system. The wind profile begins at 8 m/s from 0 to 3 seconds, followed by an increase to 9 m/s between 3 and 6 seconds. Wind speed further increases to 10 m/s during 6Ae8 seconds and then reaches 11 m/s between 8 and 12 seconds. The peak speed of 12 m/s is applied from 12 to 15 seconds. Afterward, wind speed decreases to 10 m/s between 15 and 18 seconds and drops to 8 m/s at the end of the simulation. These variations closely emulate real atmospheric patterns and allow assessment of the systemAos response to both rising and falling wind levels. Fig. Irradiance, temperature input to the PV system and wind speed input to the wind generation system . generated power from PV, wind and terminal power of the battery . Fig. power tracking performance . DC bus voltage tracking Figure 11. presents the corresponding PV and wind power generation curves. As expected. PV power increases as irradiance intensifies and temperature rises. The MPPT algorithm ensures that the PV system tracks the changing maximum power point effectively, resulting in a smooth upward trend in power output. Similarly, wind power is strongly correlated with wind speed, demonstrating increased generation during peak wind periods and reductions as wind speed declines. The close alignment between environmental profiles and generation curves confirms that both renewable subsystems operate reliably under fluctuating conditions. The battery energy storage system (BESS) plays a critical stabilizing role in this hybrid architecture. During the early portion of the simulation . Ae8 second. , renewable generation is insufficient to satisfy the power demanded by the Voltage Source Converter (VSC). As a result, the battery discharges to compensate for the deficit. This behavior is reflected as positive battery power values, indicating energy flow from the battery into the DC link. As irradiance and wind speed progressively increases beyond 8 seconds, the renewable power surpasses the VSCAos reference requirements, and the battery shifts into charging mode. The negative power values recorded during this period reflect energy absorption by the BESS. Veera Narasimha Murthy Mogilicharla. Optimized PI Control for Microgrid Power Management Using a Hybrid Spherical Vector PSOAeDifferential Evolution Method Journal of Robotics and Control (JRC) ISSN: 2715-5072 TABLE II. OPTIMIZED PI CONTROLLER GAINS OBTAINED USING THE PROPOSED ALGORITHM AND OTHER COMPARATIVE OPTIMIZATION TECHNIQUES. Algorithm ycyecya , ycyeOya ycyecya , ycyeOya ycyecyc , ycyeOyc ycyecye , ycyeOye ycyecye , ycyeOye ycyecyi , ycyeOyi ycyecyi , ycyeOyi ycyecyn , ycyeOyn Proposed HSPSO-DE GWO PSO TABLE i. PERFORMANCE INDICES COMPARISON Algorithm Proposed HSPSODE GWO PSO DC Bus Voltage Active Power Reactive Power IAE ISE ITAE ITSE IAE ISE ITAE ITSE IAE ISE ITAE ITSE Figure 14 shows the evolution of battery State of Charge (SOC), capturing these transitions clearly. SOC decreases during early discharging periods and gradually increases when charging begins, demonstrating the batteryAos successful contribution to system balancing. The VSC is responsible for maintaining regulated active and reactive power outputs at the AC side of the microgrid. For this case, the VSC reference values are fixed at 150 kW . and 100 kVAR . , as illustrated in Figure 12. Maintaining these values is essential for ensuring stable power delivery. Despite the fluctuating generation from PV and wind and the varying charging/discharging behavior of the battery. Figure 12. confirms that the VSC successfully tracks these reference values throughout the full 20-second period. This performance directly demonstrates the effectiveness of the HSPSO-DEAeoptimized PI controller, whose optimized gains allow rapid transient response and robust tracking capability under disturbances. While the VSC contributes a significant portion of the load demand, it does not supply the entire microgrid requirement. The total load connected during this case requires 250 kW of active power and 120 kVAR of reactive power. Since the VSC provides only its 150 kW and 100 kVAR reference values, the remaining imbalance is compensated by importing power from the utility grid. Figure 13. shows the active and reactive power drawn from the grid, confirming smooth transitions between grid import levels as renewable supply and battery charging conditions evolve. The absence of sharp variations or instability indicates that the proposed control method successfully coordinates renewable generation, battery assistance, and grid support. Maintaining a stable DC link voltage is crucial for proper converter operation and overall microgrid stability. Figure 13. compares the actual DC link voltage with its reference Despite the substantial fluctuations in generation and battery behavior, the proposed scheme maintains tight voltage regulation throughout the simulation. This demonstrates the robustness of the HSPSO-DEAeoptimized PI controller in handling nonlinearities and disturbance-induced voltage deviations. Beyond stability and power balancing, power quality remains an essential evaluation metric. Figures 15. Ae15. present the Total Harmonic Distortion (THD) levels of the load current. VSC current, and grid current. The THD values measuredAi1. 99% for the load current, 1. 94% for VSC current, and 1. 28% for grid currentAiare significantly lower than the Ie 519 standard limits. These results confirm that the proposed method not only stabilizes power flows but also ensures high-quality waveforms under dynamic operation. Veera Narasimha Murthy Mogilicharla. Optimized PI Control for Microgrid Power Management Using a Hybrid Spherical Vector PSOAeDifferential Evolution Method Journal of Robotics and Control (JRC) ISSN: 2715-5072 Fig. State of charge of the battery in % . Fig. Reference and actual active and reactive power converted by the VSC . Load active and reactive powers . Fig. load current . VSC current and . grid current THDs . Fig. Active and reactive powers provided by the grid . DC Link Voltage Case 2: Analysis of reference active and reactive power This simulation case is designed to evaluate the dynamic response and effectiveness of the HSPSO-DE-optimized PI controller in managing variations in the reference active and reactive power inputs to the Voltage Source Converter (VSC), under constant environmental conditions. maintaining fixed irradiance and wind speed, the influence of renewable energy fluctuations is eliminated, allowing the performance of the control system to be assessed solely based on its response to deliberate reference signal changes. Veera Narasimha Murthy Mogilicharla. Optimized PI Control for Microgrid Power Management Using a Hybrid Spherical Vector PSOAeDifferential Evolution Method Journal of Robotics and Control (JRC) ISSN: 2715-5072 In this scenario, the irradiance is held constant at 800 W/mA, and the wind speed remains steady at 11 m/s throughout the 20-second simulation period. These conditions, depicted in Figure 16. , ensure that the power output from both the photovoltaic (PV) array and the wind turbine remains stable. This steady renewable generation enables a clear evaluation of how effectively the battery energy storage system and the VSC respond to step changes in the power demand set points. Figure 16. presents the power outputs from the PV and wind systems along with the batteryAos contribution. Since the renewable energy inputs are constant, the battery dynamically adjusts its operationAiswitching between charging and dischargingAito compensate for the difference between the fixed renewable supply and the varying VSC power reference values. The reference values for active and reactive power are altered in multiple steps during the simulation to assess controller performance under a range of load conditions. The sequence of changes is as follows: A 0Ae3 seconds: 60 kW active power and 30 kVAR reactive power. A 3Ae6 seconds: 150 kW and 150 kVAR. A 6Ae9 seconds: 220 kW and 200 kVAR. A 9Ae12 seconds: 350 kW and 320 kVAR. A 12Ae15 seconds: 400 kW and 160 kVAR. A 15Ae18 seconds: 200 kW and 150 kVAR. A 18Ae20 seconds: 100 kW and 40 kVAR. These changes simulate different operational demands, reflecting the dynamic load profiles that a microgrid controller must handle in real-time applications. Fig. Irradiance, temperature input to the PV system and wind speed input to the wind generation system . generated power from PV, wind and terminal power of the battery When the reference power values are lower than the available renewable energy . , from 0Ae6 seconds and after 18 second. , the surplus energy is directed to the battery storage, resulting in charging behavior. Conversely, during periods where the reference power exceeds the combined renewable generationAiparticularly between 6 and 18 secondsAithe battery transitions into discharging mode, supplying the deficit. This transition between modes is smooth and well-regulated, showcasing the adaptability of the proposed HSPSO-DE-based control strategy. Figure 17. illustrates the actual versus reference active and reactive power delivered by the VSC. The response shows a close match between the actual and target values, indicating precise tracking performance of the controller. The ability of the PI controller, tuned using the HSPSO-DE algorithm, to follow rapid step changes in power demand with minimal overshoot and steady-state error underlines the robustness of the optimization approach. Figure 17. highlights the load demand, which remains within a fixed range. Since the VSC output sometimes exceeds the load requirement, the surplus power is exported to the utility grid. Figure 18. illustrates this back-feed to the grid, confirming that the system can not only meet internal power requirements but also effectively manage excess energy by exporting itAian important aspect for gridconnected microgrids aiming at bidirectional power flow . Veera Narasimha Murthy Mogilicharla. Optimized PI Control for Microgrid Power Management Using a Hybrid Spherical Vector PSOAeDifferential Evolution Method Journal of Robotics and Control (JRC) ISSN: 2715-5072 effectively smoothing power imbalances and the VSC achieving high-fidelity tracking of the reference values. Moreover, the systemAos ability to export excess energy to the grid and maintain stable battery operation further highlights the intelligence and efficiency of the proposed control These results reinforce the potential of the HSPSO-DE algorithm in ensuring optimal and reliable microgrid operation under dynamic load conditions. Fig. Reference and actual active and reactive power converted by the VSC . Load active and reactive powers The batteryAos State of Charge (SOC), as shown in Figure 18. , reflects the dynamic balance of power in the system. Between 6 and 18 secondsAiwhen the system experiences a power shortfallAithe battery discharges to meet the high reference demands, causing the SOC to decrease. In contrast, during intervals of power surplus, the battery enters charging mode, leading to an increase in SOC. This pattern confirms that the energy storage system is being utilized efficiently and is essential for buffering the system during periods of power In summary. Case 2 clearly demonstrates the capability of the HSPSO-DE-tuned PI controller to adapt to abrupt variations in power reference values. By maintaining constant environmental conditions, the effectiveness of the proposed control strategy in managing internal energy flow is isolated and validated. The system responds reliably to changes in power demand, with the battery storage . Fig. Active and reactive powers provided by the grid . SOC of the battery in % Case 3: Analysis of Load Variation and System Response This simulation scenario explores the response of the proposed hybrid renewable energy systemAioptimized using the HSPSO-DE-tuned PI controllerAiunder varying load conditions, while maintaining constant generation The objective is to assess the systemAos capability to maintain power balance and operational stability when faced with dynamic load demands. Veera Narasimha Murthy Mogilicharla. Optimized PI Control for Microgrid Power Management Using a Hybrid Spherical Vector PSOAeDifferential Evolution Method Journal of Robotics and Control (JRC) ISSN: 2715-5072 in maintaining output under varying demand conditions can be critically evaluated. The load undergoes several variations during the 20second simulation. As illustrated in Figure 20. , the active and reactive power requirements of the load change as A 0Ae3 seconds: 50 kW and 40 kVAr, . Fig. Irradiance, temperature input to the PV system and wind speed input to the wind generation system . generated power from PV, wind and terminal power of the battery Throughout this simulation, the environmental conditions are kept unchanged. The irradiance remains fixed at 800 W/mA, the temperature at 36AC, and the wind speed at a steady 11 m/s. These stable conditions ensure that the power output from the photovoltaic (PV) array and the wind turbine stays constant, as shown in Figures 19. This setup isolates the impact of load variation from renewable fluctuations, allowing for a focused analysis of how the control system manages demand-side changes. In this case, the reference active and reactive power for the Voltage Source Converter (VSC) are held constant at 150 kW and 140 kVAr, respectively. These values define the fixed power delivery expected from the VSC to the load, regardless of the actual load demand. This constant reference enables the VSC to act as a stable source, and its performance A 3Ae6 seconds: 120 kW and 90 kVAr. A 6Ae9 seconds: 180 kW and 120 kVAr. A 9Ae12 seconds: 250 kW and 240 kVAr. A 12Ae15 seconds: 300 kW and 250 kVAr. A 15Ae18 seconds: 220 kW and 190 kVAr. A 18Ae20 seconds: 200 kW and 180 kVAr. This profile simulates realistic load fluctuations in a gridconnected microgrid and provides a suitable basis to test the systemAos responsiveness and flexibility. Despite these variations in load demand, the VSC continues to deliver power at the constant reference values of 150 kW and 140 kVAr. As shown in Figure 20. , the actual power consumed by the load diverges from the VSCAos output, creating a power mismatch that the system must address in real-time. This is managed through dynamic power exchange with the utility grid, as illustrated in Figure 21. When the load requires more power than what the VSC suppliesAisuch as between 6 and 18 secondsAithe grid supplements the deficit. Conversely, when the load demand is lower than the VSCAos outputAiparticularly in the early and final stages of the simulationAithe excess power is exported to the grid. This seamless exchange between the system and the grid ensures continuous power supply to the load while keeping the VSC operating at its set reference levels. It also reflects the systemAos bidirectional power handling capability, which is critical for smart microgrids aiming for flexibility, reliability, and efficient energy distribution. Meanwhile, the batteryAos State of Charge (SOC) is closely tied to the overall energy balance. As the combined power output from the PV and wind systems exceeds the fixed VSC reference values, the surplus energy that is not consumed by the load or exported to the grid is directed toward charging the battery. Figure 21. shows the progressive increase in SOC over the simulation period, confirming that the battery remains in charging mode throughout this case. The system effectively captures excess energy and stores it for future use, enhancing overall efficiency and reducing dependency on the grid during high demand periods. Veera Narasimha Murthy Mogilicharla. Optimized PI Control for Microgrid Power Management Using a Hybrid Spherical Vector PSOAeDifferential Evolution Method Journal of Robotics and Control (JRC) ISSN: 2715-5072 intelligent battery management, which validates the effectiveness of the HSPSO-DE-based control approach in real-world microgrid applications. Fig. Reference and actual active and reactive power converted by the VSC . Load active and reactive powers The results from Case 3 highlight the resilience and coordination within the hybrid energy system. Despite the fluctuations in load demand, the control system, enabled by HSPSO-DE-optimized PI gains, ensures stable power delivery from the VSC. The grid acts as a reliable buffer, compensating for any mismatch between generation and consumption, while the battery operates intelligently to absorb surplus power. This cooperative functioning of the generation units, energy storage system, and the grid ensures a robust and adaptive power management scheme. Overall, this case illustrates that under constant renewable generation, the system is well-equipped to handle dynamic load profiles without compromising stability or efficiency. The proposed control strategy maintains consistent VSC operation, enables efficient grid integration, and optimizes energy usage through . Fig. Active and reactive powers provided by the grid . State of charge of the battery in % VI. CONCLUSION This study proposed a Hybrid Spherical Vector Particle Swarm OptimizationAeDifferential Evolution (HSPSO-DE) algorithm for the optimal tuning of PI controller gains in a renewable-integrated microgrid consisting of photovoltaic (PV), wind, and battery energy storage systems. Across three scenariosAienvironmental variations, dynamic changes in reference power, and fluctuating load demandAithe HSPSO-DEAeoptimized control strategy consistently demonstrated improved performance relative to benchmark algorithms such as GA. PSO, and Veera Narasimha Murthy Mogilicharla. Optimized PI Control for Microgrid Power Management Using a Hybrid Spherical Vector PSOAeDifferential Evolution Method Journal of Robotics and Control (JRC) ISSN: 2715-5072 GWO. The hybrid approach achieved faster transient response, reduced steady-state error, better DC-link voltage regulation, lower Total Harmonic Distortion (THD), and more balanced utilization of storage resources. These outcomes collectively validate the effectiveness of combining spherical-vector exploration with DE-based exploitation for robust control in nonlinear microgrid A key theoretical contribution of this work lies in establishing the value of spherical vector representation for high-dimensional control optimization. Traditional Cartesian PSO often suffers from axis-aligned stagnation and reduced directional diversity, which limits its ability to navigate complex landscapes involving multiple interacting PI By contrast, spherical-vector PSO decomposes particle motion into magnitude and directional components, enabling richer exploration and improved adaptability to When integrated with the strong local refinement capability of DE, the proposed HSPSO-DE algorithm forms a geometry-aware optimization framework well suited for converter-level microgrid control. Beyond algorithmic performance, the study provides broader insight into coordinated operation within hybrid microgrids. In all cases, the PI-controlled Voltage Source Converter (VSC) successfully maintained active and reactive power references despite disturbances. The battery system dynamically modulated its charging and discharging behavior in response to renewable variability, ensuring continuous power balance and improved system resilience. The interaction between renewable subsystems, storage. VSC, and the utility grid was stable and efficient, reflecting the practical relevance of the proposed strategy for real-world microgrid architecture. However, the study also presents several limitations that should guide future work. First, the results are based entirely on simulation. hardware-in-the-loop (HIL) or physical prototype validation is essential to assess practical feasibility, real-time computational requirements, and controller robustness under sensor noise and switching distortions. Second, although the hybrid algorithm performed well, its scalability to larger microgrids with multiple converters or multi-microgrid clusters remains unexplored. Third, sensitivity to hyperparametersAisuch as population size, mutation factors, and weighting coefficientsAiwas not systematically evaluated, and the absence of multi-run statistical analysis limits the strength of claims regarding repeatability and convergence reliability. Finally, although the algorithm shows strong performance in the tested scenarios, generalizing these results to all operating conditions requires cautious interpretation. Despite these constraints, the findings emphasize that geometry-enhanced hybrid optimization can substantially improve PI controller performance in renewable-rich microgrids. The HSPSO-DE framework provides a promising foundation for advanced control strategies that can adapt to increasing renewable penetration and operational uncertainty. Future research will focus on several directions. Hardware or HIL validation will be conducted to confirm real-time applicability. benchmarking across multiple independent runs will be performed to quantify variability and robustness. hyperparameter sensitivity studies will be added to strengthen confidence in the algorithmAos stability. Extending the approach to multi-converter coordination, microgrid clusters, and demand-side response, as well as integrating cybersecurity-aware control mechanisms, will further enhance the applicability of the proposed method. This study contributes new knowledge by demonstrating how a geometry-aware hybrid metaheuristic can address longstanding challenges in PI controller tuning for hybrid microgrids, offering both theoretical advancement and practical potential for future renewable energy systems. REFERENCES