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

Sodium sulfur batteries allocation in high renewable penetration microgrids using coronavirus herd immunity optimization

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

기본 정보

저자
  1. Mohammed Alqarni — College of Engineering, University of Business and Technology (UBT), Saudi Arabia
DOI
10.1016/j.asej.2021.09.017
저널
Ain Shams Engineering Journal
발행년도
2021
발행기관
Elsevier BV
피인용수
15
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.asej.2021.09.017
토픽
Hybrid Renewable Energy Systems
OpenAlex ID
W3202708162

평가 내용

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

초록

Energy storage batteries have been described as an ideal way to solve renewable energy problems, improve self-consumption rate (ScR), and pave the way for further growth in renewables penetration. In this work, an optimization framework is proposed to enhance a grid-connected microgrid performance in three stages. The first stage epitomizes maximization of the ScR of the highly-penetrated renewables hosted in the microgrid considered via sodium sulfur batteries allocation. The second stage epitomizes the minimization of the active power losses. The third stage epitomizes the calculation of the optimal energy management relying on diminishing the overall microgrid's cost of operation depending on the optimal findings of the earlier two stages. The coronavirus herd immunity optimization algorithm is applied on MATLAB's platform to solve the engineering problem formulated. Numerous linear and nonlinear constraints have been taken into account. The results have gotten validate the usefulness of the developed solutions and algorithm application.

본문 68,884자

본문 펼치기
# Since January 2020 Elsevier has created a COVID-19 resource centre with free information in English and Mandarin on the novel coronavirus COVID- 19. The COVID-19 resource centre is hosted on Elsevier Connect, the company's public news and information website. Elsevier hereby grants permission to make all its COVID-19-related research that is available on the COVID-19 resource centre - including this research content - immediately available in PubMed Central and other publicly funded repositories, such as the WHO COVID database with rights for unrestricted research re-use and analyses in any form or by any means with acknowledgement of the original source. These permissions are granted for free by Elsevier for as long as the COVID-19 resource centre remains active. Ain Shams Engineering [Journal](https://doi.org/10.1016/j.asej.2021.09.017) 13 (2022) 101590 Contents lists available at [ScienceDirect](http://www.sciencedirect.com/science/journal/20904479) # Ain Shams Engineering Journal journal homepage: [www.sciencedirect.com](http://www.sciencedirect.com) Electrical Engineering ## Sodium sulfur batteries allocation in high renewable penetration microgrids using coronavirus herd immunity optimization Mohammed Alqarni College of Engineering, University of Business and Technology (UBT), Saudi Arabia a r t i c l e i n f Article history: Received 7 September 2021 Revised 18 September 2021 Accepted 23 September 2021 Available online 28 September 2021 Keywords: Active power loss Energy storage Mathematical model Optimization Renewable energy Self-consumption rate 1. Introduction a b s t r a c t Energy storage batteries have been described as an ideal way to solve renewable energy problems, improve self-consumption rate (ScR), and pave the way for further growth in renewables penetration. In this work, an optimization framework is proposed to enhance a grid-connected microgrid performance in three stages. The first stage epitomizes maximization of the ScR of the highly-penetrated renewables hosted in the microgrid considered via sodium sulfur batteries allocation. The second stage epitomizes the minimization of the active power losses. The third stage epitomizes the calculation of the optimal energy management relying on diminishing the overall microgrid’s cost of operation depending on the optimal findings of the earlier two stages. The coronavirus herd immunity optimization algorithm is applied on MATLAB’s platform to solve the engineering problem formulated. Numerous linear and nonlinear constraints have been taken into account. The results have gotten validate the usefulness of the developed solutions and algorithm application. - 2021 THE AUTHOR. Published by Elsevier BV on behalf of Faculty of Engineering, Ain Shams University. [This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-](http://creativecommons.org/licenses/by-nc-nd/4.0/) [nd/4.0/).](http://creativecommons.org/licenses/by-nc-nd/4.0/) Energy crises and fossil fuel reliance are important technical, economical, social, and political issues affecting the future of the energy sector around the world [1]. As a result, renewable energy sources (RESs) need to be deployed on a large scale to fulfill power demand, promote transportation electrification, facilitate enhanced employment of green buildings/networks, and lessen the notable augmented environmental hazards [2]. Wind turbines Abbreviations: BSS, Battery storage system; CHIO, Coronavirus herd immunity optimization; DoD, Depth of discharge; ES, Energy storage; EVs, Electric vehicles; HC, Hosting capacity; HES, Hydrogen energy storage; HI, Herd immunity; kWh, Kilowatt-hours; LA, Lead acid; LCCOS, Life cycle cost of storage; lGCC, Microgrid central controller; lGs, Microgrids; MWh, Megawatt-hours; Na-NiCl2, Sodiumnickel chloride; NaS, Sodium-sulfur; NaS-BSS, Sodium-sulfur battery storage system; NiCd, Cadmium nickel; OEM, Optimal energy management; PQ, Power quality; PVs, Solar photovoltaics; RESs, Renewable energy sources; ScR, Selfconsumption rate; VR, Vanadium-redox; WTs, Wind turbines; ZnBr, Zinc-bromine. Peer review under responsibility of Ain Shams University. Production and hosting by Elsevier E-mail address: [M.alqarni@ubt.edu.sa](mailto:M.alqarni@ubt.edu.sa) (WTs) and solar photovoltaics (PVs) are the most promising RESs due to their mature potential and technology worldwide [3,4]. From an economic standpoint, the conventional sources of power generation, such as fossil fuel-based power stations, provide a cost competition for them [5]. Thus, to make RESs more cost-efficient, they should be used with increased self-consumption rates (ScR), i.e., the energy generated through RESs is not hosted in the transmission or distribution systems but is utilized by the investor (according to contracts agreed with the operator) [6], in which ScR refers to the proportion of renewable energies produced and used to meet demands for total renewable energies. In this way, RESs production prioritizes ScR before exporting to transmission/distribution systems or nano/micro-based networks when RESs output exceeds total demand requirement [7,8]. In this context, improving the ScR of RESs and reducing the power loss of energy grids or grid-associated microgrids (lGs), are essential to facilitate energy alteration from fossil fuels bases to renewables-constructed systems [9,10]. It is possible to classify battery storage system (BSS) applications into four categories: bulk energy, auxiliary, end-use energy, and RESs integration applications. Electric vehicles (EVs) are another significant complimentary area where BSS technologies are being used [11], and they are increasing in popularity [12]. Besides, short-medium-long-term BSSs can be also classified into [https://doi.org/10.1016/j.asej.2021.09.017](https://doi.org/10.1016/j.asej.2021.09.017) 2090-4479/� 2021 THE AUTHOR. Published by Elsevier BV on behalf of Faculty of Engineering, Ain Shams University. [This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/).](http://creativecommons.org/licenses/by-nc-nd/4.0/) M. Alqarni Ain Shams Engineering Journal 13 (2022) 101590 Nomenclature Aj Age vector value b <sup>grid</sup> h The hth energy price ($/kWh) b <sup>PV</sup> h The hth PV bid price b <sup>WT</sup> h The hth WT bid price BLifecycles Lifecycles of the batteries BRr Fundamental reproduction rate BScapital Capital cost of the battery C <sup>Energy</sup> Unit costs of the energy capacity of the BSSs C <sup>Power</sup> Unit cost of the power capacity of the BSSs CostðxÞ Cost of operation of the microgrid in ($/kWh) Cost <sup>grid</sup> h Operating cost of the grid Cost <sup>PV</sup> h Total PV costs ($/kWh) Cost <sup>WT</sup> h Total WT costs ($/kWh) CostNaS�BSS Daily total cost of NaS-BSS usage ($/day) D Total number of days of operation per year DPlossðxÞ Total active power losses E <sup>b</sup> Energy capacity of the battery ER;h Actual RESs energy generated at h and the E <sup>rated</sup> R;h Rated RESs energy that can be generated ath g <sup>NaS</sup> Nas battery efficiency gR Relative efficiency of the PV system gv Inverter’s efficiency of the PV system G Global solar irradiance G0 Standard solar irradiance H Day horizon HIP Herd immunity population HIS Herd immunity capacity ir Interest rate I <sup>b</sup> rms Total rms branch current I <sup>b</sup> rms <sup>�max</sup> Maximum branch current kNaSðh; eÞ Cycles completed given as a function of h and the day of operation (e) MaxAge Maximum infected cases age Max_Itr Maximum iteration number Nb Number of branches in the microgrid NPV Number of PV units connected P <sup>b</sup> Power capacity of the battery three categories relying on the discharge length - short- (seconds to minutes), medium- (minutes to hours), and long-term (hours to days) [13]. For end-use energy and auxiliary applications in power utilities, short-term and medium-term discharge periods are applicable, but long-term discharge periods are more appropriate for bulk and RESs integration applications. BSSs capabilities can be employed at various voltage levels by generating systems and end-users because they have important effects on the various utilization stages of power grids, like security, serving peak demands, power quality (PQ), stability, reliability, hosting capacity (HC), and others [14,15]. However, sodium-sulfur (NaS) BSS (NaS-BSS) technology has its own set of advantages. Fig. 1 explores the applications and benefits of NaS-BSS technology in power networks, lGs, and nano grids. Overall, energy storage (ES) has been touted as a way to solve RESs issues, efficiently arrange self-consumption, and paving the route to significant growth in RESs penetration into the overall production share [16,17]. In addition to enhancing PQ performance and reliability, energy storage systems can also minimize power losses, overcome uncertainty concerns related to RESs, improve P <sup>NaS</sup> charge;h Charging power of the NaS battery P <sup>NaS</sup> charge <sup>�max</sup> �h Maximum charging capacity of the NaS batteries at h P <sup>NaS</sup> dis;h Discharging power of the NaS battery P <sup>NaS</sup> discharge <sup>�max</sup> P <sup>NaS</sup> discharge <sup>�max</sup> �h Maximum discharging capacity of the NaS batteries at h P <sup>grid</sup> h The hth output (delivered) grid power <sup>grid</sup> h The hth output (delivered) grid power P <sup>l</sup> h Total power demand P <sup>PV</sup> h The hth output power of the PV P <sup>PV</sup> h;max Maximum PV generated power limit P <sup>PV</sup> h;min Minimum PV generated power limit P <sup>P</sup> rated Hourly nominal power of the PV P <sup>WT</sup> h The hth output power of the WTs P <sup>WT</sup> h;max Maximum WT generated power limit P <sup>WT</sup> h;min Minimum WT generated power limit P <sup>losses</sup> b;h The bth branch active power loss P <sup>WT</sup> rated Rated power of the WTs S Status vector SoC State of charge SoC <sup>h</sup> The hth state of charge SoC <sup>h</sup> max Maximum soc of NaS batteries ath SoC <sup>h</sup> min Minimum soc of NaS batteries ath SoC <sup>in</sup> Initial state of charge taðhÞ A binary, 0/1, variable that indicates the battery at h and e T coff Temperature-based coefficient T amb Ambient temperature v <sup>WT</sup> cut�in Cut-in speed of the WTs v <sup>WT</sup> cut�in Cut-in speed of the WTs v <sup>WT</sup> cut�out Cut-out speed of the WTs v <sup>WT</sup> cut�out Cut-out speed of the WTs v <sup>WT</sup> h Hourly wind speed at hour <sup>WT</sup> h Hourly wind speed at hour h V <sup>bus</sup> max Maximum voltage limit V <sup>bus</sup> max V <sup>bus</sup> min V <sup>bus</sup> min Minimum voltage limit v <sup>WT</sup> rated Rated speed of the WTs <sup>WT</sup> rated Rated speed of the WTs YðxÞ Self-consumption rate of all the RESs hosted on the lg Z Project lifetime system stability, reduce power import during peak periods by feeding the peak demands, and reduce overall operating costs of power system networks [18,19]. Considering the influence of the storage facility’s optimal allocation on the system performance, many studies have been done for evaluating the optimal allocation of the storage system and energy management strategies to enhance the lG’s technoeconomic competencies [20]. In [21], Nayak et al. planned optimal location and sizing of ES with WT penetrations for unbalanced distribution network utilizing an inherited competitive swarm algorithm, in which the approach developed had been examined on IEEE 37-bus distorted radial distribution scheme and the results obtained show the improvement of different performance metrics of the distribution system. Pontes et al. [22] proposed a technique for optimum allocation of ES in distribution networks with the integration of RESs. That approach assigned ES’s optimal allocated number and the optimal cycle of loaded and unloaded conditions. Wan et al. [23] proposed ES’s optimal allocation and capacity based on a hierarchical planning framework in the radial distribution networks considering uncertainties of loads and the integration M. Alqarni Ain Shams Engineering Journal 13 (2022) 101590 Fig. 1. Applications of NaS batteries in power networks and lGs. of RESs. Xu et al. [24] proposed ESS’s optimal allocation to enhance the voltage fluctuations in distribution networks with high RESs penetration. That approach has utilized a bi-level optimization technique of ES capacity allocation concerning cost (life cycle based) and the profit of dropping power losses. Mahmoud et al. [25] proposed a model to find the ES’s global capacity. The main objective is to boost the profitable deployment of ESs and maintain safe and secure operations. In [26], Feng et al. introduced an optimal procedure of multifeature technique for finding optimal sizes of hybrid ES systems in order to make use of their complementary features. As part of the optimization procedure, the optimization problem formulation involves both standalone and grid-connected lG operating modes. Minimizing the cost of operation was the goal in grid-connected mode while improving the lG’s reliability was the goal in the isolated mode. Rawa et al. [27] proposed the application of the Harris hawks search algorithm to enhance the performance of the IEEE 33-bus with high penetration of RESs. That approach presented two objectives – optimum planning of ESs to improve the RESs’s ScR and the grid-connected lG’s HC to reduce the lG’s total operating costs. Nojavan et al. in [28] developed a mixed-integer non-linear program to get the ES’s optimum allocation regarding the optimal demand response. To reduce the overall investment and operating costs as well as load expectation loss, multi-targets functions were implemented in that approach. Chen and Duan [29] settled an optimization technique built on the genetic approach for ES’ and distributed generators’ optimum allocation with economic considerations taken into account. The capacity of the distributed generators and ES systems have been controlled by dealing with different cost functions in order to protect the lG and satisfy the client demands. Qiu et al. [30] proposed a bi-level forecasting model for ES’s allocation in a lG, taking controllable loads into account. A study of cost-benefits was evaluated to establish the best allocation decisions and economic consideration of the ES scheme. However, the majority of previous studies have not looked at the effects of ESs on multi-criteria metrics such as the ScR of the RESs, power losses, voltage profile, ES features, and optimal energy management (OEM) of the lGs [31–34]. Furthermore, at peak times, the substation transformer feeding the power system or the lG may be overloaded due to the restricted transformer capacity [35]. The usual key is supporting the transformer - reinforce its capacity. However, application of the appropriate key subjects to the presence of a standby transformer or the availability of a suitable budget [36]. Therefore, the peak loads should be removed or moved to off-peak times to reduce the transformer load rate - demand-side management or extreme load shedding [37]. In this context, the decision of the optimum location and size of the BSS and the OEM of the produced by the BSS, renewables, and the main grid according to the load demands, and climatic conditions is not only related to the reliability of the power basis of the whole scheme or PQ measures but seriously spreads to economic considerations and scheme’s reliability [35]. In this work, an optimization framework is proposed to enhance a grid-connected lG performance in three stages. The first stage epitomizes maximization of the ScR of the highly-penetrated RESs hosted in the lG considered (adapted 33-node system that operates as a lG with highly-penetrated RESs) via sodium sulfur (NaS) batteries allocation (number, location, and size). M. Alqarni Ain Shams Engineering Journal 13 (2022) 101590 Up to three NaS batteries are allowed in the problem formulation. The load flow methodology used relies on building matrices - (i) matrix of the bus_injection to branch_current, (ii) matrix of the branch_current to bus_voltage, and (iii) their multiplication matrix to get OLF results. This methodology is often fast, effective, and efficient in solving OLF problems in power systems [38,39]. The second stage epitomizes the minimization of the active power losses. The third stage epitomizes the calculation of the OEM relying on minimizing the overall operating cost of the lG based on the optimal findings of the earlier two stages. The coronavirus herd immunity optimization (CHIO) algorithm, which is a new optimization approach settled by Al-Betar et al. in [40], is employed to solve the problem investigated in this work. Numerous linear and nonlinear constraints have been taken into account, including the charge–discharge balance, power balance, allowable voltage profile limits, number, capacity, and location of the NaS batteries, and the technical performance limits of the lG and its elements. This work’s core contributions are briefed as follows: 1. Investigating the ScR of RESs and reducing the power loss of (lGs), when NaS batteries are allocated. 2. Highlighting the promising potential of using NaS batteries in grid-connected systems in detail. 3. Minimizing the overall operating cost of the lG with highlypenetrated RESs while addressing the NaS battery - location, capacity, and number impacts on the solutions obtained. 4. Evaluating the effects of optimally allocated NaS batteries on the transformer’s capacity that powers the lG and releasing a significant amount of its capacity. 5. Applying a recent metaheuristic optimization algorithm to resolve the multi-stage problem expressed in this paper. The remainder of the paper is systematized as follows. Configuration of the studied lG is given in Section 2. The optimization problem is mathematically expressed in detail in Section 3. The optimization algorithm employed in this work, CHIO, is explained in Section 4. The findings obtained are introduced and discussed in Section 5. Finally, Section 6 is dedicated to present a review of the study’s findings, work limitations and future endeavors to be addressed. 2. Configuration of the studied microgrid (lG) The grid-connected lG considered in this work, shown in Fig. 2, includes the main lG central controller (lGCC), main transformer (Tr), 5 PVs, and 5 WTs. The lGCC facilitates the optimal energy management (OEM) of the lG, in addition to the charging/discharging processes of NaS batteries to attain the minimum daily charge of the operation (Cost) of the lG. The PVs and WTs data, primarily obtained from [27], are presented in Table 1. 2.1. Photovoltaics (PVs) The PVs’ output power (Pop) relies on the weather conditions solar irradiation, real-measured temperature and cloud coverage, as expressed in Eq. (1) [41–43]. P <sup>PV</sup> h <sup>PV</sup> h <sup>¼ NPV</sup> <sup>P</sup> rated <sup>PV</sup> rated - <u>G</u> 1 � T coff ðT amb � 25Þ�gvgR ð1Þ G0 where P <sup>PV</sup> h <sup>,</sup> <sup>PV</sup> h <sup>,</sup> <sup>PP</sup> where P <sup>PV</sup> h <sup>,</sup> <sup>PP</sup> rated <sup>and</sup> <sup>NPV</sup> <sup>denote</sup> <sup>Pop</sup> <sup>and</sup> <sup>the</sup> <sup>hourly</sup> <sup>nominal</sup> <sup>power</sup> of the PV, and the number of PV units connected, respectively. G and G0 denote the global solar irradiance and the standard solar irradiance. T coff and T amb denote the temperature-based coefficient and the ambient temperature, respectively.gv and gR denote the inverter’s efficiency and the relative efficiency of the PV system, respectively [44]. 2.2. Wind turbine (WTs) The hourly Pop of wind turbines (WTs) relies on the wind speed (site-based) and the WT’s speed-power curve (provided by WTs manufacturer data). It is typically expressed as given in Eq. (2), in which the wind speed per hour is assessed using the Weibull probability distribution function using the statistics obtained from [27]. 0v <sup>WT</sup> h < v <sup>WT</sup> cut cut�in h <sup>WT</sup> < v <sup>WT</sup> rated rated <sup>WT</sup> cut�in <sup>�</sup> <sup>v</sup> h <sup>WT</sup> 3 3 3�ðv WTcut�inÞ3 3�ðv WTcut�inÞ3 - <u>ðv</u> <sup>WT</sup> <u>h</u> <u>Þ3�ðv</u> WTcut�hinÞ33�v <sup>WT</sup> cutcut <u>ðv</u> <sup>WT</sup> <u>h</u> <u>Þ3</u> ðv <sup>WT</sup> ratedÞ3 v <sup>WT</sup> <u>h</u> v <sup>WT</sup> ð2Þ P <sup>WT</sup> h ¼ 8 >>>>>>< >>>>>>: P <sup>WT</sup> rated P <sup>WT</sup> rated <sup>WT</sup> rated <sup>v</sup> <sup>WT</sup> rated h <sup>WT</sup> < v <sup>WT</sup> cut P <sup>WT</sup> rated <sup>WT</sup> rated <sup>�</sup> <sup>v</sup> h <sup>WT</sup> h cut�out 0v <sup>WT</sup> h - v <sup>WT</sup> cut�out where P <sup>WT</sup> h <sup>WT</sup> h and P <sup>WT</sup> rated where P <sup>WT</sup> h and P <sup>WT</sup> rated <sup>are</sup> <sup>the</sup> <sup>output</sup> <sup>and</sup> <sup>rated</sup> <sup>powers</sup> <sup>of</sup> <sup>the</sup> <sup>WTs,</sup> respectively. v <sup>WT</sup> h <sup>, v</sup> rated <sup>WT</sup> <sup>, v</sup> cut <sup>WT</sup> �in <sup>,</sup> <sup>and v</sup> <sup>WT</sup> cut�out <sup>denote</sup> <sup>the</sup> <sup>hourly</sup> <sup>wind</sup> speed at hour h, rated, cut-in, and cut-out speeds of the WTs. <sup>WT</sup> h <sup>, v</sup> rated <sup>WT</sup> rated <sup>WT</sup> <sup>, v</sup> cut <sup>WT</sup> cut <sup>WT</sup> �in <sup>,</sup> <sup>and v</sup> <sup>WT</sup> cut� 2.3. Cost of grid operation The operating cost of the grid ðCost <sup>grid</sup> h Þ relies on the hth output (delivered) grid power ðP <sup>grid</sup> h Þ at and its corresponding hth energy bid ðb <sup>grid</sup> h Þ in ($/kW), as given in Eq. (3). Cost <sup>grid</sup> h ¼ b Cost <sup>grid</sup> h gridh P <sup>grid</sup> h ; 8h ð3Þ Fig. 2. Configuration of the studied microgrid. M. Alqarni Ain Shams Engineering Journal 13 (2022) 101590 Table 1 Data of the renewable energy resources (RESs) used - PVs and WTs. RESs Location (bus number) and sizes (kW) PV 7 9 11 21 33 2,400 360 360 360 600 WT 6 12 18 19 31 1,200 600 600 960 1,200 2.4. Sodium sulfur (NaS) battery storage system (NaS-BSS) There are different types of batteries with multiple cost and technical properties, such as NaS, lead acid (LA), lithium-ion, cadmium nickel (NiCd), and other batteries. Each battery has particular merits that may positively affect the electrical grid and its stability, and OEM of the lGs. In this context, the NaS battery was the first molten sodium battery to be investigated and developed in the late 1960s [45,46]. It is one of the most installed batteries in the world. During electrochemical cycling of the batteries, the NaS battery oxidizes (discharges) and reduces (charges) sodium, based on the reversible reduction (discharge) and oxidation (charge) of molten sulfur. Normal discharge reactions occur when the anode oxidized Na + passes through the ion-conducting ceramic separator and interacts with the cathode’s reduced molten sulfur (or polysulfides). These polysulfides (e.g., Na2S5) can be electrochemically cycled as a byproduct of this process, as expressed in Eq. (4) [45,46]. At � less than 3, insoluble polysulfides (solids) are formed, which reduces the performance of the battery. S þ 2Na $ Na2Sx; x 2 f3; 4; 5g ð4Þ Fig. 3 shows a tubular NaS batteries architecture and theory of operation. The NaS battery has an advantage of a molten sodium anode and a ceramic sodium-ion conducting solid-state separator, most frequently b-alumina, where the sodium anode is held inside a ceramic separator tube, while its sulfur cathode is located outside. An elongated cell is used to seal and package the entire system, together with all of the current collectors. Many cells are then grouped into a module to be assembled in larger containers later. They are then placed and controlled by the external power conversion system. Assembling and operating batteries is easier with these designs, which also provide high power density [47]. Nowadays, NaS and sodium-nickel chloride (Na-NiCl2) systems are the only grid-scale technologies that are commercially mature [48–50]. Both technologies can store energy from a few kilowatthours (kWh) to tens megawatt-hours (MWh) of energy. Table 2 summarizes the key metrics for these batteries. As noted in Table 2, NaS systems have a high energy density, scalability, rapid reaction times (less than 1 s), and good roundtrip energy efficiency. Over 10–15 years, they are robust, selfcontained systems, and maintenance-free with 4000–4500 total cycles (DOD expectation of 80%). The core disadvantages of NaS batteries are to preserve the high temperature required for their operation as well as the corrosive nature of sodium polysulfides. In this context, the cost and technical parameters of different battery storage systems (BSSs) - NaS, Li-ion, LA, and NiCd have been presented in Table 3 for different ES technologies, where it should be noted that Li-ion has a higher capital (investment) cost than the other battery types. NiCd has low efficiency, a short lifetime, and a high cost. LA battery is not highly efficient and has a short lifetime. The NaS battery is highly efficient and has a long lifetime. C <sup>Power</sup> and C <sup>Energy</sup> denote the unit costs of the power and energy capacities of the BSSs. Some research works in the literature have been examined the economic analysis and costs framework of different energy storage systems. In [16], the authors have provided a detailed cost model of energy storage systems reinforced by in-market insight - short, medium, and long terms storage technologies. It was demonstrated that the NaS battery offers the lowest cost due to its (a) high efficiency, (b) long lifetime, and (c) low replacement costs. Fig. 4 shows the values of the annualized life cycle cost of storage (LCCOS) estimated for seven BSSs - hydrogen energy storage (HES), LA, NiCd, NaS, vanadium-redox (VR), zinc-bromine (ZnBr), and Li-ion, which validates the reasons of selection of NaS batteries in this work. Finally, the capital cost (BScapital) of the battery relies on the power (P <sup>b</sup> ) and energy (E <sup>b</sup> ) capacities as given in Eq. (5). - - - BScapital ¼ C <sup>Power</sup> - P <sup>b</sup> þ C <sup>Energy</sup> - E <sup>b</sup> ð5Þ 3. Formulation of the problem This section introduces the invention of the three optimization stages to get the optimally-allocated NaS-BSSs to epitomize maximization of the ScR of the highly-penetrated RESs hosted in the lG Fig. 3. A tubular NaS batteries architecture and theory of operation [45]. M. Alqarni Ain Shams Engineering Journal 13 (2022) 101590 Table 2 Commercial molten sodium batteries metrics. Battery Energy density (Wh/L) Expected life cycle (cycles)* Expected operational lifetime (years) Operating temperature (�C) Discharge duration (h) <sup>**</sup> Round-trip efficiency (%) NaS 300–400 4000–4500 15 300–350 6–7 80 Na-NiCl2 150–190 3500–4500 20 270–300 2–4 80–85 - Cycles at 80% depth of discharge (DoD). ** Discharge duration is estimated at rated power. Table 3 Selected characteristics from datasheets of some BSSs. BSS Capital cost ($) Efficiency (p.u.) Life cycles (cycles) Lifetime (years) C <sup>Power</sup> ($/kW) C <sup>Energy</sup> ($/kWh) NaS 350 300 0.95 4000 15 Li-ion 900 600 0.98 3000 10 LA 200 200 0.70 350 7 NiCd 500 400 0.85 500 9 Fig. 4. Cost elements basis versus LCCOS for seven BSSs. WTh <sup>P</sup> h <sup>WT</sup> <sup>; 8h 2 H</sup> ð9Þ considered, then to epitomize the minimization of the active power losses, and finally to epitomize the calculation of the OEM relying on diminishing the overall operating cost of the lG based on the optimal findings of the earlier two stages. The investigated problem’s formulation is expressed mathematically as follows: 3.1. Objective functions (OFs) Cost <sup>WT</sup> h ¼ b Cost <sup>WT</sup> h Cost <sup>PV</sup> h PVh <sup>P</sup> h <sup>PV</sup> <sup>PV</sup> h <sup>¼ b</sup> h <sup>PV</sup> <sup>; 8h 2 H</sup> ð10Þ <u>ER;h</u> E <sup>rated</sup> R;h ! where YðxÞ signifies the ScR of all the RESs hosted on the lG as a function in the decision variables (x). ER;h and E <sup>rated</sup> R;h denote the actual RESs energy generated at h and the rated RESs energy that can be generated at h, respectively, in which H expresses the day horizon (H = 24). DPlossðxÞ denotes the total active power losses, in which P <sup>losses</sup> b;h and Nb represents the bth branch active power loss and the number of branches in the lG, respectively. CostðxÞ denotes the cost of operation of the lG in ($/kWh), Cost <sup>WT</sup> h denotes the total WT costs in ($/kWh), and Cost <sup>PV</sup> h <sup>denotes the total PV costs in ($/kWh). All are</sup> OF1 ¼ max ScRðxÞ ¼ max YðxÞ ¼ XH h¼1 ð6Þ expressed at h. P <sup>grid</sup> h <sup>grid</sup> h, P <sup>PV</sup> h OF2 ¼ min DPlossðxÞ ¼ OF3 ¼ min CostðxÞ XNb b¼1 P <sup>losses</sup> b;h <sup>; 8h 2 H; 8b 2 Nb</sup> ð7Þ <sup>PV</sup> h <sup>; andP</sup> h <sup>WT</sup> h <sup>WT</sup> denote the hth Pop of the grid, WTs, gridh, b and PVs, respectively.b PVh <sup>,</sup> <sup>and</sup> <sup>b</sup> and PVs, respectively.bgridh, bPVh <sup>,</sup> <sup>and</sup> <sup>b</sup> WTh represent the hth energy price ($/kWh) and the hth PV and WT bid prices of the WT, respectively. Table 4 shows the numerical values of PV and WT bids. CostNaS�BSS ($/day) denotes the daily total cost of NaS-BSS usage, where it relies on the number of batteries replacement during the project lifetime (Z), power (P <sup>b</sup> ) and energy (E <sup>b</sup> ) capacities, interest - Cost <sup>grid</sup> h þ Cost <sup>WT</sup> h þ Cost <sup>PV</sup> h <sup>þ CostNaS�BSS</sup> ð8Þ <sup>WT</sup> h þ Cost <sup>PV</sup> h ¼ XH h¼1 Cost <sup>grid</sup> h <sup>grid</sup> h þ Cost <sup>WT</sup> h So that; M. Alqarni Ain Shams Engineering Journal 13 (2022) 101590 SoC <sup>initial</sup> þ Dhg <sup>NaS</sup> P <sup>NaS</sup> charge;h <sup>�</sup> <sup>DhP</sup> NaSdis;h <sup>; h ¼ 1</sup> rate (ir), and lifecycles (BLifecycles) of the batteries. It can be calculated as follows: ( SoC <sup>h</sup> ¼ SoC <sup>h�1</sup> þ Dhg <sup>NaS</sup> P <sup>NaS</sup> charge;h <sup>�</sup> <sup>DhP</sup> NaSdis;h <sup>; 8h �</sup> <sup>2; h 2 H</sup> ð22Þ " Z ! - �# ! CostNaS�BSS ¼ <sup><u>1</u></sup> D CostNaS�BSS ¼ <sup><u>1</u></sup> ð1 þ irÞ <u>irð1 þ irÞZ</u> Z - 1 Z SoCh ¼ SoC <sup>initial</sup> ; h ¼ H ð23Þ BScapital Z <sup><u>Bcycles</u></sup> ð11Þ BLifecycles where Bcycles denotes the total number of NaS-BSS cycles performed and is expressed in Eqs. (12) and (13). P <sup>NaS</sup> dis;h <sup>¼</sup> P <sup>NaS</sup> dis; XH h¼1 g <sup>NaS</sup> P NaScharge;h ð24Þ XH kNaSðh; eÞ ð12Þ h¼1 XH h¼1 of the NaS batteries, in which P <sup>NaS</sup> charge <sup>�max</sup> �h of the NaS batteries, in which P <sup>NaS</sup> charge <sup>�max</sup> �h <sup>,</sup> <sup>and</sup> <sup>PNaS</sup> discharge <sup>�max</sup> �h <sup>denote</sup> <sup>the</sup> maximum charging and discharging capacities of the NaS batteries at h. Eq. (21) represents the state of charge (SoC) limits, where <sup>NaS</sup> charge <sup>�max</sup> �h <sup>,</sup> <sup>and</sup> <sup>PNaS</sup> discharge <sup>�max</sup> Bcycles ¼ XD e¼1 Eqs. (19) and (20) represent the charging and discharging limits - kNaSðh; eÞ ¼ taðhÞ � taðh�1Þ taðhÞ; 8h 2 Hand8e 2 D ð13Þ kNaSðh; eÞ denotes the cycles completed given as a function of h, and the day of operation (e), D denotes the total number of days of operation per year (i.e., D = 365), taðhÞ is a binary, 0/1, variable that indicates the battery at h and e. When the NaS battery is discharging (P <sup>NaS</sup> dis;h <sup>), ta</sup> <sup>equals 0, and it equals 1 when the NaS battery is charging</sup> (P <sup>NaS</sup> charge;h <sup>).</sup> <sup>Features</sup> <sup>of</sup> <sup>the</sup> <sup>NaS-BSS</sup> <sup>(95%</sup> <sup>efficient)</sup> <sup>used</sup> <sup>in</sup> <sup>this</sup> <sup>work</sup> are given as follows: C <sup>Power</sup> =$350/kW, C <sup>Energy</sup> =$300/kWh, and BLifecycles = 4500 cycles. In addition, the batteries’ lifetime has been set to 15 years. 3.2. Problem constraints The problem formulated is subjected to two different sets of constraints - (i) the system constraints, and (ii) the battery constraints. The first set of constraints is represented by Eqs. (14)–(18), and the second set of constraints is expressed by Eqs. (19)–(24). SoC <sup>h</sup> <sup>h</sup> min <sup>and</sup> <sup>SoCh</sup> P <sup>grid</sup> h <sup>WT</sup> h þ P <sup>PV</sup> h <sup>grid</sup> h þP <sup>WT</sup> h <sup>PV</sup> h <sup>þ PNaS</sup> dis; <sup>NaS</sup> dis;h <sup>¼ Pl</sup> <sup>l</sup> h <sup>þ PNaS</sup> charge <sup>NaS</sup> charge;h <sup>þ</sup> XNb b¼1 P <sup>losses</sup> b;h <sup>; 8h 2 H</sup> ð14Þ P <sup>losses</sup> b;h P <sup>WT</sup> h; <sup>WT</sup> h;min <sup>�</sup> <sup>P</sup> h <sup>WT</sup> h <sup>WT</sup> - P <sup>WT</sup> h;max <sup>; 8h</sup> ð15Þ P <sup>PV</sup> h; <sup>PV</sup> h;min <sup>�</sup> <sup>PPV</sup> h <sup>PV</sup> h <sup>�</sup> <sup>P</sup> h <sup>PV</sup> ; h <sup>PV</sup> ;max <sup>; 8h</sup> ð16Þ <sup>bus</sup> min <sup>�</sup> <sup>V</sup> <sup>bus</sup> <sup>�</sup> <sup>V</sup> max <sup>bus</sup> V <sup>bus</sup> min max <sup>bus</sup> ð17Þ I <sup>b</sup> rms <sup>�</sup> <sup>I</sup> rms <sup>b�max</sup> I <sup>b</sup> rms <sup>b�max</sup> ; 8b 2 Nb ð18Þ Eq. (14) expresses the balance of power condition, where P <sup>l</sup> h h denotes the total power demand. Eqs. (15) and (16) express the WT and PV power limits, where P <sup>WT</sup> h;min <sup>,</sup> <sup>PPV</sup> h;min <sup>,</sup> <sup>PWT</sup> h;max <sup>and</sup> <sup>PPV</sup> h;max <sup>are</sup> the minimum and maximum WT and PV generated power limits. <sup>WT</sup> h;min <sup>,</sup> <sup>PPV</sup> h; <sup>PV</sup> h;min <sup>,</sup> <sup>PWT</sup> h; <sup>WT</sup> h;max <sup>and</sup> <sup>PPV</sup> h; Eq. (17) represents the bus voltage limits, where V <sup>bus</sup> min <sup>bus</sup> min <sup>and</sup> <sup>V</sup> max <sup>bus</sup> SoC <sup>h</sup> min <sup>and</sup> <sup>SoCh</sup> max <sup>signify</sup> <sup>the</sup> <sup>minimum</sup> <sup>and</sup> <sup>maximum</sup> <sup>SoC</sup> <sup>of</sup> <sup>NaS</sup> batteries at h, respectively. Eq. (22) indicates that the hth SoC <sup>h</sup> should rely on the initial SoC (SoC <sup>in</sup> ), previous SoC <sup>h�1</sup>, the hth - discharged and charged quantities, NaS battery efficiency g <sup>NaS</sup>, and the time-step (length) of the period (set to one hour). Eq. (23) indicates that SoC <sup>in</sup> is considered at h = 1, also the final SoC should equal the initial SoC. Finally, Eq. (24) represents that the discharged power should equal the charged power multiplied by the NaS battery efficiency. 4. Coronavirus herd immunity optimizer (CHIO) The concept of herd immunity is mathematically represented in [40] to help establish the CHIO algorithm. According to this strategy, society defends itself against infection by converting the majority of non-infected people from vulnerable to immune. This means that even those who are most vulnerable would not be harmed since the immune population will no longer spread the virus. Herd immunity (HI) populations may be divided into three types - resistant, susceptible, and infectious. As seen in Fig. 5, population-based HI forms the basis for the CHIO formulation. In the implementation approach of the CHIO algorithm, the improvement methodology is generated from vulnerable, contaminated, and immunized individuals. As a result of the CHIO algorithm, social distance is defined as the separation distance between a person and the community that may be sensitive, infected, or immunized between them. The CHIO optimization approach is used to create HI. As a result, the method has been established in six primary phases. The implementation stages are outlined as follows: Stage #1: Initialize CHIO parameters - The target function of CHIO is represented as follows: min X <sup>f</sup> ð <sup>X</sup> Þ; X 2 ½lb; ub� ð25Þ where ðXi ¼ X1; X2; ������ ; XnÞ represents the target function for all the individuals, in which xi denotes the decision variables. The subscripted variable with i and n denote the gene quantity. CHIO only requires two main control parameters - maximum infected cases age (MaxAge) and the fundamental reproduction rate (BRr). In addition, four additional factors are required – C0 (set to 1), Max_Itr that denotes the maximum iteration number, HIS that denotes the HI capacity, and n that denotes the dimension. Stage #2: Produce HI population (HIP) - Several HIS such as individuals are generated heuristically by the CHIO. The HIP is a bi-dimensional matrix that keeps track of the generated persons as follows: max denote the minimum and maximum voltage limits, respectively. They are given 95% and 105%, respectively. Finally, Eq. (18) <sup>b</sup> rms <sup>and</sup> <sup>I</sup> rms <sup>b�max</sup> expresses the loading capacity limit, where I <sup>b</sup> expresses the loading capacity limit, where I <sup>b</sup> rms <sup>and</sup> <sup>I</sup> rms <sup>b�max</sup> denote the total rms branch current and the maximum branch current, respectively. <sup>NaS</sup> charge�h <sup>�</sup> <sup>P</sup> charge <sup>NaS�max</sup> �h P <sup>NaS</sup> charge charge <sup>NaS�max</sup> �h <sup>; 8h �</sup> <sup>H</sup> ð19Þ <sup>NaS</sup> dis�h <sup>�</sup> <sup>P</sup> dis <sup>NaS</sup> - <sup>�</sup> h <sup>max</sup> P <sup>NaS</sup> dis� dis <sup>NaS</sup> - <sup>�</sup> h <sup>max</sup> ; 8h � H ð20Þ <sup>h</sup> min <sup>�</sup> <sup>SoCh</sup> <sup>�</sup> <sup>SOCh</sup> SoC <sup>h</sup> max <sup>h</sup> <sup>; 8h �</sup> <sup>H</sup> ð21Þ . . . .. .. .. Table 4 Bids of the RESs [16]. RES Bids ($/kWh) WT 1.72 PV 2.80 X <sup>1</sup> 1 <sup>1</sup> 1 ��� X <sup>1</sup> n n 3 775 ð26Þ HIP ¼ 2 664 X <sup>HIS</sup> 1 <sup>HIS</sup> 1 ��� X <sup>HIS</sup> n n M. Alqarni Ain Shams Engineering Journal 13 (2022) 101590 Fig. 5. Illustration of the HI concept [40]. - 2; f X <sup>j</sup> ðt þ 1Þ < fðXÞ <sup>j</sup> ðtþ1ÞÞ Df ðXÞ - V Sj ¼ 0 V is ~~C~~ orona Xjðt þ 1Þ Using Eq. (25), the optimum solution is determined for each individual. As with the status vector (S), all people in the HIP are assigned a value of 1 or 0. It can be noted that S numbers are randomly assigned from C0. Stage #3: Evolution of HI - The CHIO’s primary upgrading mechanism is set. According to the BRr, each gene has the same impact or a socially varied effect based on the following three principles: - 1; f X <sup>j</sup> ðt þ 1Þ < Sj ¼ 8 >< >: fðXÞ <sup>j</sup> ðtþ1ÞÞ Df ðXÞ V Sj ¼ 1 R X <sup>j</sup> i - X <sup>j</sup> i <sup>ðtÞ</sup> ; r < BRrðImmunedÞ X <sup>j</sup> i <sup>j</sup> i <sup>ðtÞ; r</sup> <sup>�</sup> <sup>BRr</sup> C X <sup>j</sup> i <sup><u>1</u></sup> 3 <sup>BRrðInfectedÞ</sup> x <sup>j</sup> ið <sup>t þ 1</sup> Þ ¼ 8 >>>>>>>< >>>>>>>: N X <sup>j</sup> i - X <sup>j</sup> i <sup>ðtÞ</sup> ; r < <sup><u>2</u></sup> 3 - X <sup>j</sup> i <sup>ðtÞ</sup> ; r < <sup><u>1</u></sup> 3 ð30Þ - where is Corona X <sup>j</sup> ðt þ 1Þ is equal to one. If an infected case is used to create a new one, the binary value will be 1. Stage #5: Casualty cases – MaxAge specifies if the immunity rate of the current affected case could not be determined for the necessary iteration, then this process is declared dead. It is then stimu lated from the scraped applyingX <sup>j</sup> ið <sup>t þ 1</sup> Þ ¼ lbi þ ðubi � lbiÞUð0; 1Þ. In addition, the values of Si and Sj are set to be 0. It might encourage the present population to grow and, as a result, avoid local solutions. Stage #6: Stopping status – The CHIO is carried out in stages 3 to 5 until the stopping criterion has been met, generally according to the maximum number of iterations (Max_Itr). The total number of immune and vulnerable patients dominates the population. As well, the contaminated casing will be removed. Fig. 6 shows the flowchart of the CHIO algorithm. 5. Results obtained and discussions 5.1. NaS batteries allocation The optimal allocation of the NaS batteries is determined, in which one NaS-BSS was firstly planned (named as Scenario 1), then two NaS-BSSs were secondly planned (named as Scenario 2), and finally, three NaS-BSSs were planned (named as Scenario 3). The results attained for the three scenarios are organized in Table 5. <sup><u>2</u></sup> 3 <sup>BRrðSusceptibleÞ</sup> ð27Þ where r stands for a random number ranges between 0 and 1. The infected case has a value between 0 and 0:333BRr. There are several variations between a patient’s sick gene and the new one that reduces its value, including: X <sup>j</sup> i <sup>j</sup> ið <sup>t þ 1</sup> Þ ¼ C X <sup>j</sup> i - X <sup>j</sup> i <sup>ðtÞ</sup> ð28Þ - X <sup>j</sup> i <sup>ðtÞ</sup> ¼ X <sup>j</sup> i - <sup>Xj</sup> i <sup>ðtÞ �</sup> <sup>X</sup> i <sup>cðtÞ</sup> ð29Þ <sup>j</sup> i <sup>ðtÞ �</sup> <sup>X</sup> i <sup>c</sup> C X <sup>j</sup> i <sup>j</sup> i <sup>ðtÞ þ r</sup> <sup>Xj</sup> i Similarly, the susceptible case ranges between 0:033BRr and 0:67BRr. In addition, the immune case ranges between 0:67BRr and BRr. Stage #4: Population update – The immunity rate is evaluated for each generated case; however, the current solution will only be - - - substituted by the generated case if f x <sup>j</sup> ðt þ 1Þ < f x <sup>j</sup> ðtÞ . If the Sj - - - substituted by the generated case if f x <sup>j</sup> ðt þ 1Þ < f x <sup>j</sup> ðtÞ . If the Sj value is equal to 1, the age vector value (Aj) will increase to 1. The values of Sj are altered by the subsequent equation during each cycle, following the immunological threshold of the herd. - - x <sup>j</sup> ðt þ 1Þ < f x <sup>j</sup> ðtÞ M. Alqarni Ain Shams Engineering Journal 13 (2022) 101590 Fig. 6. Flowchart of the CHIO algorithm [40]. After realizing the optimal size and location of the NaS-BSSs, DPloss of the lG all over a typical day are calculated and analyzed in the three scenarios, as illustrated in Fig. 7. It is clear that the connection of the NaS-BSSs positively affects the total active power losses of the lG. However, the relation between the number of BSSs and DPloss is not linear. For illustration, DPloss of the lG (around 1.51 MW) during the day in scenario 3 (three NaS-BSSs connected) is greater than DPloss of the lG (around 1.48 MW) during the day in scenario 2 (two NaS-BSSs connected). This means that NaS-BSSs allocation may adversely affect DPloss, if not correctly planned. To generalize, when the number of batteries used increases, it is not necessary to reduceDPloss in lGs. In this regard, Fig. 8 shows the hourly variation of the power losses over the day for Scenario 2 and the base system. It is obvious that the NaS-BSSs are charging in periods characterized by low energy price (e.g., h = 1 to h = 6), and the SoC of the batteries is rising, as illustrated in Fig. 9. Then, the SoC remains constant till h = 12, which corresponds to the constant hourly Ploss from h = 7 to h = 12. After that, the hourly Ploss and SoC declines in the compensated system: Scenario 2 because of the discharging of the batteries. 5.2. ScR levels after NaS batteries allocation Fig. 10 explores the hourly the ScR of the WTs and PVs in the base system with no NaS batteries connected. Remarkably, the ScR of the WTs and PVs is not equal to 1 at all hours of the day, in which the ScR of the WTs is 0.97 at h = 7 and is in the range of Table 5 Optimal allocation of the NaS-BSSs: Stage 1. Scenario Bus P <sup>b</sup> (kW) E <sup>b</sup> (MWh) 1 6 2,170 13.02 2 29 1,010 6.06 14 640 3.84 3 3 1,720 10.32 14 559 3.35 30 780 4.68 0.88 to 0.95 from h = 3 to h = 5. Also, the ScR of the PVs ranges between 0.32 and 0.71 from h = 13 to h = 14. After merging two NaS batteries, the ScRs of the WTs and PVs are equal to 1 at all hours of the day. In this domain, the NaS-BSS certainly improves the ScR of the RESs. This means that RESs can be more efficient as commoditized alternatives for green energy utilization in lGs. 5.3. Voltage profile after NaS batteries allocation Fig. 11 illustrates the voltage profile of the lG at two different hours - h = 4, and h = 14. Based on the loading profile, the loading levels at these hours are 0.51, and 0.88, respectively. One can see in Fig. 11 that the lG’s bus voltage values are within the allowable limits. For instance, at h = 4 and h = 14 half-load and shoulder loading. The bus voltages were high (almost 1p.u.) with no NaS-BSSs connected. After the NaS batteries connection into the system, the bus voltages profile has been declined as the batteries were charging; but still within allowable limits. On the contrary, when the NaS-batteries are discharging, the bus voltages profile increases to be better than the base case, but also still within the allowable limits. 5.4. Loading profile before and after RESs and NaS batteries connection Fig. 12 explores the total RESs output power estimated, total loading before and after RESs connection, the hourly difference between the loading and RESs production, and the capacity delivered from the grid represented by the rated active power delivered from the substation transformer. All are given per hour. Remarkably, when the generation of the output power from the RESs increases, the output power delivered by the main grid to the lG decreases. Besides, the back feed power (reverse power) can take place when the difference between the total generated RESs power exceeds the total load power, as highlighted in yellow in Fig. 12, for example at h = 12 to h = 14. Also, overloads of the transformer may occur when total RESs power is low (low-RESs generation periods) and total load is high (high-demand periods). It should be mentioned that the rated capacity and active power of the transformer supplying the studied lG are 3.5 MVA and M. Alqarni Ain Shams Engineering Journal 13 (2022) 101590 Fig. 7. Active power loss results that were obtained in a typical day in the three scenarios. Fig. 8. Active power losses variation among the day: Base system and Scenario 2 results. Fig. 9. SoC variation of the two NaS-BSSs during the day: Scenario 2. 2.97 MW, respectively. Fig. 13 explores the hourly loading of the transformer before and after one/two NaS-BSSs connections. Evidently, no overloading occurs after batteries’ connection to the lG, particularly in Scenario 2 when 2 NaS-BSSs are connected. Therefore, NaS-BSSs can relieve the capacity of the supply transformer and defer its reinforcement plans. 5.5. OEM after RESs and NaS batteries connection lG’s economic analysis was also investigated in this work once the best allocation of NaS batteries has been determined. The costs of the NaS batteries are involved in the economic analysis as a part of the lG’s costs. M. Alqarni Ain Shams Engineering Journal 13 (2022) 101590 Fig. 10. Variation of the ScR of the WTs and PVs with no NaS batteries connected. Fig. 11. Bus voltage profile with no NaS batteries and 2 NaS-BSS batteries connected: (a) h = 4 and (b) h = 14. (No NaS-BSS connected) equals $193,310.8/day and $160,674.5/day in Scenario 2 in case of two NaS-BSSs connected. This means that the total operating cost of the lG declines by 16.80% percent when two NaS-BSSs are added to the lG under consideration, which validates the positive impacts of using the NaS batteries. Fig. 14 explores the optimum hourly output powers of the grid, PVs, WTs, and NaS-BSSs in Scenario 2, when two BS units were allocated in the lG. The charging process of the two NaS-BSSs takes place when the demand is not high and the energy price is low, e.g. from h = 1 to h = 7. On the contrary, the discharging process of the two NaSBSSs takes place during high-priced energy market hours to decrease lG’s cost of operation. 6. Conclusions Fig. 12. Hourly loading profile before and after RESs connection. Capital and replacement costs of the NaS-BSSs over the project’s lifespan have been included in the overall daily cost calculation, in which the total operating cost per day in the base system In this work, an optimization framework is proposed to enhance a grid-connected lG performance in three stages - maximization of the ScR of the highly-penetrated RESs hosted in the lG considered via NaS batteries allocation, minimization of the active power losses, and calculation of the OEM relying on minimizing the overall operating cost of the lG based on the optimal battery findings. M. Alqarni Ain Shams Engineering Journal 13 (2022) 101590 Fig. 13. Hourly transformer loading before and after one/two NaS-BSSs connections. Fig. 14. OEM in Scenario 2 with two NaS-BSSs connected. Also, the effects of optimally allocated NaS batteries on the loading capacity of the transformer that powers the lG were investigated. It was clear that the connection of the NaS-BSSs positively affects the total active power losses of the lG. However, the relation between the number of BSSs and the active power losses is not linear, i.e., when the number of batteries used increases, it is not necessary to guarantee an adequate power loss reduction in the lGs. Also, the NaS-BSS positively enhances the ScR of the RESs. This means that RESs can be more efficient as alternatives for green energy utilization in lGs. Besides, NaS-BSSs can relieve the capacity of the supply transformer and defer its reinforcement plans. Finally, the results obtained of the allocation of the NaS batteries in the lG validate the effectiveness of the proposed solution and the algorithm used, in addition to the techno-economic benefits that can be guaranteed. One of the study limitations is the investigation of the direct impacts of connecting batteries to the lG. However, possible future works include the long-term investigation of the performance of the lG, the use of other recent optimization techniques to solve the problem, the use of different battery storage systems as well as enhancement of the lG performance by adding different active/reactive power compensators. M. Alqarni Ain Shams Engineering Journal 13 (2022) 101590 Declaration of Competing Interest The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper. References [1] Jasiunas <sup>�</sup> J, Lund PD, Mikkola J. Energy system resilience - A review. Renew Sustain Energy Rev 2021;150:111476. doi: <u>[https://doi.org/10.1016/j.](https://doi.org/10.1016/j.rser.2021.111476)</u> <u>[rser.2021.111476.](https://doi.org/10.1016/j.rser.2021.111476)</u> [2] Ismael SM, Abdel Aleem SHE, Abdelaziz AY, Zobaa AF. State-of-the-art of hosting capacity in modern power systems with distributed generation. Renew Energy 2019;130:1002–20. doi: <u>[https://doi.org/10.1016/j.renene.2018.07.008.](https://doi.org/10.1016/j.renene.2018.07.008)</u> [3] Rawa M, Abusorrah A, Bassi H, Mekhilef S, Ali ZM, Abdel Aleem SHE, et al. Economical-technical-environmental operation of power networks with windsolar-hydropower generation using analytic hierarchy process and improved grey wolf algorithm. Ain Shams Eng J 2021;12(3):2717–34. doi: <u>[https://doi.](https://doi.org/10.1016/j.asej.2021.02.004)</u> <u>[org/10.1016/j.asej.2021.02.004.](https://doi.org/10.1016/j.asej.2021.02.004)</u> [4] Gupta R, Pena-Bello A, Streicher KN, Roduner C, Farhat Y, Thöni D, et al. Spatial analysis of distribution grid capacity and costs to enable massive deployment of PV, electric mobility and electric heating. Appl Energy 2021;287:116504. doi: <u>[https://doi.org/10.1016/j.apenergy.2021.116504.](https://doi.org/10.1016/j.apenergy.2021.116504)</u> [5] Rizk-Allah RM, Abdel Mageed HM, El-Sehiemy RA, Abdel Aleem SHE, El Shahat A. A New Sine Cosine Optimization Algorithm for Solving Combined NonConvex Economic and Emission Power Dispatch Problems. Int J Energy Convers 2017;5(6):180. doi: <u>[https://doi.org/10.15866/irecon.v5i6.14291.](https://doi.org/10.15866/irecon.v5i6.14291)</u> [6] Hemeida AM, El-Ahmar MH, El-Sayed AM, Hasanien HM, Alkhalaf S, Esmail MFC, et al. Optimum design of hybrid wind/PV energy system for remote area. Ain Shams Eng J 2020;11(1):11–23. doi: <u>[https://doi.org/10.1016/j.](https://doi.org/10.1016/j.asej.2019.08.005)</u> <u>[asej.2019.08.005.](https://doi.org/10.1016/j.asej.2019.08.005)</u> [7] Fina B, Roberts MB, Auer H, Bruce A, MacGill I. Exogenous influences on deployment and profitability of photovoltaics for self-consumption in multiapartment buildings in Australia and Austria. Appl Energy 2021;283:116309. doi: <u>[https://doi.org/10.1016/j.apenergy.2020.116309.](https://doi.org/10.1016/j.apenergy.2020.116309)</u> [8] Omar AI, Ali ZM, Al-Gabalawy M, Abdel Aleem SHE, Al-Dhaifallah M. Multi objective environmental economic dispatch of an electricity system considering integrated natural gas units and variable renewable energy sources. Mathematics 2020;8:1100. doi: <u>[https://doi.org/](https://doi.org/10.3390/math8071100)</u> <u>[10.3390/math8071100.](https://doi.org/10.3390/math8071100)</u> [9] Mostafa MH, Ali SG, Calasan M, Abdelaziz AY, Abdel Aleem SHE, Approach S-B, et al. 25th Int. Conf. Inf. Technol. IEEE 2021;2021:1–7. doi: <u>[https://doi.org/](https://doi.org/10.1109/IT51528.2021.9390127)</u> <u>[10.1109/IT51528.2021.9390127.](https://doi.org/10.1109/IT51528.2021.9390127)</u> [10] Swief RA, Hassan NM, Hasanien HM, Abdelaziz AY, Kamh MZ. AC&DC optimal power flow incorporating centralized/decentralized multi-region grid control employing the whale algorithm. Ain Shams Eng J 2021;12(2):1907–22. doi: <u>[https://doi.org/10.1016/j.asej.2021.01.004.](https://doi.org/10.1016/j.asej.2021.01.004)</u> [11] Savari GF, Krishnasamy V, Sathik J, Ali ZM, Abdel Aleem SHE. Internet of Things based real-time electric vehicle load forecasting and charging station recommendation. ISA Trans 2020;97:431–47. doi: <u>[https://doi.org/10.1016/j.](https://doi.org/10.1016/j.isatra.2019.08.011)</u> <u>[isatra.2019.08.011.](https://doi.org/10.1016/j.isatra.2019.08.011)</u> [12] Sobhy MA, Abdelaziz AY, Hasanien HM, Ezzat M. Marine predators algorithm for load frequency control of modern interconnected power systems including renewable energy sources and energy storage units. Ain Shams Eng J 2021. doi: <u>[https://doi.org/10.1016/j.asej.2021.04.031.](https://doi.org/10.1016/j.asej.2021.04.031)</u> [13] Abdelsalam AA, Hassanin AM, Hasanien HM. Categorisation of power quality problems using long short-term memory networks. IET Gener Transm Distrib 2021;15(10):1626–39. doi: <u>[https://doi.org/10.1049/gtd2.v15.1010.1049/](https://doi.org/10.1049/gtd2.v15.1010.1049/gtd2.12122)</u> <u>[gtd2.12122.](https://doi.org/10.1049/gtd2.v15.1010.1049/gtd2.12122)</u> [14] Zobaa AF, Ribeiro PF, Aleem SH, Afifi SN, editors. Energy Storage at Different Voltage Levels: Technology, integration, and market aspects. Institution of Engineering and Technology; 2018. doi:10.1049/PBPO111E. [15] Ismael S, Abdel Aleem S, Abdelaziz A, Zobaa A. Probabilistic Hosting Capacity Enhancement in Non-Sinusoidal Power Distribution Systems Using a Hybrid PSOGSA Optimization Algorithm. Energies 2019;12:1018. doi: <u>[https://doi.org/](https://doi.org/10.3390/en12061018)</u> <u>[10.3390/en12061018.](https://doi.org/10.3390/en12061018)</u> [16] Mostafa Mostafa H, Abdel Aleem Shady HE, Ali Samia G, Ali Ziad M, Abdelaziz Almoataz Y. Techno-economic assessment of energy storage systems using annualized life cycle cost of storage (LCCOS) and levelized cost of energy (LCOE) metrics. J Energy Storage 2020;29:101345. doi: <u>[https://doi.org/](https://doi.org/10.1016/j.est.2020.101345)</u> <u>[10.1016/j.est.2020.101345.](https://doi.org/10.1016/j.est.2020.101345)</u> [17] Hendam M, Abdel-Rahman M, Attia MA, Kamh MZ. Maximizing public welfare for the net-metering scheme using prosumer charges - vertically integrated utility case. Ain Shams Eng J 2021. doi: <u>[https://doi.org/10.1016/j.](https://doi.org/10.1016/j.asej.2021.07.006)</u> <u>[asej.2021.07.006.](https://doi.org/10.1016/j.asej.2021.07.006)</u> [18] Mostafa MH, Abdel Aleem SHE, Ali SG, Abdelaziz AY. Energy-management solutions for microgrids. Distrib. Energy Resour. Microgrids Integr. Challenges Optim., Elsevier; 2019. p. 483–515. doi:10.1016/B978-0-12-817774-7.00020X. [19] Zobaa AF, Abdel Aleem SHE, Ismael SM, Ribeiro PF. Hosting Capacity for Smart Power Grids. Cham: Springer International Publishing; 2020. doi:10.1007/9783-030-40029-3. [20] de Oliveira Leonardo Willer, de Oliveira Janaína Gonçalves, Dias Bruno Henriques, de Sena Célia Simões Arreguy, dos Santos André Lopes Marinho. Optimal allocation of battery in electrical distribution systems with distributed resources. J Control Autom Electr Syst 2021;32(5):1289–304. doi: <u>[https://doi.org/10.1007/s40313-021-00732-x.](https://doi.org/10.1007/s40313-021-00732-x)</u> [21] Nayak Manas Ranjan, Behura Diptimayee, Kasturi Kumari. Optimal allocation of energy storage system and its benefit analysis for unbalanced distribution network with wind generation. J Comput Sci 2021;51:101319. doi: <u>[https://doi.](https://doi.org/10.1016/j.jocs.2021.101319)</u> <u>[org/10.1016/j.jocs.2021.101319.](https://doi.org/10.1016/j.jocs.2021.101319)</u> [22] Braz Pontes Luiz Renato, Percy Molina Rodriguez Yuri, Luyo Kuong Jaime, Rojas Espinoza Hugo. Optimal allocation of energy storage system in distribution systems with intermittent renewable energy. IEEE Lat Am Trans 2021;19 (02):288–96. doi: <u>[https://doi.org/10.1109/TLA.990710.1109/](https://doi.org/10.1109/TLA.990710.1109/TLA.2021.9443071)</u> <u>[TLA.2021.9443071.](https://doi.org/10.1109/TLA.990710.1109/TLA.2021.9443071)</u> [23] Wan Tong, Tao Yuechuan, Qiu Jing, Lai Shuying. Data-driven hierarchical optimal allocation of battery energy storage system. IEEE Trans Sustain Energy 2021;12(4):2097–109. doi: <u>[https://doi.org/10.1109/TSTE.2021.3080311.](https://doi.org/10.1109/TSTE.2021.3080311)</u> [24] Xu Tao, Meng He, Zhu Jie, Wei Wei, Zhao He, Yang Han, et al. Optimal capacity allocation of energy storage in distribution networks considering active/ reactive coordination. Energies 2021;14(6):1611. doi: <u>[https://doi.org/10.3390/](https://doi.org/10.3390/en14061611)</u> <u>[en14061611.](https://doi.org/10.3390/en14061611)</u> [25] Mahmoud TS, Ahmed BS, Hassan MY. The role of intelligent generation control algorithms in optimizing battery energy storage systems size in microgrids: A case study from Western Australia. Energy Convers Manag 2019;196:1335–52. doi: <u>[https://doi.org/10.1016/j.enconman.2019.06.045.](https://doi.org/10.1016/j.enconman.2019.06.045)</u> [26] FENG Xiaoshan, GU Jie, GUAN Xuefei. Optimal allocation of hybrid energy storage for microgrids based on multi-attribute utility theory. J Mod Power Syst Clean Energy 2018;6(1):107–17. doi: <u>[https://doi.org/10.1007/s40565-](https://doi.org/10.1007/s40565-017-0310-3)</u> <u>[017-0310-3.](https://doi.org/10.1007/s40565-017-0310-3)</u> [27] Rawa Muhyaddin, Abusorrah Abdullah, Al-Turki Yusuf, Mekhilef Saad, Mostafa Mostafa H, Ali Ziad M, et al. Optimal allocation and economic analysis of battery energy storage systems: Self-consumption rate and hosting capacity enhancement for microgrids with high renewable penetration. Sustain 2020;12(23):10144. doi: <u>[https://doi.org/10.3390/su122310144.](https://doi.org/10.3390/su122310144)</u> [28] Nojavan S, Majidi M, Esfetanaj NN. An efficient cost-reliability optimization model for optimal siting and sizing of energy storage system in a microgrid in the presence of responsible load management. Energy 2017;139:89–97. doi: <u>[https://doi.org/10.1016/j.energy.2017.07.148.](https://doi.org/10.1016/j.energy.2017.07.148)</u> [29] Chen Changsong, Duan Shanxu. Optimal allocation of distributed generation and energy storage system in microgrids. IET Renew Power Gener 2014;8 (6):581–9. doi: <u>[https://doi.org/10.1049/rpg2.v8.610.1049/iet-rpg.2013.0193.](https://doi.org/10.1049/rpg2.v8.610.1049/iet-rpg.2013.0193)</u> [30] Qiu Jing, Zhao Junhua, Zheng Yu, Dong Zhaohui, Dong Zhao Yang. Optimal allocation of BESS and MT in a microgrid. IET Gener Transm Distrib 2018;12 (9):1988–97. doi: <u>[https://doi.org/10.1049/gtd2.v12.910.1049/iet-](https://doi.org/10.1049/gtd2.v12.910.1049/iet-gtd.2017.0717)</u> <u>[gtd.2017.0717.](https://doi.org/10.1049/gtd2.v12.910.1049/iet-gtd.2017.0717)</u> [31] Duong Thanh Long, Nguyen Phuoc Tri, Vo Ngoc Dieu, Le Minh Phuong. A newly effective method to maximize power loss reduction in distribution networks with highly penetrated distributed generations. Ain Shams Eng J 2021;12 (2):1787–808. doi: <u>[https://doi.org/10.1016/j.asej.2020.11.003.](https://doi.org/10.1016/j.asej.2020.11.003)</u> [32] Abdelkader Mohamed A, Osman Zeinab H, Elshahed Mostafa A. New analytical approach for simultaneous feeder reconfiguration and DG hosting allocation in radial distribution networks. Ain Shams Eng J 2021;12(2):1823–37. doi: <u>[https://doi.org/10.1016/j.asej.2020.09.024.](https://doi.org/10.1016/j.asej.2020.09.024)</u> [33] Reniers Jorn M, Mulder Grietus, Howey David A. Unlocking extra value from grid batteries using advanced models. J Power Sources 2021;487:229355. doi: <u>[https://doi.org/10.1016/j.jpowsour.2020.229355.](https://doi.org/10.1016/j.jpowsour.2020.229355)</u> [34] Wu Yunna, Zhang Ting, Zhong Kexin, Wang Linwei, Xu Chuanbo, Xu Ruhang. Optimal planning of energy storage technologies considering thirteen demand scenarios from the perspective of electricity Grid: A Three-Stage framework. Energy Convers Manag 2021;229:113789. doi: <u>[https://doi.org/10.1016/j.](https://doi.org/10.1016/j.enconman.2020.113789)</u> <u>[enconman.2020.113789.](https://doi.org/10.1016/j.enconman.2020.113789)</u> [35] Srilakshmi Edathil, Singh Shiv P. Energy regulation of EV using MILP for optimal operation of incentive based prosumer microgrid with uncertainty modelling. Int J Electr Power Energy Syst 2022;134:107353. doi: <u>[https://doi.](https://doi.org/10.1016/j.ijepes.2021.107353)</u> <u>[org/10.1016/j.ijepes.2021.107353.](https://doi.org/10.1016/j.ijepes.2021.107353)</u> [36] Mukhopadhyay Bineeta, Das Debapriya. Optimal multi-objective expansion planning of a droop-regulated islanded microgrid. Energy 2021;218:119415. doi: <u>[https://doi.org/10.1016/j.energy.2020.119415.](https://doi.org/10.1016/j.energy.2020.119415)</u> [37] Ahmadi Mikaeel, Adewuyi Oludamilare Bode, Danish Mir Sayed Shah, Mandal Paras, Yona Atsushi, Senjyu Tomonobu. Optimum coordination of centralized and distributed renewable power generation incorporating battery storage system into the electric distribution network. Int J Electr Power Energy Syst 2021;125:106458. doi: <u>[https://doi.org/10.1016/j.ijepes.2020.106458.](https://doi.org/10.1016/j.ijepes.2020.106458)</u> [38] Ismael SM, Aleem SHEA, Abdelaziz AY. Optimal sizing and placement of distributed generation in Egyptian radial distribution systems using crow search algorithm. In: Proc. 2018 Int. Conf. Innov. Trends Comput. Eng. ITCE 2018, vol. 2018- March, 2018. p. 332–7. doi:10.1109/ITCE.2018.8316646. [39] Ismael SM, Aleem SHEA, Abdelaziz AY. Optimal selection of conductors in Egyptian radial distribution systems using sine-cosine optimization algorithm. In: 2017 Ninet. Int. Middle East Power Syst. Conf., IEEE; 2017. p. 103–7. [40] Al-Betar Mohammed Azmi, Alyasseri Zaid Abdi Alkareem, Awadallah Mohammed A, Abu Doush Iyad. Coronavirus herd immunity optimizer (CHIO). Neural Comput Appl 2021;33(10):5011–42. doi: <u>[https://doi.org/](https://doi.org/10.1007/s00521-020-05296-6)</u> <u>[10.1007/s00521-020-05296-6.](https://doi.org/10.1007/s00521-020-05296-6)</u> [41] Gandoman FH, Abdel Aleem SHE, Omar N, Ahmadi A, Alenezi FQ. Short-term solar power forecasting considering cloud coverage and ambient temperature variation effects. Renew Energy 2018;123:793–805. doi: <u>[https://doi.org/](https://doi.org/10.1016/j.renene.2018.02.102)</u> <u>[10.1016/j.renene.2018.02.102.](https://doi.org/10.1016/j.renene.2018.02.102)</u> M. Alqarni Ain Shams Engineering Journal 13 (2022) 101590 [42] Eltamaly Ali M, Al-Saud MS, Abokhalil Ahmed G. A novel scanning bat algorithm strategy for maximum power point tracker of partially shaded photovoltaic energy systems. Ain Shams Eng J 2020;11(4):1093–103. doi: <u>[https://doi.org/10.1016/j.asej.2020.02.015.](https://doi.org/10.1016/j.asej.2020.02.015)</u> [43] Mousa AGE, Abdel Aleem SHE, Ibrahim AM. Mathematical analysis of maximum power points and currents based maximum power point tracking in solar photovoltaic system: A solar powered water pump application. Int Rev Electr Eng 2016;11:97–108. doi: <u>[https://doi.org/10.15866/iree.v11i1.8137.](https://doi.org/10.15866/iree.v11i1.8137)</u> [44] Mostafa Mostafa H, Aleem Shady H E Abdel, Ali Samia G, Abdelaziz Almoataz Y, Ribeiro Paulo F, Ali Ziad M. Robust energy management and economic analysis of microgrids considering different battery characteristics. IEEE Access 2020;8:54751–75. doi: <u>[https://doi.org/10.1109/Access.628763910.1109/](https://doi.org/10.1109/Access.628763910.1109/ACCESS.2020.2981697)</u> <u>[ACCESS.2020.2981697.](https://doi.org/10.1109/Access.628763910.1109/ACCESS.2020.2981697)</u> [45] Karuppasamy K, Jothi VR, Nichelson A, Vikraman D, Tanveer WH, Kim H-S, et al. Nanostructured transition metal sulfide/selenide anodes for highperformance sodium-ion batteries. In: Pandikumar A, Rameshkumar Functional, and Flexible Materials for Energy Conversion and Storage Systems PBT-N, editors. Nanostructured, Funct. Flex. Mater. Energy Convers. Storage Syst., Elsevier; 2020. p. 437–64. doi:10.1016/B978-0-12-8195529.00014-2. [46] Al-Gabalawy Mostafa, Hosny Nesreen S, Dawson James A, Omar Ahmed I. State of charge estimation of a Li-ion battery based on extended Kalman filtering and sensor bias. Int J Energy Res 2021;45(5):6708–26. doi: <u>[https://doi.org/](https://doi.org/10.1002/er.v45.510.1002/er.6265)</u> <u>[10.1002/er.v45.510.1002/er.6265.](https://doi.org/10.1002/er.v45.510.1002/er.6265)</u> [47] C <sup>´</sup> alasan Martin, Zobaa Ahmed F, Hasanien Hany M, Abdel Aleem Shady H E, Ali Ziad M. Towards accurate calculation of supercapacitor electrical variables in constant power applications using new analytical closed-form expressions. J Energy Storage 2021;42:102998. doi: <u>[https://doi.org/10.1016/j.](https://doi.org/10.1016/j.est.2021.102998)</u> <u>[est.2021.102998.](https://doi.org/10.1016/j.est.2021.102998)</u> [48] Zhan X, Li MM, Weller JM, Sprenkle VL, Li G. Recent progress in cathode materials for sodium-metal halide batteries. Materials (Basel) 2021;14:3260. doi: <u>[https://doi.org/10.3390/ma14123260.](https://doi.org/10.3390/ma14123260)</u> [49] Li Guosheng, Lu Xiaochuan, Kim Jin Y, Meinhardt Kerry D, Chang Hee Jung, Canfield Nathan L, et al. Advanced intermediate temperature sodium–nickel chloride batteries with ultra-high energy density. Nat Commun 2016;7(1). doi: <u>[https://doi.org/10.1038/ncomms10683.](https://doi.org/10.1038/ncomms10683)</u> [50] Li Yanpei, Shi Lei, Gao Xingpeng, Wang Jingyi, Hu Yingying, Wu Xiangwei, et al. Constructing a charged-state Na-NiCl2 battery with NiCl2/graphene aerogel composite as cathode. Chem Eng J 2021;421:127853. doi: <u>[https://doi.org/](https://doi.org/10.1016/j.cej.2020.127853)</u> <u>[10.1016/j.cej.2020.127853.](https://doi.org/10.1016/j.cej.2020.127853)</u> Mohammed Alqarni Assistant Professor, received the B. Sc. degree in Electrical Engineering- Power and Machines from King Abdulaziz University, Jeddah Saudi Arabia in 2008 M.Sc. degree and the Ph.D. degree in Electrical Engineering from Brunel University London, the UK in 2010 and 2016 respectively. Since then, he has been with the University of Business and Technology (UBT), Jeddah, Saudi Arabia where he was the chairman of the Electrical Engineering Department and vice dean of the College of Engineering. His main areas of research interest are power systems, renewable energy integration, clean energy technologies, electricity markets, and smart grids.

섹션 본문 117문단 · 60,223자

(제목 없음)

1a b s t r a c tEnergy storage batteries have been described as an ideal way to solve renewable energy problems, improve self-consumption rate (ScR), and pave the way for further growth in renewables penetration. In this work, an optimization framework is proposed to enhance a grid-connected microgrid performance in three stages. The first stage epitomizes maximization of the ScR of the highly-penetrated renewables hosted in the microgrid considered via sodium sulfur batteries allocation. The second stage epitomizes the minimization of the active power losses. The third stage epitomizes the calculation of the optimal energy management relying on diminishing the overall microgrid's cost of operation depending on the optimal findings of the earlier two stages. The coronavirus herd immunity optimization algorithm is applied on MATLAB's platform to solve the engineering problem formulated. Numerous linear and nonlinear constraints have been taken into account. The results have gotten validate the usefulness of the developed solutions and algorithm application. Ó 2021 THE AUTHOR. Published by Elsevier BV on behalf of Faculty of Engineering, Ain Shams University. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-ncnd/4.0/).

Introduction

2Energy crises and fossil fuel reliance are important technical, economical, social, and political issues affecting the future of the energy sector around the world [1]. As a result, renewable energy sources (RESs) need to be deployed on a large scale to fulfill power demand, promote transportation electrification, facilitate enhanced employment of green buildings/networks, and lessen the notable augmented environmental hazards [2]. Wind turbines (WTs) and solar photovoltaics (PVs) are the most promising RESs due to their mature potential and technology worldwide [3,4]. From an economic standpoint, the conventional sources of power generation, such as fossil fuel-based power stations, provide a cost competition for them [5]. Thus, to make RESs more cost-efficient, they should be used with increased self-consumption rates (ScR), i.e., the energy generated through RESs is not hosted in the transmission or distribution systems but is utilized by the investor (according to contracts agreed with the operator) [6], in which ScR refers to the proportion of renewable energies produced and used to meet demands for total renewable energies. In this way, RESs production prioritizes ScR before exporting to transmission/distribution systems or nano/micro-based networks when RESs output exceeds total demand requirement [7,8]. In this context, improving the ScR of RESs and reducing the power loss of energy grids or grid-associated microgrids (lGs), are essential to facilitate energy alteration from fossil fuels bases to renewables-constructed systems [9,10].

3It is possible to classify battery storage system (BSS) applications into four categories: bulk energy, auxiliary, end-use energy, and RESs integration applications. Electric vehicles (EVs) are another significant complimentary area where BSS technologies are being used [11], and they are increasing in popularity [12]. Besides, short-medium-long-term BSSs can be also classified into three categories relying on the discharge length -short-(seconds to minutes), medium-(minutes to hours), and long-term (hours to days) [13]. For end-use energy and auxiliary applications in power utilities, short-term and medium-term discharge periods are applicable, but long-term discharge periods are more appropriate for bulk and RESs integration applications. BSSs capabilities can be employed at various voltage levels by generating systems and end-users because they have important effects on the various utilization stages of power grids, like security, serving peak demands, power quality (PQ), stability, reliability, hosting capacity (HC), and others [14,15]. However, sodium-sulfur (NaS) BSS (NaS-BSS) technology has its own set of advantages. Fig. 1 explores the applications and benefits of NaS-BSS technology in power networks, lGs, and nano grids.

4Overall, energy storage (ES) has been touted as a way to solve RESs issues, efficiently arrange self-consumption, and paving the route to significant growth in RESs penetration into the overall production share [16,17]. In addition to enhancing PQ performance and reliability, energy storage systems can also minimize power losses, overcome uncertainty concerns related to RESs, improve system stability, reduce power import during peak periods by feeding the peak demands, and reduce overall operating costs of power system networks [18,19].

5Considering the influence of the storage facility's optimal allocation on the system performance, many studies have been done for evaluating the optimal allocation of the storage system and energy management strategies to enhance the lG's technoeconomic competencies [20]. In [21], Nayak et al. planned optimal location and sizing of ES with WT penetrations for unbalanced distribution network utilizing an inherited competitive swarm algorithm, in which the approach developed had been examined on IEEE 37-bus distorted radial distribution scheme and the results obtained show the improvement of different performance metrics of the distribution system. Pontes et al. [22] proposed a technique for optimum allocation of ES in distribution networks with the integration of RESs. That approach assigned ES's optimal allocated number and the optimal cycle of loaded and unloaded conditions. Wan et al. [23] proposed ES's optimal allocation and capacity based on a hierarchical planning framework in the radial distribution networks considering uncertainties of loads and the integration [24] proposed ESS's optimal allocation to enhance the voltage fluctuations in distribution networks with high RESs penetration. That approach has utilized a bi-level optimization technique of ES capacity allocation concerning cost (life cycle based) and the profit of dropping power losses. Mahmoud et al. [25] proposed a model to find the ES's global capacity. The main objective is to boost the profitable deployment of ESs and maintain safe and secure operations. In [26], Feng et al. introduced an optimal procedure of multifeature technique for finding optimal sizes of hybrid ES systems in order to make use of their complementary features. As part of the optimization procedure, the optimization problem formulation involves both standalone and grid-connected lG operating modes.

6Minimizing the cost of operation was the goal in grid-connected mode while improving the lG's reliability was the goal in the isolated mode.

7Rawa et al. [27] proposed the application of the Harris hawks search algorithm to enhance the performance of the IEEE 33-bus with high penetration of RESs. That approach presented two objectives -optimum planning of ESs to improve the RESs's ScR and the grid-connected lG's HC to reduce the lG's total operating costs.

8Nojavan et al. in [28] developed a mixed-integer non-linear program to get the ES's optimum allocation regarding the optimal demand response. To reduce the overall investment and operating costs as well as load expectation loss, multi-targets functions were implemented in that approach. Chen and Duan [29] settled an optimization technique built on the genetic approach for ES' and distributed generators' optimum allocation with economic considerations taken into account. The capacity of the distributed generators and ES systems have been controlled by dealing with different cost functions in order to protect the lG and satisfy the client demands. Qiu et al. [30] proposed a bi-level forecasting model for ES's allocation in a lG, taking controllable loads into account. A study of cost-benefits was evaluated to establish the best allocation decisions and economic consideration of the ES scheme. However, the majority of previous studies have not looked at the effects of ESs on multi-criteria metrics such as the ScR of the RESs, power losses, voltage profile, ES features, and optimal energy management (OEM) of the lGs [31][32][33][34].

9Furthermore, at peak times, the substation transformer feeding the power system or the lG may be overloaded due to the restricted transformer capacity [35]. The usual key is supporting the transformer -reinforce its capacity. However, application of the appropriate key subjects to the presence of a standby transformer or the availability of a suitable budget [36]. Therefore, the peak loads should be removed or moved to off-peak times to reduce the transformer load rate -demand-side management or extreme load shedding [37]. In this context, the decision of the optimum location and size of the BSS and the OEM of the produced by the BSS, renewables, and the main grid according to the load demands, and climatic conditions is not only related to the reliability of the power basis of the whole scheme or PQ measures but seriously spreads to economic considerations and scheme's reliability [35].

10In this work, an optimization framework is proposed to enhance a grid-connected lG performance in three stages. The first stage epitomizes maximization of the ScR of the highly-penetrated RESs hosted in the lG considered (adapted 33-node system that operates as a lG with highly-penetrated RESs) via sodium sulfur (NaS) batteries allocation (number, location, and size). Up to three NaS batteries are allowed in the problem formulation. The load flow methodology used relies on building matrices -(i) matrix of the bus_injection to branch_current, (ii) matrix of the branch_current to bus_voltage, and (iii) their multiplication matrix to get OLF results. This methodology is often fast, effective, and efficient in solving OLF problems in power systems [38,39].

11The second stage epitomizes the minimization of the active power losses. The third stage epitomizes the calculation of the OEM relying on minimizing the overall operating cost of the lG based on the optimal findings of the earlier two stages. The coronavirus herd immunity optimization (CHIO) algorithm, which is a new optimization approach settled by Al-Betar et al. in [40], is employed to solve the problem investigated in this work. Numerous linear and nonlinear constraints have been taken into account, including the charge-discharge balance, power balance, allowable voltage profile limits, number, capacity, and location of the NaS batteries, and the technical performance limits of the lG and its elements.

12This work's core contributions are briefed as follows:

131. Investigating the ScR of RESs and reducing the power loss of (lGs), when NaS batteries are allocated. 2. Highlighting the promising potential of using NaS batteries in grid-connected systems in detail.

143. Minimizing the overall operating cost of the lG with highlypenetrated RESs while addressing the NaS battery -location, capacity, and number impacts on the solutions obtained. 4. Evaluating the effects of optimally allocated NaS batteries on the transformer's capacity that powers the lG and releasing a significant amount of its capacity. 5. Applying a recent metaheuristic optimization algorithm to resolve the multi-stage problem expressed in this paper.

15The remainder of the paper is systematized as follows. Configuration of the studied lG is given in Section 2. The optimization problem is mathematically expressed in detail in Section 3. The optimization algorithm employed in this work, CHIO, is explained in Section 4. The findings obtained are introduced and discussed in Section 5. Finally, Section 6 is dedicated to present a review of the study's findings, work limitations and future endeavors to be addressed.

Configuration of the studied microgrid (lG)

16The grid-connected lG considered in this work, shown in Fig. 2, includes the main lG central controller (lGCC), main transformer (Tr), 5 PVs, and 5 WTs. The lGCC facilitates the optimal energy management (OEM) of the lG, in addition to the charging/discharging processes of NaS batteries to attain the minimum daily charge of the operation (Cost) of the lG. The PVs and WTs data, primarily obtained from [27], are presented in Table 1.

Photovoltaics (PVs)

17The PVs' output power (P op ) relies on the weather conditionssolar irradiation, real-measured temperature and cloud coverage, as expressed in Eq. (1) [41][42][43].

18where P PV h , P P rated and N PV denote P op and the hourly nominal power of the PV, and the number of PV units connected, respectively. G and G 0 denote the global solar irradiance and the standard solar irradiance. T coff and T amb denote the temperature-based coefficient and the ambient temperature, respectively.g v and g R denote the inverter's efficiency and the relative efficiency of the PV system, respectively [44].

Wind turbine (WTs)

19The hourly P op of wind turbines (WTs) relies on the wind speed (site-based) and the WT's speed-power curve (provided by WTs manufacturer data). It is typically expressed as given in Eq. (2), in which the wind speed per hour is assessed using the Weibull probability distribution function using the statistics obtained from [27].

20where P WT h and P WT rated are the output and rated powers of the WTs, respectively. v WT h , v WT rated , v WT cutÀin , and v WT cutÀout denote the hourly wind speed at hour h, rated, cut-in, and cut-out speeds of the WTs.

Cost of grid operation

21The operating cost of the grid ðCost grid h Þ relies on the hth output (delivered) grid power ðP grid h Þ at and its corresponding hth energy bid ðb There are different types of batteries with multiple cost and technical properties, such as NaS, lead acid (LA), lithium-ion, cadmium nickel (NiCd), and other batteries. Each battery has particular merits that may positively affect the electrical grid and its stability, and OEM of the lGs. In this context, the NaS battery was the first molten sodium battery to be investigated and developed in the late 1960s [45,46]. It is one of the most installed batteries in the world. During electrochemical cycling of the batteries, the NaS battery oxidizes (discharges) and reduces (charges) sodium, based on the reversible reduction (discharge) and oxidation (charge) of molten sulfur. Normal discharge reactions occur when the anode oxidized Na + passes through the ion-conducting ceramic separator and interacts with the cathode's reduced molten sulfur (or polysulfides). These polysulfides (e.g., Na 2 S 5 ) can be electrochemically cycled as a byproduct of this process, as expressed in Eq. (4) [45,46]. At  less than 3, insoluble polysulfides (solids) are formed, which reduces the performance of the battery.

22S þ 2Na $ Na 2 S x ; x 2 f3; 4; 5g

23ð 4Þ Fig. 3 shows a tubular NaS batteries architecture and theory of operation. The NaS battery has an advantage of a molten sodium anode and a ceramic sodium-ion conducting solid-state separator, most frequently b-alumina, where the sodium anode is held inside a ceramic separator tube, while its sulfur cathode is located outside. An elongated cell is used to seal and package the entire system, together with all of the current collectors. Many cells are then grouped into a module to be assembled in larger containers later. They are then placed and controlled by the external power conversion system. Assembling and operating batteries is easier with these designs, which also provide high power density [47].

24Nowadays, NaS and sodium-nickel chloride (Na-NiCl 2 ) systems are the only grid-scale technologies that are commercially mature [48][49][50]. Both technologies can store energy from a few kilowatthours (kWh) to tens megawatt-hours (MWh) of energy. Table 2 summarizes the key metrics for these batteries. As noted in Table 2, NaS systems have a high energy density, scalability, rapid reaction times (less than 1 s), and good roundtrip energy efficiency. Over 10-15 years, they are robust, selfcontained systems, and maintenance-free with 4000-4500 total cycles (DOD expectation of 80%). The core disadvantages of NaS batteries are to preserve the high temperature required for their operation as well as the corrosive nature of sodium polysulfides.

25In this context, the cost and technical parameters of different battery storage systems (BSSs) -NaS, Li-ion, LA, and NiCd have been presented in Table 3 for different ES technologies, where it should be noted that Li-ion has a higher capital (investment) cost than the other battery types. NiCd has low efficiency, a short lifetime, and a high cost. LA battery is not highly efficient and has a short lifetime. The NaS battery is highly efficient and has a long lifetime. C Power and C Energy denote the unit costs of the power and energy capacities of the BSSs.

26Some research works in the literature have been examined the economic analysis and costs framework of different energy storage systems. In [16], the authors have provided a detailed cost model of energy storage systems reinforced by in-market insight -short, medium, and long terms storage technologies. It was demonstrated that the NaS battery offers the lowest cost due to its (a) high efficiency, (b) long lifetime, and (c) low replacement costs. Fig. 4 shows the values of the annualized life cycle cost of storage (LCCOS) estimated for seven BSSs -hydrogen energy storage (HES), LA, NiCd, NaS, vanadium-redox (VR), zinc-bromine (ZnBr), and Li-ion, which validates the reasons of selection of NaS batteries in this work.

27Finally, the capital cost (BS capital ) of the battery relies on the power (P b ) and energy (E b ) capacities as given in Eq. (5).

Formulation of the problem

28This section introduces the invention of the three optimization stages to get the optimally-allocated NaS-BSSs to epitomize maximization of the ScR of the highly-penetrated RESs hosted in the lG considered, then to epitomize the minimization of the active power losses, and finally to epitomize the calculation of the OEM relying on diminishing the overall operating cost of the lG based on the optimal findings of the earlier two stages. The investigated problem's formulation is expressed mathematically as follows:

293.1. Objective functions (OFs)

30So that;

31where YðxÞ signifies the ScR of all the RESs hosted on the lG as a function in the decision variables (x). E R;h and E rated R;h denote the actual RESs energy generated at h and the rated RESs energy that can be generated at h, respectively, in which H expresses the day horizon (H = 24). DP loss ðxÞ denotes the total active power losses, in which represent the hth energy price ($/kWh) and the hth PV and WT bid prices of the WT, respectively. Table 4 shows the numerical values of PV and WT bids.

32Cost NaSÀBSS ($/day) denotes the daily total cost of NaS-BSS usage, where it relies on the number of batteries replacement during the project lifetime (Z), power (P b ) and energy (E b ) capacities, interest

33where B cycles denotes the total number of NaS-BSS cycles performed and is expressed in Eqs. (12) and (13).

34k NaS h; e ð Þ¼ t aðhÞ À t a hÀ1

35ð Þ À Á t aðhÞ ; 8h 2 Hand8e 2 D ð13Þ k NaS h; e ð Þ denotes the cycles completed given as a function of h, and the day of operation (e), D denotes the total number of days of operation per year (i.e., D = 365), t aðhÞ is a binary, 0/1, variable that indicates the battery at h and e. When the NaS battery is discharging (P NaS dis;h ), t a equals 0, and it equals 1 when the NaS battery is charging (P NaS charge;h ). Features of the NaS-BSS (95% efficient) used in this work are given as follows: C Power =$350/kW, C Energy =$300/kWh, and B Lifecycles = 4500 cycles. In addition, the batteries' lifetime has been set to 15 years.

Problem constraints

36The problem formulated is subjected to two different sets of constraints -(i) the system constraints, and (ii) the battery constraints. The first set of constraints is represented by Eqs. (14)- (18), and the second set of constraints is expressed by Eqs. (19)- (24).

37Eqs. (19) and (20) represent the charging and discharging limits of the NaS batteries, in which P NaSÀmax chargeÀh , and P NaSÀmax dischargeÀh denote the maximum charging and discharging capacities of the NaS batteries at h. Eq. (21) represents the state of charge (SoC) limits, where SoC h min and SoC h max signify the minimum and maximum SoC of NaS batteries at h, respectively. Eq. (22) indicates that the hth SoC h should rely on the initial SoC (SoC in ), previous SoC hÀ1 , the hth discharged and charged quantities, NaS battery efficiency g NaS À Á , and the time-step (length) of the period (set to one hour). Eq. (23) indicates that SoC in is considered at h = 1, also the final SoC should equal the initial SoC. Finally, Eq. (24) represents that the discharged power should equal the charged power multiplied by the NaS battery efficiency.

Coronavirus herd immunity optimizer (CHIO)

38The concept of herd immunity is mathematically represented in [40] to help establish the CHIO algorithm. According to this strategy, society defends itself against infection by converting the majority of non-infected people from vulnerable to immune. This means that even those who are most vulnerable would not be harmed since the immune population will no longer spread the virus. Herd immunity (HI) populations may be divided into three types -resistant, susceptible, and infectious. As seen in Fig. 5, population-based HI forms the basis for the CHIO formulation.

39In the implementation approach of the CHIO algorithm, the improvement methodology is generated from vulnerable, contaminated, and immunized individuals. As a result of the CHIO algorithm, social distance is defined as the separation distance between a person and the community that may be sensitive, infected, or immunized between them. The CHIO optimization approach is used to create HI. As a result, the method has been established in six primary phases. The implementation stages are outlined as follows:

40Stage #1: Initialize CHIO parameters -The target function of CHIO is represented as follows:

41where X i ¼ X 1 ; X 2 ; Á Á Á Á Á Á ; X n ð Þ represents the target function for all the individuals, in which x i denotes the decision variables. The subscripted variable with i and n denote the gene quantity. CHIO only requires two main control parameters -maximum infected cases age (MaxAge) and the fundamental reproduction rate (BR r ). In addition, four additional factors are required -C 0 (set to 1), Max_ Itr that denotes the maximum iteration number, HIS that denotes the HI capacity, and n that denotes the dimension.

42Stage #2: Produce HI population (HIP) -Several HIS such as individuals are generated heuristically by the CHIO. The HIP is a bi-dimensional matrix that keeps track of the generated persons as follows:

43HIP ¼ Using Eq. (25), the optimum solution is determined for each individual. As with the status vector (S), all people in the HIP are assigned a value of 1 or 0. It can be noted that S numbers are randomly assigned from C 0 .

44Stage #3: Evolution of HI -The CHIO's primary upgrading mechanism is set. According to the BR r , each gene has the same impact or a socially varied effect based on the following three principles:

45where r stands for a random number ranges between 0 and 1. The infected case has a value between 0 and 0:333BR r . There are several variations between a patient's sick gene and the new one that reduces its value, including:

46Similarly, the susceptible case ranges between 0:033BR r and 0:67BR r . In addition, the immune case ranges between 0:67BR r and BR r .

47Stage #4: Population update -The immunity rate is evaluated for each generated case; however, the current solution will only be substituted by the generated case if f x j ðt þ 1Þ À Á < f x j ðtÞ À Á . If the S j value is equal to 1, the age vector value (A j ) will increase to 1. The values of S j are altered by the subsequent equation during each cycle, following the immunological threshold of the herd.

48where is Corona X j ðt þ 1Þ is equal to one. If an infected case is used to create a new one, the binary value will be 1. Stage #5: Casualty cases -Max Age specifies if the immunity rate of the current affected case could not be determined for the necessary iteration, then this process is declared dead. It is then stimulated from the scraped applyingX j i t þ 1 ð Þ¼lb i þ ðub i À lb i ÞUð0; 1Þ. In addition, the values of S i and S j are set to be 0. It might encourage the present population to grow and, as a result, avoid local solutions.

49Stage #6: Stopping status -The CHIO is carried out in stages 3 to 5 until the stopping criterion has been met, generally according to the maximum number of iterations (Max_ Itr ). The total number of immune and vulnerable patients dominates the population. As well, the contaminated casing will be removed. Fig. 6 shows the flowchart of the CHIO algorithm.

NaS batteries allocation

50The optimal allocation of the NaS batteries is determined, in which one NaS-BSS was firstly planned (named as Scenario 1), then two NaS-BSSs were secondly planned (named as Scenario 2), and finally, three NaS-BSSs were planned (named as Scenario 3). The results attained for the three scenarios are organized in Table 5. After realizing the optimal size and location of the NaS-BSSs, DP loss of the lG all over a typical day are calculated and analyzed in the three scenarios, as illustrated in Fig. 7. It is clear that the connection of the NaS-BSSs positively affects the total active power losses of the lG. However, the relation between the number of BSSs and DP loss is not linear. For illustration, DP loss of the lG (around 1.51 MW) during the day in scenario 3 (three NaS-BSSs connected) is greater than DP loss of the lG (around 1.48 MW) during the day in scenario 2 (two NaS-BSSs connected). This means that NaS-BSSs allocation may adversely affect DP loss , if not correctly planned. To generalize, when the number of batteries used increases, it is not necessary to reduceDP loss in lGs. In this regard, Fig. 8 shows the hourly variation of the power losses over the day for Scenario 2 and the base system. It is obvious that the NaS-BSSs are charging in periods characterized by low energy price (e.g., h = 1 to h = 6), and the SoC of the batteries is rising, as illustrated in Fig. 9. Then, the SoC remains constant till h = 12, which corresponds to the constant hourly P loss from h = 7 to h = 12. After that, the hourly P loss and SoC declines in the compensated system: Scenario 2 because of the discharging of the batteries. After merging two NaS batteries, the ScRs of the WTs and PVs are equal to 1 at all hours of the day. In this domain, the NaS-BSS certainly improves the ScR of the RESs. This means that RESs can be more efficient as commoditized alternatives for green energy utilization in lGs. One can see in Fig. 11 that the lG's bus voltage values are within the allowable limits. For instance, at h = 4 and h = 14half-load and shoulder loading. The bus voltages were high (almost 1p.u.) with no NaS-BSSs connected. After the NaS batteries connection into the system, the bus voltages profile has been declined as the batteries were charging; but still within allowable limits. On the contrary, when the NaS-batteries are discharging, the bus voltages profile increases to be better than the base case, but also still within the allowable limits. Fig. 12 explores the total RESs output power estimated, total loading before and after RESs connection, the hourly difference between the loading and RESs production, and the capacity delivered from the grid represented by the rated active power delivered from the substation transformer. All are given per hour.

Loading profile before and after RESs and NaS batteries connection

51Remarkably, when the generation of the output power from the RESs increases, the output power delivered by the main grid to the lG decreases. Besides, the back feed power (reverse power) can take place when the difference between the total generated RESs power exceeds the total load power, as highlighted in yellow in Fig. 12, for example at h = 12 to h = 14. Also, overloads of the transformer may occur when total RESs power is low (low-RESs generation periods) and total load is high (high-demand periods). It should be mentioned that the rated capacity and active power of the transformer supplying the studied lG are 3.5 MVA and Fig. 6. Flowchart of the CHIO algorithm [40]. Table 5 Optimal allocation of the NaS-BSSs: Stage 1.

Scenario

52Bus 2.97 MW, respectively. Fig. 13 explores the hourly loading of the transformer before and after one/two NaS-BSSs connections. Evidently, no overloading occurs after batteries' connection to the lG, particularly in Scenario 2 when 2 NaS-BSSs are connected.

53Therefore, NaS-BSSs can relieve the capacity of the supply transformer and defer its reinforcement plans.

OEM after RESs and NaS batteries connection

54lG's economic analysis was also investigated in this work once the best allocation of NaS batteries has been determined. The costs of the NaS batteries are involved in the economic analysis as a part of the lG's costs. Capital and replacement costs of the NaS-BSSs over the project's lifespan have been included in the overall daily cost calculation, in which the total operating cost per day in the base system (No NaS-BSS connected) equals $193,310.8/day and $160,674.5/day in Scenario 2 in case of two NaS-BSSs connected.

55This means that the total operating cost of the lG declines by 16.80% percent when two NaS-BSSs are added to the lG under consideration, which validates the positive impacts of using the NaS batteries. Fig. 14 explores the optimum hourly output powers of the grid, PVs, WTs, and NaS-BSSs in Scenario 2, when two BS units were allocated in the lG.

56The charging process of the two NaS-BSSs takes place when the demand is not high and the energy price is low, e.g. from h = 1 to h = 7. On the contrary, the discharging process of the two NaS-BSSs takes place during high-priced energy market hours to decrease lG's cost of operation.

Conclusions

57In this work, an optimization framework is proposed to enhance a grid-connected lG performance in three stages -maximization of the ScR of the highly-penetrated RESs hosted in the lG considered via NaS batteries allocation, minimization of the active power losses, and calculation of the OEM relying on minimizing the overall operating cost of the lG based on the optimal battery findings. Also, the effects of optimally allocated NaS batteries on the loading capacity of the transformer that powers the lG were investigated.

58It was clear that the connection of the NaS-BSSs positively affects the total active power losses of the lG. However, the relation between the number of BSSs and the active power losses is not linear, i.e., when the number of batteries used increases, it is not necessary to guarantee an adequate power loss reduction in the lGs. Also, the NaS-BSS positively enhances the ScR of the RESs.

59This means that RESs can be more efficient as alternatives for green energy utilization in lGs. Besides, NaS-BSSs can relieve the capacity of the supply transformer and defer its reinforcement plans. Declaration of Competing Interest

Introduction

60Energy crises and fossil fuel reliance are important technical, economical, social, and political issues affecting the future of the energy sector around the world [1]. As a result, renewable energy sources (RESs) need to be deployed on a large scale to fulfill power demand, promote transportation electrification, facilitate enhanced employment of green buildings/networks, and lessen the notable augmented environmental hazards [2]. Wind turbines (WTs) and solar photovoltaics (PVs) are the most promising RESs due to their mature potential and technology worldwide [3,4]. From an economic standpoint, the conventional sources of power generation, such as fossil fuel-based power stations, provide a cost competition for them [5]. Thus, to make RESs more cost-efficient, they should be used with increased self-consumption rates (ScR), i.e., the energy generated through RESs is not hosted in the transmission or distribution systems but is utilized by the investor (according to contracts agreed with the operator) [6], in which ScR refers to the proportion of renewable energies produced and used to meet demands for total renewable energies. In this way, RESs production prioritizes ScR before exporting to transmission/distribution systems or nano/micro-based networks when RESs output exceeds total demand requirement [7,8]. In this context, improving the ScR of RESs and reducing the power loss of energy grids or grid-associated microgrids (lGs), are essential to facilitate energy alteration from fossil fuels bases to renewables-constructed systems [9,10].

61It is possible to classify battery storage system (BSS) applications into four categories: bulk energy, auxiliary, end-use energy, and RESs integration applications. Electric vehicles (EVs) are another significant complimentary area where BSS technologies are being used [11], and they are increasing in popularity [12]. Besides, short-medium-long-term BSSs can be also classified into three categories relying on the discharge length -short-(seconds to minutes), medium-(minutes to hours), and long-term (hours to days) [13]. For end-use energy and auxiliary applications in power utilities, short-term and medium-term discharge periods are applicable, but long-term discharge periods are more appropriate for bulk and RESs integration applications. BSSs capabilities can be employed at various voltage levels by generating systems and end-users because they have important effects on the various utilization stages of power grids, like security, serving peak demands, power quality (PQ), stability, reliability, hosting capacity (HC), and others [14,15]. However, sodium-sulfur (NaS) BSS (NaS-BSS) technology has its own set of advantages. Fig. 1 explores the applications and benefits of NaS-BSS technology in power networks, lGs, and nano grids.

62Overall, energy storage (ES) has been touted as a way to solve RESs issues, efficiently arrange self-consumption, and paving the route to significant growth in RESs penetration into the overall production share [16,17]. In addition to enhancing PQ performance and reliability, energy storage systems can also minimize power losses, overcome uncertainty concerns related to RESs, improve system stability, reduce power import during peak periods by feeding the peak demands, and reduce overall operating costs of power system networks [18,19].

63Considering the influence of the storage facility's optimal allocation on the system performance, many studies have been done for evaluating the optimal allocation of the storage system and energy management strategies to enhance the lG's technoeconomic competencies [20]. In [21], Nayak et al. planned optimal location and sizing of ES with WT penetrations for unbalanced distribution network utilizing an inherited competitive swarm algorithm, in which the approach developed had been examined on IEEE 37-bus distorted radial distribution scheme and the results obtained show the improvement of different performance metrics of the distribution system. Pontes et al. [22] proposed a technique for optimum allocation of ES in distribution networks with the integration of RESs. That approach assigned ES's optimal allocated number and the optimal cycle of loaded and unloaded conditions. Wan et al. [23] proposed ES's optimal allocation and capacity based on a hierarchical planning framework in the radial distribution networks considering uncertainties of loads and the integration [24] proposed ESS's optimal allocation to enhance the voltage fluctuations in distribution networks with high RESs penetration. That approach has utilized a bi-level optimization technique of ES capacity allocation concerning cost (life cycle based) and the profit of dropping power losses. Mahmoud et al. [25] proposed a model to find the ES's global capacity. The main objective is to boost the profitable deployment of ESs and maintain safe and secure operations. In [26], Feng et al. introduced an optimal procedure of multifeature technique for finding optimal sizes of hybrid ES systems in order to make use of their complementary features. As part of the optimization procedure, the optimization problem formulation involves both standalone and grid-connected lG operating modes.

64Minimizing the cost of operation was the goal in grid-connected mode while improving the lG's reliability was the goal in the isolated mode.

65Rawa et al. [27] proposed the application of the Harris hawks search algorithm to enhance the performance of the IEEE 33-bus with high penetration of RESs. That approach presented two objectives -optimum planning of ESs to improve the RESs's ScR and the grid-connected lG's HC to reduce the lG's total operating costs.

66Nojavan et al. in [28] developed a mixed-integer non-linear program to get the ES's optimum allocation regarding the optimal demand response. To reduce the overall investment and operating costs as well as load expectation loss, multi-targets functions were implemented in that approach. Chen and Duan [29] settled an optimization technique built on the genetic approach for ES' and distributed generators' optimum allocation with economic considerations taken into account. The capacity of the distributed generators and ES systems have been controlled by dealing with different cost functions in order to protect the lG and satisfy the client demands. Qiu et al. [30] proposed a bi-level forecasting model for ES's allocation in a lG, taking controllable loads into account. A study of cost-benefits was evaluated to establish the best allocation decisions and economic consideration of the ES scheme. However, the majority of previous studies have not looked at the effects of ESs on multi-criteria metrics such as the ScR of the RESs, power losses, voltage profile, ES features, and optimal energy management (OEM) of the lGs [31][32][33][34].

67Furthermore, at peak times, the substation transformer feeding the power system or the lG may be overloaded due to the restricted transformer capacity [35]. The usual key is supporting the transformer -reinforce its capacity. However, application of the appropriate key subjects to the presence of a standby transformer or the availability of a suitable budget [36]. Therefore, the peak loads should be removed or moved to off-peak times to reduce the transformer load rate -demand-side management or extreme load shedding [37]. In this context, the decision of the optimum location and size of the BSS and the OEM of the produced by the BSS, renewables, and the main grid according to the load demands, and climatic conditions is not only related to the reliability of the power basis of the whole scheme or PQ measures but seriously spreads to economic considerations and scheme's reliability [35].

68In this work, an optimization framework is proposed to enhance a grid-connected lG performance in three stages. The first stage epitomizes maximization of the ScR of the highly-penetrated RESs hosted in the lG considered (adapted 33-node system that operates as a lG with highly-penetrated RESs) via sodium sulfur (NaS) batteries allocation (number, location, and size). Up to three NaS batteries are allowed in the problem formulation. The load flow methodology used relies on building matrices -(i) matrix of the bus_injection to branch_current, (ii) matrix of the branch_current to bus_voltage, and (iii) their multiplication matrix to get OLF results. This methodology is often fast, effective, and efficient in solving OLF problems in power systems [38,39].

69The second stage epitomizes the minimization of the active power losses. The third stage epitomizes the calculation of the OEM relying on minimizing the overall operating cost of the lG based on the optimal findings of the earlier two stages. The coronavirus herd immunity optimization (CHIO) algorithm, which is a new optimization approach settled by Al-Betar et al. in [40], is employed to solve the problem investigated in this work. Numerous linear and nonlinear constraints have been taken into account, including the charge-discharge balance, power balance, allowable voltage profile limits, number, capacity, and location of the NaS batteries, and the technical performance limits of the lG and its elements.

70This work's core contributions are briefed as follows:

711. Investigating the ScR of RESs and reducing the power loss of (lGs), when NaS batteries are allocated. 2. Highlighting the promising potential of using NaS batteries in grid-connected systems in detail.

723. Minimizing the overall operating cost of the lG with highlypenetrated RESs while addressing the NaS battery -location, capacity, and number impacts on the solutions obtained. 4. Evaluating the effects of optimally allocated NaS batteries on the transformer's capacity that powers the lG and releasing a significant amount of its capacity. 5. Applying a recent metaheuristic optimization algorithm to resolve the multi-stage problem expressed in this paper.

73The remainder of the paper is systematized as follows. Configuration of the studied lG is given in Section 2. The optimization problem is mathematically expressed in detail in Section 3. The optimization algorithm employed in this work, CHIO, is explained in Section 4. The findings obtained are introduced and discussed in Section 5. Finally, Section 6 is dedicated to present a review of the study's findings, work limitations and future endeavors to be addressed.

Configuration of the studied microgrid (lG)

74The grid-connected lG considered in this work, shown in Fig. 2, includes the main lG central controller (lGCC), main transformer (Tr), 5 PVs, and 5 WTs. The lGCC facilitates the optimal energy management (OEM) of the lG, in addition to the charging/discharging processes of NaS batteries to attain the minimum daily charge of the operation (Cost) of the lG. The PVs and WTs data, primarily obtained from [27], are presented in Table 1.

Photovoltaics (PVs)

75The PVs' output power (P op ) relies on the weather conditionssolar irradiation, real-measured temperature and cloud coverage, as expressed in Eq. (1) [41][42][43].

76where P PV h , P P rated and N PV denote P op and the hourly nominal power of the PV, and the number of PV units connected, respectively. G and G 0 denote the global solar irradiance and the standard solar irradiance. T coff and T amb denote the temperature-based coefficient and the ambient temperature, respectively.g v and g R denote the inverter's efficiency and the relative efficiency of the PV system, respectively [44].

Wind turbine (WTs)

77The hourly P op of wind turbines (WTs) relies on the wind speed (site-based) and the WT's speed-power curve (provided by WTs manufacturer data). It is typically expressed as given in Eq. (2), in which the wind speed per hour is assessed using the Weibull probability distribution function using the statistics obtained from [27].

78where P WT h and P WT rated are the output and rated powers of the WTs, respectively. v WT h , v WT rated , v WT cutÀin , and v WT cutÀout denote the hourly wind speed at hour h, rated, cut-in, and cut-out speeds of the WTs.

Cost of grid operation

79The operating cost of the grid ðCost grid h Þ relies on the hth output (delivered) grid power ðP grid h Þ at and its corresponding hth energy bid ðb There are different types of batteries with multiple cost and technical properties, such as NaS, lead acid (LA), lithium-ion, cadmium nickel (NiCd), and other batteries. Each battery has particular merits that may positively affect the electrical grid and its stability, and OEM of the lGs. In this context, the NaS battery was the first molten sodium battery to be investigated and developed in the late 1960s [45,46]. It is one of the most installed batteries in the world. During electrochemical cycling of the batteries, the NaS battery oxidizes (discharges) and reduces (charges) sodium, based on the reversible reduction (discharge) and oxidation (charge) of molten sulfur. Normal discharge reactions occur when the anode oxidized Na + passes through the ion-conducting ceramic separator and interacts with the cathode's reduced molten sulfur (or polysulfides). These polysulfides (e.g., Na 2 S 5 ) can be electrochemically cycled as a byproduct of this process, as expressed in Eq. (4) [45,46]. At  less than 3, insoluble polysulfides (solids) are formed, which reduces the performance of the battery.

80S þ 2Na $ Na 2 S x ; x 2 f3; 4; 5g

81ð 4Þ Fig. 3 shows a tubular NaS batteries architecture and theory of operation. The NaS battery has an advantage of a molten sodium anode and a ceramic sodium-ion conducting solid-state separator, most frequently b-alumina, where the sodium anode is held inside a ceramic separator tube, while its sulfur cathode is located outside. An elongated cell is used to seal and package the entire system, together with all of the current collectors. Many cells are then grouped into a module to be assembled in larger containers later. They are then placed and controlled by the external power conversion system. Assembling and operating batteries is easier with these designs, which also provide high power density [47].

82Nowadays, NaS and sodium-nickel chloride (Na-NiCl 2 ) systems are the only grid-scale technologies that are commercially mature [48][49][50]. Both technologies can store energy from a few kilowatthours (kWh) to tens megawatt-hours (MWh) of energy. Table 2 summarizes the key metrics for these batteries. As noted in Table 2, NaS systems have a high energy density, scalability, rapid reaction times (less than 1 s), and good roundtrip energy efficiency. Over 10-15 years, they are robust, selfcontained systems, and maintenance-free with 4000-4500 total cycles (DOD expectation of 80%). The core disadvantages of NaS batteries are to preserve the high temperature required for their operation as well as the corrosive nature of sodium polysulfides.

83In this context, the cost and technical parameters of different battery storage systems (BSSs) -NaS, Li-ion, LA, and NiCd have been presented in Table 3 for different ES technologies, where it should be noted that Li-ion has a higher capital (investment) cost than the other battery types. NiCd has low efficiency, a short lifetime, and a high cost. LA battery is not highly efficient and has a short lifetime. The NaS battery is highly efficient and has a long lifetime. C Power and C Energy denote the unit costs of the power and energy capacities of the BSSs.

84Some research works in the literature have been examined the economic analysis and costs framework of different energy storage systems. In [16], the authors have provided a detailed cost model of energy storage systems reinforced by in-market insight -short, medium, and long terms storage technologies. It was demonstrated that the NaS battery offers the lowest cost due to its (a) high efficiency, (b) long lifetime, and (c) low replacement costs. Fig. 4 shows the values of the annualized life cycle cost of storage (LCCOS) estimated for seven BSSs -hydrogen energy storage (HES), LA, NiCd, NaS, vanadium-redox (VR), zinc-bromine (ZnBr), and Li-ion, which validates the reasons of selection of NaS batteries in this work.

85Finally, the capital cost (BS capital ) of the battery relies on the power (P b ) and energy (E b ) capacities as given in Eq. (5).

Formulation of the problem

86This section introduces the invention of the three optimization stages to get the optimally-allocated NaS-BSSs to epitomize maximization of the ScR of the highly-penetrated RESs hosted in the lG considered, then to epitomize the minimization of the active power losses, and finally to epitomize the calculation of the OEM relying on diminishing the overall operating cost of the lG based on the optimal findings of the earlier two stages. The investigated problem's formulation is expressed mathematically as follows:

873.1. Objective functions (OFs)

88So that;

89where YðxÞ signifies the ScR of all the RESs hosted on the lG as a function in the decision variables (x). E R;h and E rated R;h denote the actual RESs energy generated at h and the rated RESs energy that can be generated at h, respectively, in which H expresses the day horizon (H = 24). DP loss ðxÞ denotes the total active power losses, in which represent the hth energy price ($/kWh) and the hth PV and WT bid prices of the WT, respectively. Table 4 shows the numerical values of PV and WT bids.

90Cost NaSÀBSS ($/day) denotes the daily total cost of NaS-BSS usage, where it relies on the number of batteries replacement during the project lifetime (Z), power (P b ) and energy (E b ) capacities, interest

91where B cycles denotes the total number of NaS-BSS cycles performed and is expressed in Eqs. (12) and (13).

92k NaS h; e ð Þ¼ t aðhÞ À t a hÀ1

93ð Þ À Á t aðhÞ ; 8h 2 Hand8e 2 D ð13Þ k NaS h; e ð Þ denotes the cycles completed given as a function of h, and the day of operation (e), D denotes the total number of days of operation per year (i.e., D = 365), t aðhÞ is a binary, 0/1, variable that indicates the battery at h and e. When the NaS battery is discharging (P NaS dis;h ), t a equals 0, and it equals 1 when the NaS battery is charging (P NaS charge;h ). Features of the NaS-BSS (95% efficient) used in this work are given as follows: C Power =$350/kW, C Energy =$300/kWh, and B Lifecycles = 4500 cycles. In addition, the batteries' lifetime has been set to 15 years.

Problem constraints

94The problem formulated is subjected to two different sets of constraints -(i) the system constraints, and (ii) the battery constraints. The first set of constraints is represented by Eqs. (14)- (18), and the second set of constraints is expressed by Eqs. (19)- (24).

95Eqs. (19) and (20) represent the charging and discharging limits of the NaS batteries, in which P NaSÀmax chargeÀh , and P NaSÀmax dischargeÀh denote the maximum charging and discharging capacities of the NaS batteries at h. Eq. (21) represents the state of charge (SoC) limits, where SoC h min and SoC h max signify the minimum and maximum SoC of NaS batteries at h, respectively. Eq. (22) indicates that the hth SoC h should rely on the initial SoC (SoC in ), previous SoC hÀ1 , the hth discharged and charged quantities, NaS battery efficiency g NaS À Á , and the time-step (length) of the period (set to one hour). Eq. (23) indicates that SoC in is considered at h = 1, also the final SoC should equal the initial SoC. Finally, Eq. (24) represents that the discharged power should equal the charged power multiplied by the NaS battery efficiency.

Coronavirus herd immunity optimizer (CHIO)

96The concept of herd immunity is mathematically represented in [40] to help establish the CHIO algorithm. According to this strategy, society defends itself against infection by converting the majority of non-infected people from vulnerable to immune. This means that even those who are most vulnerable would not be harmed since the immune population will no longer spread the virus. Herd immunity (HI) populations may be divided into three types -resistant, susceptible, and infectious. As seen in Fig. 5, population-based HI forms the basis for the CHIO formulation.

97In the implementation approach of the CHIO algorithm, the improvement methodology is generated from vulnerable, contaminated, and immunized individuals. As a result of the CHIO algorithm, social distance is defined as the separation distance between a person and the community that may be sensitive, infected, or immunized between them. The CHIO optimization approach is used to create HI. As a result, the method has been established in six primary phases. The implementation stages are outlined as follows:

98Stage #1: Initialize CHIO parameters -The target function of CHIO is represented as follows:

99where X i ¼ X 1 ; X 2 ; Á Á Á Á Á Á ; X n ð Þ represents the target function for all the individuals, in which x i denotes the decision variables. The subscripted variable with i and n denote the gene quantity. CHIO only requires two main control parameters -maximum infected cases age (MaxAge) and the fundamental reproduction rate (BR r ). In addition, four additional factors are required -C 0 (set to 1), Max_ Itr that denotes the maximum iteration number, HIS that denotes the HI capacity, and n that denotes the dimension.

100Stage #2: Produce HI population (HIP) -Several HIS such as individuals are generated heuristically by the CHIO. The HIP is a bi-dimensional matrix that keeps track of the generated persons as follows:

101HIP ¼ Using Eq. (25), the optimum solution is determined for each individual. As with the status vector (S), all people in the HIP are assigned a value of 1 or 0. It can be noted that S numbers are randomly assigned from C 0 .

102Stage #3: Evolution of HI -The CHIO's primary upgrading mechanism is set. According to the BR r , each gene has the same impact or a socially varied effect based on the following three principles:

103where r stands for a random number ranges between 0 and 1. The infected case has a value between 0 and 0:333BR r . There are several variations between a patient's sick gene and the new one that reduces its value, including:

104Similarly, the susceptible case ranges between 0:033BR r and 0:67BR r . In addition, the immune case ranges between 0:67BR r and BR r .

105Stage #4: Population update -The immunity rate is evaluated for each generated case; however, the current solution will only be substituted by the generated case if f x j ðt þ 1Þ À Á < f x j ðtÞ À Á . If the S j value is equal to 1, the age vector value (A j ) will increase to 1. The values of S j are altered by the subsequent equation during each cycle, following the immunological threshold of the herd.

106where is Corona X j ðt þ 1Þ is equal to one. If an infected case is used to create a new one, the binary value will be 1. Stage #5: Casualty cases -Max Age specifies if the immunity rate of the current affected case could not be determined for the necessary iteration, then this process is declared dead. It is then stimulated from the scraped applyingX j i t þ 1 ð Þ¼lb i þ ðub i À lb i ÞUð0; 1Þ. In addition, the values of S i and S j are set to be 0. It might encourage the present population to grow and, as a result, avoid local solutions.

107Stage #6: Stopping status -The CHIO is carried out in stages 3 to 5 until the stopping criterion has been met, generally according to the maximum number of iterations (Max_ Itr ). The total number of immune and vulnerable patients dominates the population. As well, the contaminated casing will be removed. Fig. 6 shows the flowchart of the CHIO algorithm.

NaS batteries allocation

108The optimal allocation of the NaS batteries is determined, in which one NaS-BSS was firstly planned (named as Scenario 1), then two NaS-BSSs were secondly planned (named as Scenario 2), and finally, three NaS-BSSs were planned (named as Scenario 3). The results attained for the three scenarios are organized in Table 5. After realizing the optimal size and location of the NaS-BSSs, DP loss of the lG all over a typical day are calculated and analyzed in the three scenarios, as illustrated in Fig. 7. It is clear that the connection of the NaS-BSSs positively affects the total active power losses of the lG. However, the relation between the number of BSSs and DP loss is not linear. For illustration, DP loss of the lG (around 1.51 MW) during the day in scenario 3 (three NaS-BSSs connected) is greater than DP loss of the lG (around 1.48 MW) during the day in scenario 2 (two NaS-BSSs connected). This means that NaS-BSSs allocation may adversely affect DP loss , if not correctly planned. To generalize, when the number of batteries used increases, it is not necessary to reduceDP loss in lGs. In this regard, Fig. 8 shows the hourly variation of the power losses over the day for Scenario 2 and the base system. It is obvious that the NaS-BSSs are charging in periods characterized by low energy price (e.g., h = 1 to h = 6), and the SoC of the batteries is rising, as illustrated in Fig. 9. Then, the SoC remains constant till h = 12, which corresponds to the constant hourly P loss from h = 7 to h = 12. After that, the hourly P loss and SoC declines in the compensated system: Scenario 2 because of the discharging of the batteries. After merging two NaS batteries, the ScRs of the WTs and PVs are equal to 1 at all hours of the day. In this domain, the NaS-BSS certainly improves the ScR of the RESs. This means that RESs can be more efficient as commoditized alternatives for green energy utilization in lGs. One can see in Fig. 11 that the lG's bus voltage values are within the allowable limits. For instance, at h = 4 and h = 14half-load and shoulder loading. The bus voltages were high (almost 1p.u.) with no NaS-BSSs connected. After the NaS batteries connection into the system, the bus voltages profile has been declined as the batteries were charging; but still within allowable limits. On the contrary, when the NaS-batteries are discharging, the bus voltages profile increases to be better than the base case, but also still within the allowable limits. Fig. 12 explores the total RESs output power estimated, total loading before and after RESs connection, the hourly difference between the loading and RESs production, and the capacity delivered from the grid represented by the rated active power delivered from the substation transformer. All are given per hour.

Loading profile before and after RESs and NaS batteries connection

109Remarkably, when the generation of the output power from the RESs increases, the output power delivered by the main grid to the lG decreases. Besides, the back feed power (reverse power) can take place when the difference between the total generated RESs power exceeds the total load power, as highlighted in yellow in Fig. 12, for example at h = 12 to h = 14. Also, overloads of the transformer may occur when total RESs power is low (low-RESs generation periods) and total load is high (high-demand periods). It should be mentioned that the rated capacity and active power of the transformer supplying the studied lG are 3.5 MVA and Fig. 6. Flowchart of the CHIO algorithm [40]. Table 5 Optimal allocation of the NaS-BSSs: Stage 1.

Scenario

110Bus 2.97 MW, respectively. Fig. 13 explores the hourly loading of the transformer before and after one/two NaS-BSSs connections. Evidently, no overloading occurs after batteries' connection to the lG, particularly in Scenario 2 when 2 NaS-BSSs are connected.

111Therefore, NaS-BSSs can relieve the capacity of the supply transformer and defer its reinforcement plans.

OEM after RESs and NaS batteries connection

112lG's economic analysis was also investigated in this work once the best allocation of NaS batteries has been determined. The costs of the NaS batteries are involved in the economic analysis as a part of the lG's costs. Capital and replacement costs of the NaS-BSSs over the project's lifespan have been included in the overall daily cost calculation, in which the total operating cost per day in the base system (No NaS-BSS connected) equals $193,310.8/day and $160,674.5/day in Scenario 2 in case of two NaS-BSSs connected.

113This means that the total operating cost of the lG declines by 16.80% percent when two NaS-BSSs are added to the lG under consideration, which validates the positive impacts of using the NaS batteries. Fig. 14 explores the optimum hourly output powers of the grid, PVs, WTs, and NaS-BSSs in Scenario 2, when two BS units were allocated in the lG.

114The charging process of the two NaS-BSSs takes place when the demand is not high and the energy price is low, e.g. from h = 1 to h = 7. On the contrary, the discharging process of the two NaS-BSSs takes place during high-priced energy market hours to decrease lG's cost of operation.

Conclusions

115In this work, an optimization framework is proposed to enhance a grid-connected lG performance in three stages -maximization of the ScR of the highly-penetrated RESs hosted in the lG considered via NaS batteries allocation, minimization of the active power losses, and calculation of the OEM relying on minimizing the overall operating cost of the lG based on the optimal battery findings. Also, the effects of optimally allocated NaS batteries on the loading capacity of the transformer that powers the lG were investigated.

116It was clear that the connection of the NaS-BSSs positively affects the total active power losses of the lG. However, the relation between the number of BSSs and the active power losses is not linear, i.e., when the number of batteries used increases, it is not necessary to guarantee an adequate power loss reduction in the lGs. Also, the NaS-BSS positively enhances the ScR of the RESs.

117This means that RESs can be more efficient as alternatives for green energy utilization in lGs. Besides, NaS-BSSs can relieve the capacity of the supply transformer and defer its reinforcement plans. Declaration of Competing Interest

참고문헌 50건

  1. Optimal allocation of distributed generation and energy storage system in microgrids IET Renewable Power Generation · Institution of Engineering and Technology · 2014 10.1049/iet-rpg.2013.0193
  2. Mathematical Analysis of Maximum Power Points and Currents Based Maximum Power Point Tracking in Solar Photovoltaic System: a Solar Powered Water Pump Application International Review of Electrical Engineering (IREE) · Praise Worthy Prize, s.r.l. · 2016 10.15866/iree.v11i1.8137
  3. Advanced intermediate temperature sodium–nickel chloride batteries with ultra-high energy density Nature Communications · Nature Portfolio · 2016 10.1038/ncomms10683
  4. An efficient cost-reliability optimization model for optimal siting and sizing of energy storage system in a microgrid in the presence of responsible load management Energy · Elsevier BV · 2017 10.1016/j.energy.2017.07.148
  5. Optimal allocation of hybrid energy storage for microgrids based on multi-attribute utility theory Journal of Modern Power Systems and Clean Energy · Springer Nature · 2017 10.1007/s40565-017-0310-3
  6. Optimal allocation of BESS and MT in a microgrid IET Generation Transmission & Distribution · Institution of Engineering and Technology · 2018 10.1049/iet-gtd.2017.0717
  7. Optimal selection of conductors in Egyptian radial distribution systems using sine-cosine optimization algorithm 2017 10.1109/mepcon.2017.8301170
  8. Optimal sizing and placement of distributed generation in Egyptian radial distribution systems using crow search algorithm 2018 10.1109/itce.2018.8316646
  9. Short-term solar power forecasting considering cloud coverage and ambient temperature variation effects Renewable Energy · Elsevier BV · 2018 10.1016/j.renene.2018.02.102
  10. A New Sine Cosine Optimization Algorithm for Solving Combined Non-Convex Economic and Emission Power Dispatch Problems International Journal on Energy Conversion (IRECON) · Praise Worthy Prize, s.r.l. · 2017 10.15866/irecon.v5i6.14291
  11. State-of-the-art of hosting capacity in modern power systems with distributed generation Renewable Energy · Elsevier BV · 2018 10.1016/j.renene.2018.07.008
  12. Probabilistic Hosting Capacity Enhancement in Non-Sinusoidal Power Distribution Systems Using a Hybrid PSOGSA Optimization Algorithm Energies · Multidisciplinary Digital Publishing Institute · 2019 10.3390/en12061018
  13. The role of intelligent generation control algorithms in optimizing battery energy storage systems size in microgrids: A case study from Western Australia Energy Conversion and Management · Elsevier BV · 2019 10.1016/j.enconman.2019.06.045
  14. Internet of Things based real-time electric vehicle load forecasting and charging station recommendation ISA Transactions · Elsevier BV · 2019 10.1016/j.isatra.2019.08.011
  15. Energy-management solutions for microgrids Elsevier eBooks · Elsevier BV · 2019 10.1016/b978-0-12-817774-7.00020-x
  16. Optimum design of hybrid wind/PV energy system for remote area Ain Shams Engineering Journal · Elsevier BV · 2019 10.1016/j.asej.2019.08.005
  17. Techno-economic assessment of energy storage systems using annualized life cycle cost of storage (LCCOS) and levelized cost of energy (LCOE) metrics Journal of Energy Storage · Elsevier BV · 2020 10.1016/j.est.2020.101345
  18. Robust Energy Management and Economic Analysis of Microgrids Considering Different Battery Characteristics IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.2981697
  19. Nanostructured transition metal sulfide/selenide anodes for high-performance sodium-ion batteries Elsevier eBooks · Elsevier BV · 2020 10.1016/b978-0-12-819552-9.00014-2
  20. A novel scanning bat algorithm strategy for maximum power point tracker of partially shaded photovoltaic energy systems Ain Shams Engineering Journal · Elsevier BV · 2020 10.1016/j.asej.2020.02.015
  21. Multi-Objective Environmental Economic Dispatch of an Electricity System Considering Integrated Natural Gas Units and Variable Renewable Energy Sources Mathematics · Multidisciplinary Digital Publishing Institute · 2020 10.3390/math8071100
  22. Coronavirus herd immunity optimizer (CHIO) Neural Computing and Applications · Springer Science+Business Media · 2020 10.1007/s00521-020-05296-6
  23. 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
  24. Unlocking extra value from grid batteries using advanced models Journal of Power Sources · Elsevier BV · 2021 10.1016/j.jpowsour.2020.229355
  25. Optimal Allocation of Energy Storage System in Distribution Systems with Intermittent Renewable Energy IEEE Latin America Transactions · Institute of Electrical and Electronics Engineers · 2021 10.1109/tla.2021.9443071
  26. New analytical approach for simultaneous feeder reconfiguration and DG hosting allocation in radial distribution networks Ain Shams Engineering Journal · Elsevier BV · 2020 10.1016/j.asej.2020.09.024
  27. Optimal Allocation and Economic Analysis of Battery Energy Storage Systems: Self-Consumption Rate and Hosting Capacity Enhancement for Microgrids with High Renewable Penetration Sustainability · Multidisciplinary Digital Publishing Institute · 2020 10.3390/su122310144
  28. Constructing a charged-state Na-NiCl2 battery with NiCl2/graphene aerogel composite as cathode Chemical Engineering Journal · Elsevier BV · 2020 10.1016/j.cej.2020.127853
  29. A newly effective method to maximize power loss reduction in distribution networks with highly penetrated distributed generations Ain Shams Engineering Journal · Elsevier BV · 2020 10.1016/j.asej.2020.11.003
  30. Optimal multi-objective expansion planning of a droop-regulated islanded microgrid Energy · Elsevier BV · 2020 10.1016/j.energy.2020.119415
  31. State of charge estimation of a Li‐ion battery based on extended Kalman filtering and sensor bias International Journal of Energy Research · Wiley · 2020 10.1002/er.6265
  32. Exogenous influences on deployment and profitability of photovoltaics for self-consumption in multi-apartment buildings in Australia and Austria Applied Energy · Elsevier BV · 2020 10.1016/j.apenergy.2020.116309
  33. Optimal planning of energy storage technologies considering thirteen demand scenarios from the perspective of electricity Grid: A Three-Stage framework Energy Conversion and Management · Elsevier BV · 2020 10.1016/j.enconman.2020.113789
  34. Spatial analysis of distribution grid capacity and costs to enable massive deployment of PV, electric mobility and electric heating Applied Energy · Elsevier BV · 2021 10.1016/j.apenergy.2021.116504
  35. AC&amp;DC optimal power flow incorporating centralized/decentralized multi-region grid control employing the whale algorithm Ain Shams Engineering Journal · Elsevier BV · 2021 10.1016/j.asej.2021.01.004
  36. Categorisation of power quality problems using long short‐term memory networks IET Generation Transmission & Distribution · Institution of Engineering and Technology · 2021 10.1049/gtd2.12122
  37. Optimal allocation of energy storage system and its benefit analysis for unbalanced distribution network with wind generation Journal of Computational Science · Elsevier BV · 2021 10.1016/j.jocs.2021.101319
  38. Energy Storage at Different Voltage Levels: Technology, integration, and market aspects Institution of Engineering and Technology eBooks · Institution of Engineering and Technology · 2018 10.1049/pbpo111e
  39. Economical-technical-environmental operation of power networks with wind-solar-hydropower generation using analytic hierarchy process and improved grey wolf algorithm Ain Shams Engineering Journal · Elsevier BV · 2021 10.1016/j.asej.2021.02.004
  40. Optimal Capacity Allocation of Energy Storage in Distribution Networks Considering Active/Reactive Coordination Energies · Multidisciplinary Digital Publishing Institute · 2021 10.3390/en14061611
  41. Scenario-Based Approach for Efficient Energy Management in Microgrids Considering Parameters Uncertainty 2021 10.1109/it51528.2021.9390127
  42. Data-Driven Hierarchical Optimal Allocation of Battery Energy Storage System IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2021 10.1109/tste.2021.3080311
  43. Optimal Allocation of Battery in Electrical Distribution Systems with Distributed Resources Journal of Control Automation and Electrical Systems · Springer Science+Business Media · 2021 10.1007/s40313-021-00732-x
  44. Recent Progress in Cathode Materials for Sodium-Metal Halide Batteries Materials · Multidisciplinary Digital Publishing Institute · 2021 10.3390/ma14123260
  45. Marine predators algorithm for load frequency control of modern interconnected power systems including renewable energy sources and energy storage units Ain Shams Engineering Journal · Elsevier BV · 2021 10.1016/j.asej.2021.04.031
  46. Energy system resilience – A review Renewable and Sustainable Energy Reviews · Elsevier BV · 2021 10.1016/j.rser.2021.111476
  47. Energy regulation of EV using MILP for optimal operation of incentive based prosumer microgrid with uncertainty modelling International Journal of Electrical Power & Energy Systems · Elsevier BV · 2021 10.1016/j.ijepes.2021.107353
  48. Towards accurate calculation of supercapacitor electrical variables in constant power applications using new analytical closed-form expressions Journal of Energy Storage · Elsevier BV · 2021 10.1016/j.est.2021.102998
  49. Maximizing public welfare for the net-metering scheme using prosumer charges – vertically integrated utility case Ain Shams Engineering Journal · Elsevier BV · 2021 10.1016/j.asej.2021.07.006
  50. Hosting Capacity for Smart Power Grids Springer eBooks · Springer Nature · 2020 10.1007/978-3-030-40029-3