Performance Analysis of Marine-Predator-Algorithm-Based Optimum PI Controller with Uniﬁed Power Flow Controller for Loss Reduction in Wind–Solar Integrated System

: Transmission line losses are a crucial and essential issue in stable power system operation. Numerous methodologies and techniques prevail for minimizing losses. Subsequently, Flexible Alternating Current Transmission Systems (FACTSs) efﬁciently reduce transmission losses, and the Uniﬁed Power Flow Controller (UPFC) is a reactive power compensation controller. The parameter strength of the proportional–integral (PI) controller was calibrated with the Marine Predator Algorithm (MPA), a recent metaheuristic algorithm. An MPA-based optimum PI controller with a UPFC evaluates the optimal location of the UPFC and PI controller parameters to accomplish the desired research objective. The power rating of the UPFC was determined depending on the voltage collapse rating and power loss and an evaluated performance analysis of the MPA–PI-controlled UPFC on a modiﬁed IEEE-30 bus transmission network in MATLAB Simulink code. The Newton–Raphson method was used to perform the load ﬂow analysis. Hence, the proposed MPA–PI controller was examined in contrast to preferred heuristic algorithms, the Artiﬁcial Bee Colony (ABC) and Moth Flame Optimization algorithms (MFO); the results showed that the MPA–PI controller exhibited better performance with an improved voltage proﬁle and surpasses active power losses with the optimal placement of the UPFC device under different loading conditions. The active power loss, considering a UPFC with the proposed algorithm, reduced from 0.0622 p.u to 0.0301 p.u; consequently, the voltage proﬁle was improved in the respective buses, and the loss percentage reduction during a 100% base load was 68.39%, which was comparatively better than the ABC and MFO algorithms.


Introduction
Renewable energy sources rapidly evolve in power and energy production, and current demand significantly focuses on enhancing the utilization of renewable energy. There is a compulsion to supply the demand for global energy and to reduce global warming, the consequence of climate conditions, which are affected by the usage of fossil fuels for electrical power generation; hence, the power generation has to be constrained for sustainable and renewable energy generation. It has turned the worldwide researcher's focus to renewable energy conversion in designing and developing an alternative to conventional fossil fuel energy. All over the world, advanced countries like India, China, Japan, North America, and Europe have been investing money in expanding renewable energy systems [1]. Renewable energies like wind and solar energies are dominant sustainable energy sources. The Global Wind Energy Council annual report of 2023 declared that 77.6 GW of wind power capacity was established in 2022. With comprehensive energy, it reached 906 GW of wind energy, a 9% growth compared to 2021. This year, it may reach 100 GW of new capacity installed globally with a growth of 15%. The intelligence market predicts 680 GW of new capacity within the next 5 years. That represents 136 GW of power per year from 2023 to 2027 [2].
The Marine Predator Algorithm (MPA) is a contemporary environment-energized optimization algorithm derived from outspread foraging strategies in ocean predators dependent on Levy and Brownian motions [3]. The MPA is a dynamic heuristic algorithm with numerous benefits, like a gradient-free nature, flexibility, fewer parameters, and an effortless mechanism. Predators must adopt a desirable strategy for maximizing their action levy with prey depending on the "survival of the fittest" theory. The MPA is a multi-objective optimization problem with a series of resolutions reproducing the finest swapping among the multiple objectives, usually in striving. Anyhow, the existence of multiple optimal solutions would assist the decision makers in determining the suitable result for their difficulty. A proportional-integral (PI) controller is a feedback control system type universally operated to standardize and strengthen systems in industrial and engineering applications. A PI controller is an essential element in control theory; moreover, it is employed for the systematic regulation of different equipment, systems, and processes. PI controllers are comparatively flexible to execute with an efficient performance in control theory. The proposed controller performance was analyzed considering different load conditions. The main intention of this article's MPA-based optimum PI controller of a UPFC was to reduce the losses in wind-solar-integrated transmission systems. The MPA-based PI controller regulates the parameter input to the UPFC, which mitigates the voltage instability and reduces the active power losses; moreover, it enhances the system performance. The proposed MPA optimization algorithm tunes the parameters of the PI controller fed to the UPFC device. This article is about the analysis of the performance of a modified IEEE 30 system integrated with wind-solar with different load variations.
Various authors have investigated the potentialities, capabilities, and challenges of accomplishing 100% renewable energy generation. In [4], the authors insisted that 100% renewable energy is not attainable. Their analysis considered suitable research, constituting the distribution and transmission conditions and supplementary requirements to attain 100% renewable energy. Yet, certain defendants for 100% renewable energy have intensely explained the probability of attaining 100% renewable energy. The authors of [5] demonstrated in detail and with reliable reasoning against the data presented in [4] that 100% renewable energy is technically attainable and economically possible. Some researchers have highlighted that power quality and voltage stability issues are crucial for expanding the transformation to renewable energy in the power system [6]. The active power flow is intensified and transferred through the clogged transmission system by mitigating the reactive power flow. Equivalently, the rise in reactive power generation at the specific generator influences active power generation.
The Artificial Bee Colony (ABC) [7] and Moth Flame Optimization (MFO) algorithms [8] are nature-inspired heuristic optimization algorithms. The ABC algorithm is based on the foraging behavior of honeybees. This algorithm evolved from analyzing the nature of honeybees searching for food sources; this process of searching for food is called the nectar and is from the ideology of sharing the availability of food sources with other honeybees. The MFO algorithm developed from moths drawing attention to a light source. Moths are commonly attracted to light and adapt their flying directions depending on light intensity. The model of the algorithm is based on the motion of moths and the diminishment of light intensity to explore the optimal intensity of light repetitively. The MFO solves complex optimization problems and holds the finest solution out of all possible solutions.
Furthermore, reactive power is crucial (i) for active power flow in the power system network and (ii) for sustaining the voltage delivering active power in the power system network. For static and dynamic conditions of voltage control, the FACTS devices are efficient in distribution and transmission systems. Their predominant operation is to inject reactive power into the network, which improves the voltage profile of the system. FACTS devices govern the desired power flow in a system, determine the desirable voltage profile, and reduce transmission losses. Generally, the FACTS devices perform analyses to intensify the power system stability and quality enhancement. FACTS devices perform separately or in collaboration with other FACTS devices, aiming to determine the crucial transmission system parameter activities for favorable grid operation. FACTS devices are classified depending on consequent characteristics, merits, and demerits [9]. FACTS devices, like the Static VAR Compensator (SVC), Thyristor-Controlled Series Capacitors (TCSCs), Static Synchronous Compensators (STATCOMs), Static Synchronous Series Compensators (SSSCs), and Unified Power Flow Controllers (UPFCs), enhance the power quality and voltage stability of the grid.
FACTS devices are peculiar and rapidly interface with power system networks. FACTS devices enhance the power system network to the desired power needed; the UPFC controller comprises two converters and transformers, which are in series with the system and parallel to the system. The UPFC regulates the system's active and reactive power flow separately by injecting the voltage into the transmission line [10][11][12].
The fundamental intention of the FACTS device is to reduce the power losses in a power grid; thus, most articles about these devices discuss these effects. Numerous researchers have analyzed and proven the benefits of the performance of the UPFC. After all, the optimal placement of the UPFC is essential because of its higher price. Various approaches comprising heuristic, classical, and mixed algorithms are feasible in the literature for determining optimizing issues of FACTSs. Despite the advancements of these methods, there are disadvantages. Heuristic algorithms like Genetic Algorithms, Differential Evolution, Particle Swarm Optimization, and Evolutionary Programming usually perform optimization for problems. These algorithms evaluate the optimum outcome with minimal complications [13].
The optimal power flow (OPF) was identified with a new hybrid decompositionbased multi-objective evolutionary algorithm [14], considering solar and wind integration uncertainties. In the OPF, renewable energy source costs are included to reduce the expenses such that the stability effects of frequency and irregularities of sustainable energy evaluate in the view of operation and cost. Monte Carlo Simulations determine an algorithm's efficiency for all feasible conditions of renewable energy. In [15], the authors suggested a new approach for optimal scheduling problems, including the consequences of irregularities in solar, wind, and loading conditions. The Two-Point Estimate optimization technique and the Genetic Algorithm were employed and simulated on IEEE 30 and 300 bus systems. The results illustrate that the proposed optimal scheduling strategy is effective while testing with GA and TPEM algorithms. In [16], a simulation was performed for a wind-solar Hybrid DC microgrid and the DC fault analysis and power flow was analyzed. The stability of the DC microgrid was analyzed by connecting hybrid sources and performed with distinct DC faults like DC line-to-ground and DC line-to-line faults. The results showed that the system had better load distribution and was barely affected by faults. The voltage did not reach the expected maximum voltage during the fault operation; the maximum power point tracker boosted the hybrid system's performance.
In [17], the authors presented the voltage stability issues of the wind and solar source integrated with a standard IEEE 14 bus system. A modern analytical technique was illustrated to analyze voltage stability. Considering dynamic and PV analyses, a comparative study for performing the system integrated with PV and wind to analyze the voltage stability and determine the desired reactive power for stability enhancement. When PV and wind are integrated with the power grid, the study is examined by the consequence of static analysis with AC contingency and QV curves. The results showed that the PV system infiltration was moderate compared to the wind generation. Thus, the bus voltage variation restricts to a contingency period. The grid voltage stability with infiltration of wind energy was analyzed in [18] with the effects of DFIG-based wind energy and performed under normal and contingency conditions. The optimal location of the shunt FACTS device at the most critical bus significantly enhanced the maximum loadability limit. The SVCs on Energies 2023, 16, 6157 4 of 20 bus 5 illustrate the considerable increase in maximum loading factor, λ max under different cases. In [19], the authors proposed stochastic programming that efficiently integrates renewable energy into the network and examines the optimal sizing, placement, and operating hours for renewable energy sources minimizing the losses. Predefined locations of renewable energy sources are worthy of specifying that energy sources confine to the easy mathematical calculation of planning. A sensitive analysis was executed to identify the effects of planning parameters. Monte Carlo simulation governed the uncertainties, and the modified PSO algorithm solved the proposed stochastic programming modeled as a nonlinear mixed integer stochastic programming. The results showed the improvement in network operation with a better bus voltage profile.
Transient stability enhancement in a hybrid solar-wind-integrated IEEE-14 bus system consolidated with a STATCOM was analyzed in [20]. Under different operating conditions, the respective steady-state analysis was performed to determine the apt sequence of variable solar irradiation and wind speed for reliable operation. The unsymmetrical and symmetrical faults at various locations were conducted with reactive and active power at the point of common coupling (PCC) with and without a STATCOM for examining the voltage analysis. Power fluctuations were smoothened by series compensation. The results showed that the STATCOM can compensate the reactive power with better voltage stability. A reliable evaluation of renewable energy integrating the distribution system analyzed the Electrical Loss Minimization [21] for determining the optimal sizing of DG and the ELM by a Constriction Factor Particle Swarm Optimization (CF-PSO). The RA of EDS obtained the optimal location and sizing of renewable energy and further improved the bus voltages. The results showed the enhanced performance of the integrated system and loss minimization with a better voltage profile comparing the system without distributed generators.
The standard IEEE-30 bus system is considered for integrating wind-solar energy sources for the analysis. Buses 13 and 23 are replaced with a wind generator, and bus 22 is replaced with solar source. The PI controller parameters were fine-tuned using the Marine Predator Algorithm, a recent metaheuristic algorithm, and used with UPFC.
The definite improvement of this article outline is as follows: • The MPA optimization algorithm optimizes the PI controller gain; • The proposed MPA-PI-controlled UPFC performance is analyzed on a modified IEEE-30 bus system; • The MPA optimization algorithm is compared with ABC and MFO.

Problem Formulation
The significant motive of the proposed methodology was to reduce active power loss with a sustainable bus voltage of wind-solar integrated power system. It aimed to, moreover, identify the optimal location and size of the system's control variables (UPFC). Consequently, the system model is as follows.

Reducing Transmission Loss
The minimized transmission line loss of the system determined by Equation (1): Here, n: number of transmission lines; G ij : Conductance from i th to j th bus; V i : i th bus voltage; V j : j th bus voltage; δ i : Phase angle of the i th bus's voltage; δ j : Phase angle of the j th bus's voltage; P loss : Transmission active power loss Transmission loss can minimize using the optimal control variables defined by a vector Y.
Energies 2023, 16, 6157 5 of 20 Here, V g p : voltage of a control bus, i = 1, 2, . . ., p, Q sh i : shunt capacitor, i is variable value 1, 2,. . ., k and k: total number of shunt capacitors, tap is the total number of transformer tap changer.
Here, P s 1 : slack bus power, V l i : i th bus voltage of load, i is a variable 1, 2,· · · , n, Q g i : i th generator reactive power output, i is variable 1, 2,. . ., m, and m: total number of generator bus. The primary motive is to reduce power loss and enhance the voltage across the buses through the tolerable analysis of optimal control variables of the system, as in Equation (2).

Enhancing Bus Voltages
It is a significant issue for maintaining the constant bus voltage during the different loading conditions. The objective function of a healthy profile is defined as: Here, V specified = bus voltage, n = number of buses. The essential objective was modified by inequality and equality constraints.

Equality Constraints
Equality constraints for the 'n' bus system represent the power flow equation.
Here, n: number of buses; P g i : i th bus generated active power; Q g i : i th bus generated reactive power; P d i : i th bus demanded active power; Q d i : i th bus demanded reactive power; g ij : Conductance from i th to j th bus; b ij : Susceptance from i th to j th bus.

Inequality Constraints
Inequality constraints represent the voltage, active, and reactive power of generator constraints and are defined as: The constraints of transformer tap setting confine with limited limits.
The reactive power constraints of UPFC confine with limited limits:

Mathematical Modelling of System
The voltage stability of the system essentially relies on voltage magnitude, phase angle, and active power, which are, moreover, sustained by regulating system parameters. Marine Predator Algorithm (MPA), a recent metaheuristic optimization algorithm, determines the optimal placement of UPFC and PI controller optimal parameters.

Modeling of Unified Power Flow Controller
Unified Power Flow Controller proposed by L. Gyugyi [22]. The performance of UPFC simultaneously regulates the active, reactive power flow, voltage magnitude, phase angle, and transmission line impedance [23][24][25][26]. UPFC, illustrated in Figure 1, includes two voltage-source converters; one is in series with the line, and another interface with a shunt connection [27,28]. The series converter of UPFC achieves its primary function through the series-connected coupling transformer, which supplies the regulated magnitude and phase angle of AC voltage in series with the transmission line. Then, the shunt converter's primary function is to supply or consume the active power required by the series converter at a common DC link [29]. The electrical model of UPFC is represented in Figure 2.

Modeling of Unified Power Flow Controller
Unified Power Flow Controller proposed by L. Gyugyi [22]. The performance of UPFC simultaneously regulates the active, reactive power flow, voltage magnitude, phase angle, and transmission line impedance [23][24][25][26]. UPFC, illustrated in Figure 1, includes two voltage-source converters; one is in series with the line, and another interface with a shunt connection [27,28]. The series converter of UPFC achieves its primary function through the series-connected coupling transformer, which supplies the regulated magnitude and phase angle of AC voltage in series with the transmission line. Then, the shunt converter's primary function is to supply or consume the active power required by the series converter at a common DC link [29]. The electrical model of UPFC is represented in Figure 2.  The MPA optimization technique evaluates the optimal placement and PI controller parameters for the performance of the UPFC controller. The inputs of UPFC are PI controller parameters and the optimal location of UPFC power flow analysis on a modified IEEE-30 bus system. As a result, Equations (12)- (25) consider implementing the MPA algorithm.

Modeling of Unified Power Flow Controller
Unified Power Flow Controller proposed by L. Gyugyi [22]. The performance of UPFC simultaneously regulates the active, reactive power flow, voltage magnitude, phase angle, and transmission line impedance [23][24][25][26]. UPFC, illustrated in Figure 1, includes two voltage-source converters; one is in series with the line, and another interface with a shunt connection [27,28]. The series converter of UPFC achieves its primary function through the series-connected coupling transformer, which supplies the regulated magnitude and phase angle of AC voltage in series with the transmission line. Then, the shunt converter's primary function is to supply or consume the active power required by the series converter at a common DC link [29]. The electrical model of UPFC is represented in Figure 2.  The MPA optimization technique evaluates the optimal placement and PI controller parameters for the performance of the UPFC controller. The inputs of UPFC are PI controller parameters and the optimal location of UPFC power flow analysis on a modified IEEE-30 bus system. As a result, Equations (12)- (25) consider implementing the MPA algorithm. The MPA optimization technique evaluates the optimal placement and PI controller parameters for the performance of the UPFC controller. The inputs of UPFC are PI controller parameters and the optimal location of UPFC power flow analysis on a modified IEEE-30 bus system. As a result, Equations (12)-(25) consider implementing the MPA algorithm.
Bus m: Bus n: Here, P m , P n : active power of bus m and bus n; Q m , Q n : reactive power of bus m and bus n; V m , V n = Voltage magnitudes of bus m and bus n, respectively; B mn , B nm = substances between connecting buses m & n; G mn, G nm = Conductance between buses m & n, respectively; B mm, B nn = substance of bus m and bus n, respectively; G mm , G nn = Conductance at bus m and n, respectively. Series Converter Shunt Converter ∆P bb = P vR + P cR = 0 (24) P vR + P cR = P m + P n = 0 where P cR , P vR : Series, and shunt converter active power, respectively; Q cR , Q vR : Series and Shunt converters reactive power, respectively; ∆P bb : power mismatch.

Proportional-Integral Controller
The advancement in evaluating the controller parameters of proportional and integral gain for shunt and series converters must prefer to enhance the controlled stability [31]. To attain the systems finest outputs, the parameters are adjusted by tuning the control loop. The PI controller is represented in Figure 3. Here, K p : proportional gain; K i : integral gain; V se : series converter voltage magnitude; V sh : shunt converter voltage magnitude.

Proportional-Integral Controller
The advancement in evaluating the controller parameters of proportional and integral gain for shunt and series converters must prefer to enhance the controlled stability [31]. To attain the systems finest outputs, the parameters are adjusted by tuning the control loop. The PI controller is represented in Figure 3. Here, Kp: proportional gain; Ki: integral gain; Vse: series converter voltage magnitude; Vsh: shunt converter voltage magnitude. The MPA algorithm searches for five parameters for each particle, Kp and Ki controller parameters of shunt and series converters, and UPFC optimal location. The Newton-Raphson method evaluates the total power losses of every grid molecule with UPFC.

Marine Predator Algorithm (MPA)
The Marine Predator Algorithm is an advanced optimization algorithm that draws inspiration from ocean predator evolution when hunting for prey. The searching agents in MPA are the predator and prey, as the predators hunt for prey, consequently searching for its food [32]. Relying upon the possibilities of food while hunting for prey, the marine predators swap between Levy and Brownian strategies. Meanwhile, the food for predators is deficient, and then they approach Levy's strategy. If the food for predatory is plenty, they approach the Brownian strategy [33]. Levy's strategy usually involves small steps and exceptionally giant steps. This typical nature can utilize for upgrading searchability in optimization techniques that present effective operation when examined in contrast to reliable random search. As Levy's approach is efficient, they intensely search neighborhoods because of the small step size; moreover, they search further areas of the domain because of the long step size; they cannot search all areas of the domain alone. However, the Brownian strategy with fixed steps can discover and accomplish the neighboring areas. Consequently, the MPA optimization has a peculiar characteristic nature with these strategies, which is more advantageous; moreover, by combining these strategies accordingly, the domain is perhaps exploited and explored globally and locally.
The MPA optimization algorithm is scattered into three phases considering the ratio of different velocities when reproducing the entire circle of the life of predator and prey. For some iterations, MPA optimization utilizes a pair of Brownian strategies (phase 1 and The MPA algorithm searches for five parameters for each particle, K p and K i controller parameters of shunt and series converters, and UPFC optimal location. The Newton-Raphson method evaluates the total power losses of every grid molecule with UPFC.

Marine Predator Algorithm (MPA)
The Marine Predator Algorithm is an advanced optimization algorithm that draws inspiration from ocean predator evolution when hunting for prey. The searching agents in MPA are the predator and prey, as the predators hunt for prey, consequently searching for its food [32]. Relying upon the possibilities of food while hunting for prey, the marine predators swap between Levy and Brownian strategies. Meanwhile, the food for predators is deficient, and then they approach Levy's strategy. If the food for predatory is plenty, they approach the Brownian strategy [33]. Levy's strategy usually involves small steps and exceptionally giant steps. This typical nature can utilize for upgrading searchability in optimization techniques that present effective operation when examined in contrast to reliable random search. As Levy's approach is efficient, they intensely search neighborhoods because of the small step size; moreover, they search further areas of the domain because of the long step size; they cannot search all areas of the domain alone. However, the Brownian strategy with fixed steps can discover and accomplish the neighboring areas. Consequently, the MPA optimization has a peculiar characteristic nature with these strategies, which is more advantageous; moreover, by combining these strategies accordingly, the domain is perhaps exploited and explored globally and locally.
The MPA optimization algorithm is scattered into three phases considering the ratio of different velocities when reproducing the entire circle of the life of predator and prey. For some iterations, MPA optimization utilizes a pair of Brownian strategies (phase 1 and a half population of phase 2). For other iterations, MPA utilizes the Levy strategy (phase 3 and the remaining half population of phase 2) and, thus, includes both advantages. However, combining and accurately using individual strategies can specify an organized explorer-exploiter structure that can perform more effectively than the individual strategy. The principal phases of MPA optimization perhaps specified as shown:

A. Initialization
During the initialization process, the variable random positions in the prey and elite matrix include the location vector along the finest adequacy function induced recurring.

B. Phase 1
This phase occurs in the first third of iterations that is defined by v ≥ 10 (highervelocity ratio) for excellent investigation capability as the action of prey is quicker than predator [29]. At this instant, the suitable predators reside in stagnation, while the motion of prey is rapid for protecting their food. This stage is expressed mathematically by Equations (26) and (27).
While Iter < 1 3 Iter max Here, This phase course arises at the second-third of iterations, while the exploration tries to transform transiently to exploitation. This phase expresses as v ≈ 1(unity velocity ratio); hence, the motion of predator and prey is in the same step.
Random number vector (R L ) that depends on a standard distribution of the Levy motions. Furthermore, the Brownian approach upgrades the second half of the population by Equations (30) and (31).
Here, variable X f governs the predator's step size and is mathematically expressed as Equation (32).

D. Phase 3
This phase is dedicated to the last third of iterations, which is mainly related to higher exploitation ability. This phase expresses a lower velocity ratio (v = 0.1); hence, the motion of the predator is quicker than the prey. Depending on the Levy movement, the mathematical representation of this phase is as Equations (33) and (34).

E. Finishing
After each iteration, the elite matrix updates the best feasible solution; the last iteration is the final solution. Figure 4 illustrates the significant steps of the MPA-optimization algorithm.

E. Finishing
After each iteration, the elite matrix updates the best feasible solution; the last tion is the final solution. Figure 4 illustrates the significant steps of the MPA-optimiz algorithm.  Furthermore, the MPA optimization algorithm robustness and effectiveness analysis on 23 classical test functions was compared with two potent optimization algorithms: Artificial Bee Colony and Moth-Flame Optimization. For balance testing, three algorithms were performed with a uniform parameter set-up: the population size was 30, and maximum iterations were 100. These 23 classical test functions were considered for the analysis of the MPA and determined the efficacy of optimization algorithms. From classical test functions, the first seven test functions (TF1-TF7) were categorized as unimodal, whereas the test functions (TF8-TF23) were multimodal. Categorically, the unimodal test function analyzed the exploitation response, whereas the multimodal test function analyzed the exploration response of the optimization algorithm.

Modeling of Wind and Solar Power
Wind and solar power sources integrate with the transmission network, and detailed modeling of the wind farm and the solar farms are as follows.

A. Wind Power Model
Various investigations focused on obtaining desirable data on wind speed considering the special distributions. Amongst those, the efficiently authenticated model was the Weibull probability density function [34,35], which is capable of actual wind speed distribution because its adaptability is feasible and soothes operation. DFIG-WECS [36] could generate and absorb the reactive power and coordinate the terminal voltage of the bus-accordingly, the DFIG-WECS stator integrated into the transmission system, as the rotor connected to the transmission system through a variable converter. The wind speed distribution represented by the Weibull probability density function as: Here, v: wind speed; λ and k: scale and shape parameters, respectively. The values of these parameters were considered from [33]. At bus 13, the wind generator parameters k and λ values are 2 and 9, respectively. At bus 23, the wind generator parameters k and λ values are 2 and 10, respectively.
The results in [37] state that the load demand was achieved by two wind and one solar power source. Accordingly, we considered two wind power sources. One wind source at bus 13 is the combined power of 25 turbines, and another at bus 23 is the combined power of 20 turbines.
The overall wind source-rated output power is 3 MW and the mathematical derivation of the actual output power associated with wind speed defines this as: Here, P wr : wind turbines rated output power; cut in and cut out wind speeds v in = 3 m/s, v out = 25 m/s; rated wind speed v r = 16 m/s.

B. Solar Power Model
A solar PV generator replaced the thermal generator at bus 22. Solar irradiance is the only primary source for solar power generation. The irradiance data were excluded because of the unavailability of solar irradiance data and the varying seasons. From [37,38], the solar irradiance is expressed by the Lognormal probability density function as: Here, G is solar irradiance. µ = 6 and σ = 0.6 are the mean and standard deviation. Solar PV depending on solar irradiance is expressed as: Here, P sr : Solar output power of 50 MW; the solar irradiance at the conventional environment and a particular irradiance point is G s = 800 W/m 2 and G c = 120 W/m 2 , respectively.

Results and Discussion
The performance analysis of the proposed MPA-PI optimization for reducing active power loss and improving the voltage profile under varying load conditions was simulated on a modified IEEE 30 bus transmission system by MATLAB coding. The transmission system comprised six generators at buses 1, 2, 13, 22, 23, and 27. Out of six generators, two were wind farm generators, one was a solar PV generator, and the remaining three were thermal generators. The total active power demand was 238.40 MW, and the reactive power demand was 126.20 MVAR. The optimal location of UPFC was connected to buses 12-15. Figure 5 shows a modified IEEE-30 bus system and the MPA optimization algorithm with UPFC performed on it. The MPA optimization algorithm was executed in MATLAB programming language. The actual power losses evaluated considering the UPFC device for different loading conditions like 100%, 110%, and 120% of base loading.

Results and Discussion
The performance analysis of the proposed MPA-PI optimization for reducing activ power loss and improving the voltage profile under varying load conditions was simu lated on a modified IEEE 30 bus transmission system by MATLAB coding. The transmis sion system comprised six generators at buses 1, 2, 13, 22, 23, and 27. Out of six generator two were wind farm generators, one was a solar PV generator, and the remaining thre were thermal generators. The total active power demand was 238.40 MW, and the reactiv power demand was 126.20 MVAR. The optimal location of UPFC was connected to buse 12-15. Figure 5 shows a modified IEEE-30 bus system and the MPA optimization algo rithm with UPFC performed on it. The MPA optimization algorithm was executed i MATLAB programming language. The actual power losses evaluated considering th UPFC device for different loading conditions like 100%, 110%, and 120% of base loading The minimum power loss and optimal voltage was evaluated with and withou UPFC. The MPA optimization evaluated the system performance in four cases to dete mine the system's active power loss and voltage magnitude. The first case was withou  The minimum power loss and optimal voltage was evaluated with and without UPFC. The MPA optimization evaluated the system performance in four cases to determine the system's active power loss and voltage magnitude. The first case was without the UPFC device, and the remaining three cases were with the UPFC device and varying base load conditions by 10%. The bus voltage magnitudes of 30 buses were determined and tabulated in Table 1. The minimized loss was evaluated after connecting the UPFC device; the voltage values were determined from the N-R method, and evaluated voltage with the proposed method with 100% base load condition without UPFC and with UPFC device are compared and plotted in Figure 6. For 110% base load, the voltage profile without and with UPFC is represented in Figure 7. For 120% base load, the voltage profile without and with UPFC represent in Figure 8.      The gains of a proportional integral controller for UPFC fine-tuned with the MPA optimization algorithm. The power losses are input variables for the MPA optimization, and the PI controller values tabulate in Table 2. Significantly, the MPA possessed quick convergence compared to variant optimization algorithms, whereas the MPA effectively converged, favoring optimal value in concise searching operations. Thus, it validates the firmness of MPA by accomplishing the precise equity among exploitation and exploration intelligence. Bonferroni-Dunns test were chosen as the statistical analysis of MPA, which a post hoc statistical analysis. This test illustrates a substantially different performance among the algorithms, whenever dissimilarities in the average ranking were higher than the critical difference. The convergence characteristics of power loss (MW) using MPA at various loads are plotted in Figures 9-11.
Compared with the heuristic algorithms like ABC and MFO optimization algorithms, the active power losses obtained from the MPA optimization algorithm exhibited competitive performance. The comparison results showed a significant improvement in the performance of the system. The active power loss was evaluated based on loss with the UPFC device at different base loadings like 100%, 110%, and 120% of base load. Therefore, it is evident from Table 3 that the optimal position of FACTS devices effectively reduced the system's active power loss. Moreover, the MPA-PI-optimization algorithm was efficient, when compared to other optimization algorithms, in reducing the active power loss in all congested lines. cise searching operations. Thus, it validates the firmness of MPA by accomplishing the precise equity among exploitation and exploration intelligence. Bonferroni-Dunns test were chosen as the statistical analysis of MPA, which a post hoc statistical analysis. This test illustrates a substantially different performance among the algorithms, whenever dissimilarities in the average ranking were higher than the critical difference. The convergence characteristics of power loss (MW) using MPA at various loads are plotted in Figures 9-11.   Compared with the heuristic algorithms like ABC and MFO optimization algorithms, the active power losses obtained from the MPA optimization algorithm exhibited competitive performance. The comparison results showed a significant improvement in the performance of the system. The active power loss was evaluated based on loss with the UPFC device at different base loadings like 100%, 110%, and 120% of base load. Therefore, it is evident from Table 3 that the optimal position of FACTS devices effectively reduced the system's active power loss. Moreover, the MPA-PI-optimization algorithm was efficient, when compared to other optimization algorithms, in reducing the active power loss in all congested lines. The graph for the percentage of loss reduction for different base loads is plotted in Figure 12. At 100% base load, the loss reduction with MPA was 68.39%, which was better than the ABC and MFO optimization techniques. At 110% base load, the loss reduction of MPA was 74.33%, and at 120% of base load, the loss reduction was 69.89%. Figure 11. The convergence characteristics of power losses using MPA for 120% base load.
The graph for the percentage of loss reduction for different base loads is plotted in Figure 12. At 100% base load, the loss reduction with MPA was 68.39%, which was better than the ABC and MFO optimization techniques. At 110% base load, the loss reduction of MPA was 74.33%, and at 120% of base load, the loss reduction was 69.89%.

Conclusions
The performance of a new metaheuristic optimization algorithm-based optimum controller for UPFC was discussed in this paper. The proposed MPA optimization alg rithm determined the optimal values of PI gain and the optimal placement of UPFC-th proposed algorithm performed on a modified IEEE-30 bus system. The performance effi ciently reduced losses-the optimal placement of UPFC connected to bus 12 and bus 1 The analysis used a modified wind-solar-integrated IEEE-30 bus system, considering th

Conclusions
The performance of a new metaheuristic optimization algorithm-based optimum PI controller for UPFC was discussed in this paper. The proposed MPA optimization algorithm determined the optimal values of PI gain and the optimal placement of UPFCthe proposed algorithm performed on a modified IEEE-30 bus system. The performance efficiently reduced losses-the optimal placement of UPFC connected to bus 12 and bus 15. The analysis used a modified wind-solar-integrated IEEE-30 bus system, considering the corresponding probability density functions for simulating irregularities in renewable energy sources under increasing power system loadability. The results show that the proposed MPA algorithm effectively reduced the active power losses, improved the voltage profile, and satisfied all constraints.
The MPA optimization algorithm may be applicable for the problem of integration of wind and solar system in electric grid and it is possible for expansion for real power and reactive power management in larger power system networks.

Conflicts of Interest:
We want to assure you that potential conflicts of interest did not influence our research's reporting and that we have complied with the journal's policy on conflicts of interest.