원시데이터 수집 시스템
선정목록으로

Optimization of a photovoltaic/wind/battery energy-based microgrid in distribution network using machine learning and fuzzy multi-objective improved Kepler optimizer algorithms

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Fude Duan — School of Intelligent Transportation, Nanjing Vocational College of Information Technology, Nanjing, 210000, Jiangsu, China
  2. Mahdiyeh Eslami — Department of Electrical Engineering, Kerman Branch, Islamic Azad University, Kerman, Iran. m.eslami@iauk.ac.ir|||Department of Electrical Engineering, Kerman Branch, Islamic Azad University, Kerman, Iran
  3. Mohammad Khajehzadeh — Department of Civil Engineering, Anar Branch, Islamic Azad University, Anar, Iran. mohammad.khajehzadeh@gmail.com|||Department of Civil Engineering, Anar Branch, Islamic Azad University, Anar, Iran
  4. Ali Basem — Faculty of Engineering, Warith Al-Anbiyaa University, Karbala, 56001, Iraq
  5. Dheyaa J. Jasim — Department of Petroleum Engineering, Al-Amarah University College, Maysan, Iraq
  6. Sivaprakasam Palani — College of Electrical and Mechanical Engineering, Addis Ababa Science and Technology University, 16417, Addis Ababa, Ethiopia. shiva.palani08@gmail.com|||College of Electrical and Mechanical Engineering, Addis Ababa Science and Technology University, 16417, Addis Ababa, Ethiopia
DOI
10.1038/s41598-024-64234-x
저널
Scientific Reports
발행년도
2024
발행기관
Nature Portfolio
피인용수
24
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41598-024-64234-x
토픽
Hybrid Renewable Energy Systems
OpenAlex ID
W4399480139

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Abstract In this study, a fuzzy multi-objective framework is performed for optimization of a hybrid microgrid (HMG) including photovoltaic (PV) and wind energy sources linked with battery energy storage (PV/WT/BES) in a 33-bus distribution network to minimize the cost of energy losses, minimizing the voltage oscillations as well as power purchased minimization from the HMG incorporated forecasted data. The variables are microgrid optimal location and capacity of the HMG components in the network which are determined through a multi-objective improved Kepler optimization algorithm (MOIKOA) modeled by Kepler’s laws of planetary motion, piecewise linear chaotic map and using the FDMT. In this study, a machine learning approach using a multilayer perceptron artificial neural network (MLP-ANN) has been used to forecast solar radiation, wind speed, temperature, and load data. The optimization problem is implemented in three optimization scenarios based on real and forecasted data as well as the investigation of the battery's depth of discharge in the HMG optimization in the distribution network and its effects on the different objectives. The results including energy losses, voltage deviations, and purchased power from the HMG have been presented. Also, the MOIKOA superior capability is validated in comparison with the multi-objective conventional Kepler optimization algorithm, multi-objective particle swarm optimization, and multi-objective genetic algorithm in problem-solving. The findings are cleared that microgrid multi-objective optimization in the distribution network considering forecasted data based on the MLP-ANN causes an increase of 3.50%, 2.33%, and 1.98%, respectively, in annual energy losses, voltage deviation, and the purchased power cost from the HMG compared to the real data-based optimization. Also, the outcomes proved that increasing the battery depth of discharge causes the BES to have more participation in the HMG effectiveness on the distribution network objectives and affects the network energy losses and voltage deviation reduction.

본문 92,561자

본문 펼치기
## OPEN # Optimization of a photovoltaic/ wind/battery energy‑based microgrid in distribution network using machine learning and fuzzy multi‑objective improved Kepler optimizer algorithms Fude Duan <sup>1</sup> , Mahdiyeh Eslami <sup>2</sup> <sup>*</sup> , Mohammad Khajehzadeh <sup>3</sup> <sup>*</sup> , Ali Basem <sup>4</sup> , Dheyaa J. Jasim <sup>5</sup> & Sivaprakasam Palani <sup>6</sup> <sup>*</sup> In this study, a fuzzy multi-objective framework is performed for optimization of a hybrid microgrid (HMG) including photovoltaic (PV) and wind energy sources linked with battery energy storage (PV/ WT/BES) in a 33-bus distribution network to minimize the cost of energy losses, minimizing the voltage oscillations as well as power purchased minimization from the HMG incorporated forecasted data. The variables are microgrid optimal location and capacity of the HMG components in the network which are determined through a multi-objective improved Kepler optimization algorithm (MOIKOA) modeled by Kepler’s laws of planetary motion, piecewise linear chaotic map and using the FDMT. In this study, a machine learning approach using a multilayer perceptron artificial neural network (MLP-ANN) has been used to forecast solar radiation, wind speed, temperature, and load data. The optimization problem is implemented in three optimization scenarios based on real and forecasted data as well as the investigation of the battery’s depth of discharge in the HMG optimization in the distribution network and its effects on the different objectives. The results including energy losses, voltage deviations, and purchased power from the HMG have been presented. Also, the MOIKOA superior capability is validated in comparison with the multi-objective conventional Kepler optimization algorithm, multi-objective particle swarm optimization, and multi-objective genetic algorithm in problem-solving. The findings are cleared that microgrid multi-objective optimization in the distribution network considering forecasted data based on the MLP-ANN causes an increase of 3.50%, 2.33%, and 1.98%, respectively, in annual energy losses, voltage deviation, and the purchased power cost from the HMG compared to the real data-based optimization. Also, the outcomes proved that increasing the battery depth of discharge causes the BES to have more participation in the HMG effectiveness on the distribution network objectives and affects the network energy losses and voltage deviation reduction. Motivation and background Due to the significant rise in electrical usage over the past ten years, electricity distribution firms are now required to properly build and operate their networks in order to meet customer ­demands <sup>1</sup> . Thus, one of the primary ways 1School of Intelligent Transportation, Nanjing Vocational College of Information Technology, Nanjing 210000, Jiangsu, China. <sup>2</sup> Department of Electrical Engineering, Kerman Branch, Islamic Azad University, Kerman, Iran. <sup>3</sup> Department of Civil Engineering, Anar Branch, Islamic Azad University, Anar, Iran. <sup>4</sup> Faculty of Engineering, Warith Al-Anbiyaa University, Karbala 56001, Iraq. <sup>5</sup> Department of Petroleum Engineering, Al-Amarah University College, Maysan, Iraq. <sup>6</sup> College of Electrical and Mechanical Engineering, Addis Ababa Science and Technology University, 16417 Addis Ababa, Ethiopia. <sup>*</sup> email: m.eslami@iauk.ac.ir; mohammad.khajehzadeh@gmail.com; shiva.palani08@gmail.com to meet the demand from customers is through the incorporation of distributed generation resources (DG) into distribution ­networks <sup>1</sup> . Because of their benefits for clean energy and ecological sustainability, renewable energy sources like solar power and wind energy have received a lot of attention when it comes to distributed generation (DG) ­technology <sup>2</sup> . However, the distribution network’s ability to function depends heavily on its placement of energy units. Moreover, there is still a problem with the time difference between the supply and demand for renewable energy, which can be resolved by incorporating energy ­storage <sup>3</sup> . Furthermore, since the best possible distribution of energy sources can minimize power losses and enhance system voltage features, dependability, power quality issues, etc., identifying and sizing energy sources in the distribution network is crucial and ­difficult <sup>4</sup> . Energy module placement can have benefits as well as drawbacks, of course. The greatest difficulty is figuring out where to put them and how big they should be in distribution networks. Conversely, the generated energy from wind and photovoltaic renewable energies is unpredictable because of their stochastic ­character <sup>5,6</sup> . This unpredictability has the potential to worsen voltage conditions in the distribution network and increase energy losses in conjunction with variations in production and load demand. On the contrary, when considering the efficiency of wind energy generation from the effects of climate and PV power from seasonal changes in irradiance, forecasting the power of these sources is very ­challenging <sup>8</sup> . The fluctuations in the power produced by renewable resources because of the intrinsic unpredictability of irradiance and wind speed have grown into an essential challenge when it comes to technical operation in the distribution network, so examining how these variables impact their uncertainty seems very important for network ­operators <sup>7</sup> . One way to tackle this difficulty is by using precise forecasting models to produce various renewable energy sources. To put it another way, to lessen the detrimental effects of uncertainty on the generation of these resources in the distribution networks, the allocation, and the renewable systems optimization in the network should be carried out while taking the uncertainty and meteorological data forecasting into consideration. Related works and gaps To establish the best placement and capacity for renewable energy systems, several solutions have been presented for integration with distribution networks. The impact of assigning the DG units on power quality within the network is assessed in Dinh et al. <sup>9</sup> . The findings demonstrated that where and how big the DGs had a significant impact on the voltage-sag. In Arasteh et al. <sup>10</sup>, PV utilization in a distribution network is developed to lower costs and enhance the voltage conditions. The enhanced whale optimizer method is utilized to calculate the PV resource size. Single-objective DG sizing and placement are discussed in Ahmadi et al. <sup>11</sup> to lower network losses when employing the symbiotic organisms search (SOS) technique. To minimize energy costs and ­CO2 emissions while taking into account energy that is not provided an attractive approach with the virus colony search (VCS) method is used in Hassan et al. <sup>12</sup> for allocating the standalone energy system incorporated with PV and battery in the network. Using an improved salp swarm algorithm (ISSA), the best resource allocation and reconfiguring of the network are examined in Javad Aliabadi and ­Radmehr <sup>13</sup> to reduce losses, enhance reliability, and take into account load demand, and generate resource uncertainty. The allocation of battery storage with PV connected to the network is studied in Wong et al. <sup>14</sup> using the whale optimization algorithm (WOA) to reduce power loss. The results show that WOA effectively sizes and places the battery storage in the distribution network to minimize power loss; nevertheless, the PV system’s uncertainty and changing demand behavior are not taken into account. Taking into account the commercial demand background, an enhanced bald eagle search algorithm is employed in Kamel et al. <sup>15</sup> to minimize the power loss in the electrical networks. To increase network resilience, the methodology uses battery storage to charge from turbines under small demands. In Kumar and ­Injeti <sup>16</sup>, the butterfly optimization method is used to find a way to integrate biomass and BES with green distributed generation (DGs) in distribution networks. This optimizes the techno-economics for business distribution systems while taking network reconfiguration into account. Reducing voltage variation, annual economic loss, and power loss are the main objectives. The biomass and battery storage systems provide the WT and PV systems, respectively, to render non-controllable DGs, such as WT and PV, dispatchable. An improved sine cosine algorithm with the chaotic map is put forth in Selim et al. <sup>17</sup> to reduce the power, mitigating voltage deviation, and voltage stability enhancement while optimizing the optimization of battery storage integrated with PV systems. To lower investment expenses and improve the voltage profile, a multi-verse optimization (MOMVO) is proposed in Ahmadi et al. <sup>11</sup> that incorporates both centralized and distributed generation. Phase two determines the size and location of the DGs, whereas the first phase optimizes the capacity and location of distributed generators. Nevertheless, effective probability distribution functions are not applied to describe the ambiguity of irradiance and wind, and the MOMVO algorithm’s convergence properties are not assessed. A genetic algorithm is employed in Ahmadi et al. <sup>18</sup> to determine the best time to schedule BES in conjunction with PV systems to minimize energy loss, lessen reverse load flow in the distribution system, and reduce overvoltage. The optimizer’s efficiency is not compared to alternative methods, and just one DG unit is allocated in all situations despite the uncertain nature of irradiance and dynamic load needs. Ref. <sup>19</sup> suggests that to improve distribution systems’ dependability, PV and BES systems should be deployed simultaneously. A decomposition-based multi-objective evolution method is used to address the optimization issue, which is expressed as many goals and attempts to reduce energy losses, energy not provided, power quality, and load costs. The escaping bird search (EBS) method is used in Hamidan and Borousan <sup>20</sup> to propose a multi-objective, sequential assignment of two problems in hybrid DGs consisting of PVs, WTs, and battery storage in the network. This system can reduce overall losses and enhance power quality. In Moghaddam et al. <sup>21</sup>, the weight factor approach is used to build a multi-criteria method to configure the networks using PV and WT renewable sources, while the moth-flame optimization (MFO) algorithm is used to improve reliability. The scheduling of an energy system with a PV and WT integrated with a system for storing batteries is examined in Jafar-Nowdeh et al. <sup>22</sup> in a distribution network to reduce energy losses, enhance reliability while accounting for uncertainties, and optimize the voltage profile. An enhanced escaping-bird search technique is used to achieve this goal. In Hadi Abdulwahid et al. <sup>23</sup>, Monte Carlo sampling (MCS) and particle swarm optimization (PSO) are employed to allocate WTs and reconfigure the network based on uncertainties in wind speed and irradiation. Utilizing an artificial hummingbird method that incorporates uncertainty and minimizes resource costs, emissions, and voltage variation, Wang et al. <sup>24</sup> recommends an efficient allocation of renewable resources. A unique hybrid wind speed forecasting system determined by a deep learning neural network structure and the data area division technique is proposed in Ramadan et al. <sup>25</sup> . The wind speed data is broken down using complementary ensemble empirical mode decomposition in the data preprocessing module. Using machine learning methods, a comparative analysis of PV energy generation forecasts is offered in Liu et al. <sup>26</sup> . The best predictive model for energy prediction, according to model efficiency, is the artificial neural network (ANN). For functioning day-ahead power forecasting that utilizes numerical temperature prediction, a head-to-head opposition of the physical, data-driven, and mixed approaches is carried out in Ledmaoui et al. 27. For optimizing the scale of an off-grid energy system, a data-driven approach is suggested in Mayer 28 that blends hybrid meta-heuristics and machine learning to anticipate weather patterns over the system’s lifetime. A deep learning-driven allocating and battery storage operation and water electrolyzer is carried out in Abdullah et al. <sup>29</sup> . To achieve this, a collection of real clean energy-curtailed data is thoroughly examined, and a prediction error and its PDF are found using deep learning forecasting techniques. Several strategies are used to solve the issue in the context of the hybrid microgrid (HMG) energy systems optimization framework in the networks. These methods are offered to take into account four elements: projected data derived from machine learning algorithms; uncertainty; fuzzy multi-objective architecture; and battery energy storage. The following are some of the methods that have been used in the literature: (1) RES optimization in distribution networks without battery ­storage <sup>9–14</sup>, (2) RES optimization in distribution networks with battery ­storage <sup>11,15–22</sup>, (3) fuzzy multi-objective RES ­optimization <sup>11,16,19–21</sup>, and (4) RES optimization incorporating data ­forecasting <sup>25–29</sup> . As is evident, no research has been done on the hybrid PV/WT/BES microgrid systems optimization taking into account all four aspects according to the authors’ knowledge so far. Contributions The following is the paper’s contributions considering the literature and gaps: - For the hybrid PV/WT/BES microgrid system optimization in a distribution network, we built an innovative multi-objective improved mathematical framework instead of creating a single or bi-objective model that fails to accurately represent the actual scenario. A fuzzy decision-making technique (FDMT) is utilized to identify the final solution between the non-dominant options in the constructed multi-objective model, which takes three objectives into consideration: minimizing energy losses, minimizing voltage variations, and minimizing the cost of the HMG. - The multilayer perceptron artificial neural network (MLP-ANN), a machine learning method, is employed in this work as an effective tool to forecast meteorological data and network load requirements in issue resolution. By utilizing this technology, network operators and renewable energy source operators may manage and integrate renewable energy sources into the grid with greater knowledge, creating an energy system that is more dependable and efficient. Technologies for storing energy are crucial, particularly those related to batteries and how deep they can be discharged (DOD) in HMGs. - The literature study, however, reveals that there is a lack of attention paid to the effect of DOD on the optimization of HMG systems based on renewable resources combined with battery storage. Furthermore, the degree to which DOD modifications have improved the HMGs’ efficiency with regard to distribution network losses and voltage circumstances has not been addressed. - Nevertheless, no meta-heuristic method can be ideal for handling every optimization problem, according to the No Free Lunch (NFL) ­theorem <sup>30</sup> . As a result, it also has certain difficult issues, such as the propensity to enter local optimal and the excessive reliance on the quality of the original population. Because of this, the problem is solved in this study via a novel optimization method called the multi-objective improved Kepler optimization algorithm (MOIKOA), which was motivated by Kepler’s laws of planetary ­motion <sup>31</sup> . To avoid becoming trapped in a local optimum, the piecewise linear chaotic map and FDMT are the foundations of the MOIKOA formulation. - The objective is to create a fuzzy multi-objective structure that will enable the hybrid PV/WT linked with a BES (PV/WT/BES) microgrid system optimization in the network. This will be achieved via a multi-objective improved Kepler optimization algorithm (MOIKOA), which will take into account the effects of battery DOD changes and forecasted data based on MLP-ANN on microgrid optimization in the electrical networks. Paper organization The problem constraints, multi-objective model, and HMG modeling are described in "Methodology" section. "Proposed optimizer" section describes the machine learning technique to data forecasting that uses a multilayer perceptron artificial neural network. In "Results and discussion" section, the suggested optimizer has been formulated. "Conclusion" section presents the simulation results, and Sect. 6 gives the research outcomes. Methodology Understudy microgrid The primary components of the proposed HMG system in this work are PV, WT, and battery energy storage (PV/WT/BES) according to Fig. 1. The batteries are depleted to fulfill the load with high reliability in the case of a system power outage. Batteries are used to store solar power surplus above load demands. After accepting DC Figure 1. Schematic of the PV/WT/BES microgrid system. power, the inverter is also responsible to supply the AC power to the AC demand. This technology is intended to first supply the HMG load and then introduce extra power into the network to enhance the network’s operation. PV model The following is a thorough model to calculate the PV array power considering the irradiance irradiated to the array’s surface, the radiation’s horizontal element, the surrounding temperature, and a few key technical ­features <sup>32</sup> : PPV Sp, Tc = Npv × Pr,pv × × EtIE(S, T) (1) �Sp, Tc <u>Sp</u> = Npv × Pr,pv × SSTC × EtIE(S, T) <u>S</u> Sp = sinh <sup>× sin(h + β)</sup> (2) k3 + k4logS + k5 <u>�2 + T�</u> �logS EtIE(S, T) = 1 + k1logS + k2 logS k3 + k4logS + k5 logS + k6T (3) 2�logS <u>.Sp</u> ◦c <sup><u>�</u></sup> + k6T �2 <sup>�</sup> <u>�</u> <u>NOCT</u> - <u>20</u> 800 <u>��</u> <u>NOCT</u> - <u>20</u> <u>.Sp</u> T = Ta + - TSTC (4) - TSTC 800 ◦c <sup><u>�</u></sup> <u>�</u> where Pr,pv is rated PV power, EtIE is PV MPPT efficiency, β is the PV surface angle versus the surface of horizontal, Sp is the part of the solar radiation strength that is effectively radiated vertically on a plane that is inclined, S displays the proportion of the radiation′s intensity to Sp and nominal conditions ( SSTC = 1000 W/m <sup>2</sup> ) <sup>32</sup>, St corresponds to the irradiation that the array’s sloped surface emits, h represents the irradiance head’s angle, Ta denotes the ambient temperature, NOCT refers to the operation temperature normally (°C). k1 − k6 are coefficient of EtIE(S, T) this is acquired by using actual data taken from one or more places to stabilize the model. Wind turbine model The wind speed-based WT generating power model is a multi-parameter, nonlinear model. A combination of cut-in, cut-out, and nominal wind speed, the power generated by WT ( PWT ) is calculated by Szostok and ­Stanek <sup>3</sup>, Javad Aliabadi et al. <sup>13</sup> and Moghaddam et al. <sup>21</sup>   Prtd,WT × <u>ci</u> Vrtd <sup>2</sup> <sup>−V</sup> ci <sup>2</sup> - <u>V</u> 2−V 2 rtd <sup>2</sup> <sup>−V</sup> ci <sup>2</sup> ci <sup>2</sup> rtd <sup>−V</sup> ci <sup>2</sup> PWT = Prtd,WT ; Vrtd ≤ V ≤ Vco (5)  Prtd,WT × Vrtd <sup>2</sup> <sup>−V</sup> <u>cici</u> <sup>2</sup> ; Vci ≤ V ≤ Vrtd Prtd,WT ; - <u>V</u> 2−V 2 - Vrtd ≤ V ≤ Vco 0 Otherwise where Prtd,wt is the PV nominal power, V is the wind speed, Vci, Vrtd and Vco stand for cut-in, rated, and cut-out wind speeds (m/s). The wind data is recorded at a 40-m wind tower height, with an installation height of 15 m. The definition of wind speed under these circumstances is as follows Szostok and ­Stanek <sup>3</sup>, Javad Aliabadi et al. <sup>13</sup> and Moghaddam et al. <sup>21</sup> : Href - <u>H</u> �α VH = VHref × (6) where VH represents wind speed at height H, VHref represents wind speed at height Href, and α represents the surface’s smoothness value, which ranges from 0.14 to 0.25 <sup>3,13,21</sup> . Battery model To maintain continuous load demand and offset PV power variations, battery storage has been employed. When there is excess power, the battery is charged with 40% of the power, with the remaining 40% being sent to the network. By draining the batteries, the load supply is kept at the appropriate level during a system power ­outage <sup>11,14,15,18</sup> : _Charging mode_ When the electricity required for the load exceeds the PV production power (PPV (t) × ηDC/DC - PLD(t)/ηInv) and EBatt (t − 1) < EBatt <sup>max, 40% of the extra power is fed into the batteries,</sup> which are charged to providing the full load. 60% of the surplus power is still delivered to the distribution system. The battery bank energy at t is defined by (PPV (t) × ηDC/DC) − <sup><u>(PLD(t))</u></sup> ηInv × ηch × �t EBatt (t) = EBatt (t − 1) × (1 − σ) + (PPV (t) × ηDC/DC) − <sup><u>(PLD(t))</u></sup> × ηch × �t (7) ηInv where σ represents the rate of self-discharge, PLD(t) indicated the demand at t, ηInv denotes efficiency of the inverter, Δt is the time step, and ηch denotes battery bank efficiency when charging. _Discharging mode_ W h e n t h e n e e d e d l o a d i s m o r e t h a n t h e P V g e n e r a t i o n p o w e r (PPV (t) × ηDC/DC < PLD(t)/ηInv) and EBatt (t − 1) > EBatt <sup>min, the system is now unable to serve the load due to a</sup> power shortfall. In this case, the battery bank is discharged to make up for the loss of system power. The battery energy at t can be expressed by ηInv - <u>PLD(t)</u> <u>�t</u> ) × ηdisch EBatt (t) = EBatt (t − 1) × (1 − σ) − - (PPV (t) × ηDC/DC) × (8) - (PPV (t) × ηDC/DC) where ηdisch denotes discharging efficiency of the battery. _No charging and discharging mode_ The demand is entirely provided and the saved energy remains constant when the PV output power and the demand are equal (PPV (t) × ηDC/DC = PLD(t)/ηInv) . The battery energy at t is modeled by EBatt (t) = EBatt (t − 1) (9) Objective function The optimization of a PV/WT/BES microgrid system is implemented for energy losses, voltage deviations, and HMG power cos minimization. Minimization of the energy losses The first aim in optimization of the PV/WT/BES microgrid system in the network is presented the energy losses cost ( Closs ) minimization which can be calculated by Hassan et al. <sup>12</sup>, Wong et al. <sup>14</sup> and Saini, and ­Gidwani <sup>19</sup> T h=1 P <sup>l,h</sup> loss elect <sup>l,h</sup> loss <sup>× Ch</sup> OF1 = min(Closs) = P <sup>l,h</sup> loss <sup>× C</sup> elect <sup>h</sup> (10) h=1 Nl l=1 l=1 where Closs, P <sup>l,h</sup> loss <sup>and Ch</sup> elect <sup>denote the costs of losses, line</sup> <sup>_l_</sup> <sup>losses in hour</sup> <sup>_h_</sup> <sup>, and cost of electricity in hour</sup> <sup>_h_</sup> <sup>,</sup> respectively. where Closs, P <sup>l,h</sup> loss <sup>l,h</sup> loss <sup>and Ch</sup> Minimization of the voltage deviations The second aim in the PV/WT/BES microgrid system optimization in the network is voltage deviations ( VSD ) ­minimization <sup>33</sup> in the network buses which can be computed by �� Nbus <u>�</u> <u>�</u> <sup><u>1</u></sup> Nbus i=1 OF2 = min(VSD) = × vi − vp (11) �2 × i=1 �vi − vp <u>i=1</u> <sup><u>vi</u></sup> vp = (12) Nbus <u>�Nbus</u> where VSD is the network voltage profile, _vi_ is voltage of ith bus, _vp_ is the buses mean voltage, and _Nbus_ indicate bus numbers. Minimization of the HMG cost The third aim in the PV/WT/BES microgrid system optimization in the network is minimizing the of total purchased power cost from the HMG ( CHMG ) for the network which is calculated by T h=1 P <sup>h</sup> Extra <sup>h</sup> <sup>× Ch</sup> Extra <sup>h</sup> <sup>)</sup> OF3 = min(CHMG) = PExtra <sup>h</sup> <sup>× C</sup> Extra <sup>h</sup> <sup>)</sup> (13) h=1 where P <sup>h</sup> where PExtra <sup>h</sup> <sup>is injected extra power to the network, and C</sup> Extra <sup>h</sup> <sup>is cost of per kW for purchasing the extra power</sup> for the network. Multi‑objective function The problem of multi-objective optimization is formulated as follows in Lotfipour and ­Afrakhte <sup>34</sup> and Nowdeh et al. <sup>35</sup> : It has many conflicting objective functions as well as equality and inequality constraints that must be simultaneously optimized. Extra <sup>h</sup> <sup>is injected extra power to the network, and Ch</sup> �T MinF(x) = f1(x)f2(x) . . . fn(x) (14) �f1(x)f2(x) . . . fn(x)� gi(x) < 0i = 1, 2, . . ., Nueq hi(x) = 0i = 1, 2, . . ., Neq gi(x) < 0i = 1, 2, . . ., Nueq Subject to : (15) hi(x) = 0i = 1, 2, . . ., Neq hi(x) = 0i = 1, 2, . . ., Neq where the number of objective functions is denoted by _n_, F(x) is the vector of objective functions, and gi(x) and hi(x) are the constraints on inequality and equality. There are two possible solutions to a multi-objective optimization issue: x and y. One will either outweigh the other, or none of the other options will. Consequently, an answer x will win out more than an answer y if the next two conditions are met. �y� �y ∀j ∈{1,2, . . ., n}, f j(x) ≤ fj y (16) ∃k ∈{1,2, . . ., n}, f k(x) < fk y (17) Therefore, Pareto set solutions (PSSs) can be found via the non-dominant answers inside the search field. Ultimately, the earlier saved non-dominant answers contain the solution. To select the best answer among the best possible options, the fuzzy function is investigated using a membership function in which the exact variables number can be provided input. In this case, µ <sup>k</sup> i <sup>, which has the following ­definition34,35, denotes for the objective</sup> number can be provided input. In this case, µ <sup>k</sup> i <sup>, which has the following ­definition34,35, denotes for the objective</sup> function i value that corresponds to the PSS k: i 1 fi ≤ fi <sup>min</sup> µ <sup>k</sup> i <sup>=</sup> f <sup><u>max</u></sup> <u>fi</u> <sup>max</sup> −−f <sup><u>min</u></sup> <u>fi</u> fi <sup>max</sup> < fi < fi <sup>min</sup> (18) <sup>k</sup> i <sup>=</sup>   i <u>fi</u> <sup>max</sup> <u>−fi</u> i <sup>max</sup> < fi < fi <sup>min</sup>  <u>fi</u> <sup>max</sup> <u>−fi</u> fi <sup><u>max</u></sup> −fi fi <sup><u>max</u></sup> −fi <sup><u>min</u></sup> i i 0 fi ≥ fi <sup>max</sup> fi <sup><u>max</u></sup> −fi <sup><u>min</u></sup> i <sup><u>min</u></sup> <u>fi</u> fi <sup>max</sup> i <sup>max</sup> and fi <sup>min</sup> . where the maximum and lower limits of the objective function I are, respectively, represented by fi <sup>max</sup> where the maximum and lower limits of the objective function I are, respectively, represented by fi <sup>max</sup> and fi <sup>min</sup> . The recommended method of computing these values makes use of the optimization results for each objective function. Given that µ <sup>k</sup> i <sup>is a number between 0 and 1, a value of 0 denotes incompatibility between the answer</sup> function. Given that µ <sup>k</sup> i <sup>is a number between 0 and 1, a value of 0 denotes incompatibility between the answer</sup> and the operator’s goals, while 1 denotes complete compliance. The fuzzy decision-making process is designed to handle multiple conflicting objectives by assigning a membership function to each objective. This allows for a more flexible evaluation of trade-offs between objectives. For each solution in the Pareto front, the fuzzy decision-making process aggregates the fuzzy values of all objectives. This aggregation helps in ranking the solutions based on their overall performance across all objectives. Each objective is normalized, and membership functions are defined to convert the objective values into fuzzy values. This step ensures that different objectives are comparable and can be aggregated meaningfully. The fuzzy decisionmaking process identifies the solution with the highest aggregated membership value as the best compromise solution. This method helps in selecting a balanced solution that considers all objectives, rather than focusing on just one or a few. By employing the fuzzy decision-making process, the study ensures a comprehensive evaluation of all non-dominant solutions, leading to a final solution that best satisfies the multiple, often conflicting, objectives of minimizing energy losses, voltage oscillations, and power purchased from the grid, while optimizing the location and capacity of HMG components based on forecasted data. _Constraints_ The items that follow limitations should apply to the objective function. The problem’s restrictions are taken into account as follows Arasteh et al. <sup>10</sup>, Wong et al. <sup>14</sup> and Saini, and ­Gidwani <sup>19</sup> : _Power balance_ Throughout the whole study time, the network’s production and consumption balance constraint is as outlined below: 24 h=1 P <sup>h</sup> slack <sup>h</sup> <sup>+ Ph</sup> HMG <sup>h</sup> <sup>−</sup> <sup>Ph</sup> <sup>P</sup> loss <sup>h</sup> <sup>−</sup> <sup>P</sup> D <sup>h</sup> D <sup>h</sup> −DN <sup>= 0</sup> (19) where P <sup>h</sup> HMG <sup>h</sup> <sup>is transferred power for the network by the HMG at time h.</sup> loss <sup>h</sup> <sup>and P</sup> D <sup>h</sup> where Pslack <sup>h</sup> <sup>, P</sup> loss <sup>h</sup> <sup>and P</sup> D <sup>h</sup> −DN <sup>refer to the power provided by the post, network losses and network demand at</sup> time _h_, and PHMG <sup>h</sup> <sup>is transferred power for the network by the HMG at time h.</sup> slack <sup>h</sup> <sup>, Ph</sup> _Renewable resources_ The following restrictions should be met by the PV and wind urce sizes, with the PV panel’s tilt with relation to the ground: PPV <sup>min</sup> <sup>≤</sup> <sup>PPV</sup> <sup>≤</sup> <sup>P</sup> PV <sup>max</sup> (20) PPV <sup>min</sup> <sup>≤</sup> <sup>PPV</sup> <sup>≤</sup> <sup>P</sup> PV <sup>max</sup> PV 0 ≤ βPV ≤ 90 (21) PWT <sup>min</sup> <sup>≤</sup> <sup>PWT</sup> <sup>≤</sup> <sup>P</sup> WT <sup>max</sup> (22) WT <sup>min</sup> <sup>≤</sup> <sup>PWT</sup> <sup>≤</sup> <sup>P</sup> WT <sup>max</sup> WT <sup>max</sup> where PPV <sup>min and P</sup> WT <sup>min are lower size of PVs and WTs sizes, P</sup> PV <sup>max and P</sup> WT <sup>max are upper size of PVs and WTs, and</sup> βPV is the panel surface angle with respect to the earth surface. PV <sup>min and P</sup> WT <sup>min</sup> PV <sup>max and P</sup> WT <sup>max</sup> where PPV <sup>min</sup> WT <sup>min are lower size of PVs and WTs sizes, P</sup> PV <sup>max</sup> _Battery SOC_ The battery SOC should be satisfied by <sup>max</sup> Batt <sup>(1 −</sup> <sup>DOD) = SOCmin</sup> Batt Batt SOC <sup>max</sup> Batt <sup>(1 −</sup> <sup>DOD) = SOCmin</sup> Batt <sup>≤</sup> <sup>SOCBatt,h</sup> <sup>≤</sup> <sup>SOC</sup> Batt <sup>max</sup> (23) <sup>min</sup> Batt <sup>≤</sup> <sup>SOCBatt,h</sup> <sup>≤</sup> <sup>SOC</sup> Batt <sup>max</sup> where SOC <sup>min</sup> Batt <sup>max</sup> Batt <sup>are minimum and maximum values of battery SOC.</sup> <sup>min</sup> Batt <sup>and SOCmax</sup> Batt _Bus voltage_ Network bus voltages should fall between the following allowed ranges: Vb <sup>min</sup> ≤ Vb ≤ Vb <sup>max</sup> (24) b <sup>min</sup> ≤ Vb ≤ Vb <sup>max</sup> b where Vb <sup>min</sup> b <sup>max</sup> are lower and upper limits of bus voltage. b <sup>min</sup> and Vb <sup>max</sup> _Allowable current_ The value of permitted current to flow via the network branches should satisfy the following constraint: ��i = 1,2, . . ., Nl |Ii| ≤ i (25) where Ii <sup>max</sup> i ��Imax i <sup>max</sup> is maximum allowable passed current from the network lines. Data forecasting based on the machine learning In order to optimize the microgrid in the electrical network, the method of forecasting described utilizes a machine learning-based methodology that utilizes the multilayer perceptron artificial neural network (MLPANN) for daily load forecasting (Fig. 2). The machine learning-based method is applied to forecast temperature, wind speed, and radiation. Precisely predicting the electrical network’s demand for load conditions and weather circumstances is essential for optimizing the energy microgrid within the network, especially when patterns of consumption get more intricate and dynamic. Nevertheless, forecasting weather errors leads to uncertainty, which deviates from microgrid optimization. The concentration of this research is on day-ahead microgrid optimization in the networks. To solve these difficulties, a machine learning-based technique for load demand and meteorological parameter predictions is employed. MPL‑ANN algorithm In this study, by forecasting future sampling utilizing previous data, the MLP-ANN is utilized to anticipate timeseries values for load and weather parameters. This technique was chosen because, in contrast with additional complicated hybrid computations, it is easier to construct and has more technological maturation, thus being available to other academics who may be interested in using a similar approach. In recent research that focused on predicting certain parameters, it is usual practice to compare the predictions derived from this machine learning method in order to assess their ­efficacy <sup>36–38</sup> . Using the MLP-ANN technique, this study offers a multi-objective optimization of the microgrid in an electrical network, producing the most accurate predicted layout for each parameter (irradiance, wind speed, ambient temperature, and load demand). It is believed that a pattern that repeats itself once every 24 h is the ideal one. The mean squared error (MSE) measure is used for contrasting each anticipated pattern produced by the MPL-ANN method with the reality patterns. The patterns with the lowest ­MSE <sup>36,37</sup> are selected for optimization. Figure 2 presents a summary of the recommended method and the pattern selection procedure. This technique supports microgrid optimization by choosing exact patterns, which is in line with the present tendency of using machine learning techniques for predicting particular parameters. Data <sup>h</sup> −f <sup>is predicted data at</sup> ∂Data <sup>Best</sup> <sup>= min</sup> MSE(∂Data <sup>h</sup> −f <sup>, ∂</sup> Data <sup>h</sup> −r <sup>)</sup>, ∀∂ = {S, V, Ta, Dmd} (26) , ∀∂ = {S, V, Ta, Dmd} Data <sup>Best</sup> <sup>= min</sup> �MSE(∂ <sup>h</sup> Data <sup>h</sup> −f <sup>, ∂</sup> <sup>h</sup> Data <sup>h</sup> −r <sup>)</sup> where for each parameter, ∂Data <sup>Best</sup> Data <sup>Best</sup> <sup>represents the choice of the best-predicted pattern, ∂</sup> <sup>h</sup> time t, ∂Data <sup>h</sup> −r <sup>denotes real data at time t, S, V, Ta, and Dmd refers to the radiation, wind speed, temperature and</sup> load demand, respectively. It computes the least mean square error (MSE) between the real pattern ( ∂Data <sup>h</sup> −f <sup>)</sup> time t, ∂ <sup>h</sup> Data <sup>h</sup> −f <sup>)</sup> and the predicted pattern ( ∂Data <sup>h</sup> −r <sup>).</sup> Irradiance Wind Speed Temperature Load Multilayer Perceptron Artificial Neural Network Forecasted Irradiance Real Daily Data Forecasted Wind Speed Forecasted Data MSE Best Data MOIKOA based Optimization Final Solution Forecasted Temperature Forecasted Load Figure 2. The MLP-ANN approach for forecasting the meteorological data and load demand. Predictive accuracy of the ANN In this research, the predictive accuracy of the Artificial Neural Network (ANN) model is thoroughly assessed through various statistical parameters. These parameters include root mean square error (RMSE), mean squared error (MSE), standard deviation (STD), and linear regression (R). The focus is primarily on optimizing prediction performance, with Mean Squared Error (MSE) serving as the benchmark for identifying the most effective prediction pattern. ANN models learn patterns from historical data and adjust their parameters during training to minimize prediction errors. Their accuracy depends on factors like dataset size, quality, network architecture complexity, and optimization algorithms. ANN models leverage past data to make predictions on unseen data, offering powerful forecasting tools across various domains with their accuracy assessed through rigorous statistical analysis and validation techniques like cross-validation. The suggested technique finds the best pattern for prediction via the Mean Squared Error (MSE). <u>p=1</u> <sup>(Yp −</sup> <sup>Xp)2</sup> R = (27) ~~�~~ <u>�</u> <u>�pN=1</u> <sup>(Xp −</sup> <sup>Yave)2</sup> - <u>�N</u> N MSE = <sup><u>1</u></sup> (Yp − Xp) <sup>2</sup> (28) N <u>�</u> N N p=1 <u>�</u> p=1 (Yp − Xp) <sup>2</sup> ~~�~~ N <u>�</u> - <sup><u>1</u></sup> N p=1 (Yp − Xp) <sup>2</sup> RMSE = (Yp − Xp) <sup>2</sup> (29) p=1 According to recent studies Nguyen et al. <sup>36</sup>, the MLP-ANN is implemented for the prediction of time series data as it generates more satisfactory results. To analyze temporal information effectively, MLP-ANN requires a certain amount of memory. In ANN, memory is implemented through the use of time delays, and several different approaches have been devised to do this. In reality, these lags are employed to fine-tune ANN’s learning process parameters. The layers that are input, hidden, and output are the three layers that make up this framework. Figure 2 shows single variation inputs, denoted as i(n-1),i(n-2)…i(n − p) match samples of earlier data, where O(n) represents the forecast’s outcome value, while p indicates the prediction order. Proposed optimizer Overview of the Kepler optimization algorithm (KOA) _The KOA inspiration_ Kepler’s principles of planet motion are its main source of motivation. Kepler’s laws state that the Earth’s orbital acceleration, gravitational force and mass, and position of the planet are the four operators that influence a planet’s course around the Sun. The mathematical framework of the suggested KOA was created using the operators. Because the planets in the KOA are in different conditions around the Sun at various times, the search space is more effectively investigated and utilized. Like other population-centered metaheuristic methods, KOA begins the search with an assortment of starting objects (the applicant solutions) that have probabilistic orbitals. At this point, each object’s orbital location is initialized to be random. KOA evaluates the fitness of the initial set and repeats until the termination requirement is met. Since the word "time" is frequently applied in solar ­systems <sup>39</sup> and cosmology, it is employed in place of "iteration" in the present investigation. _The KOA steps_ The process of initializing process, defining the effect of gravity, computing an object’s velocity, departing from the ideal location, updating objects’ locations, maintaining distance from the sun, and exclusivity are some of the KOA stages that are covered in this part. _Step 1 (the procedure under the initialization):_ The formula listed ­below <sup>31</sup> will be used in this procedure to randomly disperse planets are N, also known as the population size, in d-dimensions, which indicate the choice variables: i = 1, 2, . . ., N. j = 1, 2, . . ., d. i = 1, 2, . . ., N. Xi <sup>j</sup> <sup>= X</sup> i <sup>j</sup>,low <sup>+ rand[0,1] ×</sup> Xi <sup>j</sup>,up <sup>−</sup> <sup>X</sup> i <sup>j</sup>,low, j = 1, 2, . . ., d. (30) - - i <sup>j</sup> <sup>= X</sup> i <sup>j</sup> i <sup>j</sup>,low <sup>+ rand[0,1] ×</sup> �Xi <sup>j</sup> i <sup>j</sup>,up <sup>−</sup> <sup>X</sup> i <sup>j</sup>, i,low , j = 1, 2, . . ., d. i <sup>j</sup>,up <sup>and X</sup> i <sup>j</sup> where Xi <sup>j</sup> where Xi <sup>j</sup>,up <sup>and X</sup> i <sup>j</sup>,low <sup>denote the highest and lowest boundaries, correspondingly, of the ­jth choice variable, and</sup> ­rand[0,1] is an amount produced at random ranging from 0 to 1. Additionally, Xi shows the ­i <sup>th</sup> planet. McDermott <sup>31</sup> initializes the orbital eccentricity (e) for each ith object. ei = rand[0,1], i = 1,2, . . ., N. (31) where an arbitrary number created inside the interval [0, 1] is denoted by rand[0,1]. Lastly, ­McDermott <sup>31</sup> initializes the orbital time (T) for each and every ith object. Ti=|r|, i = 1,2, . . ., N. (32) where r is a random number that is produced using the typical distribution as the starting point. _Step 2 (Determining the force of gravitational (F))_ : The Sun is the central component of the radiation structure because it is the biggest item within the system and uses its gravity to direct the motion of the other objects. A planet’s speed is determined by the Sun’s gravitational pull. A planet’s speed of orbit increases with increasing solar proximity, and vice versa. The universal rule of gravity, defined as follows, provides the Sun’s gravitational attraction XS and each planet Xi <sup>31</sup> Fgi(t) = ei × µ(t) × <sup><u>Ms</u></sup> <sup>× mi</sup> + r1 (33) R <sup>~~2~~</sup> R <sup>~~2~~</sup> i <sup>~~2~~</sup> i <sup>+ ε</sup> + r1 where Ms and <u>mi are the normalized results of</u> _MS_ and _mi_, which stand for the mass of of _XS_ and _Xi_, µ is universal gravitational unchanged, ­ei is the eccentricities of a planet’s the orbit of the earth, which ranges from 0 to 1, ­r1 is generated at a random worth that ranges from 0 to 1 to add greater variability to the gravitation quantities during the optimization procedures; and Ri is the normalized amount of ­Ri, and this is expressed ­as <sup>31</sup> . ~~�~~ d <u>�</u> j=1 �� (XSj(t) − Xij(t)) <sup>2</sup> Ri(t) = �XS(t) − Xi(t)�2 = (XSj(t) − Xij(t)) <sup>2</sup> (34) j=1 In this case, the Euclidean space across the dimensions of XS and Xi is represented by �XS(t) − Xi(t)�2 . Applying the fitness evaluation, the Sun’s mass and object i at time t is ­computed <sup>31</sup> where <u>fits(t) −</u> <u>worst(t)</u> Ms = (35) <u>�kN=1</u> <sup>(fit</sup> k <sup>(t) −</sup> <sup>worst(t)</sup> <u>fiti(t) −</u> <u>worst(t)</u> mi = (36) <u>�kN=1</u> <sup>(fit</sup> i <sup>(t) −</sup> <sup>worst(t)</sup> fits(t) = best(t) = minfitk(t), k ∈ 1,2, . . ., N. (37) worst(t) = maxfitk(t), k ∈ 1,2, . . ., N. (38) where ­r2 is a number produced at random between 0 and 1 that is used to separate the mass numbers of different planets. µ(t) is a function to control the search precision that progressively diminishes with time (t) and has the following ­definition <sup>31</sup> : <u>t</u> µ(t) = µ0 × exp(−γ ) (39) Tmax where t and Tmax are presented iteration number and the greatest iterations number, respectively, while γ is a fixed number and µ0 is a starting amount. _Step 3 (Computing the object’ speed)_ : A velocity of object is determined by its location in relation to the sun. To put it another way, a planet’s velocity rises in response to the sun’s strong gravitational pull when it approaches the sun and vice versa. This kind of action can be expressed scientifically as a dual solution. In the first step, the distance between the existing answer and an arbitrarily chosen solution is multiplied to find the speeds of planets near the Sun. In order to help maintain the velocity of the planet during the optimization procedure and prevent becoming caught in regional minima, a second step that depends on the separation among the upper and lower boundaries of the challenge is considered at the initial fold. The following is how this pattern of conduct is ­expressed <sup>31</sup> : + (1 − Ri−norm(t)) × F × U <sup>�</sup> 1 × �r5 × (�X1� −a −�RXi−bnorm� (t)) × F × U2 × �r5 × r3X <sup>�</sup> i,up − X <sup>�</sup> �r3X <sup>�</sup> i,up − X <sup>�</sup> i,low , ifRi−norm(t) ≤ 0.5 �lowX�i,up, −�ElseXi,low� �, Else (40) 2r4X <sup>�</sup> i − X <sup>�</sup> b + ℓ <sup>¨</sup> × ×� L × - + Vi(t) = ℓ × - r4 r4 × L × �X�a −�Xi� + (1 − Ri−norm(t)) × F × U2 × �r5 × ℓ = <sup>−→</sup> U × M × L (41) <u>2</u> <u>1</u> Ri(t) + ε <sup>−</sup> ai(t) + ε ���� (1 − r4) + r4 ���� �0.5 µ(t) × (MS + mi) <u>2</u> <u>1</u> L = µ(t) × (MS + mi) Ri(t) + ε <sup>−</sup> (42) M = r3 × (1 − r4) + r4 (43) −→ 0 <sup>−→</sup> r 5 ≤ <sup>−→</sup> r 6 U = 1 Else (44) 1, ifr4 ≤ 0.5 F = −1 Else (45) ℓ¨ = (1 − <sup>−→</sup> U ) × <sup>−→</sup> M × L (46) −→ M = (r3 × 1 − <sup>−→</sup> r 5 + <sup>−→</sup> r 5) (47) 1 − <sup>−→</sup> r 5 + <sup>−→</sup> r 5) - 0 <sup>−→</sup> r 5 ≤ r4 1 Else −→ 0 <sup>−→</sup> r 5 ≤ r4 U 1 = 1 Else (48) 0r3 ≤ r4 U2 = 1 Else (49) where ­r3 and ­r4 are arbitrarily produced numerical numbers at range [0, 1], <sup>−→</sup> r 5 and <sup>−→</sup> r 6 are a couple of vectors containing arbitrary numbers from 0 to 1, Vi(t) denotes the acceleration of object i, and <sup>−→</sup> X i indicates object i. −→X a and <sup>−→</sup> X b are randomly chosen solutions taken from the population, ­MS and mi denote XS and Xi ’s respective masses; µ(t) is constant of the universal ­gravitational <sup>31</sup> . ɛ is a tiny quantity that eliminates a division by zero error. i <sup>2</sup> <sup>×</sup> <sup><u>µ(t) × (MS</u></sup> <sup>+ mi)</sup> 4π <sup>2</sup> �1/3 �Ti <sup>2</sup> ai(t) = r3 × Ti <sup>2</sup> <sup>×</sup> <sup><u>µ(t) × (MS</u></sup> <sup>+ mi)</sup> (50) 4π <sup>2</sup> where ­Ti stands for object i’s orbital period. Ri−norm(t) is Euclidian normal distance among XS and Xi, and it is determined by <u>Ri(t) −</u> <u>min(R(t))</u> Ri−norm(t) = (51) max(R(t)) − min(R(t)) If Ri−norm(t) ≤ 0.5, the object is near the Sun and will accelerate to avoid falling in its direction due to the powerful attraction of the Sun. _Step 4 (Leaving the local optimal)_ : Most objects in the radiation system’s axes of rotation in a counterclockwise direction around the Sun, but some objects also rotate in a circular motion direction. This characteristic is exploited by the recommended method to escape local optimum areas. By considering a flag F to alter the search orientation and increase the likelihood of agents successfully exploring the search space, the suggested KOA mimics this pattern of action. _Step 5 (Updating objects’ positions)_ : Objects rotate in a direction that brings them closer to the Sun for a while before turning aside. The two main stages of the suggested algorithm—the discovery and utilization phases— simulate this tendency. KOA looks for new locations near the best options when utilizing solutions closer to the Sun to identify new items to explore and discover new solutions. The areas of exploration and harvesting surrounding the Sun are depicted in Fig. 3. The objects’ distance from the Sun during the exploration stage suggests that the recommended technique more effectively covers the whole search region. Following the preceding procedures, ­McDermott <sup>31</sup> updates the position of every object that is far from the Sun. −→X i(t + 1) = <sup>−→</sup> X i(t) + F × <sup>−→</sup> V i(t) + (Fgi + |r|) × <sup>−→</sup> U × ( <sup>−→</sup> X S(t) − <sup>−→</sup> X i(t)) (52) where <sup>−→</sup> X i(t + 1) is the most favorable location of the Sun found to date, <sup>−→</sup> V i(t) denotes the object i new position at time t + 1, XS(t) is the speed of object i required for reaching the new position, and ℑ is employed as a flag to modify the orientation of the search. _Step 6 (Updating distance with the Sun)_ : KOA prioritizes exploitation actor optimization while planets are close to the Sun and optimize the exploration operator when planets are far from the Sun. The regulatory parameter h’s value, which varies steadily with time, determines the application of these principles. If this quantity is modest, to exploit, the exploitation operator is employed for the areas surrounding the best-so-far answer if the distance between the Sun and planets is short. On the other hand, when this is great, an exploring operator is used to increase the planet’s orbital dispersion from the Sun. As stated in Algorithm 1, this idea is randomly swapped out to enhance KOA’s research and extraction operators even further. The following is a description of this principle’s ­model <sup>31</sup> : −→X <u>i(t) +</u> <sup>−→</sup> <u>X</u> <u>S</u> + <sup>−→</sup> <u>X</u> <u>a(t)</u> - <sup>−→</sup> X b(t))) 3 (53) −→ X i(t + 1) = <sup>−→</sup> X i(t) × <sup>−→</sup> U 1 + 1 − <sup>−→</sup> U 1 × ( −→X <u>i(t) +</u> <sup>−→</sup> <u>X</u> <u>S</u> + <sup>−→</sup> <u>X</u> <u>a(t)</u> + h × ( 3 As explained following ­McDermott <sup>31</sup>, ℎ denotes an adaptive factor that controls the separation across the Sun and the present-day planet. h = <sup><u>1</u></sup> (54) e <sup>ηr</sup> Figure 3. Locations for discovery and exploitation in the area of ­searches <sup>31</sup> . where µ is a linearly declining factor from 1 to − 2, as stated following ­McDermott <sup>31</sup>, and r is a number created statistically based on a normal distribution: η = (a2 − 1) × r4 + 1 (55) where ­a2 is a cyclic regulating parameter that gradually falls for periods during the entire optimization procedure from − 1 to − 2 in the following definition of the procedure of optimization as a ­whole <sup>31</sup> for T cycles: t% <sup><u>Tmax</u></sup> <u>T</u> <u>Tmax</u> a2 = −1 − 1 × <u>TmaxT</u> (56) T _Step 7 (Elitism)_ : To ensure the planets are positioned as optimally as possible and the Sun, this stage employs an elite method. This procedure is summarized in ­McDermott <sup>31</sup> . ≤ f X�i,new(t + 1) = (57) X�i(t) Else - X�i(t + 1), if f �X�i(t + 1)� �X�i(t)� X�i(t) Else �X�i(t)� Overview of the improved KOA (IKOA) To improve algorithm search efficiency and prevent the KOA from becoming trapped in local optimization, the chaotic sequences are integrated into the KOA. For increasing the search size, the piecewise linear chaotic map (PLCM) <sup>40</sup> is utilized to produce the chaotic sequence. KOA utilizes the PLCM to generate chaotic sequences. PLCM is known for its ability to generate chaotic behavior with a controllable degree of randomness. By leveraging PLCM, KOA can increase the search size, enabling it to explore a larger solution space efficiently. This feature helps KOA to avoid getting trapped in local optima and facilitates the discovery of diverse and potentially better solutions. The starting point of the chaotic sequence element is expressed by Z0 = rand(0,1) (58) The following variables of the PLCM-based chaotic sequence are specified theoretically as p Zk ∈ <u>1−Zk</u> - <u>Z1k−p</u> <sup>Zk</sup> <sup>∈</sup> 0, p p, 1 - Zk+1 = <u>1p−Zk</u> (59) <u>1−Zk</u> <u>Z1k−p</u> <sup>Zk</sup> <sup>∈</sup> �p, 1 To help the current search group members find more effective approaches more quickly, the chaotic local search is included. The present search group member generates a new solution using the corresponding equation: Xik,new = Xik + r(2Zk − 1) (60) where ­Zk indicates the chaotic parameter at the kth iteration, ­Xik represents the ith member location within the search group at the kth each iteration, and ­Xik,new refers to the new solution location produced by chaotic local exploration at the kth iteration. First, as follows, the chaotic searching radius ( _r_ ) is established and adjusted in subsequent iterations: r = <sup><u>(Xmax</u></sup> <sup>−</sup> <sup><u>Xmin)</u></sup> (61) 2 r <sup>k+1</sup> = rand(0,1) × r <sup>k</sup> (62) If _Xik,new_ OF quantity is higher than _Xik_ ’s, it will replace _Xik_ in the search group. Until the greatest number of iterations ( _K_ ) of the chaotic neighborhood hunt is obtained, the chaotic localized search is carried out. Implementing the IKOA The phases of multi-objective optimization of the energy microgrid in the network are provided utilizing the MOIKOA and the idea of the FDMT. The recommended methodology’s flowchart is displayed in Fig. 4. _Step 1:_ The program has been implemented using data from the network buses and lines, microgrid device data, including PV and wind sources and batteries, meteorological data, and network load needs. The program is additionally considered he general (population size, maximum iteration, and number of separate executions) and adjusting parameters of the optimizer. _Step 2:_ For each algorithm’s population, the decision variables (size of each piece of equipment and the placement of the HMG installation within the network) are chosen at random. _Step 3:_ Every set of chosen variables for the algorithm’s population has its objective function Eqs. (14)–(18) determined. _Step 4:_ Once the non-dominated solutions have been identified, they are sorted and stored in the archive. _Step 5:_ The most effective member is chosen from the archive of non-dominant solutions. _Step 6:_ Based on Eq. (52) the population of the algorithm is updated. _Step 7:_ The solutions that are non-dominated are separated and archived, and the objective function for the population that was modified in Step 6 is computed. Substitute the optimal population member identified in step 5 with the best member found in the archive. Start Establish the population of objects with peculiarities,periods, and positions that are determined at random Assess the fitness metrics of the primary population Define the optimal solution on a global scale as the sun Determine the euclidian distance that separates the sun from every object Determine the gravitational force acting on every object positioned among the sun and itself Compute the objects velocity Produce two arbitrary numbers Within 0 and 1for r, r1 No Yes If r>=r1? Assess the fitness of each object and the sun Identify the global best answer as the sun Apply the piecewise linear chaotic map Assess the fitness of each object and the sun Identify the global best answer as the sun No If the convergence criteria met? Yes End Update the object's position Modify the object's position relative to the sun Utilize an elitist approach Figure 4. Flowchart of the IKOA. _Step 8:_ Using Eq. (53), the algorithm’s population is updated. _Step 9:_ The non-dominated answers are separated and stored following the algorithm’s population update in step 8. The best member identified in step 7 is replaced based on the best population member from the nondominated solution archive. _Step 10:_ Using the piecewise linear chaotic map, Eqs. (58)–(62), the algorithm’s population is updated. _Step 11:_ The non-dominated answers are separated and archived, and the objective function for the population that was modified in Step 10 is computed. Step 9’s best member should be used in place of the best population member found in the archive. _Step 12:_ Archive current non-dominant solutions and eliminate archived dominant solutions. _Step 13:_ Convergence circumstance assessment. Proceed to step 14 if the convergence is obtained through executing the greatest iteration number; otherwise, proceed to step 6. _Step 14:_ Terminate the program and preserve the best interactive solution. MOIKOA improves decision-making for fuzzy solutions by leveraging its enhanced exploration capabilities. Fuzzy solutions often arise in multi-objective optimization problems where the objectives conflict with each other. By employing chaotic sequences and expanding the search space, MOIKOA can better explore the trade-off between conflicting objectives, leading to the identification of Pareto-optimal solutions that provide a balanced compromise among competing objectives. This ability to handle fuzzy solutions distinguishes MOIKOA from KOA, making it more suitable for complex optimization problems with multiple conflicting objectives. Results and discussion The outcomes of fuzzy multi-objective optimization of a PV/WT/BES microgrid system are given in the network via the MOIKOA considering uncertainty and forecasted data based on the MLP-ANN. The suggested method is performed on a 33-bus network according to Fig. 5. The bus and line data of this network is taken ­from <sup>41</sup> . The active and reactive demand of the 33-bus network is 3.72 MW and 2.3 ­MVAr <sup>41</sup> . Data of microgrid components cost and technical data of microgrid components are given in Tables 1 and 2, respectively. To evaluate proposed methodology the below scenarios are as follows: _Scenario#1:_ Fuzzy multi-objective optimizing the PV/WT/BES system with real data. _Scenario#2:_ Fuzzy multi-objective optimizing the PV/WT/BES system with forecasted data. _Scenario#3:_ Fuzzy multi-objective optimizing the PV/WT/BES system with forecasted data incorporating the DOD variations effect using the MOIKOA. Table 3 provides the MLP-ANN’s starting parameters such as training algorithm (TA), MSE, Epoch, validation checks (VCH), input layers number (ILN), hidden layers number (HLN), output layers number (OLN), and transfer function (TF). Table 4 displays the outcomes of the MLP-ANN prediction for load and meteorological data. As can be demonstrated based on their recorded daily data, which are displayed in Figs. 6, 7, 8 and 9, respectively, the MLP-ANN forecasts irradiance, wind speed, ambient temperature, and HMG demand values. This section presents the findings via the MOIKOA of the energy system in the network. The actual meteorological data is derived from Refs. <sup>10,13</sup> . Figure 5. The schematic of 33-bus network. <u>Item/device</u> <u>WT</u> <u>PV array</u> <u>Battery bank</u> <u>Investment cost ($)</u> <u>3000</u> <u>2300</u> <u>213</u> <u>Cost of O&M ($)</u> <u>90</u> <u>23</u> <u>7</u> <u>Life span (yr)</u> <u>20</u> <u>20</u> <u>5</u> <u>Size</u> <u>1 kW</u> <u>1 kW</u> <u>1 kAh</u> Table 1. Data of microgrid components ­cost <sup>10,13,32</sup> . <u>PV</u> <u>Value</u> <u>Rated temperature (C)</u> <u>25</u> <u>Rated irradiance (w/m2)</u> <u>103</u> <u>WT</u> <u>Value</u> Vci(m/s) <u>3</u> Vco(m/s) <u>9</u> Vrtd(m/s) <u>20</u> <u>Battery</u> <u>Value</u> <u>Voltage (V)</u> <u>12</u> <u>Lower size (kWh)</u> <u>20% of maximum size</u> <u>DOD</u> <u>0.8</u> <u>Efficiency of charge and discharge</u> <u>0.9</u> Table 2. Technical data of microgrid ­components <sup>10,13,32</sup> . <u>Item</u> <u>Description</u> <u>TA</u> <u>Levenberg–marquardt</u> <u>MSE</u> <u>0</u> <u>Epoch</u> <u>1500 iterations</u> <u>VCH</u> <u>50</u> <u>ILN</u> <u>1</u> <u>HLN</u> <u>1</u> <u>OLN</u> <u>1</u> <u>TF</u> <u>Tansig and purelin</u> Table 3. MLP-ANN’s initial configuration parameters. <u>MSE</u> <u>RMSE</u> <u>R</u> <u>Item</u> <u>Training</u> <u>Testing</u> <u>Training</u> <u>Testing</u> <u>Training</u> <u>Testing</u> <u>SI</u> <u>0.0020</u> <u>0.0018</u> <u>0.0445</u> <u>0.0434</u> <u>0.9915</u> <u>0.9916</u> <u>AT</u> <u>4.245</u> <u>3.3712</u> <u>2.0603</u> <u>1.9316</u> <u>0.9760</u> <u>0.9767</u> <u>WS</u> <u>4.7137</u> <u>4.4873</u> <u>2.1711</u> <u>2.1183</u> <u>0.2300</u> <u>0.2350</u> <u>LD</u> <u>0.2013</u> <u>0.2136</u> <u>0.4486</u> <u>0.4621</u> <u>0.9937</u> <u>0.9939</u> Table 4. The MLP-ANN’s predictions for demand data and meteorology. Figure 6. The real and forecasted irradiance during a day. Results of scenario#1 The outcomes of multi-objective optimizing the PV/WT/BES microgrid in the network are presented via a new MOIKOA algorithm and the FDMT to achieve the best interactive solution considering meteorological data and real load demand as scenario 1. The Pareto optimal solution set curve for scenario 1 is obtained using the MOIKOA algorithm in Fig. 10. Based on the FDMT process, between the optimal solutions, the final solution (in green color) has been determined and the values of each of the goals of annual power losses, the value of network voltage oscillations and the cost of purchasing power from HMG corresponding to the final solution are given in Table 1. As can be seen in Table 5, the capability of MOIKOA is evaluated with other multi-objective methods including MOKOA, MOPSO and MOGA. It should be noted that each algorithm is implemented independently 30 times and for each algorithm, the population number and maximum iteration are selected to be 50 and 100, respectively. The results showed that contrasted to other multi-objective approaches, the proposed MOIKOA achieved lower annual power losses, network voltage deviations, and HMG power costs. The MOIKOA has installed 470 kW of PV power, 817 kW of wind power, and 1244 kWh of battery capacity in Bus 17 of the network. Therefore, the amount of annual losses is reduced from 666,052 kW in the basic state to 423,227 kW and Figure 7. The real and forecasted wind speed during a day. Figure 8. The real and forecasted temperature during a day. the voltage oscillations is declined from 0.0147 p.u to 0.0129 p.u and $340,630 cost of power purchased from HMG has been obtained. Figure 11, shows the power dispatch of different HMG equipment along with microgrid load demand. It can be seen that wind and PV source are the sources of power generation, and the extra power required by the HMG load is divided into two parts. Based on the considered modeling, it is considered that 40% of the excess power will be transferred into the batteries for energy storage to supply the HMG load, and the rest (60%) will be sold to the network. Therefore, integrated energy production resources with battery reserve management have provided the possibility of continuous supply of microgrid load, then by injecting planned power into the network, they have also provided the conditions for improving the network performance. In Figs. 12 and 13, curve of network lines active losses along with network buses voltage oscillations are shown. As it can be seen, the microgrid optimization in the network to compute the optimum location and size of the equipment has decreased losses and also enhanced its voltage profile. This section presents an equal comparison of the numerical results derived from the MOIKOA, MOKOA, MOPSO, and MOGA methods, taking into account 30 separate runs. The outcome of each method has been compared using the C index (CI) since multi-objective optimization algorithms possess a more sophisticated search engine performance than single-objective ­methods <sup>42</sup> . Two algorithms’ abilities to solve the multi-objective optimization issue have been contrasted using the C index. It is presupposed in the aforementioned criteria that _S_ 1 and _S_ 2 are the two algorithms’ output PSS set. ( _S_ 1, _S_ 2) is explained according ­to <sup>42</sup> and represents the percentage of answers in set _S_ 2 that are significantly outnumbered by answers in set _S_ 1. Figure 9. The real and forecasted HMG load during a day. Figure 10. Pareto optimal solution set using the MOIKOA for Scenario#1. <u>Item</u> <u>Base net</u> <u>MOIKOA</u> <u>MOKOA</u> <u>MOPSO</u> <u>MOGA</u> <u>Number of PV</u> <u>–</u> <u>470</u> <u>606</u> <u>463</u> <u>345</u> <u>Number of WT</u> <u>–</u> <u>817</u> <u>819</u> <u>801</u> <u>818</u> <u>Number of BES</u> <u>–</u> <u>1244</u> <u>1006</u> <u>1442</u> <u>1154</u> <u>Location of HMG</u> <u>–</u> <u>Bus 17</u> <u>Bus 16</u> <u>Bus 16</u> <u>Bus 15</u> <u>Annual energy loss (kW)</u> <u>666,052</u> <u>423,227</u> <u>423,519</u> <u>423,873</u> <u>424,106</u> <u>Voltage deviation (p.u)</u> <u>0.0147</u> <u>0.0129</u> <u>0.0130</u> <u>0.0130</u> <u>0.0131</u> <u>HMG purchased power cost</u> <u>–</u> <u>340,630</u> <u>344,517</u> <u>342,362</u> <u>342,439</u> Table 5. Results of fuzzy multi-objective optimization of a hybrid PV/WT/BES microgrid in 33-bus network (Scenario#1). Figure 11. Power dispatch using the MOIKOA for Scenario#1. Figure 12. Power losses of the 33-bus network via the MOIKOA for Scenario#1. C(S1, S2) = <sup>{</sup> <sup><u>s2</u></sup> <sup>∈</sup> <sup><u>S2;</u></sup> <sup>∃s1</sup> <sup>∈</sup> <sup><u>S1</u></sup> <sup>:</sup> <sup><u>s1</u></sup> <sup>≤</sup> <sup><u>s2}</u></sup> × 100 (63) |S2| where _s_ 1, _s_ 2 are, respectively, the PSSs in sets _S_ 1, _S_ 2. A better PSS is indicated by a solution with a greater C index, which is calculated as the average of n separate executions. Table 6 displays the C indexes for different algorithm types. The outcomes demonstrated that, on average, 86.74%, 63.23%, and 70.54% of the answers provided by the MOIKOA outweigh those obtained by MOKOA, MOPSO, and MOGA in rows 2, 4, and 6. Additionally, in contrast to the MOKOA, MOPSO, and MOGA approaches, the superior capability of the MOIMRFO in achieving better PSSs is demonstrated. Results of scenario#2 This section presents the findings from the multi-objective optimization of the PV/WT/BES microgrid in the network through the new MOIKOA and the FDMT. The goal was to find the best interactive solution taking into account the load demand predicted by the machine learning algorithm as scenario 2 and meteorological data. Figure 14 shows the PSS set for scenario 2 via the MOIKOA method. Table 7 provides the values of each goal of annual power losses, the voltage oscillations, and the purchasing power cost from HMG that corresponds Figure 13. Voltage deviations of the 33-bus network via the MOIKOA for Scenario#1. <u>CI</u> <u>Mean</u> <u>STD</u> <u>Maximum</u> <u>Minimum</u> <u>C(MOIKOA, MOKOA)</u> <u>13.56</u> <u>18.20</u> <u>37.65</u> <u>18.44</u> <u>C(MOKOA, MOIKOA)</u> <u>86.74</u> <u>15.41</u> <u>100</u> <u>0</u> <u>C(MOIKOA, MOPSO)</u> <u>41.09</u> <u>32.16</u> <u>68.85</u> <u>20.27</u> <u>C(MOPSO, MOIKOA)</u> <u>63.23</u> <u>26.32</u> <u>84.05</u> <u>6.94</u> <u>C(MOIKOA, MOGA)</u> <u>37.25</u> <u>26.02</u> <u>56.43</u> <u>18.47</u> <u>C(MOGA, MOIKOA)</u> <u>70.54</u> <u>22.97</u> <u>84.38</u> <u>16.06</u> Table 6. Comparing various algorithms with the CI for scenario#1. Figure 14. Pareto optimal solution set using the MOIKOA for Scenario#2. <u>Item</u> <u>Base net</u> <u>MOIKOA</u> <u>MOKOA</u> <u>MOPSO</u> <u>MOGA</u> <u>Number of PV</u> <u>–</u> <u>234</u> <u>254</u> <u>277</u> <u>484</u> <u>Number of WT</u> <u>–</u> <u>892</u> <u>902</u> <u>881</u> <u>855</u> <u>Number of BES</u> <u>–</u> <u>1613</u> <u>1248</u> <u>1190</u> <u>880</u> <u>Location of HMG</u> <u>–</u> <u>Bus 17</u> <u>Bus 16</u> <u>Bus 16</u> <u>Bus 18</u> <u>Annual energy loss (kW)</u> <u>666,052</u> <u>438,135</u> <u>440,637</u> <u>441,550</u> <u>426,819</u> <u>Voltage deviation (p.u)</u> <u>0.0147</u> <u>0.0132</u> <u>0.0133</u> <u>0.0133</u> <u>0.0133</u> <u>HMG purchased power cost</u> <u>–</u> <u>347,365</u> <u>347,735</u> <u>347,880</u> <u>349,417</u> Table 7. Results of fuzzy multi-objective optimizing the PV/WT/BES system using the MOIKOA in 33-bus network (Scenario#2). to the final solution. The final solution (in green) was selected among the optimal solutions depending on the FDMT process. Table 7 illustrates how the MOIKOA performance in scenario 2 is contrasted with MOKOA, MOPSO, and MOGA. It should be mentioned that every algorithm is run independently thirty times, with 50 and 100 repetitions being the maximum for each algorithm, respectively. The findings demonstrated that the suggested MOIKOA produced lower values of yearly power losses, network voltage variations, and HMG power cost in comparison to previous multi-objective techniques. In Bus 17 of the network, the MOIKOA has installed 234 kW of PV power, 892 kW of wind power, and 1,613 kWh of battery capacity. As a result, the base network’s yearly losses are decreased from 666,052 to 438,135 kW, voltage variations are cut from 0.0147 to 0.0132 p.u., and $347,365 worth of power was acquired from HMG. In scenario 2, the power dispatch of various microgrid components and microgrid load demand are demonstrated in Fig. 15. As it is observed, the primary power generating sources are solar and photovoltaic (PV) systems, and the surplus power needed by the hybrid generation load is split into two halves. According to the modeling under consideration, it is anticipated that 60% of the extra power will be sold to the network and 40% will be injected into the batteries for energy storage to satisfy the HMG load. As a result, integrated energygenerating sources with battery reserve management have made it possible for microgrid loads to be supplied continuously. They have also made it possible for the grid to function better by introducing programmed power into the network. The active loss curves of the network lines and the voltage variations for scenario 2 are depicted in Figs. 16 and 17. As can be observed, the voltage profile is improved and network losses have been decreased as a result of the energy microgrid’s optimization through the selection of the best installation site and equipment capacity. Table 8 displays the C indices for several methods. The findings demonstrated that, on average, 83.25%, 76.04%, and 80.29% of the answers acquired by the MOIKOA outweigh those provided by MOKOA, MOPSO, and MOGA in rows 2, 4, and 6. Additionally, in contrast to the MOKOA, MOPSO, and MOGA approaches, the higher capacity of the MOIKOA to achieve a better Pareto solution set is demonstrated. Figure 15. Power dispatch via the MOIKOA for Scenario#2. Figure 16. The losses of the 33-bus network via the MOIKOA for Scenario#2. Figure 17. The voltage profile of the 33-bus network via the MOIKOA for Scenario#2. <u>CI</u> <u>Mean</u> <u>STD</u> <u>Maximum</u> <u>Minimum</u> <u>C(MOIKOA, MOKOA)</u> <u>10.12</u> <u>32.38</u> <u>29.45</u> <u>20.19</u> <u>C(MOKOA, MOIKOA)</u> <u>83.25</u> <u>18.94</u> <u>100</u> <u>0</u> <u>C(MOIKOA, MOPSO)</u> <u>47.62</u> <u>29.67</u> <u>66.13</u> <u>22.74</u> <u>C(MOPSO, MOIKOA)</u> <u>76.04</u> <u>21.40</u> <u>81.34</u> <u>11.66</u> <u>C(MOIKOA, MOGA)</u> <u>29.11</u> <u>28.54</u> <u>49.71</u> <u>20.32</u> <u>C(MOGA, MOIKOA)</u> <u>80.29</u> <u>16.05</u> <u>72.36</u> <u>14.63</u> Table 8. Comparing various algorithms with the CI for scenario#2. The scenarios results comparison This section compares the performance of the suggested methodology in two scenarios, 1 and 2, which are based on actual and predicted data, respectively. The MOIKOA algorithm is used to find the ideal capacity of the HMG components and the installation placement of the HMG in the network using the fuzzy multi-objective optimization problem. As far as we are aware, using anticipated data for solving the microgrid optimization problem in the network is a more accurate method of optimizing the system for the day ahead of schedule than using actual or estimated data. Table 9 shows that, in scenario 2, the PV power has decreased from 470 to 234 kW. This decrease is due, in part, to a decrease in radiation intensity based on the data that was expected. Due to variations in the wind speed profile and the non-linearity of wind power generation according to wind speed, scenario 2’s wind power has also increased when compared to scenario 1. In contrast, scenario 2’s battery storage capacity has been raised to improve network performance under these circumstances by lowering the power set of renewable resources relative to scenario 1. As compared to scenario 1 using actual data, the results indicated that taking into account the anticipated data in the microgrid optimization problem in the network (situation 2) raised the yearly cost of losses from $423,227 to $438,135. Additionally, the cost of the electricity that was purchased from HMG went from $340,630 to $347,365, and the amount of network bus voltage variation increased from 0.0129 to 0.0132 p.u. Consequently, without considering the comprehensive forecasted data, the optimization and detailed planning of storage-based hybrid microgrids fail to inform the network planning of the logical capacities of storage to enhance the network’s performance by better compensating for fluctuations in renewable energy sources’ power. Table 9 shows that when the microgrid multi-objective optimization problem is implemented, the annual power loss cost, voltage oscillations, and power purchase from the HMG increase by 3.50%, 2.33%, and 1.98%, respectively when the forecasted data based on the machine learning algorithm is compared to the real data. The results of various scenarios are shown in Figs. 18, 19 and 20. These results include the set of optimal solutions (Fig. 18), the annual losses cost and the cost of buying power from HMG (Fig. 19), and the voltage oscillations of the 33-base network (Fig. 20) in scenarios 1 and 2. It is evident from these results that taking into account the machine learning algorithm’s forecasted data instead of the real data has increased the annual losses cost, the cost of buying power from HMG, and voltage deviations. While using predicted data gives network planners a true and accurate optimization structure that gives them the ability to make informed judgments, increasing these values does not necessarily indicate bad data performance. Results of DOD variations effect The depth of discharge (DOD) refers to the amount of battery charge used relative to its total capacity, expressed as a percentage. It is calculated by dividing the remaining battery charge by the battery’s nominal capacity. This section examines how variations in DOD influence the microgrid’s ability to enhance network features <u>Item</u> <u>Scenario#1</u> <u>Scenario#2</u> <u>Deviation value</u> <u>Number of PV</u> <u>470</u> <u>234</u> <u>Considerable reduction of PV power</u> <u>Number of WT</u> <u>817</u> <u>892</u> <u>Increasing the WT power</u> <u>Number of BES</u> <u>1244</u> <u>1613</u> <u>Considerable increasing the battery energy storage</u> <u>Location of HMG</u> <u>Bus 17</u> <u>Bus 17</u> <u>Similar location</u> <u>Annual energy loss (kW)</u> <u>423,227</u> <u>438,135</u> <u>3.5% increasing the energy losses</u> <u>Voltage deviation (p.u)</u> <u>0.0129</u> <u>0.0132</u> <u>2.33% increasing the voltage deviations</u> <u>HMG purchased power cost</u> <u>340,630</u> <u>347,365</u> <u>1.98 increasing the HMG power cost</u> Table 9. Results comparison of scenarios 1 and 2. 1800 Scenario#1 1600 1400 1200 1000 800 600 400 200 0 234 PV Number WT Number BES Number 1613 Scenario#2 470 1244 817 892 Figure 18. Comparison of the best solution in scenarios 1 and 2. 450000 400000 350000 300000 250000 200000 150000 100000 50000 0 Scenario#1 438135 423227 Scenario#2 340630 347365 Annual Energy Loss (kWh) HMG Power Cost ($) Figure 19. Comparison of the annual energy loss and HMG purchased power cost in scenarios 1 and 2. 0.0132 0.01315 0.0131 0.01305 0.013 0.01295 0.0129 0.01285 0.0128 0.01275 0.0132 0.0129 Scenario#1 Scenario#2 Figure 20. Comparison of the network voltage deviation in scenarios 1 and 2. <u>Item</u> <u>10%</u> <u>20%</u> <u>30%</u> <u>40%</u> <u>50%</u> <u>60%</u> <u>70%</u> <u>80%</u> <u>Number of PV</u> <u>365</u> <u>330</u> <u>313</u> <u>293</u> <u>279</u> <u>266</u> <u>246</u> <u>234</u> <u>Number of WT</u> <u>997</u> <u>993</u> <u>984</u> <u>978</u> <u>960</u> <u>935</u> <u>912</u> <u>892</u> <u>Number of BES</u> <u>1986</u> <u>1971</u> <u>1946</u> <u>1912</u> <u>1883</u> <u>1852</u> <u>1809</u> <u>1613</u> <u>Location of HMG</u> <u>Bus 17</u> <u>Bus 17</u> <u>Bus 17</u> <u>Bus 17</u> <u>Bus 17</u> <u>Bus 17</u> <u>Bus 17</u> <u>Bus 17</u> <u>Annual energy loss (kW)</u> <u>461,730</u> <u>457,510</u> <u>453,183</u> <u>446,082</u> <u>441,863</u> <u>434,932</u> <u>428,025</u> <u>423,868</u> <u>Voltage deviation (p.u)</u> <u>0.01334</u> <u>0.01330</u> <u>0.01326</u> <u>0.01319</u> <u>0.01314</u> <u>0.01309</u> <u>0.01304</u> <u>0.01300</u> <u>HMG purchased power cost</u> <u>388,190</u> <u>379,022</u> <u>372,866</u> <u>363,214</u> <u>356,769</u> <u>350,448</u> <u>348,297</u> <u>343,388</u> Table 10. Results of fuzzy multi-objective optimization of the PV/WT/BES system in 33-bus network (Scenario#3). such as energy losses and voltage oscillations, as well as the battery storage system’s contribution and the cost of purchasing power from the microgrid. As shown in Table 10, an increase in DOD percentage, from 10 to 80%, leads to a reduction in battery energy capacity but allows the battery to provide more energy to the hybrid microgrid (HMG) to compensate for load power loss. Table 10, indicates that this rise in DOD percentage results in decreased storage capacity and resource generation. The findings also reveal that higher DOD levels correlate with reduced annual loss cost, voltage oscillations, and power purchasing costs from the microgrid, due to improved storage participation and better energy management. Specifically, increasing DOD to 80% improves the microgrid’s efficiency by achieving network goals. When DOD is adjusted from 10 to 80%, annual losses decrease to 423,868 kW, voltage variation drops to 0.01300 p.u. from 0.01334 p.u., and the cost of electricity purchased from HMG decreases from $388,190 to $343,388. Thus, a higher DOD enhances network performance and increases battery participation. Figure 21 shows that as the percentage of DOD increases, the network’s cost of acquiring power from HMG has decreased; Fig. 22 shows that the annual power loss has also decreased; and Fig. 23 shows that the amount of voltage deviations in the 33-bus network has increased along with the DOD percentage. 400000 390000 380000 370000 360000 350000 340000 330000 320000 388190 <u>379022</u> 372866 363214 356769 ~~350448~~ <u>348297</u> 343388 10 20 30 40 50 60 70 80 DOD% Figure 21. The HMG power cost variations versus DOD%. 470000 460000 450000 440000 430000 420000 410000 400000 <u>461730</u> 457510 453183 446082 <u>441863</u> 434932 428025 ~~4~~ 23868 10 20 30 40 50 60 70 80 DOD% Figure 22. The annual power loss variations versus DOD%. 0.0134 0.0133 0.0132 0.0131 0.013 0.0129 0.0128 0.01334 ~~0.0133~~ 0.01325 <u>0.01319</u> 0.01314 <u>0.01309</u> 0.01303 ~~0.01~~ 3 10 20 30 40 50 60 70 80 DOD% Figure 23. The voltage deviation variations versus DOD%. Conclusion In this study, a multi-objective structure for a PV/WT/BES microgrid optimization in a 33-bus network was implemented for minimizing the annual energy losses, to minimize the network bus voltage oscillations, and minimize the cost of purchasing power from the microgrid by the network. The problem is implemented in three scenarios. First, in scenario 1, the optimization problem was done with real data, and the variables, i.e., the position of the microgrid and the optimal size of PV and wind resources along with battery storage capacity, were determined using a new improved multi-objective algorithm named MOIKOA. Then, in scenario 2, the optimization problem was done considering the forecasted data based on the presented machine learning algorithm. Then, in scenario 3, the effect of battery DOD changes has been evaluated as the important contribution of storage devices in the HMG optimization in the network in improving each of the network objectives. The study outcomes are listed as follows: - The findings presented that the suggested multi-objective method was easily capable of computing the final interactive answer between the set of answers in such a way that a favorable compromise between different objectives is achieved. Also, the optimal variables are found and the best microgrid capability with more effectiveness is extracted in improving the network characteristics. - Results of scenario 1 considering real data showed that the proposed multi-objective framework based on the MOIKOA achieved lower annual power losses, network voltage deviations, and HMG power cost compared to the other multi-objective algorithms. Based on the proposed methodology in scenario 1, the annual losses were decreased from 666,052 to 423,227 kW, voltage deviations were decreased from 0.0147 to 0.0129 p.u and the HMG power cost was obtained to $340,630. - The MLP-ANN predicts irradiance, wind speed, ambient temperature, and HMG demand data according to the recorded daily data, and scenario 2 was implemented considering the forecasted data. The results of scenario 2 considering forecasted data showed that the microgrid multi-objective optimization problem in this scenario causes an increase of 3.50%, 2.33%, and 1.98%, respectively, in the annual cost of losses, voltage deviations, and the cost of purchasing power from the HMG compared to the real data-based optimization. - The effect of DOD variations was investigated in scenario#3 and the findings cleared that by increasing the DOD% from 10 to 80%, the annual energy losses were decreased by 8.20%, voltage deviation was declined by 2.55% reduction, and the HMG power cost was decreased by 11.54%. Therefore, a high percentage of DOD has increased battery participation and improved network objectives. - Robust multi-objective optimizing the PV/WT microgrid system incorporating multi-energy storage is suggested for future work using information gap decision theory considering efficiency, and reliability of hybrid microgrids and incorporating the adaptive real-time optimization. Data availability The datasets used and/or analyzed in the study available from the corresponding author for reasonable request. Received: 6 April 2024; Accepted: 6 June 2024 References 1. Akorede, M. F., Hizam, H. & Pouresmaeil, E. Distributed energy resources and benefits to the environment. _Renew. Sustain. Energy_ _Rev._ 14 (2), 724–734 (2010). 2. Liu, Z. F. _et al._ Improving the economic and environmental benefits of the energy system: A novel hybrid economic emission dispatch considering clean energy power uncertainty. _Energy_ 285, 128668 (2023). 3. Szostok, A. & Stanek, W. Thermo-ecological analysis of the power system based on renewable energy sources integrated with energy storage system. _Renew. Energy_ 216, 119035 (2023). 4. Khajehzadeh, M., Taha, M. R. & El-Shafie, A. Reliability analysis of earth slopes using hybrid chaotic particle swarm optimization. _J. Central South Univ._ 18, 1626–1637 (2011). 5. Eslami, M., Akbari, E., Seyed Sadr, S. T. & Ibrahim, B. F. A novel hybrid algorithm based on rat swarm optimization and pattern search for parameter extraction of solar photovoltaic models. _Energy Sci. Eng._ 10 (8), 2689–2713 (2022). 6. Dashtaki, A. A., Hakimi, S. M., Hasankhani, A., Derakhshani, G. & Abdi, B. Optimal management algorithm of microgrid con nected to the distribution network considering renewable energy system uncertainties. _Int. J. Electr. Power Energy Syst._ 145, 108633 (2023). 7. Zhou, S. _et al._ Joint expansion planning of distribution network with uncertainty of demand load and renewable energy. _Energy_ _Rep._ 8, 310–319 (2022). 8. Bahlawan, H. _et al._ Optimization of a renewable energy plant with seasonal energy storage for the transition towards 100% renew able energy supply. _Renew. Energy_ 198, 1296–1306 (2022). 9. Dinh, B. H., Nguyen, T. T., Nguyen, T. T. & Pham, T. D. Optimal location and size of photovoltaic systems in high voltage transmis sion power networks. _Ain Shams Eng. J._ 12 (3), 2839–2858 (2021). 10. Arasteh, A., Alemi, P. & Beiraghi, M. Optimal allocation of photovoltaic/wind energy system in distribution network using meta heuristic algorithm. _Appl. Soft Comput._ 109, 107594 (2021). 11. Ahmadi, M. _et al._ Optimum coordination of centralized and distributed renewable power generation incorporating battery storage system into the electric distribution network. _Int. J. Electr. Power Energy Syst._ 125, 106458 (2021). 12. Hassan, A. S., Sun, Y. & Wang, Z. Multi-objective for optimal placement and sizing DG units in reducing loss of power and enhanc ing voltage profile using BPSO-SLFA. _Energy Rep._ 6, 1581–1589 (2020). 13. Javad Aliabadi, M. & Radmehr, M. Optimization of hybrid renewable energy system in radial distribution networks considering uncertainty using meta-heuristic crow search algorithm. _Appl. Soft Comput._ 107, 107384 (2021). 14. Wong, L. A., Ramachandaramurthy, V. K., Walker, S. L., Taylor, P. & Sanjari, M. J. Optimal placement and sizing of battery energy storage system for losses reduction using whale optimization algorithm. _J. Energy Storage_ 26, 100892 (2019). 15. Kamel, S., Abdel-Mawgoud, H., Alrashed, M. M., Nasrat, L. & Elnaggar, M. F. Optimal allocation of a wind turbine and battery energy storage systems in distribution networks based on the modified BES-optimizer. _Front. Energy Res._ 11, 1100456 (2023). 16. Kumar, T. V. & Injeti, S. K. Probabilistic optimal planning of dispatchable distributed generator units in distribution systems using a multi-objective velocity-based butterfly optimization algorithm. _Renew. Energy Focus_ 43, 191–209 (2022). 17. Selim, A., Kamel, S. & Jurado, F. Efficient optimization technique for multiple DG allocation in distribution networks. _Appl. Soft_ _Comput._ 86, 105938 (2020). 18. Saini, P. & Gidwani, L. An investigation for battery energy storage system installation with renewable energy resources in distribu tion system by considering residential, commercial and industrial load models. _J. Energy Storage_ 45, 103493 (2022). 19. Hamidan, M. A. & Borousan, F. Optimal planning of distributed generation and battery energy storage systems simultaneously in distribution networks for loss reduction and reliability improvement. _J. Energy Storage_ 46, 103844 (2022). 20. Moghaddam, M. J. H., Bayat, M., Mirzaei, A., Nowdeh, S. A. & Kalam, A. Multiobjective and simultaneous two-problem allocation of a hybrid solar-wind energy system joint with battery storage incorporating losses and power quality indices. _Int. J. Energy Res._ [https://​doi.​org/​10.​1155/​2023/​66815​28 (2023).](https://doi.org/10.1155/2023/6681528) 21. Jafar-Nowdeh, A. _et al._ Meta-heuristic matrix moth–flame algorithm for optimal reconfiguration of distribution networks and placement of solar and wind renewable sources considering reliability. _Environ. Technol. Innov._ 20, 101118 (2020). 22. Hadi Abdulwahid, A. _et al._ Stochastic multi-objective scheduling of a hybrid system in a distribution network using a mathematical optimization algorithm considering generation and demand uncertainties. _Mathematics_ 11 (18), 3962 (2023). 23. Wang, W. _et al._ Renewable energy sources planning considering approximate dynamic network reconfiguration and nonlinear correlations of uncertainties in distribution network. _Int. Electr. Power Energy Syst._ 139, 107791 (2022). 24. Ramadan, A., Ebeed, M., Kamel, S., Ahmed, E. M. & Tostado-Véliz, M. Optimal allocation of renewable DGs using artificial hum mingbird algorithm under uncertainty conditions. _Ain Shams Eng. J._ 14 (2), 101872 (2023). 25. Liu, Z., Hara, R. & Kita, H. Hybrid forecasting system based on data area division and deep learning neural network for short-term wind speed forecasting. _Energy Conv. Manag._ 238, 114136 (2021). 26. Ledmaoui, Y. _et al._ Forecasting solar energy production: A comparative study of machine learning algorithms. _Energy Rep._ 10, 1004–1012 (2023). 27. Mayer, M. J. Benefits of physical and machine learning hybridization for photovoltaic power forecasting. _Renew. Sustain. Energy_ _Rev._ 168, 112772 (2022). 28. Abdullah, H. M., Park, S., Seong, K. & Lee, S. Hybrid renewable energy system design: A machine learning approach for optimal sizing with net-metering costs. _Sustainability_ 15 (11), 8538 (2023). 29. Shams, M. H., Niaz, H., Na, J., Anvari-Moghaddam, A. & Liu, J. J. Machine learning-based utilization of renewable power curtail ments under uncertainty by planning of hydrogen systems and battery storages. _J. Energy Storage_ 41, 103010 (2021). 30. McDermott, J. When and why metaheuristics researchers can ignore “No Free Lunch” theorems. _SN Comput. Sci._ 1 (1), 60 (2021). 31. Abdel-Basset, M., Mohamed, R., Azeem, S. A. A., Jameel, M. & Abouhawwash, M. Kepler optimization algorithm: A new metaheuristic algorithm inspired by Kepler’s laws of planetary motion. _Knowl. Based Syst._ 268, 110454 (2023). 32. Kaabeche, A., Diaf, S. & Ibtiouen, R. Firefly-inspired algorithm for optimal sizing of renewable hybrid system considering reliability criteria. _Solar Energy_ 155, 727–738 (2017). 33. Lotfipour, A. & Afrakhte, H. A discrete teaching–learning-based optimization algorithm to solve distribution system reconfigura tion in presence of distributed generation. _Int. J. Electr. Power Energy Syst._ 82, 264–273 (2016). 34. Nowdeh, S. A. _et al._ Fuzzy multi-objective placement of renewable energy sources in distribution system with objective of loss reduction and reliability improvement using a novel hybrid method. _Appl. Soft Comput._ 77, 761–779 (2019). 35. Nguyen, H. T., Safder, U., Nguyen, X. N. & Yoo, C. Multi-objective decision-making and optimal sizing of a hybrid renewable energy system to meet the dynamic energy demands of a wastewater treatment plant. _Energy_ 191, 116570 (2020). 36. Agüera-Pérez, A., Palomares-Salas, J. C., De La Rosa, J. J. G. & Florencias-Oliveros, O. Weather forecasts for microgrid energy management: Review, discussion and recommendations. _Appl. Energy_ 228, 265–278 (2018). 37. Faraji, J., Abazari, A., Babaei, M., Muyeen, S. M. & Benbouzid, M. Day-ahead optimization of prosumer considering battery depreciation and weather prediction for renewable energy sources. _Appl. Sci._ 10 (8), 2774 (2020). 38. Khosravi, A., Machado, L. & Nunes, R. O. Time-series prediction of wind speed using machine learning algorithms: A case study Osorio wind farm, Brazil. _Appl. Energy_ 224, 550–566 (2018). 39. Yaghoubi, M. _et al._ Modified salp swarm optimization for parameter estimation of solar PV models. _IEEE Access_ 10, 110181–110194 (2022). 40. Hu, Y., Zhu, C. & Wang, Z. An improved piecewise linear chaotic map based image encryption algorithm. _Sci. World J._ [https://​doi.​](https://doi.org/10.1155/2014/275818) [org/​10.​1155/​2014/​275818 (2014).](https://doi.org/10.1155/2014/275818) 41. Swarnkar, A., Gupta, N. & Niazi, K. R. Adapted ant colony optimization for efficient reconfiguration of balanced and unbalanced distribution systems for loss minimization. _Swarm Evolut. Comput._ 1 (3), 129–137 (2011). 42. Ahmadi, B., Ceylan, O. & Ozdemir, A. A multi-objective optimization evaluation framework for integration of distributed energy resources. _J. Energy Storage_ 41, 103005 (2021). Author contributions F.D.: investigation, visualization, writing—original draft preparation, M.E.: supervision, software, data curation, resources, validation, formal analysis, software, M.K.: conceptualization, reviewing and editing original draft, formal analysis, A.B.: reviewing and editing original draft, formal analysis, D.J.J.: visualization, writing—original draft preparation, project administration, S.P.: resources, investigation, visualization, writing—original draft preparation, project administration, funding acquisition. Competing interests The authors declare no competing interests. Additional information Correspondence and requests for materials should be addressed to M.E., M.K. or S.P. Reprints and permissions information is available at www.nature.com/reprints. Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from [the copyright holder. To view a copy of this licence, visit http://​creat​iveco​mmons.​org/​licen​ses/​by/4.​0/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2024

섹션 본문 122문단 · 52,509자

(제목 없음)

1In this study, a fuzzy multi-objective framework is performed for optimization of a hybrid microgrid (HMG) including photovoltaic (PV) and wind energy sources linked with battery energy storage (PV/ WT/BES) in a 33-bus distribution network to minimize the cost of energy losses, minimizing the voltage oscillations as well as power purchased minimization from the HMG incorporated forecasted data.The variables are microgrid optimal location and capacity of the HMG components in the network which are determined through a multi-objective improved Kepler optimization algorithm (MOIKOA) modeled by Kepler's laws of planetary motion, piecewise linear chaotic map and using the FDMT.In this study, a machine learning approach using a multilayer perceptron artificial neural network (MLP-ANN) has been used to forecast solar radiation, wind speed, temperature, and load data.The optimization problem is implemented in three optimization scenarios based on real and forecasted data as well as the investigation of the battery's depth of discharge in the HMG optimization in the distribution network and its effects on the different objectives.The results including energy losses, voltage deviations, and purchased power from the HMG have been presented.Also, the MOIKOA superior capability is validated in comparison with the multi-objective conventional Kepler optimization algorithm, multi-objective particle swarm optimization, and multi-objective genetic algorithm in problem-solving.The findings are cleared that microgrid multi-objective optimization in the distribution network considering forecasted data based on the MLP-ANN causes an increase of 3.50%, 2.33%, and 1.98%, respectively, in annual energy losses, voltage deviation, and the purchased power cost from the HMG compared to the real data-based optimization.Also, the outcomes proved that increasing the battery depth of discharge causes the BES to have more participation in the HMG effectiveness on the distribution network objectives and affects the network energy losses and voltage deviation reduction.Motivation and backgroundDue to the significant rise in electrical usage over the past ten years, electricity distribution firms are now required to properly build and operate their networks in order to meet customer demands 1 .Thus, one of the primary ways

Related works and gaps

2To establish the best placement and capacity for renewable energy systems, several solutions have been presented for integration with distribution networks.The impact of assigning the DG units on power quality within the network is assessed in Dinh et al. 9 .The findings demonstrated that where and how big the DGs had a significant impact on the voltage-sag.In Arasteh et al. 10 , PV utilization in a distribution network is developed to lower costs and enhance the voltage conditions.The enhanced whale optimizer method is utilized to calculate the PV resource size.Single-objective DG sizing and placement are discussed in Ahmadi et al. 11 to lower network losses when employing the symbiotic organisms search (SOS) technique.To minimize energy costs and CO 2 emissions while taking into account energy that is not provided an attractive approach with the virus colony search (VCS) method is used in Hassan et al. 12 for allocating the standalone energy system incorporated with PV and battery in the network.Using an improved salp swarm algorithm (ISSA), the best resource allocation and reconfiguring of the network are examined in Javad Aliabadi and Radmehr 13 to reduce losses, enhance reliability, and take into account load demand, and generate resource uncertainty.The allocation of battery storage with PV connected to the network is studied in Wong et al. 14 using the whale optimization algorithm (WOA) to reduce power loss.The results show that WOA effectively sizes and places the battery storage in the distribution network to minimize power loss; nevertheless, the PV system's uncertainty and changing demand behavior are not taken into account.Taking into account the commercial demand background, an enhanced bald eagle search algorithm is employed in Kamel et al. 15 to minimize the power loss in the electrical networks.To increase network resilience, the methodology uses battery storage to charge from turbines under small demands.In Kumar and Injeti 16 , the butterfly optimization method is used to find a way to integrate biomass and BES with green distributed generation (DGs) in distribution networks.This optimizes the techno-economics for business distribution systems while taking network reconfiguration into account.Reducing voltage variation, annual economic loss, and power loss are the main objectives.The biomass and battery storage systems provide the WT and PV systems, respectively, to render non-controllable DGs, such as WT and PV, dispatchable.An improved sine cosine algorithm with the chaotic map is put forth in Selim et al. 17 to reduce the power, mitigating voltage deviation, and voltage stability enhancement while optimizing the optimization of battery storage integrated with PV systems.To lower investment expenses and improve the voltage profile, a multi-verse optimization (MOMVO) is proposed in Ahmadi et al. 11 that incorporates both centralized and distributed generation.Phase two determines the size and location of the DGs, whereas the first phase optimizes the capacity and location of distributed generators.Nevertheless, effective probability distribution functions are not applied to describe the ambiguity of irradiance and wind, and the MOMVO algorithm's convergence properties are not assessed.A genetic algorithm is employed in Ahmadi et al. 18 to determine the best time to schedule BES in conjunction with PV systems to minimize energy loss, lessen reverse load flow in the distribution system, and reduce overvoltage.The optimizer's efficiency is not compared to alternative methods, and just one DG unit is allocated in all situations despite the uncertain nature of irradiance and dynamic load needs.Ref. 19 suggests that to improve distribution systems' dependability, PV and BES systems should be deployed simultaneously.A decomposition-based multi-objective evolution method is used to address the optimization issue, which is expressed as many goals and attempts to reduce energy losses, energy not provided, power quality, and load costs.The escaping bird search (EBS) method is used in Hamidan and Borousan 20 to propose a multi-objective, sequential assignment of two problems in hybrid DGs consisting of PVs, WTs, and battery storage in the network.This system can reduce overall losses and enhance power quality.In Moghaddam et al. 21, the weight factor approach is used to build a multi-criteria method to configure the networks using PV and WT renewable sources, while the moth-flame optimization (MFO) algorithm is used to improve reliability.The scheduling of an energy system with a PV and WT integrated with a system for storing batteries is examined in Jafar-Nowdeh et al. 22 in a distribution network to reduce energy losses, enhance reliability while accounting for uncertainties, and optimize the voltage profile.An enhanced escaping-bird search technique is used to achieve this goal.In Hadi Abdulwahid et al. 23 , Monte Carlo sampling (MCS) and particle swarm optimization (PSO) are employed to allocate WTs and reconfigure the network based on uncertainties in wind speed and irradiation.Utilizing an artificial hummingbird method that incorporates uncertainty and minimizes resource costs, emissions, and voltage variation, Wang et al. 24 recommends an efficient allocation of renewable resources.A unique hybrid wind speed forecasting system determined by a deep learning neural network structure and the data area division technique is proposed in Ramadan et al. 25 .The wind speed data is broken down using complementary ensemble empirical mode decomposition in the data preprocessing module.Using machine learning methods, a comparative analysis of PV energy generation forecasts is offered in Liu et al. 26 .The best predictive model for energy prediction, according to model efficiency, is the artificial neural network (ANN).For functioning day-ahead power forecasting that utilizes numerical temperature prediction, a head-to-head opposition of the physical, data-driven, and mixed approaches is carried out in Ledmaoui et al. 27 .For optimizing the scale of an off-grid energy system, a data-driven approach is suggested in Mayer 28 that blends hybrid meta-heuristics and machine learning to anticipate weather patterns over the system's lifetime.A deep learning-driven allocating and battery storage operation and water electrolyzer is carried out in Abdullah et al. 29 .To achieve this, a collection of real clean energy-curtailed data is thoroughly examined, and a prediction error and its PDF are found using deep learning forecasting techniques.

3Several strategies are used to solve the issue in the context of the hybrid microgrid (HMG) energy systems optimization framework in the networks.These methods are offered to take into account four elements: projected data derived from machine learning algorithms; uncertainty; fuzzy multi-objective architecture; and battery energy storage.The following are some of the methods that have been used in the literature: (1) RES optimization in distribution networks without battery storage 9-14 , (2) RES optimization in distribution networks with battery storage 11,[15][16][17][18][19][20][21][22] , (3) fuzzy multi-objective RES optimization 11,16,[19][20][21] , and (4) RES optimization incorporating data forecasting [25][26][27][28][29] .As is evident, no research has been done on the hybrid PV/WT/BES microgrid systems optimization taking into account all four aspects according to the authors' knowledge so far.

Contributions

4The following is the paper's contributions considering the literature and gaps:

5• For the hybrid PV/WT/BES microgrid system optimization in a distribution network, we built an innova- tive multi-objective improved mathematical framework instead of creating a single or bi-objective model that fails to accurately represent the actual scenario.A fuzzy decision-making technique (FDMT) is utilized to identify the final solution between the non-dominant options in the constructed multi-objective model, which takes three objectives into consideration: minimizing energy losses, minimizing voltage variations, and minimizing the cost of the HMG.• The multilayer perceptron artificial neural network (MLP-ANN), a machine learning method, is employed in this work as an effective tool to forecast meteorological data and network load requirements in issue resolution.By utilizing this technology, network operators and renewable energy source operators may manage and integrate renewable energy sources into the grid with greater knowledge, creating an energy system that is more dependable and efficient.Technologies for storing energy are crucial, particularly those related to batteries and how deep they can be discharged (DOD) in HMGs.• The literature study, however, reveals that there is a lack of attention paid to the effect of DOD on the opti- mization of HMG systems based on renewable resources combined with battery storage.Furthermore, the degree to which DOD modifications have improved the HMGs' efficiency with regard to distribution network losses and voltage circumstances has not been addressed.• Nevertheless, no meta-heuristic method can be ideal for handling every optimization problem, according to the No Free Lunch (NFL) theorem 30 .As a result, it also has certain difficult issues, such as the propensity to enter local optimal and the excessive reliance on the quality of the original population.Because of this, the problem is solved in this study via a novel optimization method called the multi-objective improved Kepler optimization algorithm (MOIKOA), which was motivated by Kepler's laws of planetary motion 31 .To avoid becoming trapped in a local optimum, the piecewise linear chaotic map and FDMT are the foundations of the MOIKOA formulation.• The objective is to create a fuzzy multi-objective structure that will enable the hybrid PV/WT linked with a BES (PV/WT/BES) microgrid system optimization in the network.This will be achieved via a multi-objective improved Kepler optimization algorithm (MOIKOA), which will take into account the effects of battery DOD changes and forecasted data based on MLP-ANN on microgrid optimization in the electrical networks.

Paper organization

6The problem constraints, multi-objective model, and HMG modeling are described in "Methodology" section."Proposed optimizer" section describes the machine learning technique to data forecasting that uses a multilayer perceptron artificial neural network.In "Results and discussion" section, the suggested optimizer has been formulated."Conclusion" section presents the simulation results, and Sect.6 gives the research outcomes.

Methodology Understudy microgrid

7The primary components of the proposed HMG system in this work are PV, WT, and battery energy storage (PV/WT/BES) according to Fig. www.nature.com/scientificreports/power, the inverter is also responsible to supply the AC power to the AC demand.This technology is intended to first supply the HMG load and then introduce extra power into the network to enhance the network's operation.

PV model

8The following is a thorough model to calculate the PV array power considering the irradiance irradiated to the array's surface, the radiation's horizontal element, the surrounding temperature, and a few key technical features 32 :

9where P r,pv is rated PV power, Et IE is PV MPPT efficiency, β is the PV surface angle versus the surface of hori- zontal, S p is the part of the solar radiation strength that is effectively radiated vertically on a plane that is inclined, S displays the proportion of the radiation′s intensity to S p and nominal conditions ( S STC = 1000 W/m 2 ) 32 , S t corresponds to the irradiation that the array's sloped surface emits, h represents the irradiance head's angle, T a denotes the ambient temperature, NOCT refers to the operation temperature normally (°C).k 1 − k 6 are coef- ficient of Et IE (S, T) this is acquired by using actual data taken from one or more places to stabilize the model.

Wind turbine model

10The wind speed-based WT generating power model is a multi-parameter, nonlinear model.A combination of cut-in, cut-out, and nominal wind speed, the power generated by WT ( P WT ) is calculated by Szostok and Stanek 3 , Javad Aliabadi et al. 13 and Moghaddam et al. 21ere P rtd,wt is the PV nominal power, V is the wind speed, V ci , V rtd and V co stand for cut-in, rated, and cut-out wind speeds (m/s).The wind data is recorded at a 40-m wind tower height, with an installation height of 15 m.The definition of wind speed under these circumstances is as follows Szostok and Stanek 3 , Javad Aliabadi et al. 13 and Moghaddam et al. 21:

11where V H represents wind speed at height H, V Href represents wind speed at height H ref , and α represents the surface's smoothness value, which ranges from 0.14 to 0.25 3,13,21 .

12(1)

Battery model

13To maintain continuous load demand and offset PV power variations, battery storage has been employed.When there is excess power, the battery is charged with 40% of the power, with the remaining 40% being sent to the network.By draining the batteries, the load supply is kept at the appropriate level during a system power outage 11,14,15,18 :

14Charging mode When t he ele c t r icit y re quire d for t he lo ad exce e ds t he PV pro duc t ion p ower (P PV (t) × η DC/DC > P LD (t)/η Inv ) and E Batt (t − 1) < E max Batt , 40% of the extra power is fed into the batteries, which are charged to providing the full load.60% of the surplus power is still delivered to the distribution system.The battery bank energy at t is defined by where σ represents the rate of self-discharge, P LD (t) indicated the demand at t, η Inv denotes efficiency of the inverter, Δt is the time step, and η ch denotes battery bank efficiency when charging.Batt , the system is now unable to serve the load due to a power shortfall.In this case, the battery bank is discharged to make up for the loss of system power.The battery energy at t can be expressed by where η disch denotes discharging efficiency of the battery.

No charging and discharging mode

15The demand is entirely provided and the saved energy remains constant when the PV output power and the demand are equal (P PV (t) × η DC/DC = P LD (t)/η Inv ) .The battery energy at t is modeled by

Objective function

16The optimization of a PV/WT/BES microgrid system is implemented for energy losses, voltage deviations, and HMG power cos minimization.

Minimization of the energy losses

17The first aim in optimization of the PV/WT/BES microgrid system in the network is presented the energy losses cost ( C loss ) minimization which can be calculated by Hassan et al. 12 , Wong et al. 14 and Saini,and Gidwani 19 where C loss , P l,h loss and C h elect denote the costs of losses, line l losses in hour h, and cost of electricity in hour h, respectively.

Minimization of the voltage deviations

18The second aim in the PV/WT/BES microgrid system optimization in the network is voltage deviations ( VSD ) minimization 33 in the network buses which can be computed by where VSD is the network voltage profile, v i is voltage of ith bus, v p is the buses mean voltage, and N bus indicate bus numbers.

Minimization of the HMG cost

19The third aim in the PV/WT/BES microgrid system optimization in the network is minimizing the of total purchased power cost from the HMG ( C HMG ) for the network which is calculated by

where P h

20Extra is injected extra power to the network, and C h Extra is cost of per kW for purchasing the extra power for the network.

Multi-objective function

21The problem of multi-objective optimization is formulated as follows in Lotfipour and Afrakhte 34 and Nowdeh et al. 35 : It has many conflicting objective functions as well as equality and inequality constraints that must be simultaneously optimized.

22where the number of objective functions is denoted by n, F(x) is the vector of objective functions, and g i (x) and h i (x) are the constraints on inequality and equality.There are two possible solutions to a multi-objective optimization issue: x and y.One will either outweigh the other, or none of the other options will.Consequently, an answer x will win out more than an answer y if the next two conditions are met.Therefore, Pareto set solutions (PSSs) can be found via the non-dominant answers inside the search field.Ultimately, the earlier saved non-dominant answers contain the solution.To select the best answer among the best possible options, the fuzzy function is investigated using a membership function in which the exact variables number can be provided input.In this case, µ k i , which has the following definition 34,35 , denotes for the objective function i value that corresponds to the PSS k:

23where the maximum and lower limits of the objective function I are, respectively, represented by f max i and f min i .The recommended method of computing these values makes use of the optimization results for each objective function.Given that µ k i is a number between 0 and 1, a value of 0 denotes incompatibility between the answer and the operator's goals, while 1 denotes complete compliance.

24The fuzzy decision-making process is designed to handle multiple conflicting objectives by assigning a membership function to each objective.This allows for a more flexible evaluation of trade-offs between objectives.For each solution in the Pareto front, the fuzzy decision-making process aggregates the fuzzy values of all objectives.This aggregation helps in ranking the solutions based on their overall performance across all objectives.Each objective is normalized, and membership functions are defined to convert the objective values into fuzzy values.This step ensures that different objectives are comparable and can be aggregated meaningfully.The fuzzy decisionmaking process identifies the solution with the highest aggregated membership value as the best compromise solution.This method helps in selecting a balanced solution that considers all objectives, rather than focusing on just one or a few.By employing the fuzzy decision-making process, the study ensures a comprehensive evaluation of all non-dominant solutions, leading to a final solution that best satisfies the multiple, often conflicting, objectives of minimizing energy losses, voltage oscillations, and power purchased from the grid, while optimizing the location and capacity of HMG components based on forecasted data.

Constraints

25The items that follow limitations should apply to the objective function.The problem's restrictions are taken into account as follows Arasteh et al. 10 , Wong et al. 14 and Saini, and Gidwani 19 :

Power balance

26Throughout the whole study time, the network's production and consumption balance constraint is as outlined below:

27where P h slack , P h loss and P h D−DN refer to the power provided by the post, network losses and network demand at time h, and P h HMG is transferred power for the network by the HMG at time h.

28(

Bus voltage

29Network bus voltages should fall between the following allowed ranges:

30where V min b and V max b are lower and upper limits of bus voltage.

Allowable current

31The value of permitted current to flow via the network branches should satisfy the following constraint:

32where I max i is maximum allowable passed current from the network lines.

Data forecasting based on the machine learning

33In order to optimize the microgrid in the electrical network, the method of forecasting described utilizes a machine learning-based methodology that utilizes the multilayer perceptron artificial neural network (MLP-ANN) for daily load forecasting (Fig. 2).The machine learning-based method is applied to forecast temperature, wind speed, and radiation.Precisely predicting the electrical network's demand for load conditions and weather circumstances is essential for optimizing the energy microgrid within the network, especially when patterns of consumption get more intricate and dynamic.Nevertheless, forecasting weather errors leads to uncertainty, which deviates from microgrid optimization.The concentration of this research is on day-ahead microgrid optimization in the networks.To solve these difficulties, a machine learning-based technique for load demand and meteorological parameter predictions is employed.

MPL-ANN algorithm

34In this study, by forecasting future sampling utilizing previous data, the MLP-ANN is utilized to anticipate timeseries values for load and weather parameters.This technique was chosen because, in contrast with additional complicated hybrid computations, it is easier to construct and has more technological maturation, thus being available to other academics who may be interested in using a similar approach.In recent research that focused on predicting certain parameters, it is usual practice to compare the predictions derived from this machine learning method in order to assess their efficacy [36][37][38] .Using the MLP-ANN technique, this study offers a multi-objective optimization of the microgrid in an electrical network, producing the most accurate predicted layout for each parameter (irradiance, wind speed, ambient temperature, and load demand).It is believed that a pattern that repeats itself once every 24 h is the ideal one.The mean squared error (MSE) measure is used for contrasting each anticipated pattern produced by the MPL-ANN method with the reality patterns.The patterns with the lowest MSE 36,37 are selected for optimization.Figure 2 presents a summary of the recommended method and the pattern selection procedure.This technique supports microgrid optimization by choosing exact patterns, which is in line with the present tendency of using machine learning techniques for predicting particular parameters.

35where for each parameter, ∂ Best Data represents the choice of the best-predicted pattern, ∂ h Data−f is predicted data at time t, ∂ h Data−r denotes real data at time t, S , V , T a , and Dmd refers to the radiation, wind speed, temperature and load demand, respectively.It computes the least mean square error (MSE) between the real pattern ( ∂ h Data−f ) and the predicted pattern ( ∂ h Data−r ).

36(20) According to recent studies Nguyen et al. 36 , the MLP-ANN is implemented for the prediction of time series data as it generates more satisfactory results.To analyze temporal information effectively, MLP-ANN requires a certain amount of memory.In ANN, memory is implemented through the use of time delays, and several different approaches have been devised to do this.In reality, these lags are employed to fine-tune ANN's learning process parameters.The layers that are input, hidden, and output are the three layers that make up this framework.Figure 2 shows single variation inputs, denoted as i(n-1),i(n-2)…i(n − p) match samples of earlier data, where O(n) represents the forecast's outcome value, while p indicates the prediction order.

Overview of the Kepler optimization algorithm (KOA)

37The KOA inspiration Kepler's principles of planet motion are its main source of motivation.Kepler's laws state that the Earth's orbital acceleration, gravitational force and mass, and position of the planet are the four operators that influence a planet's course around the Sun.The mathematical framework of the suggested KOA was created using the operators.Because the planets in the KOA are in different conditions around the Sun at various times, the search space is more effectively investigated and utilized.Like other population-centered metaheuristic methods, KOA begins the search with an assortment of starting objects (the applicant solutions) that have probabilistic orbitals.At this point, each object's orbital location is initialized to be random.KOA evaluates the fitness of the initial set and repeats until the termination requirement is met.Since the word "time" is frequently applied in solar systems 39 and cosmology, it is employed in place of "iteration" in the present investigation.

The KOA steps

38The process of initializing process, defining the effect of gravity, computing an object's velocity, departing from the ideal location, updating objects' locations, maintaining distance from the sun, and exclusivity are some of the KOA stages that are covered in this part.

39Step 1 (the procedure under the initialization): The formula listed below 31 will be used in this procedure to randomly disperse planets are N, also known as the population size, in d-dimensions, which indicate the choice variables: where X j i,up and X j i,low denote the highest and lowest boundaries, correspondingly, of the j th choice variable, and rand [0,1] is an amount produced at random ranging from 0 to 1. Additionally, X i shows the i th planet.

40McDermott 31 initializes the orbital eccentricity (e) for each ith object.

41where an arbitrary number created inside the interval [0, 1] is denoted by rand[0,1].Lastly, McDermott 31 initializes the orbital time (T) for each and every ith object.

42where r is a random number that is produced using the typical distribution as the starting point.

43Step 2 (Determining the force of gravitational (F)): The Sun is the central component of the radiation structure because it is the biggest item within the system and uses its gravity to direct the motion of the other objects.A planet's speed is determined by the Sun's gravitational pull.A planet's speed of orbit increases with increasing solar proximity, and vice versa.The universal rule of gravity, defined as follows, provides the Sun's gravitational attraction X S and each planet X i 31 where M s and m i are the normalized results of M S and m i , which stand for the mass of of X S and X i , µ is universal gravitational unchanged, e i is the eccentricities of a planet's the orbit of the earth, which ranges from 0 to 1, r 1 is www.nature.com/scientificreports/generated at a random worth that ranges from 0 to 1 to add greater variability to the gravitation quantities during the optimization procedures; and R i is the normalized amount of R i , and this is expressed as 31 .

44In this case, the Euclidean space across the dimensions of X S and X i is represented by �X S (t) − X i (t)� 2 .Apply- ing the fitness evaluation, the Sun's mass and object i at time t is computed 31 where where r 2 is a number produced at random between 0 and 1 that is used to separate the mass numbers of different planets.µ(t) is a function to control the search precision that progressively diminishes with time (t) and has the following definition 31 : where t and T max are presented iteration number and the greatest iterations number, respectively, while γ is a fixed number and µ 0 is a starting amount.

45Step 3 (Computing the object' speed): A velocity of object is determined by its location in relation to the sun.To put it another way, a planet's velocity rises in response to the sun's strong gravitational pull when it approaches the sun and vice versa.This kind of action can be expressed scientifically as a dual solution.In the first step, the distance between the existing answer and an arbitrarily chosen solution is multiplied to find the speeds of planets near the Sun.In order to help maintain the velocity of the planet during the optimization procedure and prevent becoming caught in regional minima, a second step that depends on the separation among the upper and lower boundaries of the challenge is considered at the initial fold.The following is how this pattern of conduct is expressed 31 :

46where µ is a linearly declining factor from 1 to − 2, as stated following McDermott 31 , and r is a number created statistically based on a normal distribution:

47where a 2 is a cyclic regulating parameter that gradually falls for periods during the entire optimization procedure from − 1 to − 2 in the following definition of the procedure of optimization as a whole 31 for T cycles:

48Step 7 (Elitism): To ensure the planets are positioned as optimally as possible and the Sun, this stage employs an elite method.This procedure is summarized in McDermott 31 .

Overview of the improved KOA (IKOA)

49To improve algorithm search efficiency and prevent the KOA from becoming trapped in local optimization, the chaotic sequences are integrated into the KOA.For increasing the search size, the piecewise linear chaotic map (PLCM) 40 is utilized to produce the chaotic sequence.KOA utilizes the PLCM to generate chaotic sequences.PLCM is known for its ability to generate chaotic behavior with a controllable degree of randomness.By leveraging PLCM, KOA can increase the search size, enabling it to explore a larger solution space efficiently.This feature helps KOA to avoid getting trapped in local optima and facilitates the discovery of diverse and potentially better solutions.

50The starting point of the chaotic sequence element is expressed by

51The following variables of the PLCM-based chaotic sequence are specified theoretically as

52To help the current search group members find more effective approaches more quickly, the chaotic local search is included.The present search group member generates a new solution using the corresponding equation:

53where Z k indicates the chaotic parameter at the kth iteration, X ik represents the ith member location within the search group at the kth each iteration, and X ik,new refers to the new solution location produced by chaotic local exploration at the kth iteration.

54First, as follows, the chaotic searching radius (r) is established and adjusted in subsequent iterations:

55If X ik,new OF quantity is higher than X ik 's, it will replace X ik in the search group.Until the greatest number of iterations (K) of the chaotic neighborhood hunt is obtained, the chaotic localized search is carried out.

Implementing the IKOA

56The phases of multi-objective optimization of the energy microgrid in the network are provided utilizing the MOIKOA and the idea of the FDMT.The recommended methodology's flowchart is displayed in Fig. 4.

57Step 1: The program has been implemented using data from the network buses and lines, microgrid device data, including PV and wind sources and batteries, meteorological data, and network load needs.The program is additionally considered he general (population size, maximum iteration, and number of separate executions) and adjusting parameters of the optimizer.

58Step 2: For each algorithm's population, the decision variables (size of each piece of equipment and the placement of the HMG installation within the network) are chosen at random.

59Step 3: Every set of chosen variables for the algorithm's population has its objective function Eqs. ( 14)-( 18) determined.

60Step 4: Once the non-dominated solutions have been identified, they are sorted and stored in the archive.

61Step 5: The most effective member is chosen from the archive of non-dominant solutions.

62Step 6: Based on Eq. ( 52) the population of the algorithm is updated.

63Step 7: The solutions that are non-dominated are separated and archived, and the objective function for the population that was modified in Step 6 is computed.Substitute the optimal population member identified in step 5 with the best member found in the archive.www.nature.com/scientificreports/

64Step 8: Using Eq. ( 53), the algorithm's population is updated.

65Step 9: The non-dominated answers are separated and stored following the algorithm's population update in step 8.The best member identified in step 7 is replaced based on the best population member from the nondominated solution archive.

66Step 10: Using the piecewise linear chaotic map, Eqs. ( 58)-( 62), the algorithm's population is updated.

67Step 11: The non-dominated answers are separated and archived, and the objective function for the population that was modified in Step 10 is computed.Step 9's best member should be used in place of the best population member found in the archive.

68Step 12: Archive current non-dominant solutions and eliminate archived dominant solutions.

69Step 13: Convergence circumstance assessment.Proceed to step 14 if the convergence is obtained through executing the greatest iteration number; otherwise, proceed to step 6.

70Step 14: Terminate the program and preserve the best interactive solution.MOIKOA improves decision-making for fuzzy solutions by leveraging its enhanced exploration capabilities.Fuzzy solutions often arise in multi-objective optimization problems where the objectives conflict with each other.By employing chaotic sequences and expanding the search space, MOIKOA can better explore the trade-off between conflicting objectives, leading to the identification of Pareto-optimal solutions that provide a balanced compromise among competing objectives.This ability to handle fuzzy solutions distinguishes MOIKOA from KOA, making it more suitable for complex optimization problems with multiple conflicting objectives.

Results and discussion

71The outcomes of fuzzy multi-objective optimization of a PV/WT/BES microgrid system are given in the network via the MOIKOA considering uncertainty and forecasted data based on the MLP-ANN.The suggested method is performed on a 33-bus network according to Fig. 5.The bus and line data of this network is taken from 41 .The active and reactive demand of the 33-bus network is 3.72 MW and 2.3 MVAr 41 .Data of microgrid components cost and technical data of microgrid components are given in Tables 1 and 2, respectively.

72To evaluate proposed methodology the below scenarios are as follows: Scenario#1: Fuzzy multi-objective optimizing the PV/WT/BES system with real data.Scenario#2: Fuzzy multi-objective optimizing the PV/WT/BES system with forecasted data.Scenario#3: Fuzzy multi-objective optimizing the PV/WT/BES system with forecasted data incorporating the DOD variations effect using the MOIKOA.

73Table 3 provides the MLP-ANN's starting parameters such as training algorithm (TA), MSE, Epoch, validation checks (VCH), input layers number (ILN), hidden layers number (HLN), output layers number (OLN), and transfer function (TF).Table 4 displays the outcomes of the MLP-ANN prediction for load and meteorological data.As can be demonstrated based on their recorded daily data, which are displayed in Figs. 6, 7, 8 and 9, respectively, the MLP-ANN forecasts irradiance, wind speed, ambient temperature, and HMG demand values.This section presents the findings via the MOIKOA of the energy system in the network.The actual meteorological data is derived from Refs. 10,13.Table 1.Data of microgrid components cost 10,13,32 .Table 2. Technical data of microgrid components 10,13,32 .

Rated temperature (C) 25

74Rated irradiance (w/m2) 103

WT Value

75V ci (m/s) 3

76V co (m/s) 9

77V rtd (m/s)

Results of scenario#1

78The outcomes of multi-objective optimizing the PV/WT/BES microgrid in the network are presented via a new MOIKOA algorithm and the FDMT to achieve the best interactive solution considering meteorological data and real load demand as scenario 1.The Pareto optimal solution set curve for scenario 1 is obtained using the MOIKOA algorithm in Fig. 10.Based on the FDMT process, between the optimal solutions, the final solution (in green color) has been determined and the values of each of the goals of annual power losses, the value of network voltage oscillations and the cost of purchasing power from HMG corresponding to the final solution are given in Table 1.

79As can be seen in Table 5, the capability of MOIKOA is evaluated with other multi-objective methods including MOKOA, MOPSO and MOGA.It should be noted that each algorithm is implemented independently 30 times and for each algorithm, the population number and maximum iteration are selected to be 50 and 100, respectively.The results showed that contrasted to other multi-objective approaches, the proposed MOIKOA achieved lower annual power losses, network voltage deviations, and HMG power costs.The MOIKOA has installed 470 kW of PV power, 817 kW of wind power, and 1244 kWh of battery capacity in Bus 17 of the network.Therefore, the amount of annual losses is reduced from 666,052 kW in the basic state to 423,227 kW and www.nature.com/scientificreports/ the voltage oscillations is declined from 0.0147 p.u to 0.0129 p.u and $340,630 cost of power purchased from HMG has been obtained.Figure 11, shows the power dispatch of different HMG equipment along with microgrid load demand.It can be seen that wind and PV source are the sources of power generation, and the extra power required by the HMG load is divided into two parts.Based on the considered modeling, it is considered that 40% of the excess power will be transferred into the batteries for energy storage to supply the HMG load, and the rest (60%) will be sold to the network.Therefore, integrated energy production resources with battery reserve management have provided the possibility of continuous supply of microgrid load, then by injecting planned power into the network, they have also provided the conditions for improving the network performance.

80In Figs. 12 and 13, curve of network lines active losses along with network buses voltage oscillations are shown.As it can be seen, the microgrid optimization in the network to compute the optimum location and size of the equipment has decreased losses and also enhanced its voltage profile.

81This section presents an equal comparison of the numerical results derived from the MOIKOA, MOKOA, MOPSO, and MOGA methods, taking into account 30 separate runs.The outcome of each method has been compared using the C index (CI) since multi-objective optimization algorithms possess a more sophisticated search engine performance than single-objective methods 42 .Two algorithms' abilities to solve the multi-objective optimization issue have been contrasted using the C index.It is presupposed in the aforementioned criteria that S 1 and S 2 are the two algorithms' output PSS set.(S 1 , S 2 ) is explained according to 42 and represents the percentage of answers in set S 2 that are significantly outnumbered by answers in set S 1 .where s 1 , s 2 are, respectively, the PSSs in sets S 1 , S 2 .A better PSS is indicated by a solution with a greater C index, which is calculated as the average of n separate executions.Table 6 displays the C indexes for different algorithm types.The outcomes demonstrated that, on average, 86.74%, 63.23%, and 70.54% of the answers provided by the MOIKOA outweigh those obtained by MOKOA, MOPSO, and MOGA in rows 2, 4, and 6.Additionally, in contrast to the MOKOA, MOPSO, and MOGA approaches, the superior capability of the MOIMRFO in achieving better PSSs is demonstrated.

Results of scenario#2

82This section presents the findings from the multi-objective optimization of the PV/WT/BES microgrid in the network through the new MOIKOA and the FDMT.The goal was to find the best interactive solution taking into account the load demand predicted by the machine learning algorithm as scenario 2 and meteorological data.Figure 14 shows the PSS set for scenario 2 via the MOIKOA method.Table 7 provides the values of each goal of annual power losses, the voltage oscillations, and the purchasing power cost from HMG that corresponds to the final solution.The final solution (in green) was selected among the optimal solutions depending on the FDMT process.Table 7 illustrates how the MOIKOA performance in scenario 2 is contrasted with MOKOA, MOPSO, and MOGA.It should be mentioned that every algorithm is run independently thirty times, with 50 and 100 repetitions being the maximum for each algorithm, respectively.The findings demonstrated that the suggested MOIKOA produced lower values of yearly power losses, network voltage variations, and HMG power cost in comparison to previous multi-objective techniques.In Bus 17 of the network, the MOIKOA has installed 234 kW of PV power, 892 kW of wind power, and 1,613 kWh of battery capacity.As a result, the base network's yearly losses are decreased from 666,052 to 438,135 kW, voltage variations are cut from 0.0147 to 0.0132 p.u., and $347,365 worth of power was acquired from HMG.

83In scenario 2, the power dispatch of various microgrid components and microgrid load demand are demonstrated in Fig. 15.As it is observed, the primary power generating sources are solar and photovoltaic (PV) systems, and the surplus power needed by the hybrid generation load is split into two halves.According to the modeling under consideration, it is anticipated that 60% of the extra power will be sold to the network and 40% will be injected into the batteries for energy storage to satisfy the HMG load.As a result, integrated energygenerating sources with battery reserve management have made it possible for microgrid loads to be supplied continuously.They have also made it possible for the grid to function better by introducing programmed power into the network.

84The active loss curves of the network lines and the voltage variations for scenario 2 are depicted in Figs.16 and 17.As can be observed, the voltage profile is improved and network losses have been decreased as a result of the energy microgrid's optimization through the selection of the best installation site and equipment capacity.

85Table 8 displays the C indices for several methods.The findings demonstrated that, on average, 83.25%, 76.04%, and 80.29% of the answers acquired by the MOIKOA outweigh those provided by MOKOA, MOPSO, and MOGA in rows 2, 4, and 6.Additionally, in contrast to the MOKOA, MOPSO, and MOGA approaches, the higher capacity of the MOIKOA to achieve a better Pareto solution set is demonstrated.

The scenarios results comparison

86This section compares the performance of the suggested methodology in two scenarios, 1 and 2, which are based on actual and predicted data, respectively.The MOIKOA algorithm is used to find the ideal capacity of the HMG components and the installation placement of the HMG in the network using the fuzzy multi-objective optimization problem.As far as we are aware, using anticipated data for solving the microgrid optimization problem in the network is a more accurate method of optimizing the system for the day ahead of schedule than using actual or estimated data.Table 9 shows that, in scenario 2, the PV power has decreased from 470 to 234 kW.This decrease is due, in part, to a decrease in radiation intensity based on the data that was expected.Due to variations in the wind speed profile and the non-linearity of wind power generation according to wind speed, scenario 2's wind power has also increased when compared to scenario 1.In contrast, scenario 2's battery storage capacity has been raised to improve network performance under these circumstances by lowering the power set of renewable resources relative to scenario 1.As compared to scenario 1 using actual data, the results indicated that taking into account the anticipated data in the microgrid optimization problem in the network (situation 2) raised the yearly cost of losses from $423,227 to $438,135.Additionally, the cost of the electricity that was purchased from HMG went from $340,630 to $347,365, and the amount of network bus voltage variation increased from 0.0129 to 0.0132 p.u. Consequently, without considering the comprehensive forecasted data, the optimization and detailed planning of storage-based hybrid microgrids fail to inform the network planning of the logical capacities of storage to enhance the network's performance by better compensating for fluctuations in renewable energy sources' power.Table 9 shows that when the microgrid multi-objective optimization problem is implemented, the annual power loss cost, voltage oscillations, and power purchase from the HMG increase by 3.50%, 2.33%, and 1.98%, respectively when the forecasted data based on the machine learning algorithm is compared to the real data.

87The results of various scenarios are shown in Figs. 18, 19 and 20.These results include the set of optimal solutions (Fig. 18), the annual losses cost and the cost of buying power from HMG (Fig. 19), and the voltage oscillations of the 33-base network (Fig. 20) in scenarios 1 and 2. It is evident from these results that taking into account the machine learning algorithm's forecasted data instead of the real data has increased the annual losses cost, the cost of buying power from HMG, and voltage deviations.While using predicted data gives network planners a true and accurate optimization structure that gives them the ability to make informed judgments, increasing these values does not necessarily indicate bad data performance.

Results of DOD variations effect

88The depth of discharge (DOD) refers to the amount of battery charge used relative to its total capacity, expressed as a percentage.It is calculated by dividing the remaining battery charge by the battery's nominal capacity.This section examines how variations in DOD influence the microgrid's ability to enhance network features www.nature.com/scientificreports/such as energy losses and voltage oscillations, as well as the battery storage system's contribution and the cost of purchasing power from the microgrid.As shown in Table 10, an increase in DOD percentage, from 10 to 80%, leads to a reduction in battery energy capacity but allows the battery to provide more energy to the hybrid microgrid (HMG) to compensate for load power loss.Table 10, indicates that this rise in DOD percentage results in decreased storage capacity and resource generation.The findings also reveal that higher DOD levels correlate with reduced annual loss cost, voltage oscillations, and power purchasing costs from the microgrid, due to improved storage participation and better energy management.Specifically, increasing DOD to 80% improves the microgrid's efficiency by achieving network goals.When DOD is adjusted from 10 to 80%, annual losses decrease to 423,868 kW, voltage variation drops to 0.01300 p.u. from 0.01334 p.u., and the cost of electricity purchased from HMG decreases from $388,190 to $343,388.Thus, a higher DOD enhances network performance and increases battery participation.Figure 21 shows that as the percentage of DOD increases, the network's cost of acquiring power from HMG has decreased; Fig. 22 shows that the annual power loss has also decreased; and Fig. 23 shows that the amount of voltage deviations in the 33-bus network has increased along with the DOD percentage.

Conclusion

89In this study, a multi-objective structure for a PV/WT/BES microgrid optimization in a 33-bus network was implemented for minimizing the annual energy losses, to minimize the network bus voltage oscillations, and minimize the cost of purchasing power from the microgrid by the network.The problem is implemented in three scenarios.First, in scenario 1, the optimization problem was done with real data, and the variables, i.e., the position of the microgrid and the optimal size of PV and wind resources along with battery storage capacity, were determined using a new improved multi-objective algorithm named MOIKOA.Then, in scenario 2, the optimization problem was done considering the forecasted data based on the presented machine learning algorithm.Then, in scenario 3, the effect of battery DOD changes has been evaluated as the important contribution of storage devices in the HMG optimization in the network in improving each of the network objectives.The study outcomes are listed as follows:

Figure 1 .

90Figure 1.Schematic of the PV/WT/BES microgrid system.

Figure 2 .

91Figure 2. The MLP-ANN approach for forecasting the meteorological data and load demand.

9262) r k+1 = rand(0,1) × r k Vol.:(0123456789) Scientific Reports | (2024) 14:13354 | https://doi.org/10.1038/s41598-024-64234-x

Start

93Assess the fitness metrics of the primary population Establish the population of objects with peculiarities ,periods, and positions that are determined at random Define the optimal solution on a global scale as the sun Determine the euclidian distance that separates the sun from every object No Yes Determine the gravitational force acting on every object positioned among the sun and itself Compute the objects velocity Produce two arbitrary numbers Within 0 and 1for r, r1 If r>=r 1 ?Modify the object's position Update the object's position relative to the sun Utilize an elitist approach Assess the fitness of each object and the sun End Assess the fitness of each object and the sun Identify the global best answer as the sun If the convergence criteria met?Identify the global best answer as the sun Apply the piecewise linear chaotic map Yes No

Figure 4 .

94Figure 4. Flowchart of the IKOA.

Figure 5 .

95Figure 5.The schematic of 33-bus network.

Figure 6 .

96Figure 6.The real and forecasted irradiance during a day.

Figure 7 .

97Figure 7.The real and forecasted wind speed during a day.

Figure 8 .Figure 9 .

98Figure 8.The real and forecasted temperature during a day.

Figure 10 .

99Figure 10.Pareto optimal solution set using the MOIKOA for Scenario#1.

Figure 11 .

100Figure 11.Power dispatch using the MOIKOA for Scenario#1.

Figure 12 .Figure 13 .

101Figure 12.Power losses of the 33-bus network via the MOIKOA for Scenario#1.

Figure 14 .

102Figure 14.Pareto optimal solution set using the MOIKOA for Scenario#2.

Figure 17 .

103Figure 17.The voltage profile of the 33-bus network via the MOIKOA for Scenario#2.

Figure 18 .

104Figure 18.Comparison of the best solution in scenarios 1 and 2.

Figure 19 .

105Figure 19.Comparison of the annual energy loss and HMG purchased power cost in scenarios 1 and 2.

Figure 20 .

106Figure 20.Comparison of the network voltage deviation in scenarios 1 and 2.

Figure 21 .

107Figure 21.The HMG power cost variations versus DOD%.

Figure 22 .Figure 23 .

108Figure 22.The annual power loss variations versus DOD%.

1091.The batteries are depleted to fulfill the load with high reliability in the case of a system power outage.Batteries are used to store solar power surplus above load demands.After accepting DC

110PV (t) × η DC/DC < P LD (t)/η Inv ) and E Batt (t − 1) > E min

111Renewable resourcesThe following restrictions should be met by the PV and wind urce sizes, with the PV panel's tilt with relation to the ground: where P min PV and P min WT are lower size of PVs and WTs sizes, P max PV and P max WT are upper size of PVs and WTs, and β PV is the panel surface angle with respect to the earth surface.

112Vol.:(0123456789) Scientific Reports | (2024) 14:13354 | https://doi.org/10.1038/s41598-024-64234-xwww.nature.com/scientificreports/

Table 3 .

113MLP-ANN's initial configuration parameters.

Table 4 .

114The MLP-ANN's predictions for demand data and meteorology.

Table 5 .

115Results of fuzzy multi-objective optimization of a hybrid PV/WT/BES microgrid in 33-bus network (Scenario#1).

Table 6 .

116Comparing various algorithms with the CI for scenario#1.

Table 7 .

117Results of fuzzy multi-objective optimizing the PV/WT/BES system using the MOIKOA in 33-bus network (Scenario#2).

118Figure 15.Power dispatch via the MOIKOA for Scenario#2.Vol.:(0123456789) Scientific Reports | (2024) 14:13354 | https://doi.org/10.1038/s41598-024-64234-xwww.nature.com/scientificreports/ Figure 16.The losses of the 33-bus network via the MOIKOA for Scenario#2.

Table 8 .

119Comparing various algorithms with the CI for scenario#2.

120Vol:.(1234567890) Scientific Reports | (2024) 14:13354 | https://doi.org/10.1038/s41598-024-64234-xwww.nature.com/scientificreports/

Table 9 .

121Results comparison of scenarios 1 and 2.

Table 10 .

122Results of fuzzy multi-objective optimization of the PV/WT/BES system in 33-bus network (Scenario#3).

참고문헌 42건

  1. An Improved Piecewise Linear Chaotic Map Based Image Encryption Algorithm The Scientific World JOURNAL · Hindawi Publishing Corporation · 2014 10.1155/2014/275818
  2. Reliability analysis of earth slopes using hybrid chaotic particle swarm optimization Journal of Central South University · Springer Science+Business Media · 2011 10.1007/s11771-011-0882-4
  3. Adapted ant colony optimization for efficient reconfiguration of balanced and unbalanced distribution systems for loss minimization Swarm and Evolutionary Computation · Elsevier BV · 2011 10.1016/j.swevo.2011.05.004
  4. Distributed energy resources and benefits to the environment Renewable and Sustainable Energy Reviews · Elsevier BV · 2009 10.1016/j.rser.2009.10.025
  5. A discrete Teaching–Learning-Based Optimization algorithm to solve distribution system reconfiguration in presence of distributed generation International Journal of Electrical Power & Energy Systems · Elsevier BV · 2016 10.1016/j.ijepes.2016.03.009
  6. Firefly-inspired algorithm for optimal sizing of renewable hybrid system considering reliability criteria Solar Energy · Elsevier BV · 2017 10.1016/j.solener.2017.06.070
  7. Time-series prediction of wind speed using machine learning algorithms: A case study Osorio wind farm, Brazil Applied Energy · Elsevier BV · 2018 10.1016/j.apenergy.2018.05.043
  8. Weather forecasts for microgrid energy management: Review, discussion and recommendations Applied Energy · Elsevier BV · 2018 10.1016/j.apenergy.2018.06.087
  9. Fuzzy multi-objective placement of renewable energy sources in distribution system with objective of loss reduction and reliability improvement using a novel hybrid method Applied Soft Computing · Elsevier BV · 2019 10.1016/j.asoc.2019.02.003
  10. Optimal placement and sizing of battery energy storage system for losses reduction using whale optimization algorithm Journal of Energy Storage · Elsevier BV · 2019 10.1016/j.est.2019.100892
  11. Efficient optimization technique for multiple DG allocation in distribution networks Applied Soft Computing · Elsevier BV · 2019 10.1016/j.asoc.2019.105938
  12. Multi-objective decision-making and optimal sizing of a hybrid renewable energy system to meet the dynamic energy demands of a wastewater treatment plant Energy · Elsevier BV · 2019 10.1016/j.energy.2019.116570
  13. Day-Ahead Optimization of Prosumer Considering Battery Depreciation and Weather Prediction for Renewable Energy Sources Applied Sciences · Multidisciplinary Digital Publishing Institute · 2020 10.3390/app10082774
  14. Multi-objective for optimal placement and sizing DG units in reducing loss of power and enhancing voltage profile using BPSO-SLFA Energy Reports · Elsevier BV · 2020 10.1016/j.egyr.2020.06.013
  15. Meta-heuristic matrix moth–flame algorithm for optimal reconfiguration of distribution networks and placement of solar and wind renewable sources considering reliability Environmental Technology & Innovation · Elsevier BV · 2020 10.1016/j.eti.2020.101118
  16. Optimum coordination of centralized and distributed renewable power generation incorporating battery storage system into the electric distribution network International Journal of Electrical Power & Energy Systems · Elsevier BV · 2020 10.1016/j.ijepes.2020.106458
  17. Optimal location and size of photovoltaic systems in high voltage transmission power networks Ain Shams Engineering Journal · Elsevier BV · 2021 10.1016/j.asej.2020.12.015
  18. Optimization of hybrid renewable energy system in radial distribution networks considering uncertainty using meta-heuristic crow search algorithm Applied Soft Computing · Elsevier BV · 2021 10.1016/j.asoc.2021.107384
  19. Hybrid forecasting system based on data area division and deep learning neural network for short-term wind speed forecasting Energy Conversion and Management · Elsevier BV · 2021 10.1016/j.enconman.2021.114136
  20. Optimal allocation of photovoltaic/wind energy system in distribution network using meta-heuristic algorithm Applied Soft Computing · Elsevier BV · 2021 10.1016/j.asoc.2021.107594
  21. Machine learning-based utilization of renewable power curtailments under uncertainty by planning of hydrogen systems and battery storages Journal of Energy Storage · Elsevier BV · 2021 10.1016/j.est.2021.103010
  22. A multi-objective optimization evaluation framework for integration of distributed energy resources Journal of Energy Storage · Elsevier BV · 2021 10.1016/j.est.2021.103005
  23. An investigation for battery energy storage system installation with renewable energy resources in distribution system by considering residential, commercial and industrial load models Journal of Energy Storage · Elsevier BV · 2021 10.1016/j.est.2021.103493
  24. Optimal planning of distributed generation and battery energy storage systems simultaneously in distribution networks for loss reduction and reliability improvement Journal of Energy Storage · Elsevier BV · 2021 10.1016/j.est.2021.103844
  25. Renewable energy sources planning considering approximate dynamic network reconfiguration and nonlinear correlations of uncertainties in distribution network International Journal of Electrical Power & Energy Systems · Elsevier BV · 2022 10.1016/j.ijepes.2021.107791
  26. A novel hybrid algorithm based on rat swarm optimization and pattern search for parameter extraction of solar photovoltaic models Energy Science & Engineering · Wiley · 2022 10.1002/ese3.1160
  27. When and Why Metaheuristics Researchers can Ignore “No Free Lunch” Theorems SN Computer Science · Springer Nature · 2020 10.1007/s42979-020-0063-3
  28. Joint expansion planning of distribution network with uncertainty of demand load and renewable energy Energy Reports · Elsevier BV · 2022 10.1016/j.egyr.2022.05.203
  29. Optimal allocation of renewable DGs using artificial hummingbird algorithm under uncertainty conditions Ain Shams Engineering Journal · Elsevier BV · 2022 10.1016/j.asej.2022.101872
  30. Benefits of physical and machine learning hybridization for photovoltaic power forecasting Renewable and Sustainable Energy Reviews · Elsevier BV · 2022 10.1016/j.rser.2022.112772
  31. Optimization of a renewable energy plant with seasonal energy storage for the transition towards 100% renewable energy supply Renewable Energy · Elsevier BV · 2022 10.1016/j.renene.2022.08.126
  32. Optimal management algorithm of microgrid connected to the distribution network considering renewable energy system uncertainties International Journal of Electrical Power & Energy Systems · Elsevier BV · 2022 10.1016/j.ijepes.2022.108633
  33. Probabilistic optimal planning of dispatchable distributed generator units in distribution systems using a multi-objective velocity-based butterfly optimization algorithm Renewable energy focus · Elsevier BV · 2022 10.1016/j.ref.2022.10.001
  34. Modified Salp Swarm Optimization for Parameter Estimation of Solar PV Models IEEE Access · Institute of Electrical and Electronics Engineers · 2022 10.1109/access.2022.3213746
  35. Optimal allocation of a wind turbine and battery energy storage systems in distribution networks based on the modified BES-optimizer Frontiers in Energy Research · Frontiers Media · 2023 10.3389/fenrg.2023.1100456
  36. Kepler optimization algorithm: A new metaheuristic algorithm inspired by Kepler’s laws of planetary motion Knowledge-Based Systems · Elsevier BV · 2023 10.1016/j.knosys.2023.110454
  37. Hybrid Renewable Energy System Design: A Machine Learning Approach for Optimal Sizing with Net-Metering Costs Sustainability · Multidisciplinary Digital Publishing Institute · 2023 10.3390/su15118538
  38. Thermo-ecological analysis of the power system based on renewable energy sources integrated with energy storage system Renewable Energy · Elsevier BV · 2023 10.1016/j.renene.2023.119035
  39. Forecasting solar energy production: A comparative study of machine learning algorithms Energy Reports · Elsevier BV · 2023 10.1016/j.egyr.2023.07.042
  40. Improving the economic and environmental benefits of the energy system: A novel hybrid economic emission dispatch considering clean energy power uncertainty Energy · Elsevier BV · 2023 10.1016/j.energy.2023.128668
  41. Stochastic Multi-Objective Scheduling of a Hybrid System in a Distribution Network Using a Mathematical Optimization Algorithm Considering Generation and Demand Uncertainties Mathematics · Multidisciplinary Digital Publishing Institute · 2023 10.3390/math11183962
  42. Multiobjective and Simultaneous Two-Problem Allocation of a Hybrid Solar-Wind Energy System Joint with Battery Storage Incorporating Losses and Power Quality Indices International Journal of Energy Research · Wiley · 2023 10.1155/2023/6681528