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

Synergizing Efficient Optimal Energy Hub Design for Multiple Smart Energy System Players and Electric Vehicles

관련 수소연료전지 · (7) MEA(막전극접합체)

기본 정보

저자
  1. Oveis Abedinia — Electrical and Computer Engineering Department, School of Engineering and Digital Sciences, Nazarbayev University, Astana, Kazakhstan
  2. Afshar Shorki — Department of Mechanical Engineering, Iran University of Science and Technology, Tehran, Iran
  3. Venera Nurmanova — Electrical and Computer Engineering Department, School of Engineering and Digital Sciences, Nazarbayev University, Astana, Kazakhstan
  4. Mehdi Bagheri — Electrical and Computer Engineering Department, School of Engineering and Digital Sciences, Nazarbayev University, Astana, Kazakhstan
DOI
10.1109/access.2023.3323201
저널
IEEE Access
발행년도
2023
발행기관
Institute of Electrical and Electronics Engineers
피인용수
28
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/access.2023.3323201
토픽
Hybrid Renewable Energy Systems
OpenAlex ID
W4387490513

평가 내용

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

초록

The growth in energy consumption and pollution has led to increase the utilization of clean energy resources and electric vehicles (EVs), making the issue of network uncertainty a crucial concern. A multi-energy system offers an optimal approach to enhance the reliability, flexibility, and efficiency of an energy dispatch system through utilizing diverse energy generation resources. In this study, a new design for an optimal load distribution system, considering cost factors and CO2 reduction, is discussed. The model includes different energy generation players, such as combined heat and power units (CHP), gas boilers, water pumps, heat storage units, hydrogen storage systems (HSS), photovoltaic arrays (PV), and wind turbines (WT), to create a broad model for analysis and examination. The model takes into account the random charging consumption of EVs and uncertainties in renewable energy generation enabling a comprehensive assessment and analysis over future energy price uncertainties. Using demand response (DR) program, electrical and thermal systems are modeled and employed, and the effects of the water pump and HSS are discussed. An improved version of particle swarm optimization (PSO) is also used to address the optimization problem. The obtained results validate the performance of the proposed approach by showcasing a synchronized charge/discharge mode for EVs, while simultaneously minimizing the total cost.

본문 74,956자

본문 펼치기
# Synergizing Efficient Optimal Energy Hub Design for Multiple Smart Energy System Players and Electric Vehicles Oveis Abedinia <sup>1</sup> , Senior Member, IEEE, Afshar Shorki <sup>2</sup> , Venera Nurmanova <sup>1</sup> , and Mehdi Bagheri <sup>1</sup> , Senior Member, IEEE 1 Electrical and Computer Engineering Department, School of Engineering and Digital Sciences, Nazarbayev University, Astana 010000, Kazakhstan 2 Department of Mechanical Engineering, Iran University of Science and Technology, Tehran, Iran Corresponding author: Mehdi Bagheri (e-mail: mehdi.bagheri@nu.edu.kz). This work was supported by the Faculty Development Competitive Research Grant (FDCRG), Nazarbayev University (Project no. 021220FD1251). ABSTRACT The growth in energy consumption and pollution has led to increase the utilization of clean energy resources and electric vehicles (EVs), making the issue of network uncertainty a crucial concern. A multi-energy system offers an optimal approach to enhance the reliability, flexibility, and efficiency of an energy dispatch system through utilizing diverse energy generation resources. In this study, a new design for an optimal load distribution system, considering cost factors and CO2 reduction, is discussed. The model includes different energy generation players, such as combined heat and power units (CHP), gas boilers, water pumps, heat storage units, hydrogen storage systems (HSS), photovoltaic arrays (PV), and wind turbines (WT), to create a broad model for analysis and examination. The model takes into account the random charging consumption of EVs and uncertainties in renewable energy generation enabling a comprehensive assessment and analysis over future energy price uncertainties. Using demand response (DR) program, electrical and thermal systems are modeled and employed, and the effects of the water pump and HSS are discussed. An improved version of particle swarm optimization (PSO) is also used to address the optimization problem. The obtained results validate the performance of the proposed approach by showcasing a synchronized charge/discharge mode for EVs, while simultaneously minimizing the total cost. INDEX TERMS Demand Response, Renewable Energy, Electric Vehicles (EVs), Hydrogen Storage System Nomenclature EVs Electric vehicles CHP Combined heat and power unit HSS Hydrogen storage system PV Photovoltaic array WT Wind turbine DR Demand response PEV Plug-in EV RPL Renewable penetration level EH Energy hub SREH Smart residential energy hub MES Micro-energy system PD Probability distribution RDERs Renewable distributed energy resources DDEVs Day-to-day driving distance of EVs PDF Probability density function FC Fuel cell DSM Demand-side management EVA EV aggregator PSO Particle swarm optimization IPSO Improved PSO I. INTRODUCTION The electricity demand, environmental emission, water shortage, and energy source limitations have been increasing significantly over this recent century. This potentially requires resources management in energy sector. In a broad context, both of these can potentially have adverse influences on the network; however, with careful client-side planning and utilization of energy storage resources, these methodologies can support to mitigate different issues. In this regard, the impact of integrating of plug-in EV (PEV) into the network for charging or discharging purpose is considered as a major challenge [1]. Integration of different energy sources can be taken into account in the energy hub system, that distinguished as a suitable model to obtain the local electricity demands [2]. The energy hub system is in turn a feasible solution to provide optimal energy demand management and consumption. This concept provides a new perspective over energy management through connecting various energy carriers. The energy hub can be introduced as different units that are able to perform conversion, storage, as well as district linking of different sources (make an interface among optional energy sources and client sides based on multi-energy carrier concept). A multiple power system is also a various energy sources delivery system from all different categories of energy resources, including but not limited to gas, water, district heating, and hydrogen. In a multiple power system, energy conversion among the system units along with the units' connections are feasible. Indeed, the units' connections and collaborations will be performed through a central unit called _energy hub_ which can play as an interface among the clients, generating companies, and transmission system [3]. Figure 1 shows the integrated energy concept and energy hub arrangement. In an energy system, different existing units such as electricity, natural gas along with other players are in operation independently. FIGURE 1. Main framework of energy hub In recent times, the increasing quantity and technological advancements in simultaneous energy generation have highlighted the importance of connecting energy systems. Combining various energy infrastructures, such as natural gas, heating, and cooling, can lead to enhanced energy system operation and development [4]. Several reasons drive this approach, including the ability to use energy sources on a small scale for both electricity and heating, the continuous growth in energy demand, challenges or high costs associated with replacing or expanding energy infrastructure, global efforts to reduce greenhouse gas emissions, the adoption of sustainable and environmentally friendly energy sources, and promising advancements in energy technologies, such as increased efficiency in small-scale power plants through double or triple generations [5]. Numerous research studies have previously explored load flow with multi-energy models. One of the previous research works [6] has proposed a combinatorial energy distribution framework for multiple microgrids in a combined energy organization with electrically generated heating. This framework considered various factors, including generation cost, trade cost, heating inconvenience cost, load characteristics, and electricity-consuming tools [6]. Another study proposed a real-time decentralized system considering economic dispatch limits, limited overhead transmission lines, and a self-healing approach [7]. These advanced models are operational in all sectors of electricity consumption, utility companies, and the power grid. The study demonstrated a trade-off between maximizing renewable penetration levels (RPL) in the energy hub (EH) and minimizing connected charges. To address this, a new optimal arrangement approach is proposed, allowing for adjustable RPL to be utilized in an EH for minimizing operational costs. RPL, which is determined by the network operator, can be adjusted in the scheduling plan to achieve the desired cost efficiency [8]. The micro-energy model plays a crucial role in energy consumption, where controllable energy prices can optimize micro-energy systems (MES) [9]. The ball energy model provides an overall approach for displaying MES steadystate energy equilibrium. Price-based combined demand response (DR) is explored in the context of multi-energy replacement in multi-energy connections [10]. In [10], energy management for residential users through a smart hub is modeled, considering electricity and natural gas supply for households. Physical specifications and user preferences guide energy usage approaches and control strategies. A multi-objective optimization problem is formulated for energy source allocation in the smart residential energy hub (SREH), including schedules for appliances and normal classified devices. A hybrid renewable system with wind turbines (WT), PV cells, a diesel generator, and a battery storage system is proposed in [11]. A novel technique for optimizing unit size in hybrid systems is based on the coordination between electricity generation and consumption periods, aiming for minimum cost. The electricity match rate is used for determining the optimal number of units in the hybrid system, employing a multiobjective particle swarm optimization algorithm. A study by [12] evaluates hybrid systems based on renewable energy using a multi-objective strategy with probability simulation. It employs a multi-objective genetic algorithm, uncertainty component, and simulation module to model power systems under real operating conditions. In [13], electrical hubs are designed using a combined strategy, incorporating decisionmaking, multi-criteria analysis, and optimization. Criteria such as energy cost, initial investment, grid integration level, CO2 emissions, renewable energy usage, system flexibility, and load loss probability are evaluated. [14] proposes a multi-objective optimum planning approach for multienergy systems, focusing on operational economics and energy efficiency. Two types of energy storage hubs for cooling and thermal energy are considered. [15] introduces a hybrid planning approach for assessing technical and economic performance in microgrids. [16] offers a combined nonlinear integer programming approach for smart distributed generators, while [17] proposes a new method based on a multi-objective algorithm for determining hybrid economic and environmentally friendly load dispatching. In [18], a detailed explanation of combining singular or hybrid renewable energies in combinatorial electric and thermal systems is presented. [19] introduces an optimum programming approach for a multi-energy hub system. [20] discusses a thermal and electric energy management approach for a typical residential energy, considering storage systems like PHEVs and thermal reserves. However, the study examines only one EV, leaving multiple EVs in the energy hub unexplored. [21] proposes a dynamic load and pollution dispatch method based on a reliable search area. The impact of an energy storage system on optimum dynamic power is analyzed, with efforts to enhance the solution through global search. [22] explains a dynamic power problem considering EVs using the biography optimization algorithm. While previous literature has valuable studies, limitations are observed, including local point confinement and a lack of influential global searchers. Matching probability distribution (PD) with data uncertainty is challenging, and optimization results may not cover unconsidered scenarios, leading to vulnerability in extreme settings. Previous load flow investigations from energy hubs have shown high EV admittance, which hinders examining the impact of rising EV penetration in energy hub load. Most DR-based load flow techniques analyze only electricity DR, overlooking the evaluation of electric and thermal DR for reduced depletion cost. Furthermore, uncertainties in electricity price in energy hub load flow are not comprehensively addressed in existing literature, posing financial risk to energy hub systems. To address these inadequacies, a unique and robust strategy for societal energy hub's load flow is proposed. (i) In this study, a new design for an optimal load distribution system is presented that considers a variety of energy resources, including CHP, gas boilers, water pumps, heat storage units, HSS, PV, and WT. The inclusion of these various energy units in a single model enables a holistic analysis and examination of the system, providing a comprehensive understanding of its performance. (ii) This work evaluates both electric and thermal DR in the load flow analysis of the energy hub. This comprehensive approach aims to reduce the cost of energy consumption for users by considering both electric and thermal aspects, enhancing the effectiveness of DR programs. (iii) A load flow optimization model using the locust search method is recommended to address the uncertainty surrounding the price of power, and (iv) The suggested energy hub evaluated the large-scale random access of EVs. By incorporating these factors into the analysis, a comprehensive assessment of the economic management of EV battery charge/discharge, is provided, considering the potential impact on the overall system performance. (v) An improved version of particle swarm optimization (PSO) is utilized by incorporating modifications and improvements tailored to the specific characteristics of our energy hub optimization problem. This enhancement ensures the convergence to better solutions and enhances the overall performance of our proposed approach. Following, a description of energy is given, in Section 2. Section 3 presents the goal function and associated restrictions. Suggested optimization approach through the uncertainty is discussed in Section 4. Obtained numerical analyses are provided in Section 5, and finally, the conclusion is provided in Section 6. II. THE ENERGY HUB MODEL _A._ _The energy hub model_ The presence of energy converters throughout the energy system has been led to a significant interdependence among energy networks in several aspects. In the past, these networks utilized to operate independently of one another, with distinct infrastructures for generating, transmitting, and consuming energy at different levels; however, with the integration of energy converters, they have become interconnected, sharing similar infrastructures and functioning as a unified system. Hence, the studies of the impacts of different energy carriers on each other in the new dependent environment have received a lot of attention [23]. Figure 2 shows the input-output port layout for the energy hub. In a multi-energy system, the energy hub specifies the transformation link between the importers of input and output, which is expressed as the following connection matrix [24]: C11 C12 ⋮ C1m C21 C22 ⋮ C2m ⋮ ⋮ ⋱ ⋮ Cn1 Cn2 ⋯ Cnm ⋮ Cn2 ⋱ ⋮ ⋯ Cnm [ F1 F2 ⋮ Fn ] = [ ] (1) where, _m_ -vector _I_ characterizes the input energy, _n_ -vector _F_ characterizes the output energy flows, _C_ is the connection matrix, and all elements of the _C_ -matrix depicts the energy proficiency. _I_ 1 _I_ 2 _I_ _m_ <u>1</u> <u>(t+24−μarr)</u> <sup>2</sup> 2 ~~)~~ 0 < t ≤μarr −12 2σarr <u>(t−μarr)</u> <sup>2</sup> 2 ~~)~~ μarr −12 < t ≤24 2σarr farr(t) = { <u>1</u> (2) ## Energy HUB <sup>_F_</sup> 1 _<u>F</u>_ <u>2</u> _Fn_ where, μarr = 17.6 and σdep = 3.4. The PDs of arrival time of EVs are depicted in Fig. 5. √2πσarr <sup>exp (−</sup> <u>1</u> √2πσarr <sup>exp (−</sup> FIGURE 2. The strategy of input/output port in energy hub. This study has considered the energy hub model through the energy generation, consumption, and storage units as shown in Fig. 3. The proposed renewable distributed energy resources (RDERs) are PV arrays and WTs. The power load includes basic demand and EV charging load, CHP, and RDERs. Society's surplus power can be sold wholesale to the electrical market. The plan to balance the thermal load also includes a thermal energy storage device. As illustrated in Fig. 3, the input gas is separated into 2 parts that are fed to the CHP and boiler. The transmit factor, denoted by ? (0≤?≤1), determines the natural gas depletion distribution among the CHP and boiler. _Peb(t)_ Electrical Electricity Gas Wind Power _v_ _1-v_ Boiler Demand Heat Storage CHP PV _ɳ_ <sup>_e_</sup> _CHP_ _ɳ_ <sup>_h_</sup> _CHP_ _ɳβ_ Heat Demand ` FIGURE 3. A description of the potential energy hub _B._ _Energy sources modeling_ 1. EV charge - Driving distance of EVs The day-to-day driving distance of EVs (DDEVs) can be modeled as a function of logarithmic distribution [25], i.e., S~Log −N(μs, σ2s ). S~Log −N(μs, σ2s ). - Arrival and departures times of EVs The owners of EVs stop charging once they leave home in the morning. The leaving time of EVs matches the normal distribution [26], where t ~ N(μdep, σ2dep). The holders of distribution [26], where t ~ N(μdep, σ2dep). The holders of EVs typically start charging once they arrive home in the evening. The arrival time of EV can be displayed as a normal distribution meaning the t ~ N(μarr, σ2arr). The PDF in this distribution meaning the t ~ N(μarr, σ2arr). The PDF in this form will be given as [26], - Uncoordinated charging load of EVs In this section, the Monte Carlo approach is evaluated to model the characteristics of each EV charging load. FIGURE 4. The PDs of arrival time of EVs. Next, using the characteristics of each EV load, the characteristics of the overall charging load can be obtained. To achieve sensible charging load characteristics, the simulation is carried out _L_ times for _J_ number of EVs. The particular stages are given as, _Phase 1_ : Initialize the Iteration variable l to 1. _Phase 2_ : Start iterating through each Electric Vehicle (EV) with variable j starting from 1. _Phase 3_ : Generate a random number for the charging start time of the j <sup>th</sup> EV based on the Probability Density Function (PDF) of its arrival time. _Phase 4_ : Generate a random number for the driving distance of the j <sup>th</sup> EV based on the PDF of its charging start time. _Phase 5_ : Analyze the charging burden of the j <sup>th</sup> EV in terms of power and charging time. _Phase 6_ : Match the charging load characteristics of the j <sup>th</sup> EV. _Phase 7_ : If j is less than the total number of EVs (J), increment j by 1 and go back to Phase 3. Otherwise, proceed to the next phase. _Phase 8_ : If the iteration variable l is less than the total number of iterations (L), increment l by 1 and go back to Phase 2. Otherwise, output the results and terminate the process. 2. The renewable energy sources uncertainties The renewable sources in this research work are PV panels and WT. The output energy of these sources depends on the sun's irradiance, wind velocity, and specifications of the associated units [25]. The first two can be calculated based on the weather forecast. The power generated by solar panels and wind turbines is stated in (3) and (4), respectively. <u>?</u> ??? = ?????? ?? <sup>[?+ ??(???</sup> <sup>−??)] (3)</sup> Where, _fPV_ denotes the PV output, _PPV_ denotes the nominal generated power by the PV system in a nominal condition, and _A_ and _Ar_ denote the forecasted and nominal amount of the irradiance, respectively. Also, _aPV_ is the coefficient of power temperature, and _Tpv_ and _Tr_ denote the actual measured and nominal temperature, respectively. <u>?</u> ??? <sup>[?+ ??(???</sup> <sup>−??)] (3)</sup> includes various components, such as the fuel cell (FC), storage tank, and electrolyzer, each with its specified limits. During off-peak consumption periods, surplus power is utilized to produce and store hydrogen, which is mathematically represented in (7). The constraints on electrolysis are defined in (8) and (9) for upper and lower limits, respectively. Equation (10) calculates the maximum hydrogen production achievable through the electrolysis process [20]. ??2.??? = <u>?</u> <sup>??</sup> <u>??</u> <u>?</u> <sup>??</sup> <u>??</u> ????2 (7) <u>???</u> ????? × ?? ????? × ?? 0, _v_  _vci_ _or_ _v_  _v_  _vci_ _or_ _v_  _ci_ _co_ ???? ≤?????? × ???? (8) ???? ≤?????? × ???? (9) ?? ???? ≤?????? × ???? (9) ??2.??? ≤??2.????? × ???? (10) ??? ≤?????? ??? ≤??????        _v_ - _v_ _PWT_ _PWT_ _ci_ _vco_ - _vcici_ _vci_  _v_  _vr_ _co_ - _vci_ _ci_ _r_ −− _vvcici_ _vci_  _v_  _PWT_ = ?2.??? ≤??2.????? ?2.????? × ?? _PWT_, _vr_  _v_  _v_ ,  _v_  _WT_ _r_ _co_ ???2 ≤????ℎ2 (12) Moreover, (12) imposes a limit on the initial value of the hydrogen storage. ??0?2 = ??????????2 (13)  _WT_ _r_ _co_ (4) In which, _Vci_ is the wind speed, _Vco_ is the cut wind speed, _Vr_ is the nominal wind speed, V is the forecast wind speed, and PWT is the output nominal power of WT. B) Performance constraints of the electricity storage device - Electricity storage device ??2.??? ≤??2.????? × ???? (10) Also, the lower and higher limits of the storage are mathematically stated in (11) and (12), respectively. ???2 ≥?????2 (11) ???2 ≥?????2 (11) ???2 ≤????ℎ2 (12) ??2 ≥?????2 ??2 ≤????ℎ2 ?0?2 = ??????????2 _SOCe_,min  _SOC_ ( _t_ )  _SOCe_,max (5) ??0?2 = ??????????2 (13) The FC starts using hydrogen and generating power at peakdemand times when the available generations are insufficient to supply the demand. The limit of hydrogen usage is stated in (14). The lower and upper limits of electricity generation by the FC are shown in (15) and (16), respectively. ??2.??? ≤??2.????? × ???? (14)        _Pchar_ ( _t_ )  0 0 _Pchar_ ( _t_ )  _P_ _Pdis_ ( _t_ )  _P_ _dis_ _dis_ - max _BA_ - _r_ _char_ - max ( _t_ )  _Pdis_ - max  ( _t_ ) - max _BA_  _char_ _char_ - max _BA_ - _s_  _Pdis_ ( _t_ )  - max _BA_ max  ??2.??? ≤??2.????? × ???? (14) ???? ≥?????? × ???? (15) ???? ≥?????? × ???? (15) ???? ≤?????? × ???? (16) ?2.??? ≤??2.????? ??? ≥?????? ??? ≤?????? ????? × ?? ????? × ?? ?2.????? × ??   _BA_ - _s_ _BA_ - _r_   1 1  _BA_ - _r_ (6) Where, _SOCe;min_ is the minimum and _SOCe;max_ maximum energy in the electricity storage. ?ℎ−?? and ?ℎ−?? are the charge and discharge yields of the storage system. Pdis -max and Pchar -max indicate the charge's maximum range and discharge by the electricity storage system [kW]. ???? ≤?????? × ???? (16) The hydrogen consumption by the FC is mathematically expressed in (17). The pressure inside the storage is dynamically modeled by (18). Ultimately, the limit imposed on charging at the same time and discharging of the hydrogen storage is stated by (19). ??2.??? = ? <sup>??</sup> <u>?????</u> ?2 (17) <u>??</u> ?? <u>ℜ???2?2</u> <sup>(??2.?</sup> ?? <sup>?2.?</sup> ?? −??2.??? ?2.??? ) (18) ?−1?2 + <u>ℜ??2</u> 3. Modeling of the hydrogen storage system The HSS plays a crucial role in enhancing the efficiency of power systems by preventing energy wastage. The HSS ?? ?? ??2 = ??−1?2 ??? ≤1 (19) ??? + ?? External grid Power conditioning External grid Power conditioning Electric Electric power power generation inject H2 Fuel cell Power water inject Water Transmitted by pipelines electrolyzer or stored in containers Anode Electrolyte Cathode FIGURE 5. The schematics of the HSS. The diagram of this procedure is illustrated in Fig. 6 for better comprehension. - Charging limits of the plug-in electric vehicles The plug-in electric vehicles (PEV) aggregator is fed by the main grid satisfying the charging capacity limit stated in the equation below: ????.?.??? ≤????.? ≤????.?.??? (20) In which, ????.?.??? and ????.?.??? are the lower/upper constrains of the PEV’s charging power at time t. The limits mentioned above primarily depend on the number and capacity of aggregated PEVs and are determined using real charging data from actual PEVs. These limits are crucial for effective demand-side management (DSM) of PEVs. DSM is a critical program within the smart grid that provides consumers with valuable information to make informed decisions about when to consume electricity, thereby minimizing their costs. It also aids in peak shaving and reshaping the demand curve. DSM enables operators to optimize the design, operation, and control of all executive actions, leading to positive impacts on power usage. Consequently, it enhances smart grid stability while reducing power costs and carbon emissions. Fig. 7 illustrates the diagram of the DSM's impact on demand and supply. Price 4. The water supply system Here, the water supply system of the hub is modeled which includes a water reservoir, water well, and desalination. Fig. 8 (a) illustrate the schematics of the water reservoir and Fig. 8 (b) presents the water well. FIGURE 7. The water storage (A), the water well (B) The water reservoir and well in the hub have different power consumption patterns. The reservoir's pump consumes power during charging, while the well's pump consumes power during discharging. To ensure a balanced water supply system, the total water requirement of the hub must be equal to the sum of water obtained from the reservoir, desalination, and the well. This relationship is mathematically modeled using Eq. (23). ????? −???ℎ + ??? + ??? = ∑????? ??? (23) (A) (B) Water well Water storage level Water well level Water storage pump Initial demand Demand Initial price Secondary price Modified demand ???? −?? ??ℎ + ?? ?? = ∑????? ??? ?? + ?? FIGURE 6. The impacts of the DSM program on the electricity price. - Electricity consumption limit of the PEV Another limit that must be added to the modeling is the amount of electricity consumption by the PEV. The power requirement for charging must be equal to the charging power capacity so that the PEVs have enough power for the daily drive. This limit is mathematically stated as follows: ∑??=1 ????.? + ∑??=1 ????????.? = ????.????? (21) In which, ????.? is the PEVs’ DSM at time t. ????????.? is the power requirement for uncoordinated charging power at time t, whose value is heavily dependent on the weighting parameter of PEV’s required power for charging. The weighting parameter is calculated using Eq. (9). Also, ????.????? denotes the overall power requirement for charging. ????? −???ℎ + ??? + ??? = ∑????? ??? (23) The water reservoir plays a vital role in improving the water supply system by reducing the energy cost through minimizing variations in power cost. The amount of water stored in the reservoir can be calculated using Eq. (24). However, there are lower and upper limits for the amount of water stored, as indicated in Eq. (25). Constraints are placed on the charge and discharge of water storage, which are expressed in Eqs (26) and (27), respectively, to ensure efficient operation. Additionally, to avoid simultaneous charging and discharging, Eq. (28) is implemented. The water volume in the well is assumed to be constant due to the significant underground water storage, and the optimization duration is limited to one day, which is considered relatively short [12]. ??? = ???−1 - <u>????ℎ</u> <sup>?</sup> <sup>+</sup> <u>??????</u> <sup>?</sup> (24) 0 ≤??? ≤???? ? (25) ???ℎ ≤?????ℎ???ℎ (26) <u>??</u> ?? = ???−1 <u>??</u> <u>??</u> ? <sup>?</sup> <sup>+</sup> ?ℎ ??? ??−1 ??? ???ℎ ≤?????ℎ???ℎ (26) ????? ≤???????????? (27) ??ℎ ≤?????ℎ?? ????? ≤???????????? (27) 0 ≤??ℎ? + ????? ≤1 (28) ???? ≤????????? 0 ≤??ℎ? + ????? ≤1 (28) To calculate the power used in the pump, Eq. (29) can be used which is a function of the flow of water and the water head, i.e. the height difference between the water level and the starting point for the water pump [12]. ? <sup>????</sup> = <u>?????</u> <sup>?</sup> (29) If the one-hour interval is used, Eq. (30) and (31) can be used as simplifications of the equation above [12]. <u>????</u> ? <sup>?</sup> (29) ?= ∑??=1 <u>????????.?</u> <u>?=1</u> <u>????????.?</u> = ????.????? <u>????.?????−∑??=1</u> <u>????.?</u> (22) ????.????? The values of ????, ????, and ?? are determined based on the test system. CBAT = ∑∑(Pt J ch,j,tEV = ∑∑(Pt J ch,j,tEV + Pdch,j,tEV ). ∆t CEVR,J (41) <u>??</u> (30) ? <sup>?</sup> ? ???? = ???? = ??? = ??? = <u>??????</u> ch,j,tEV + Pdch,j,tEV EEVPUTJ CEVR,J EV dch,j,tEV ). ∆t <u>??ℎ(???</u> <u>+??−1+?</u> <sup>?</sup> <u>)??</u> (31) 2? <sup>?</sup> ? ??−1+? <sup>?</sup> <u>)??</u> <u>???ℎ</u> ?? <u>+???−1</u> An environmentally conscious model is created by including the CO2 emission treatment cost in the fitness function. The energy hub's CO2 emission treatment costs are described as follows: CEM = ∑Ct M. ( PtBUY. Ugrid + (PtECHP + PtHCHP). UCHP + Where, ?= 3.6 × 10 <sup>6</sup>, which is used for converting power consumed for 1 second in W unit to the power consumed in 1 hour in kW. Also, the water level is illustrated in Fig. 8. The power used in the desalination process can be calculated using the equation below [12]. Also, the desalination device works based on reverse osmosis of seawater technology. In addition, the salinity of 35 psµ is considered for the seawater in this work. ??? = ????? (32) tECHP + Pt CEM = ∑Ct M. ( PtBUY. Ugrid + (PtECHP + PtHCHP). UCHP + PtHB. UB). ∆t (42) tBUY. Ugrid + (Pt ??? = ????? (32) 0 ≤??? ≤????? (33) The total electricity consumed, given in Eq. (34), to supply the demanded water by the energy hub is composed of the power consumed by the pumps in the water well and reservoir, and the desalination process. ??????? = ??? + ???? + ???? (34) ?? = ???? ?????? = ??? ??? + ?? PtHB. UB). ∆t (42) Applying the DR program can effectively reduce peak-load values and shift energy consumption to off-peak hours by providing incentives to consumers. This helps to decrease the load during high-price periods and increase it during lowprice periods. However, modifying the main power usage pattern may cause inconvenience to consumers, which can impact their willingness to participate in the DR program. Therefore, the price of the electrical/thermal DR program must be taken into consideration. In this research, it is expected that adjusting the load in each scheduling period may cause inconvenience for the consumers. The cost of this inconvenience is directly related to the variation in demand. This relationship is expressed as follows [29]: CEDR = ∑(πt DRE,down. Ptp,down + πtE,down. PtE,up). ∆T (43) ?? + ?? ??? (34) _C._ _Objective function_ The fitness of the proposed model is determined by the reduction in the total cost, which comprises several components. These components include the operational cost of the energy hub relative to the network, the operating and maintenance expenses of various energy carriers, the cost associated with treating CO2 emissions, the cost of EV battery deterioration, and the execution cost for electrical/thermal DRPs. The overall fitness of the model can be expressed as min{∑(πt tbuy. Ptbuy −πtsell. Ptsell). ∆t + COM + CBAT + CEM + CEDR + CHDR} (35) The CHP unit, boiler, RDERs, and thermal energy storage unit that make up the energy hub system allow us to represent the cost of operation and maintenance as follows: COM= COMRDER + COMCHP + COMB + COMHS (36) tp,down + πt H,upDR . Pt H,up). ∆T (44) CEDR = ∑(πt DRE,down. Ptp,down + πtE,down. PtE,up). ∆T (43) CHDR = ∑(πH,DOWNDR . PtH,down + πH,upDR . PtH,up). ∆T (44) DRE,down. Pt tH,down + πH,upDR H,DOWNDR . Pt tE,down. Pt _D._ _Operational limits of the system_ - Limits of the electric DR program The Limits of the electric DR program are as follows [30]. ∑Pt tE,up = ∑Pt tE,down (45) E,up ∑Pt t = ∑Pt t ∑Pt tE,up = ∑Pt tE,down (45) 0 ≤PtE,up ≤MREUP. PtEL. ItE,down (46) EUP. Pt EL. It tbuy −πt tbuy. Pt t tbuy. Ptbuy −πtsell. Ptsell). ∆t + COM + CBAT + tsell. Pt 0 ≤PtE,up ≤MREUP. PtEL. ItE,down (46) 0 ≤PtE,down ≤MREdown. PtEL. ItE,down (47) 0 ≤PtE,down ≤MREdown. PtEL. ItE,down (47) 0 ≤ItE,up + ItE,down ≤1 (48) Edown. Pt EL. It OMCHP + COMB OMRDER + COMCHP OMB + COMHS COM= COMRDER + COMCHP + COMB + COMHS (36) The operation and charges of maintenance for RDERs are same as total output energy multiplied through the coefficient of unit maintenance cost [27]: COMRDER = ∑(PT TPV. OMPV + PTWT. OMWT). ∆t (37) 0 ≤PtH,up ≤MRHup. PtHL. ItH,up (50) 0 ≤PtH,down ≤MRHdown. PtHL. ItH,down (51) OMRDER = ∑(PT T Hup. Pt TPV. OMPV + PT COMRDER = ∑(PT TPV. OMPV + PTWT. OMWT). ∆t (37) The CHP unit operation and maintenance cost is comprised of fuel cost and price of maintenance based on the following evaluation [28]: COMCHP = ∑(GT tCHP. γtG + (PtECHP + PtHCHP). OMCHP.∆t) (38) 0 ≤ItE,up + ItE,down ≤1 (48) Eq (47) imposes constraints on the energy hub, requiring it to maintain power balance for all customers throughout the scheduling cycle. Eqs. (46) and (47) set limits on the maximum transmitted electric load in the upward and downward directions, respectively. The energy hub is not allowed to transmit electric load simultaneously in both directions, as specified in Eq. (48). Limits of thermal DRP are given as follows [30]: ∑Pt tH,up = ∑Pt tH,down (49) ∑Pt tH,up = ∑Pt tH,down (49) 0 ≤PtH,up ≤MRHup. PtHL. ItH,up (50) H,up ∑Pt t = ∑Pt t HL. It Hdown. Pt tHL. It OMCHP = ∑(GT t tG + (Pt COMCHP = ∑(GT tCHP. γtG + (PtECHP + PtHCHP). OMCHP.∆t) (38) Fuel and maintenance costs, which may be computed as follows, comprise the boiler operating and maintenance costs [28]: COMB = ∑(Gt tB. γGt + PtHB. OMB.∆t) (39) tCHP. γt ECHP + Pt 0 ≤PtH,down ≤MRHdown. PtHL. ItH,down (51) 0 ≤ItH,up + ItH,down ≤1 (52) OMB = ∑(Gt tB Gt + Pt COMB = ∑(Gt tB. γGt + PtHB. OMB.∆t) (39) A unit maintenance cost coefficient compounds the entire thermal charge/discharge to determine the cost of thermal energy storage maintenance [28]. COM=HS ∑(Pt dch,tS + Pch,tS ). OMHS.∆t (40) tB. γt 0 ≤ItH,up + ItH,down ≤1 (52) Similar to the electric DRP, Eq. (49) ensures a balance between the thermal load transmitted in the upward and downward directions. The upper limits of transmitted thermal load in the upward and downward directions are stated in Eqs. (50) and (51), respectively. Eq. (52) prevents the energy hub from transmitting thermal load in both the upward and downward directions simultaneously. COM=HS ∑(Pt dch,tS + Pch,tS ). OMHS.∆t (40) The cost of EV battery deterioration is taken into account to achieve the economic management of EV charge/discharge and is calculated as follows: - Limits of the EVs The limits of the EVs are as follows [30]. dch,tS + Pch,tS HS S OM= ∑(Pt dch,t j,tEV = Ej,t−1EV ch,j,tEV . ∆t. ᵑEVch PEVdch,j,t EVdch,j,t.∆t EV (53) ᵑEVdch EVch _ Ej,t j,t−1EV + Pch,j,tEV Emin,jEV ≤Ej,tEV ≤Emax,jEV (54) 0 ≤Pdch,j,tEV ≤Pdch,max,jEV . Zj,tdch (55) min,jEV ≤Ej,tEV Emin,jEV j,tEV ≤Emax,jEV 0 ≤Pdch,j,tEV ≤Pdch,max,jEV . Zj,tdch (55) ɀj,tch + ɀdchj,t = 1, ∀j, t ∈[tarr,j, tdep,j] (56) ɀj,tch + ɀdchj,t = 1, ∀j, t ∈[tarr,j, tdep,j] (56) ɀj,tch + ɀdchj,t = 0, ∀ j, t ∈[tarr, tdep,j] (57) j,tch + ɀdchj,t j,tch + ɀdchj,t dch,max,jEV . Zj,t ɀj,tch + ɀdchj,t = 0, ∀ j, t ∈[tarr, tdep,j] (57) 0 ≤∑PJ ch,j,tEV ≤Pch,maxEV, 0 ≤∑Pj dch,j,tEV ≤Pdch,maxEV (58) The minimum and maximum amounts of natural gas input for the CHP and boiler are required. The restrictions are listed as: 0 ≤GtCHP ≤GmaxCHP (69) 0 ≤∑PJ ch,j,tEV ≤Pch,maxEV, 0 ≤∑Pj dch,j,tEV ≤Pdch,maxEV (58) Eq (53) imposes restrictions on the batteries' ability to balance their energy. The stored energy must be kept within the Eq (54) specified range to preserve the batteries in electric vehicles. Electronic formulation restricts the maximum charge/discharge energy of EVs. These limits are stated in Eqs. (55) and (56). EV EV EV J ch,j,t ≤Pch,max, 0 ≤∑Pj dch,j,t dch,j,tEV ≤Pdch,maxEV 0 ≤GtCHP ≤GmaxCHP (69) 0 ≤GtB ≤GmaxB (70) 0 ≤GtB ≤GmaxB (70) The thermal pipe must have minimum/maximum limits for thermal power transmission. - Limits of thermal power transmission 0 ≤PTHCHP + PtHB + Pdch,tS −Pch,tS ≤PmaxH tHB + Pdch,tS dch,tS −Pch,tS ch,tS ≤PmaxH ∑(πt tbuy. Ptbuy −πtsell. Ptsell). ∆t COM CBAT +CEM + CEDR + CHDR + MAX{∑PT tbuy. ∆T. βT. buy −πt tsell. Pt 0 ≤PTHCHP + PtHB + Pdch,tS −Pch,tS ≤PmaxH (71) - Limits of transmission power The transmission power between the energy hub and grid cannot exceed the transmission limitations to ensure secure power system operation. 0 ≤Ptbuy ≤Lmaxbuy (72) 0 ≤Ptbuy ≤Lmaxbuy (72) 0 ≤Ptsell ≤Psellmax (73) min { ∑(πt t tbuy. Pt T tbuy. ∆T. βT.dt (59) Eq (57) asserts that charging and discharging an EV is impossible once it is connected to the energy hub. According to Eq (58), EVs are neither charged nor discharged after they cannot connect to the energy hub. The combined EVs presented in this research are managed by an EV aggregator (EVA). The EVA ensures that each EV complies with the aforementioned restrictions. The transmission power between EVs and the energy hub cannot exceed a permissible stability threshold. Once the EVs have been charged and discharged, the energy hub's and EVs' maximum transmission power is constrained by (59). 0 ≤Ptsell ≤Psellmax (73) Once the obtaining power from the network, the maximum transmission energy is limited by Eq. (73) and when selling energy to the energy network, it is limited by Eq. (73). III. Particle swarm optimization - The limits of the thermal storage unit PSdch,t Sdch,t.∆t ᵑSdch <u>dch,t.∆t</u> S (60) tS = Ht−1S minS ≤HtS ch,tS . ∆t. ᵑSCh dch,maxS . Kt dch,maxS . Kt SCh _A._ _The classic PSO_ The PSO is a metaheuristic algorithm which is utilized to solve different engineering problems for a complex problem with simplicity, robustness, and high efficiency [31]. In this algorithm, the ? <sup>?ℎ</sup> candidate’s location vector is ?? = (??1, ??2, …, ???) where, ? indicates the dimension and ?= (??1, ??2, …, ???) where, ? indicates the dimension and ?= 1,2, …, ?. Also, the speed vector is ?? = (??1, ??2, …, ???). ???(?+ 1) = ???(?) + ???(?+ 1) (74) Ht t−1S + Pch,tS HminS ≤HtS ≤HmaxS (61) 0 ≤Pdch,tS ≤Pdch,maxS . Kdcht (62) HminS tS ≤HmaxS ??(?+ 1) (74) ??(?) −?? 0 ≤Pdch,tS ≤Pdch,maxS . Kdcht (62) 0 ≤Pdch,tS ≤Pdch,maxS . Kdcht (63) ??(?) + ?? ??(?)) + ??(?) + ?1 × ?1 × (??????? 0 ≤Pdch,tS ≤Pdch,maxS . Kdcht (63) ktCh + kdcht ≤1 (64) ?? here, ?? ??(?+ 1) = ?? ??(?+ 1) = ?? ??(?) is the location and ??? ktCh + kdcht ≤1 (64) In Eq (60), it is stated what the thermal storage's thermal energy balance limit is. The thermal energy stored in thermal storage should be restricted between the values specified by Eq (61), much like EV batteries. Equations (62) and (63) derivative set a maximum energy charge/discharge value for the thermal storage unit. Eq. (64) ensures that the thermal storage cannot be charged and drained simultaneously [30]. tCh + kt ?2 × ?2 × (????? <sup>?</sup> (?) −???(?)) (75) here, ???(?) is the location and ???(?)is the speed of the ??ℎ element of the ? <sup>?ℎ</sup> candidate in the ? <sup>?ℎ</sup> iteration. ?1 and ?2 are the constant acceleration parameter where ?1, ?2 ≠0. ?1 and ?2 are random values between 0 and 1. ??????, which is a set composed of ??????1, ??????2, …, ???????, indicates the ??(?)) (75) - The energy balance of the energy hub Ptbuy + PtPV + PtWT + PtECHP + ∑Pt dch,j,tEV + Pt tbuy + Pt tWT + Pt Ptbuy + PtPV + PtWT + PtECHP + ∑Pt dch,j,tEV + PtE,down = ptEL + ∑Pt ch,j,tEV + Ptsell + PtE,up (65) tPV + Pt EV tECHP + ∑Pt dch,j,t HL + Pch,tS dch,j,tEV + Pt tEL + ∑Pt ch,j,tEV S + Pt a set composed of ??????1, ??????2, …, ???????, indicates the ? <sup>?ℎ</sup> candidate’s best location in the ? <sup>?ℎ</sup> iteration. Also, ????? <sup>?</sup> indicates the best global location achieved so far from all of the candidates in the ? <sup>?ℎ</sup> iteration [32]. The ?????? and ????? in the improved PSO (IPSO) are calculated as follows: ??????(?+ 1) = ???(??(?+ 1)) > ???(??????(?)) { <sup>??????(?),</sup> (76) ??(?+ 1), ???(??(?+ 1)) < ???(??????(?)) EV t ch,j,t + Pt tH,down = Pt E,up (65) ch,tS + Pt tHCHP + Pt sell + Pt PtHCHP + PtHB + PtS + PtH,down = PtHL + Pch,tS + PtH,up (66) ptHB = GtB. LHV. ᵑeCHP/∆T (67) Pt tHB = GtB HB + Pt tCHP. LHV. ᵑHCHP ptHB = GtB. LHV. ᵑeCHP/∆T (67) PtHCHP = GtCHP. LHV. ᵑHCHP/∆t (68) tB. LHV. ᵑeCHP tHCHP = Gt PtHCHP = GtCHP. LHV. ᵑHCHP/∆t (68) The balances among load and supply should maintain in the energy hub system for electric energy is stated by Eq. (65). Temporarily, the supplied thermal energy must be sufficient to meet the thermal demand which is stated by Eq. (66). Natural gas intake and gas-to-heat conversion efficiency are used in Eq. (67) to explain the thermal energy produced by the boiler. According to the input natural gas and effectiveness of CHP, the energy generation by CHP is evaluated by Eq. (68). { <sup>??????(?),</sup> ???(??(?+ 1)) > ???(??????(?)) ???(??(?+ 1)) < ???(??????(?)) ?????(?) = min{???(?????1(?)), ???(?????2(?)), …, ???(??????(?))} (77) In which, ??? is the fitness function of the candidate. _B._ _Improved PSO_ The enhancement proposed in this work includes tuning the inertia parameter, and acceleration parameter, and introducing of human interaction modeling to the algorithm which will boost the convergence speed and achieve a better solution without getting trapped in a local optimum [32]. In - Limits of input natural gas the enhanced version, the speeds of the candidates are updated as follows: in the PSO has increased the population diversity which can help the algorithm avoid local optima [34]. In Eq. (78), the second term consists of difference of the best location ???????(?)and current location of the candidate ??(?+ 1) = ?. ?? ??(?) −?? ??(?)) × (1 − ??(?)and current location of the candidate ??? ??(?) + ?1 × ?1 × (?????? <u>?</u> <sup>?</sup> ?(?) −?? ???(?) which is multiplied by (1 − <u>?</u> ???? <sup>) + ?3 ×</sup> ???? <sup>) + ?2 × ?2 × (??????</sup> ??(?)) × (1 − ????? <sup>) to increase the</sup> <u>?</u> ??(?) −?? ?3 × (??????? ??(?)) × ?(1−??????????) (78) ???(?+ 1) = ???(?) + ?4 × ?4 × ???(?+ 1) (79) Where, _w_ is the inertia parameter, which is multiplied by the speed of the candidate in the last iteration in the first term of Eq. (78). Additionally, other modifications have been applied to the algorithm by adjusting its parameters while keeping its basic form intact. As mentioned earlier, adjusting the inertia parameter allows the algorithm to perform different types of searches. A large value of the inertia parameter puts the algorithm in global search mode, while a small value puts it in local search mode. For an optimization algorithm to perform well, it must have an adaptive inertia parameter that changes dynamically. The adaptive approach to determining the value of the inertia parameter is shown mathematically in Eq. (80), and it has been employed in [33, 34]. In the first approach, empirical tests have been conducted where the parameter varies between 0.4 and 0.9. ?= 1+1.5?1 <sup>−2.6?</sup> (80) ??(?+ 1) = ?? convergence speed and expected optimum point as a particle. ????? <sup>in this term is the function assessment ratio. In this part</sup> the velocity is not improved while the distance of ???????(?) and ???(?) are declined. The third term in Eq. (78) focuses on ??? ??(?) + ?4 × ?4 × ??? <u>?</u> the velocity is not improved while the distance of ?????? and ???(?) are declined. The third term in Eq. (78) focuses on the local search for the best solution in which the candidates analyze their close vicinity to find the best candidate. ???????(?) denotes the best position locally and is calculated <u>1</u> ?= 1+1.5?1 <sup>−2.6?</sup> (80) Here, ? is the mutation parameter determined using Eq. (81). The starting and final values of the inertia parameter are 0.4 and 0.9, respectively. ?= ????−???min ???max −???min <sup>∈[0,1]</sup> (81) ???????(?) denotes the best position locally and is calculated as follows: ?????? = min{???(??????+1(?)),???(??????+2(?)), …, ???(??????(?))} (85) The last term in Eq. (78) introduces the concept of voting, where candidates follow the leading candidate they have voted for to get closer to it. In each iteration, due to the superior leadership of the current leader, the opposition vote ( _opVote_ ) is decreased, and the governance vote (goVote) is increased. This diminishes the leading ability of the opposition leader. However, if the main leader becomes stuck in a local minimum, the opposition leader takes over the lead, and the candidates follow it towards the global minimum. To control the impact of the opposition leader, ? <sup>(1−??????????)</sup> is multiplied by the fourth term. The voting process follows the roulette wheel concept, and normalization is used to maintain asymmetric ranges of opVote and goVote between 0 and 1. To generate the initial population and allow candidates to choose their leading candidate, a preliminary biasing value is applied. The fittest candidate is chosen as the governor, and the next fittest candidate becomes the opposition. If ??????= ?, ??????= 1 −?, where ? biases the voting. In the subsequent iterations, each candidate participates in voting (??????), which is a random number between 0 and 1. The ??=1,?≠? √∑??=1(??? −???)2 (82) ?? −?? ?) ???? = ?−11 <sup>∑</sup> ??=1,?≠? √∑??=1(?? <u>1</u> Here, ???? denotes the average of distances between candidate ? and other candidates which is calculated based on the Euclidian approach. ????, where ???? ∈[0,1], denotes the best candidate globally which is shown by ????. Moreover, the maximum distance, shown by ???max, and minimum distance, shown by ???min, are calculated based on the comparisons made among all of the ????’s. Similar to PSO, the acceleration parameters have constant values of usually 2. When the social element ?2 is larger than the cognitive element ?1, the algorithm will be in local search mode, and when ?1 is greater than ?2, the algorithm will be in global search mode. To achieve a more accurate optimum solution, these parameters change linearly over the iteration t as follows: ?1?−?1? ?1 = ?1? −(????max <sup>) × ?</sup> (83) (??????), which is a random number between 0 and 1. The leading candidate is determined as follows: ? = { <sup>?????????,</sup> ????? ??????? <sup>?????????,</sup> ?????? ≤?????? ?????????? <sup>?</sup>, ?????? - ?????? ?? - ?????? (86) ?1?−?1? After determining the leading candidate, goVote and opVote are updated. Also, the number of votes is updated using the equation below: If ?????? < ?????? ?1?−?1? ????max <sup>) × ?</sup> (83) If ?????? < ?????? ??????= ??????+ <u>1</u> ?2?−?2? ?2?−?2? ????max <sup>) × ?</sup> (84) ??????= ??????+ ?×?1 (87) Else ??????= ??????+ ?×?1 (88) ??????= ??????+ ?×?1 (88) Where, ? denotes the count of votes for the leading candidate. The increasing form of the voting consists of the votes given for any of the candidates. These increase votes determine which of the two leaders is the main one. The following equations are used to normalize the votes gathered after each iteration. ??????= + ??????+???????????? (89) ?2 = ?2? −( <u>1</u> Here, ?1? ?1?, ?2?, and ?2? are the starting and final values of the acceleration parameters. ????max denotes the maximum iteration. ?3 denotes the attraction parameters which has a value of 0.4 here. Also, ?4 is the speed scaling parameter which is 0.7 in this work. The inertia and acceleration parameters have important influences on the performance of the optimization algorithm [33]. The original PSO is improved by applying other searching methods [34]. Implementing modifications such as mutation and crossover <u>??????</u> ??????+???????????? (89) ??????= + ??????+???????????? (90) ?????????? in the fourth term of Eq. (78) denotes the standardized vote count expected by one of the leaders. The impact of ? <sup>(1−??????????)</sup> in this term is explained in the following. If ???????? = ?????????, then ?????????? = ??????. If ???????? = ?????????, then ?????????? = ??????. Since ?????? is close to 1, the value of ? <sup>(1−??????????)</sup> will incline to 1. On the other hand, if ???????? = ???????????, incline to 1. On the other hand, if ???????? = ???????????, then ?????????? = ??????. And since ?????? has a very small value, ? <sup>(1−??????????)</sup> will have a value close to ? <sup>1</sup> or 2.3. To update ????????? and ???????????, the equation below is used. <u>1</u> FIGURE 9. The predicted price of energy's lower limit. FIGURE 10. Thermal and electrical load. TABLE 1 <u>THE VARIABLES OF THE USED EVS [24]</u> <u>Category</u> <u>Value</u> Max. size (kWh) 1000 Preliminary storage (kWh) 600 The discharging max. power (kW) 150 The stored heat energy lower/upper (kWh) 100/1000 Power charging max. size (kW) 150 <u>Efficiency of charging</u> <u>0.9</u> FIGURE 11. The output energy profile of PV and WT. ??????????? = { ?????????, ????? ≥ ? ?× (?max −?min) + ?min, ????? < ?1 <u>1</u> ? (91) ????????? = ?????? (92) Here, ? and ????? are randomly chosen numbers between 0 and 1. ?= 1,2, …, ? represents the dimension. ??????????? is randomly chosen from a uniformly distributed space between ?min and ?max, otherwise, it is taken from the fittest candidate. IV. Numerical results and analysis _A._ _Data of input and simulation settings_ The planning horizon is set for 1 day, and it is divided into 24 one-hour intervals. The considered energy hub system involves 300 electric vehicles (EVs), and the specifications of the EV batteries are evaluated to efficiently simulate and plan the charging. The charging energy for the EVs follows the daily load curve. The basic parameters of the EVs are presented in Table 1 [25]. Fig. 9 illustrates the uncoordinated charging demand for different numbers of EVs. The realtime electricity prices vary within the specified price bounds. The lower bound of the projected energy price is shown in Fig. 10. The parameter dt represents the highest price uncertainty, estimated to be 20% of the predicted price's lower bound. FIGURE 8. The EVs uncoordinated charging demand. This parameter can be obtained based on available technologies, but its value can be adjusted based on actual forecasted outcomes in practice. The selling price of surplus electricity to the grid is expected to be 10% lower than the corresponding lower bound of electricity price. Fig. 11 displays the electrical and thermal load (excluding EV charging) profiles. Fig. 12 shows the output energy characteristics of PV and wind turbine (WT) sources [35-36]. Additionally, Table 2 presents factors related to thermal energy storage, while Table 3 lists additional simulation variables [29], [35], [36]. _B._ _Analysis and discussion_ In order to analyze the effects of the coordinated charge/discharge method of DR and EVs through planning outcomes, three different scenarios have been considered. In every planned scenario, the pricing ambiguities have been assessed. The 3-forms of planning scenarios defined as: Planning scenario 1: A simple planning scenario, where the EVs are in uncoordinated charge mode, is considered to show how effectively EVs' coordinated charge/discharge mode affects the total pricing. Planning scenario 2: in comparison to planning scenario 1, the EVs will be in coordinated charge/discharge mode in this situation. Planning scenario 3: in this planning scenario, to show the efficiency of the DR, the EVs will be in coordinated charge/discharge mode. In addition, the DR programs are considered. 1- Transmission analysis and comparative outcomes The results of thermal and electrical energy transmission under planning scenario 1 are shown in Fig. 13. TABLE 2 <u>THE THERMAL ENERGY STORAGE PARAMETERS.</u> <u>Category</u> <u>Value</u> Max. size (kWh) 1000 Preliminary storage (kWh) 600 Efficiency of charging 0.9 The discharging max. power (kW) 150 Power charging max. size (kW) 150 The stored heat energy lower/upper (kWh) 100/1000 <u>Efficiency of discharging</u> <u>0.9</u> TABLE 3 <u>REMAINING CONSIDERED VARIABLES IN SIMULATION</u> Variable Unit Value Variable Unit Value  _DRH_, _down_ cent/kWh 0.10 _G_ max _B_ m <sup>3</sup> /h 100  _DRH_, _up_ cent/kWh 0.10 _G_ max _CHP_ m <sup>3</sup> /h 100 In Fig. 13 (a), it can be observed that the EVs' charging demand is integrated under uncoordinated charging mode, as the EV owners start charging once they reach their destination at sunset. The CHP produces electricity during high-price periods (9-20 h) to reduce the overall energy consumption cost. As depicted in Fig. 13 (b), the CHP also generates heat during high electricity price periods. Consequently, the boiler generates heat during low-energycost periods (20-24 h and 5-10 h) to lower the cost of thermal energy consumption. Additionally, the heat storage unit plays a role in load planning under scenario 1. The excess heat generated by the CHP is used to charge the heat storage unit during 15-18 h. On days with negative values, the heat storage unit is discharged, as indicated in Fig. 13 (b). FIGURE 12. The result of power transmission under planning scenario 1 Figure 14 displays the thermal and electrical energy transport outcomes under Planning Scenario 2. The coordinated charge/discharge and the shifting of EV charging requirements from high-electricity-price times to lowelectricity-price ones will be observed. This is due to the fact that the modification in the load charging of EVs will lead to a reduction in the cost of electricity consumption. As can be seen, the EVs aren’t charges in Fig. 14 (a) in every stage, due to the degradation cost of EV units is high, and the discharged power from the EVs should be purchased back by the EV owner to provide the energy needed to drive, and the electricity selling condition to the network or obtaining power to meet the demand increases the battery degradation price for the EV holders. FIGURE 13. The result of transmission under planning scenario 2 _OMCHP_ cent/kWh 2.0 _MRupH_ - 0.500 _OMWT_ cent/kWh 0 _MRdown_ <sup>_E_</sup> - 0.200 _OMPV_ cent/kWh 0.0 _MRup_ <sup>_E_</sup> - 0.500 _OMHS_ cent/kWh 0.5 <sup></sup> _tG_ cent/m <sup>3</sup> 22.00 _OMB_ cent/kWh 2.7 _MRdown_ <sup>_H_</sup> - 0.200 _uCHP_ kg/kWh 0.177 LHV kWh/m <sup>3</sup> 9.70 _uB_ kg/kWh 0.177  _CHPe_ - 0.35 _ugrid_ kg/kWh 0.187 _Ctre_ cent/kg 3.36  _DRE_, _down_ cent/kWh 0.10  _B_ - 0.8  _DRE_, _up_ cent/kWh 0.10  _CHPh_ - 0.45 Fig. 15 shows the outcomes of thermal and electrical energy transfer under planning scenario 3. It is clear from comparing the actual execution of the electrical and thermal DR programs to planned scenarios 1 and 2 that the thermal and electrical load requirements have altered. Fig. 15 presents the loads earlier and later executing the thermal and electrical DR program. After execution of the thermal/electrical DR, the load of the energy hub has moved from high-energy-cost aeras (9-21 h) to low-energy-cost periods for decreasing the price of buying energy from the network. FIGURE 14. The result of transmission under planning scenario 3 In response to high energy prices, the energy hub increases the energy output of the CHP to lower the purchasing cost of electricity. Since the CHP can simultaneously produce thermal and electrical energy, when the electrical energy output is increased during high-energy-cost periods, the thermal energy output also increases as a byproduct. After applying DR, the total thermal load is increased during times of high energy costs (13-19 h) to utilize the increased thermal energy output effectively. Table 4 presents pricing comparisons for several planning scenarios. Scenario 2 shows a 12% reduction in overall cost compared to scenario 1, indicating that coordinated charging and discharging of EVs successfully reduce the electricity cost for customers. Furthermore, scenario 3 has a lower overall cost than scenario 2, with a reduction of 5.76%. This demonstrates that implementing the DR program can help customers lower their overall costs by shifting their loads intelligently. TABLE 4 THE COMPARISONS OF THE PRICE OF VARIOUS PLANNING SCENARIOS. <u>Scenario 1</u> <u>Scenario 2</u> <u>Scenario 3</u> Total price ($) 632.2510 590.3230 556.3410 2- The impact of EV degradation According to the high degradation cost of EV units, EV holders are unwilling to discharge their EVs so as to increase the lifespan of their EV batteries. Hence, the EV degradation cost has a critical impact on the planning outcomes. This part presents the effects of EV degradation. The overall costs under various scenarios including/excluding EV degradation cost are depicted in Fig. 16. It can be seen in this figure that the overall cost of the scenario without considering the EV degradation is significantly lower than the scenario considering EV degradation cost which suggests that the EV degradation cost is not negligible. The planning outcomes of scenarios 2 and 3, where EVs are in synchronized charge/discharge mode, are considered as examples. Fig. 17 displays the transmission results in scenario 2 without accounting for the cost of EV depreciation. In this case, the results show that the EVs are charged during low-energy-cost times and discharged during high-energy-cost times (13-20 h) to reduce the quantity of power purchased when the cost is high. The negative values in Fig. 17 represent the EVs being discharged during highenergy-cost periods. Fig. 18 presents the outcomes of transmission in scenario 2, excluding the EV degradation cost. Similar to the previous results, the EVs are charged during low-energy-cost periods (22-24 h and 1-10 h) and discharged during high-energy-cost periods (12-20 h) to minimize the electricity consumption cost during peak hours. FIGURE 15. The overall cost under various scenarios including/excluding the EV degradation cost FIGURE 16. The planning outcomes in planning scenario 2 excluding the degradation cost of EVs FIGURE 17. The planning outcomes in planning scenario 3 excluding the degradation cost of EVs Additionally, the energy hub sells excess energy to the network to gain profit during high-energy-cost periods (18 h). It can be inferred that without considering the EV degradation cost, the EVs are charged and discharged constantly to reduce the overall cost of the energy system. With the rapid improvement of EV batteries and decreased battery cost, EVs are expected to play an increasingly critical role in the system energy management. _C._ _Benchmark analysis_ In this section, an optimization analysis is presented to demonstrate the efficiency of the proposed algorithm. To achieve this, various mathematical benchmark functions are considered and compared with different metaheuristic algorithms. The CEC 2020 competition test bed [37] is utilized, which consists of 10 benchmark functions with 20 dimensions. The numerical results are presented in Table 5, showcasing the best, worst, median, mean, and standard deviation (SD) values. The evaluated errors are calculated as _f_ ( _x_ )- _f_ ( _x_ <sup>*</sup> ), where _x_ represents the best solution and _x_ <sup>*</sup> denotes the global optimum value. Moreover, to further illustrate the efficiency of the proposed algorithm, Table 6 presents the results of the Wilcoxon signed-rank test ( _α_ =0.05) for comparisons with other wellknown optimization algorithms, including the genetic algorithm (GA) [38], the classic version of PSO, the artificial bee colony (ABC) [39], and the gravitational search algorithm (GSA) [40]. <u>Table. 5. The CEC 2020 test function results (for D=20)</u> Benchmark <u>D=20</u> <u>Best</u> <u>Worst</u> <u>Median</u> <u>Mean</u> <u>SD</u> _<u>f</u>_ <u>1</u> <u>0.00E+00</u> <u>0.00E+00</u> <u>0.00E+00</u> <u>0.00E+00</u> <u>0.00E+00</u> _<u>f</u>_ <u>2</u> <u>0.00E+00</u> <u>2.13E-01</u> <u>1.14E-01</u> <u>1.31E-02</u> <u>1.21E-01</u> _<u>f</u>_ <u>3</u> <u>1.01E+01</u> <u>1.04E+00</u> <u>2.00E+00</u> <u>1.00E+00</u> <u>1.00E+00</u> _<u>f</u>_ <u>4</u> <u>3.42E-02</u> <u>2.14E-01</u> <u>1.13E-01</u> <u>2.42E-02</u> <u>2.43E-01</u> _<u>f</u>_ <u>5</u> <u>2.11E-02</u> <u>2.53E-01</u> <u>2.22E-00</u> <u>1.14E-02</u> <u>2.55E+01</u> _<u>f</u>_ <u>6</u> <u>2.42E-02</u> <u>3.11E-01</u> <u>2.23E-01</u> <u>2.53E-02</u> <u>2.43E-01</u> _<u>f</u>_ <u>7</u> <u>2.13E-02</u> <u>2.33E+00</u> <u>2.53E+00</u> <u>1.43E-01</u> <u>1.24E+00</u> _<u>f</u>_ <u>8</u> <u>2.64E+00</u> <u>2.42E+01</u> <u>2.22E+01</u> <u>3.53E+00</u> <u>2.53E+00</u> _<u>f</u>_ <u>9</u> <u>0.00E+00</u> <u>1.11E+01</u> <u>1.35E+01</u> <u>2.21E+01</u> <u>2.11E+00</u> _<u>f</u>_ <u>10</u> <u>3.11E+01</u> <u>2.53E+02</u> <u>2.14E+01</u> <u>1.12E+02</u> <u>2.14E+01</u> According to Table 6, the sum of ranks for the functions is denoted by _R_ <sup>+</sup> and the sum of ranks for the opposing algorithms is denoted by _R_ <sup>-</sup> . Based on the results in the table, it can be confidently asserted that the proposed algorithm surpasses all other optimization algorithms in terms of performance and effectiveness. <u>Table. 6. Obtained results for Wilcoxon signed-rank test</u> D Models R+ R- P value + ≈ - Dec. Proposed vs GA 41 1 0.015 7 1 0 + Proposed vs PSO 40 2 0.012 7 1 0 + 20 Proposed vs ABC 42 0 0.014 8 2 1 + Proposed vs GSA 41 1 0.013 7 2 1 + V. Conclusion A crucial concern in optimal load planning in energy systems was discussed and addressed in this study. An optimum load flow model based on the enhanced locust search algorithm was proposed for the energy management of community energy hubs. The model incorporated various energy generation resources, EVs, and analyzed the uncertainties using Monte Carlo simulation. The results demonstrated the effectiveness of coordinated charge/discharge modes for EVs and the cost-saving potential of DR programs. Simulation results revealed that the coordinated charge/discharge mode of EV is effective, and cooperative charging/discharging strategy of an EV is able to save the overall costs for 12% as compared to uncoordinated charging approach. The results additionally show a 5% overall cost reduction once DR program was implemented. The proposed strategy provided valuable insights into demand transmission in community energy hubs with high EV penetration. In this process, the improved version of the PSO algorithm was utilized as a solution model for resolving the presented optimization problem. The proposed strategy provides a new insight into the demand transmission of community energy hubs with a high penetration of EVs. REFERENCES [1]M. Shafiei, A. Ghasemi-Marzbali, Electric vehicle fast charging station design by considering probabilistic model of renewable energy source and demand response. Energy, vol. 267, pp. 126545, 2023. [2] O. Abedinia, M. Lu, & M. Bagheri, An improved multicriteria optimization method for solving the electric vehicles planning issue in smart grids via green energy sources. IEEE Access, vol. 8, pp. 34653481, 2021. [3] Z. Feng, X. Lin, Z. Wang, Q. Sui, S. Xu, Z. Li, & C. Wu, Design and dispatching of all-clean energy producing-consuming system with sixenergy coupling. International Journal of Electrical Power & Energy Systems, vol. 129, pp. 106801, 2021. [4] S. Huang, & O. Abedinia, Investigation in economic analysis of microgrids based on renewable energy uncertainty and demand response in the electricity market. Energy, vol. 225, pp. 120247, 2021. [5] X. Lu, Z. Liu, L. Ma, L. Wang, K. Zhou, & N. Feng, A robust optimization approach for optimal load dispatch of community energy hub. Applied Energy, vol. 259, pp. 114195, 2020. [6] A. Ghasemi-Marzbali, M. Shafiei, & R. Ahmadiahangar, Day-ahead economical planning of multi-vector energy district considering demand response program. Applied Energy, vol. 332, pp. 120351, 2023. [7] M. Bagheri, V. Nurmanova, O. Abedinia, & M. S. Naderi, Enhancing power quality in microgrids with a new online control strategy for DSTATCOM using reinforcement learning algorithm. IEEE access, vol. 6, pp. 38986-38996, 2018. [8] H. Khani, A. Sawas, & H. E. Farag, An estimation–Based optimal scheduling model for settable renewable penetration level in energy hubs. Electric Power Systems Research, vol. 196, pp. 107230, 2021. [9] Z. Chen, Y. Zhang, W. Tang, X. Lin, & Q. Li, Generic modelling and optimal day-ahead dispatch of micro-energy system considering the price-based integrated demand response. Energy, vol. 176, pp. 171-183, 2019. [10] Q. Lu, S. Lü, Y. Leng, & Z. Zhang, Optimal household energy management based on smart residential energy hub considering uncertain behaviors. Energy, vol. 195, pp. 117052, 2020. [11] B. Mukhopadhyay, & D. Das, Multi-objective dynamic and static reconfiguration with optimized allocation of PV-DG and battery energy storage system. Renewable and Sustainable Energy Reviews, vol. 124, pp. 109777, 2020. [12] J. J. Roberts, A. M. Cassula, J. L. Silveira, E. da Costa Bortoni, & A. Z. Mendiburu, Robust multiobjective optimization of a renewable based hybrid power system. Applied Energy, vol. 223, pp. 52-68, 2018. [13] A. T. D. Perera, V. M. Nik, D. Mauree, & J. L. Scartezzini, An integrated approach to design site specific distributed electrical hubs combining optimization, multi-criterion assessment and decision making. Energy, vol. 134, pp. 103-120, 2017. [14] Y. Jia, Z. Mi, W. Zhang, & L. Liu, Optimal operation of multi-energy systems in distributed energy network considering energy storage. In 2017 IEEE Conference on Energy Internet and Energy System Integration (EI2), pp. 1-6, 2017. [15] M. K. Kiptoo, M. E. Lotfy, O. B. Adewuyi, A. Conteh, A. M. Howlader, & T. Senjyu, Integrated approach for optimal techno-economic planning for high renewable energy-based isolated microgrid considering cost of energy storage and demand response strategies. Energy Conversion and Management, vol. 215, pp. 112917, 2020. [16] F. Moazeni, & J. Khazaei, Dynamic economic dispatch of islanded water-energy microgrids with smart building thermal energy management system. Applied Energy, vol. 276, pp. 115422, 2020. [17] V. P. Sakthivel, M. Suman, & P. D. Sathya, Combined economic and emission power dispatch problems through multi-objective squirrel search algorithm. Applied Soft Computing, vol. 100, pp. 106950, 2021. [18] M. A. Bagherian, & K. Mehranzamir, A comprehensive review on renewable energy integration for combined heat and power production. Energy Conversion and Management, vol. 224, pp. 113454, 2020. [19] D. Huo, S. Le Blond, C. Gu, W. Wei, & D. Yu, Optimal operation of interconnected energy hubs by using decomposed hybrid particle swarm and interior-point approach. International Journal of Electrical Power & Energy Systems, vol. 95, pp. 36-46, 2018. [20] F. Brahman, M. Honarmand, & S. Jadid, Optimal electrical and thermal energy management of a residential energy hub, integrating demand response and energy storage system. Energy and Buildings, vol. 90, pp. 65-75, 2015. [21] B. El-sobky, & Y. Abo-elnaga, Multi-objective economic emission load dispatch problem with trustregion strategy. Electric power systems research, vol. 108, pp. 254-259, 2014. [22] H. Ma, Z. Yang, P. You, & M. Fei, Multi-objective biogeography-based optimization for dynamic economic emission load dispatch considering plug-in electric vehicles charging. Energy, vol. 135, pp. 101-111, 2017. [23] H. Yang, P. You, & C. Shang, Distributed planning of electricity and natural gas networks and energy hubs. Applied Energy, vol. 282, pp. 116090, 2021. [24] M. Geidl, G. Koeppel, P. Favre-Perrod, B. Klockl, G. Andersson, K. Frohlich, Energy hubs for the future. IEEE Power Energ Mag, vol. 5, pp. 24–30, 2006. [25] X. Lu, K. Zhou, S. Yang, & H. Liu, Multi-objective optimal load dispatch of microgrid with stochastic access of electric vehicles. Journal of cleaner production, vol. 195, pp. 187-199, 2018. [26] M. Mohiti, H. Monsef, & H. Lesani, A decentralized robust model for coordinated operation of smart distribution network and electric vehicle aggregators. International Journal of Electrical Power & Energy Systems, vol. 104, pp. 853-867, 2019. [27] Y. Duan, X. He, & Y. Zhao, Distributed algorithm based on consensus control strategy for dynamic economic dispatch problem. International Journal of Electrical Power & Energy Systems, vol. 129, pp. 106833, 2021. [28] H. Wu, X. Liu, & M. Ding, Dynamic economic dispatch of a microgrid: Mathematical models and solution algorithm. International Journal of Electrical Power & Energy Systems, vol. 63, pp. 336-346, 2014. [29] M. J. Vahid-Pakdel, S. Nojavan, B. Mohammadi-Ivatloo, & K. Zare, Stochastic optimization of energy hub operation with consideration of thermal energy market and demand response. energy Conversion and Management, vol. 145, pp. 117-128, 2017. [30] J. Hu, S. You, M. Lind, & J. Østergaard, Coordinated charging of electric vehicles for congestion prevention in the distribution grid. IEEE Transactions on Smart Grid, vol. 5, no. 2, pp. 703-711, 2013. [31] G. Li, Y. Li, H. Chen, & W. Deng, Fractional-order controller for course-keeping of underactuated surface vessels based on frequency domain specification and improved particle swarm optimization algorithm. Applied Sciences, vol. 12, no. 6, pp. 3139, 2022. [32] Y. Diao, H. Ma, H. Wang, J. Wang, S. Li, X. Li, & Q. Qiu, Optimal flood-control operation of cascade reservoirs using an improved particle swarm optimization algorithm. Water, vol. 14, no. 8, pp. 1239, 2022. [33] I. U. Rahman, M. Zakarya, M. Raza, & R. Khan, An n-state switching PSO algorithm for scalable optimization. Soft Computing, vol. 24, pp. 11297-11314, 2020. [34] W. Deng, J. Xu, H. Zhao, & Y. Song, A novel gate resource allocation method using improved PSO-based QEA. IEEE Transactions on Intelligent Transportation Systems, vol. 23, no. 3, pp. 1737-1745, 2020. [35] A. Maroufmashat, et al., Modeling and optimization of a network of energy hubs to improve economic and emission considerations. Energy, vol. 93, pp. 2546-2558, 2015. [36] G. Han, Y. Xia, W. Min. Micro-grid environmental economic dispatch using improved linearly decreasing weight particle swarm optimization. Mechatronics and Automatic Control Systems: Springer. pp. 491–500, 2014. [37] A. W. Mohamed, A. A. Hadi, A. K. Mohamed, & N. H. Awad, Evaluating the performance of adaptive gainingsharing knowledge based algorithm on cec 2020 benchmark problems. In 2020 IEEE Congress on Evolutionary Computation (CEC), pp. 1-8, 2020. [38] W. Deng, X. Zhang, Y. Zhou, Y. Liu, X. Zhou, H. Chen, & H. Zhao, An enhanced fast non-dominated solution sorting genetic algorithm for multi-objective problems. Information Sciences, vol. 585, pp. 441-453, 2022. [39] G. Yavuz, B. Durmuş, & D. Aydın, Artificial bee colony algorithm with distant savants for constrained optimization. Applied Soft Computing, vol. 116, pp. 108343, 2022. [40] H. Mittal, A. Tripathi, A. C. Pandey, & R. Pal, Gravitational search algorithm: a comprehensive analysis of recent variants. Multimedia Tools and Applications, vol. 80, pp. 7581-7608, 2021. Biography OVEIS ABEDINIA (Senior Member, IEEE) holds a B.S, M.Sc, and PhD (first honor) in Electrical Engineering. He began working as a Post-doc and part-time faculty member at Budapest University of Technology, Budapest, Hungary in 2015, and subsequently started constructing various solar power plants in 2017. He then joined Ardabil Science and Technology Park as Head of International Relations. From 2019 to 2023, he successfully oversaw the construction of over 250 solar power plants, varying in size from small to large scale. In 2019, he joined Nazarbayev University as a research fellow, where he is currently active. Dr. Abedinia also serves as an Editor for several international journals. He has published over 120 articles and books in various high-ranking journals and conferences. His research interests include Power System Operations and Forecasting. AFSHAR SHOKRI is a scientist, research assistant, and research associate in Mechanical Engineering. Currently, he is a research assistant in Energy and Environment field working on " _Optimization and_ _multi-criteria analysis of a multi-generation system_ _based on Solid Oxide Fuel Cell_ " under supervision of Dr. O. Abedinia. Also, he is PhD student in University of Tabriz. Afshar Received his M.Sc. in Energy Conversion Engineering from Iran University of Science and Technology (IUST), Tehran, Iran, on [Feb 2017, under supervision of Prof. NM. Nouri and co-supervision of Dr.](http://www.google.com/url?q=http%3A%2F%2Fae.sharif.edu%2F~web%2Fhomepage.php%3Fusername%3Dtaeibi&sa=D&sntz=1&usg=AFQjCNG5wAGvtYZUFA8C0WS3qk5c0eBoqQ) [H. Akbari. Additionally, he received his B.Sc. from Department of](https://www.google.com/url?q=https%3A%2F%2Fwww.researchgate.net%2Fprofile%2FMohammad_Salimi8&sa=D&sntz=1&usg=AFQjCNEiE4Yp4pYvEB7_LOVPcSHEzj_IUQ) [Mechanical Engineering at University of Mohaghegh Ardabili (UMA),](http://www.google.com/url?q=http%3A%2F%2Fuma.ac.ir%2Findex.php%3Fgsmp%3D1-en&sa=D&sntz=1&usg=AFQjCNFGqeKgcOaJHjoj72SYD3Z4J-kjsg) Ardabil, Iran in 2014, under the supervision of Prof _._ [Dr. M. Yari](https://scholar.google.com/citations?user=o54N19oAAAAJ&hl=en&oi=ao) _._ In his M.Sc., he worked on " _Fabrication and Modeling of Solid Oxide Fuel Cell_ " with high honor as well. He has published many international journal and conference papers and is reviewer of several international journals. VENERA NURMANOVA received the B.Eng. and M.Sc. degrees in Electrical and Electronic Engineering from Nazarbayev University, Astana, Kazakhstan in 2015 and 2017 respectively. She received Ph.D. degree in Science, Engineering and Technology from Nazarbayev University, Astana, Kazakhstan in 2022. Her fields of interest are power systems, high voltage, transformer diagnostics, machine learning, and renewable energy sources. She was a manufacturing engineer at “Granit-Thales Electronics” LLP in Almaty, Kazakhstan in 2017. She is currently working as Postdoctoral researcher at the School of Engineering and Digital Sciences, Nazarbayev University, Astana, Kazakhstan. MEHDI BAGHERI (Senior Member, IEEE) holds a Ph.D. in electrical power engineering and energy systems from the University of New South Wales (UNSW), Sydney, Australia, in 2014. He has worked with Electric Machinery and Motor Drive, and Power Electronics laboratories of Electrical Engineering Department at the National University of Singapore (NUS), and closely worked with the Rolls-Royce Pte. Ltd on a joint project. Since 2016, he has been with Nazarbayev University, where he is currently an Associate Professor with the Department of Electrical and Computer Engineering. He is also an Associate Editor in the IEEE Access journal and the Journal of Frontiers in Energy Research, and IEEE PES, IES, and DEIS member. In recognition of his contributions to engineering, Dr. Bagheri received the Scopus Award in 2022. He is the head of the Smart Energy Systems Laboratory and has served as a member of the National Research Council of Kazakhstan from 2020 to 2023. Dr. Bagheri is actively involved in the advanced testing of industrial projects, and he provides technical support to multinational companies, specializing in power product manufacturing, strategic relationships between industry and academia, energy management, smart monitoring of power equipment, and analysis and development of sustainable energy systems. His research interests revolve around several key areas, including high voltage engineering, wireless power transfer, condition monitoring and assessment, diagnosis of power equipment in the field, space, and marine applications, electrical rotating machines, electrical insulation, power quality, and smart energy systems.

섹션 본문 117문단 · 44,099자

(제목 없음)

1The growth in energy consumption and pollution has led to increase the utilization of clean energy resources and electric vehicles (EVs), making the issue of network uncertainty a crucial concern.A multi-energy system offers an optimal approach to enhance the reliability, flexibility, and efficiency of an energy dispatch system through utilizing diverse energy generation resources.In this study, a new design for an optimal load distribution system, considering cost factors and CO 2 reduction, is discussed.The model includes different energy generation players, such as combined heat and power units (CHP), gas boilers, water pumps, heat storage units, hydrogen storage systems (HSS), photovoltaic arrays (PV), and wind turbines (WT), to create a broad model for analysis and examination.The model takes into account the random charging consumption of EVs and uncertainties in renewable energy generation enabling a comprehensive assessment and analysis over future energy price uncertainties.Using demand response (DR) program, electrical and thermal systems are modeled and employed, and the effects of the water pump and HSS are discussed.An improved version of particle swarm optimization (PSO) is also used to address the optimization problem.The obtained results validate the performance of the proposed approach by showcasing a synchronized charge/discharge mode for EVs, while simultaneously minimizing the total cost.INDEX TERMSDemand response, renewable energy, electric vehicles (EVs), hydrogen storage system.NOMENCLATURE EVs Electric vehicles.CHP Combined heat and power unit.HSS Hydrogen storage system.PV Photovoltaic array.WT Wind turbine.DR Demand response.PEV Plug-in EV.RPL Renewable penetration level.EH Energy hub. SREH Smart residential energy hub.MES Micro-energy system.The associate editor coordinating the review of this manuscript and approving it for publication was Xiaodong Liang .PD Probability distribution.RDERs Renewable distributed energy resources.DDEVs Day-to-day driving distance of EVs.PDF Probability density function.FC Fuel cell.DSM Demand-side management.EVA EV aggregator.PSO Particle swarm optimization.IPSO Improved PSO.

I. INTRODUCTION

2The electricity demand, environmental emission, water shortage, and energy source limitations have been increasing significantly over this recent century.This potentially requires resources management in energy sector.In a broad context, both of these can potentially have adverse influences on the network; however, with careful client-side planning and utilization of energy storage resources, these methodologies can support to mitigate different issues.In this regard, the impact of integrating of plug-in EV (PEV) into the network for charging or discharging purpose is considered as a major challenge [1].Integration of different energy sources can be taken into account in the energy hub system, that distinguished as a suitable model to obtain the local electricity demands [2].The energy hub system is in turn a feasible solution to provide optimal energy demand management and consumption.This concept provides a new perspective over energy management through connecting various energy carriers.The energy hub can be introduced as different units that are able to perform conversion, storage, as well as district linking of different sources (make an interface among optional energy sources and client sides based on multi-energy carrier concept).A multiple power system is also a various energy sources delivery system from all different categories of energy resources, including but not limited to gas, water, district heating, and hydrogen.In a multiple power system, energy conversion among the system units along with the units' connections are feasible.Indeed, the units' connections and collaborations will be performed through a central unit called energy hub which can play as an interface among the clients, generating companies, and transmission system [3].Figure 1 shows the integrated energy concept and energy hub arrangement.In an energy system, different existing units such as electricity, natural gas along with other players are in operation independently.

3In recent times, the increasing quantity and technological advancements in simultaneous energy generation have highlighted the importance of connecting energy systems.Combining various energy infrastructures, such as natural gas, heating, and cooling, can lead to enhanced energy system operation and development [4].Several reasons drive this approach, including the ability to use energy sources on a small scale for both electricity and heating, the continuous growth in energy demand, challenges or high costs associated with replacing or expanding energy infrastructure, global efforts to reduce greenhouse gas emissions, the adoption of sustainable and environmentally friendly energy sources, and promising advancements in energy technologies, such as increased efficiency in small-scale power plants through double or triple generations [5].Numerous research studies have previously explored load flow with multi-energy models.One of the previous research works [6] has proposed a combinatorial energy distribution framework for multiple microgrids in a combined energy organization with electrically generated heating.This framework considered various factors, including generation cost, trade cost, heating inconvenience cost, load characteristics, and electricity-consuming tools [6].Another study proposed a real-time decentralized system considering economic dispatch limits, limited overhead transmission lines, and a self-healing approach [7].These advanced models are operational in all sectors of electricity consumption, utility companies, and the power grid.The study demonstrated a trade-off between maximizing renewable penetration levels (RPL) in the energy hub (EH) and minimizing connected charges.To address this, a new optimal arrangement approach is proposed, allowing for adjustable RPL to be utilized in an EH for minimizing operational costs.RPL, which is determined by the network operator, can be adjusted in the scheduling plan to achieve the desired cost efficiency [8].

4The micro-energy model plays a crucial role in energy consumption, where controllable energy prices can optimize micro-energy systems (MES) [9].The ball energy model provides an overall approach for displaying MES steady-state energy equilibrium.Price-based combined demand response (DR) is explored in the context of multi-energy replacement in multi-energy connections [10].In [10], energy management for residential users through a smart hub is modeled, considering electricity and natural gas supply for households.Physical specifications and user preferences guide energy usage approaches and control strategies.A multiobjective optimization problem is formulated for energy source allocation in the smart residential energy hub (SREH), including schedules for appliances and normal classified devices.A hybrid renewable system with wind turbines (WT), PV cells, a diesel generator, and a battery storage system is proposed in [11].A novel technique for optimizing unit size in hybrid systems is based on the coordination between electricity generation and consumption periods, aiming for minimum cost.The electricity match rate is used for determining the optimal number of units in the hybrid system, employing a multi-objective particle swarm optimization algorithm.A study by [12] evaluates hybrid systems based on renewable energy using a multi-objective strategy with probability simulation.It employs a multi-objective genetic algorithm, uncertainty component, and simulation module to model power systems under real operating conditions.In [13], electrical hubs are designed using a combined strategy, incorporating decision-making, multi-criteria analysis, and optimization.Criteria such as energy cost, initial investment, grid integration level, CO2 emissions, renewable energy usage, system flexibility, and load loss probability are evaluated.Reference [14] proposes a multi-objective optimum planning approach for multi-energy systems, focusing on operational economics and energy efficiency.Two types of energy storage hubs for cooling and thermal energy are considered.Reference [15] introduces a hybrid planning approach for assessing technical and economic performance in microgrids.Reference [16] offers a combined nonlinear integer programming approach for smart distributed generators, while [17] proposes a new method based on a multi-objective algorithm for determining hybrid economic and environmentally friendly load dispatching.In [18], a detailed explanation of combining singular or hybrid renewable energies in combinatorial electric and thermal systems is presented.Reference [19] introduces an optimum programming approach for a multi-energy hub system.Reference [20] discusses a thermal and electric energy management approach for a typical residential energy, considering storage systems like PHEVs and thermal reserves.However, the study examines only one EV, leaving multiple EVs in the energy hub unexplored.Reference [21] proposes a dynamic load and pollution dispatch method based on a reliable search area.The impact of an energy storage system on optimum dynamic power is analyzed, with efforts to enhance the solution through global search.Reference [22] explains a dynamic power problem considering EVs using the biography optimization algorithm.While previous literature has valuable studies, limitations are observed, including local point confinement and a lack of influential global searchers.Matching probability distribution (PD) with data uncertainty is challenging, and optimization results may not cover unconsidered scenarios, leading to vulnerability in extreme settings.Previous load flow investigations from energy hubs have shown high EV admittance, which hinders examining the impact of rising EV penetration in energy hub load.Most DR-based load flow techniques analyze only electricity DR, overlooking the evaluation of electric and thermal DR for reduced depletion cost.Furthermore, uncertainties in electricity price in energy hub load flow are not comprehensively addressed in existing literature, posing financial risk to energy hub systems.To address these inadequacies, a unique and robust strategy for societal energy hub's load flow is proposed.

5(i) In this study, a new design for an optimal load distribution system is presented that considers a variety of energy resources, including CHP, gas boilers, water pumps, heat storage units, HSS, PV, and WT.The inclusion of these various energy units in a single model enables a holistic analysis and examination of the system, providing a comprehensive understanding of its performance.

6(ii) This work evaluates both electric and thermal DR in the load flow analysis of the energy hub.This comprehensive approach aims to reduce the cost of energy consumption for users by considering both electric and thermal aspects, enhancing the effectiveness of DR programs.(iii) A load flow optimization model using the locust search method is recommended to address the uncertainty surrounding the price of power, and (iv) The suggested energy hub evaluated the large-scale random access of EVs.By incorporating these factors into the analysis, a comprehensive assessment of the economic management of EV battery charge/discharge, is provided, considering the potential impact on the overall system performance.(v) An improved version of particle swarm optimization (PSO) is utilized by incorporating modifications and improvements tailored to the specific characteristics of our energy hub optimization problem.This enhancement ensures the convergence to better solutions and enhances the overall performance of our proposed approach.

7Following, a description of energy is given, in Section II.Section III presents the goal function and associated restrictions.Suggested optimization approach through the uncertainty is discussed in Section IV.Obtained numerical analyses are provided in Section V, and finally, the conclusion is provided in Section 6.

II. THE ENERGY HUB MODEL A. THE ENERGY HUB MODEL

8The presence of energy converters throughout the energy system has been led to a significant interdependence among energy networks in several aspects.In the past, these networks utilized to operate independently of one another, with distinct infrastructures for generating, transmitting, and consuming energy at different levels; however, with the integration of energy converters, they have become interconnected, sharing similar infrastructures and functioning as a unified system.Hence, the studies of the impacts of different energy carriers on each other in the new dependent environment have received a lot of attention [23].Figure 2 shows the input-output port layout for the energy hub.In a multi-energy system, the energy hub specifies the transformation link between the importers of input and output, which is expressed as the following connection matrix [24]:

9where, m-vector I characterizes the input energy, n-vector F characterizes the output energy flows, C is the connection matrix, and all elements of the C-matrix depicts the energy proficiency.This study has considered the energy hub model through the energy generation, consumption, and storage units as shown in Fig. 3.The proposed renewable distributed energy resources (RDERs) are PV arrays and WTs.The power load includes basic demand and EV charging load, CHP, and RDERs.Society's surplus power can be sold wholesale to the electrical market.The plan to balance the thermal load also includes a thermal energy storage device.As illustrated in Fig. 3, the input gas is separated into 2 parts that are fed to the CHP and boiler.The transmit factor, denoted by v (0 ≤ v ≤ 1), determines the natural gas depletion distribution among the CHP and boiler.

B. ENERGY SOURCES MODELING a: EV CHARGE -Driving distance of EVs

10The day-to-day driving distance of EVs (DDEVs) can be modeled as a function of logarithmic distribution [25], i.e., S ∼ Log − N µ s , σ 2 s .-Arrival and departures times of EVs The owners of EVs stop charging once they leave home in the morning.The leaving time of EVs matches the normal distribution [26], where t ∼ N µ dep , σ 2 dep .The holders of EVs typically start charging once they arrive home in the evening.The arrival time of EV can be displayed as a normal distribution meaning the t ∼ N µ arr , σ 2 arr .The PDF in this form will be given as [26],

11where, µ arr = 17.6 and σ dep = 3.4.The PDs of arrival time of EVs are depicted in Fig. 5.

12-Uncoordinated charging load of EVs In this section, the Monte Carlo approach is evaluated to model the characteristics of each EV charging load.

13Next, using the characteristics of each EV load, the characteristics of the overall charging load can be obtained.To achieve sensible charging load characteristics, the simulation is carried out L times for J number of EVs.The particular stages are given as, Phase 1: Initialize the Iteration variable l to 1. Phase 2: Start iterating through each Electric Vehicle (EV) with variable j starting from 1.

14Phase 3: Generate a random number for the charging start time of the j th EV based on the Probability Density Function (PDF) of its arrival time.

15Phase 4: Generate a random number for the driving distance of the j th EV based on the PDF of its charging start time.

16Phase 5: Analyze the charging burden of the j th EV in terms of power and charging time.

17Phase 6: Match the charging load characteristics of the j th EV.

18Phase 7: If j is less than the total number of EVs (J), increment j by 1 and go back to Phase 3. Otherwise, proceed to the next phase.

19Phase 8: If the iteration variable l is less than the total number of iterations (L), increment l by 1 and go back to Phase 2. Otherwise, output the results and terminate the process.

b: THE RENEWABLE ENERGY SOURCES UNCERTAINTIES

20The renewable sources in this research work are PV panels and WT.The output energy of these sources depends on the sun's irradiance, wind velocity, and specifications of the associated units [25].The first two can be calculated based on the weather forecast.The power generated by solar panels and wind turbines is stated in ( 3) and ( 4), respectively.

21where, f PV denotes the PV output, P PV denotes the nominal generated power by the PV system in a nominal condition, and A and A r denote the forecasted and nominal amount of the irradiance, respectively.Also, a PV is the coefficient of power temperature, and T pv and T r denote the actual measured and nominal temperature, respectively.

22In which, V ci is the wind speed, V co is the cut wind speed, V r is the nominal wind speed, V is the forecast wind speed, and P WT is the output nominal power of WT.B) Performance constraints of the electricity storage device -Electricity storage device

23where, SOC e;min is the minimum and SOC e;max maximum energy in the electricity storage.ϖ h−st and ϖ h−re are the charge and discharge yields of the storage system.P dis−max and P char−max indicate the charge's maximum range and discharge by the electricity storage system [kW].

c: MODELING OF THE HYDROGEN STORAGE SYSTEM

24The HSS plays a crucial role in enhancing the efficiency of power systems by preventing energy wastage.The HSS includes various components, such as the fuel cell (FC), storage tank, and electrolyzer, each with its specified limits.During off-peak consumption periods, surplus power is utilized to produce and store hydrogen, which is mathematically represented in (7).The constraints on electrolysis are defined in ( 8) and ( 9) for upper and lower limits, respectively.Equation ( 10) calculates the maximum hydrogen production achievable through the electrolysis process [20].

25Also, the lower and higher limits of the storage are mathematically stated in (11) and (12), respectively.

26Moreover, ( 12) imposes a limit on the initial value of the hydrogen storage.

27The FC starts using hydrogen and generating power at peak-demand times when the available generations are insufficient to supply the demand.The limit of hydrogen usage is stated in (14).The lower and upper limits of electricity generation by the FC are shown in ( 15) and ( 16), respectively.

28The hydrogen consumption by the FC is mathematically expressed in (17).The pressure inside the storage is dynamically modeled by (18).Ultimately, the limit imposed on charging at the same time and discharging of the hydrogen 116654 VOLUME 11, 2023 Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.storage is stated by (19).

29The diagram of this procedure is illustrated in Fig. 6 for better comprehension.

30-Charging limits of the plug-in electric vehicles The plug-in electric vehicles (PEV) aggregator is fed by the main grid satisfying the charging capacity limit stated in the equation below:

31In which, P PEV .t.min and P PEV .t.max are the lower/upper constrains of the PEV's charging power at time t.The limits mentioned above primarily depend on the number and capacity of aggregated PEVs and are determined using real charging data from actual PEVs.These limits are crucial for effective demand-side management (DSM) of PEVs.DSM is a critical program within the smart grid that provides consumers with valuable information to make informed decisions about when to consume electricity, thereby minimizing their costs.It also aids in peak shaving and reshaping the demand curve.DSM enables operators to optimize the design, operation, and control of all executive actions, leading to positive impacts on power usage.Consequently, it enhances smart grid stability while reducing power costs and carbon emissions.Fig. 7 illustrates the diagram of the DSM's impact on demand and supply.

32-Electricity consumption limit of the PEV Another limit that must be added to the modeling is the amount of electricity consumption by the PEV.The power requirement for charging must be equal to the charging power capacity so that the PEVs have enough power for the daily drive.This limit is mathematically stated as follows:

33In which, P PEV .t is the PEVs' DSM at time t.P PEVload.t is the power requirement for uncoordinated charging power at time t, whose value is heavily dependent on the weighting parameter of PEV's required power for charging.The weighting parameter is calculated using Eq. ( 9).Also, P PEV .totaldenotes the overall power requirement for charging.

34The values of MDT j , MDT j , and P D are determined based on the test system.

d: THE WATER SUPPLY SYSTEM

35Here, the water supply system of the hub is modeled which includes a water reservoir, water well, and desalination.The water reservoir and well in the hub have different power consumption patterns.The reservoir's pump consumes power during charging, while the well's pump consumes power during discharging.To ensure a balanced water supply system, the total water requirement of the hub must be equal to the sum of water obtained from the reservoir, desalination, and the well.This relationship is mathematically modeled using Eq.(23).

36The water reservoir plays a vital role in improving the water supply system by reducing the energy cost through minimizing variations in power cost.The amount of water stored in the reservoir can be calculated using Eq. ( 24).However, there are lower and upper limits for the amount of water stored, as indicated in Eq. (25).Constraints are placed on the charge and discharge of water storage, which are expressed in Eqs ( 26) and (27), respectively, to ensure efficient operation.Additionally, to avoid simultaneous charging and discharging, Eq. ( 28) is implemented.The water volume in the well is assumed to be constant due to the significant underground water storage, and the optimization duration is limited to one day, which is considered relatively short [12].

37To calculate the power used in the pump, Eq. ( 29) can be used which is a function of the flow of water and the water head, i.e. the height difference between the water level and the starting point for the water pump [12].

38If the one-hour interval is used, Eq. ( 30) and ( 31) can be used as simplifications of the equation above [12].

39where, ψ = 3.6 × 10 6 , which is used for converting power consumed for 1 second in W unit to the power consumed in 1 hour in kW.Also, the water level is illustrated in Fig. 8.The power used in the desalination process can be calculated using the equation below [12].Also, the desalination device works based on reverse osmosis of seawater technology.In addition, the salinity of 35 psµ is considered for the seawater in this work.

40The total electricity consumed, given in Eq. ( 34), to supply the demanded water by the energy hub is composed of the power consumed by the pumps in the water well and reservoir, and the desalination process.

41The CHP unit, boiler, RDERs, and thermal energy storage unit that make up the energy hub system allow us to represent the cost of operation and maintenance as follows:

42The operation and charges of maintenance for RDERs are same as total output energy multiplied through the coefficient of unit maintenance cost [27]:

43The CHP unit operation and maintenance cost is comprised of fuel cost and price of maintenance based on the following evaluation [28]:

44Fuel and maintenance costs, which may be computed as follows, comprise the boiler operating and maintenance costs [28]:

45A unit maintenance cost coefficient compounds the entire thermal charge/discharge to determine the cost of thermal energy storage maintenance [28].

46C HS OM = t P S dch,t + P S ch,t .OM HS. t (40) The cost of EV battery deterioration is taken into account to achieve the economic management of EV charge/discharge and is calculated as follows: Applying the DR program can effectively reduce peak-load values and shift energy consumption to off-peak hours by providing incentives to consumers.This helps to decrease the load during high-price periods and increase it during lowprice periods.However, modifying the main power usage pattern may cause inconvenience to consumers, which can impact their willingness to participate in the DR program.Therefore, the price of the electrical/thermal DR program must be taken into consideration.In this research, it is expected that adjusting the load in each scheduling period may cause inconvenience for the consumers.The cost of this inconvenience is directly related to the variation in demand.This relationship is expressed as follows [29]: Similar to the electric DRP, Eq. ( 49) ensures a balance between the thermal load transmitted in the upward and downward directions.The upper limits of transmitted thermal load in the upward and downward directions are stated in Eqs. ( 50) and (51), respectively.Eq. ( 52) prevents the energy hub from transmitting thermal load in both the upward and downward directions simultaneously.

47-Limits of the EVs The limits of the EVs are as follows [30].The balances among load and supply should maintain in the energy hub system for electric energy is stated by Eq. (65).Temporarily, the supplied thermal energy must be sufficient to meet the thermal demand which is stated by Eq. (66).Natural gas intake and gas-to-heat conversion efficiency are used in Eq. ( 67) to explain the thermal energy produced by the boiler.According to the input natural gas and effectiveness of CHP, the energy generation by CHP is evaluated by Eq. ( 68).

48-Limits of input natural gas

49The minimum and maximum amounts of natural gas input for the CHP and boiler are required.The restrictions are listed as:

50The thermal pipe must have minimum/maximum limits for thermal power transmission.

51• Limits of thermal power transmission 0 ≤ P HCHP T + P HB t + P S dch,t − P S ch,t ≤ P H max (71)

52-Limits of transmission power The transmission power between the energy hub and grid cannot exceed the transmission limitations to ensure secure power system operation.

53Once the obtaining power from the network, the maximum transmission energy is limited by Eq. ( 73) and when selling energy to the energy network, it is limited by Eq. (73).

III. PARTICLE SWARM OPTIMIZATION A. THE CLASSIC PSO

54The PSO is a metaheuristic algorithm which is utilized to solve different engineering problems for a complex problem with simplicity, robustness, and high efficiency [31].In this algorithm, the i th candidate's location vector is

55where, D indicates the dimension and i = 1, 2, . . ., N .Also, the speed vector is

56In which, O bj is the fitness function of the candidate.

B. IMPROVED PSO

57The enhancement proposed in this work includes tuning the inertia parameter, and acceleration parameter, and introducing of human interaction modeling to the algorithm which will boost the convergence speed and achieve a better solution without getting trapped in a local optimum [32].In the enhanced version, the speeds of the candidates are updated as follows:

58where, w is the inertia parameter, which is multiplied by the speed of the candidate in the last iteration in the first term of Eq. ( 78).Additionally, other modifications have been applied to the algorithm by adjusting its parameters while keeping its basic form intact.As mentioned earlier, adjusting the inertia parameter allows the algorithm to perform different types of searches.A large value of the inertia parameter puts the algorithm in global search mode, while a small value puts it in local search mode.For an optimization algorithm to perform well, it must have an adaptive inertia parameter that changes dynamically.The adaptive approach to determining the value of the inertia parameter is shown mathematically in Eq. (80), and it has been employed in [33] and [34].In the first approach, empirical tests have been conducted where the parameter varies between 0.4 and 0.9.

59Here, s is the mutation parameter determined using Eq.(81).The starting and final values of the inertia parameter are 0.4 and 0.9, respectively.

60Here, dis i denotes the average of distances between candidate i and other candidates which is calculated based on the Euclidian approach.dis i , where dis i ∈ [0, 1], denotes the best candidate globally which is shown by dis g .Moreover, the maximum distance, shown by dis max , and minimum distance, shown by dis min , are calculated based on the comparisons made among all of the dis i 's.Similar to PSO, the acceleration parameters have constant values of usually 2.

61When the social element C 2 is larger than the cognitive element C 1 , the algorithm will be in local search mode, and when C 1 is greater than C 2 , the algorithm will be in global search 116658 VOLUME 11, 2023 Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.

62mode.To achieve a more accurate optimum solution, these parameters change linearly over the iteration t as follows:

63Here, C 1i C 1f , C 2i , and C 2f are the starting and final values of the acceleration parameters.Iter max denotes the maximum iteration.C 3 denotes the attraction parameters which has a value of 0.4 here.Also, C 4 is the speed scaling parameter which is 0.7 in this work.The inertia and acceleration parameters have important influences on the performance of the optimization algorithm [33].The original PSO is improved by applying other searching methods [34].Implementing modifications such as mutation and crossover in the PSO has increased the population diversity which can help the algorithm avoid local optima [34].In Eq. ( 78), the second term consists of difference of the best location pbest d i (t) and current location of the candidate

64to increase the convergence speed and expected optimum point as a particle.F F max in this term is the function assessment ratio.In this part the velocity is not improved while the distance of pbest d i (t) and x d i (t) are declined.The third term in Eq. ( 78) focuses on the local search for the best solution in which the candidates analyze their close vicinity to find the best candidate.lbest d i (t) denotes the best position locally and is calculated as follows:

65The last term in Eq. (78) introduces the concept of voting, where candidates follow the leading candidate they have voted for to get closer to it.In each iteration, due to the superior leadership of the current leader, the opposition vote (opVote) is decreased, and the governance vote (goVote) is increased.This diminishes the leading ability of the opposition leader.However, if the main leader becomes stuck in a local minimum, the opposition leader takes over the lead, and the candidates follow it towards the global minimum.

66To control the impact of the opposition leader, e (1−vote Leader ) is multiplied by the fourth term.The voting process follows the roulette wheel concept, and normalization is used to maintain asymmetric ranges of opVote and goVote between 0 and 1.To generate the initial population and allow candidates to choose their leading candidate, a preliminary biasing value is applied.The fittest candidate is chosen as the governor, and the next fittest candidate becomes the opposition.If goVote = ϕ, opVote = 1 − ϕ, where ϕ biases the voting.In the subsequent iterations, each candidate participates in voting (vote d i ), which is a random number between 0 and 1.The leading candidate is determined as follows:

67After determining the leading candidate, goVote and opVote are updated.Also, the number of votes is updated using the equation below:

68where, M denotes the count of votes for the leading candidate.

69The increasing form of the voting consists of the votes given for any of the candidates.These increase votes determine which of the two leaders is the main one.The following equations are used to normalize the votes gathered after each iteration.

70vote Leader in the fourth term of Eq. ( 78) denotes the standardized vote count expected by one of the leaders.The impact of e (1−vote Leader ) in this term is explained in the following.If Leader d i = Governor d , then vote Leader = goVote.Since goVote is close to 1, the value of e (1−vote Leader ) will incline to 1. On the other hand, if Leader d i = Opposition d , then vote Leader = opVote.And since opVote has a very small value, e (1−vote Leader ) will have a value close to e 1 or 2.3.

71To update Governor d and oppoisiton d , the equation below is used.

72Here, φ and rand d are randomly chosen numbers between 0 and 1. d = 1, 2, . . ., D represents the dimension.oppoisiton d is randomly chosen from a uniformly distributed space between X min and X max , otherwise, it is taken from the fittest candidate.

IV. NUMERICAL RESULTS AND ANALYSIS A. DATA OF INPUT AND SIMULATION SETTINGS

73The planning horizon is set for 1 day, and it is divided into 24 one-hour intervals.The considered energy hub system involves 300 electric vehicles (EVs), and the specifications of the EV batteries are evaluated to efficiently simulate and plan the charging.The charging energy for the EVs follows the daily load curve.The basic parameters of the EVs are presented in Table 1 [25].Fig. 9 illustrates the uncoordinated charging demand for different numbers of EVs.The real-time electricity prices vary within the specified price bounds.The lower bound of the projected energy price is shown in Fig. 10.The parameter dt represents the highest price uncertainty, estimated to be 20% of the predicted price's lower bound.

74This parameter can be obtained based on available technologies, but its value can be adjusted based on actual forecasted outcomes in practice.The selling price of surplus electricity to the grid is expected to be 10% lower than the corresponding lower bound of electricity price.Fig. 11 displays the electrical and thermal load (excluding EV charging) profiles.Fig. 12 shows the output energy characteristics of PV and wind turbine (WT) sources [35], [36].Additionally, Table 2 presents factors related to thermal energy storage, while Table 3 lists additional simulation variables [29], [35], [36].

B. ANALYSIS AND DISCUSSION

75In order to analyze the effects of the coordinated charge/discharge method of DR and EVs through planning outcomes, three different scenarios have been considered.In every planned scenario, the pricing ambiguities have been assessed.The 3-forms of planning scenarios defined as:

76Planning scenario 1: A simple planning scenario, where the EVs are in uncoordinated charge mode, is considered to show how effectively EVs' coordinated charge/discharge mode affects the total pricing.

77Planning scenario 2: in comparison to planning scenario 1, the EVs will be in coordinated charge/discharge mode in this situation.

78Planning scenario 3: in this planning scenario, to show the efficiency of the DR, the EVs will be in coordinated charge/discharge mode.In addition, the DR programs are considered.

1) TRANSMISSION ANALYSIS AND COMPARATIVE OUTCOMES

79The results of thermal and electrical energy transmission under planning scenario 1 are shown in Fig. 13.

80In Fig. 13 (a), it can be observed that the EVs' charging demand is integrated under uncoordinated charging mode, as the EV owners start charging once they reach their destination at sunset.The CHP produces electricity during high-price periods (9-20 h) to reduce the overall energy consumption cost.As depicted in Fig. 13 (b), the CHP also generates heat during high electricity price periods.Consequently, the boiler generates heat during low-energy-cost periods (20-24 h and 5-10 h) to lower the cost of thermal energy consumption.Additionally, the heat storage unit plays a role in load planning under scenario 1.The excess heat generated by the CHP is used to charge the heat storage unit during 15-18 h.On days with negative values, the heat storage unit is discharged, as indicated in Fig. 13 (b).

81Figure 14 displays the thermal and electrical energy transport outcomes under Planning Scenario 2. The coordinated charge/discharge and the shifting of EV charging requirements from high-electricity-price times to low-electricityprice ones will be observed.This is due to the fact that the modification in the load charging of EVs will lead to a reduction in the cost of electricity consumption.As can be seen, the EVs aren't charges in Fig. 14 (a) in every stage, due to the degradation cost of EV units is high, and the discharged power from the EVs should be purchased back by the EV owner to provide the energy needed to drive, and the electricity selling condition to the network or obtaining power to meet the demand increases the battery degradation price for the EV holders.Fig. 15 shows the outcomes of thermal and electrical energy transfer under planning scenario 3. It is clear from comparing the actual execution of the electrical and thermal DR programs to planned scenarios 1 and 2 that the thermal and electrical load requirements have altered.Fig. 15 presents the loads earlier and later executing the thermal and electrical DR program.

82After execution of the thermal/electrical DR, the load of the energy hub has moved from high-energy-cost aeras (9-21 h) to low-energy-cost periods for decreasing the price of buying energy from the network.

83In response to high energy prices, the energy hub increases the energy output of the CHP to lower the purchasing cost of electricity.Since the CHP can simultaneously produce thermal and electrical energy, when the electrical energy output is increased during high-energy-cost periods, the thermal energy output also increases as a byproduct.After applying DR, the total thermal load is increased during times of high energy costs (13-19 h) to utilize the increased thermal energy output effectively.in overall cost compared to scenario 1, indicating that coordinated charging and discharging of EVs successfully reduce the electricity cost for customers.Furthermore, scenario 3 has a lower overall cost than scenario 2, with a reduction of 5.76%.This demonstrates that implementing the DR program can help customers lower their overall costs by shifting their loads intelligently.

2) THE IMPACT OF EV DEGRADATION

84According to the high degradation cost of EV units, EV holders are unwilling to discharge their EVs so as to increase the lifespan of their EV batteries.Hence, the EV degradation cost has a critical impact on the planning outcomes.This part presents the effects of EV degradation.The overall costs under various scenarios including/excluding EV degradation cost are depicted in Fig. 16.It can be seen in this figure that the overall cost of the scenario without considering the EV degradation is significantly lower than the scenario considering EV degradation cost which suggests that the EV degradation cost is not negligible.

85The planning outcomes of scenarios 2 and 3, where EVs are in synchronized charge/discharge mode, are considered as examples.Fig. 17 displays the transmission results in scenario 2 without accounting for the cost of EV depreciation.In this case, the results show that the EVs are charged during lowenergy-cost times and discharged during high-energy-cost times (13-20 h) to reduce the quantity power purchased when the cost is high.The negative values in Fig. 17 results, the EVs are charged during low-energy-cost periods (22-24 h and 1-10 h) and discharged during high-energy-cost periods (12-20 h) to minimize the electricity consumption cost during peak hours.

86Additionally, the energy hub sells excess energy to the network to gain profit during high-energy-cost periods (18 h).It can be inferred that without considering the EV degradation cost, the EVs are charged and discharged constantly to reduce the overall cost of the energy system.With the rapid improvement of EV batteries and decreased battery cost, EVs are expected to play an increasingly critical role in the system energy management.

C. BENCHMARK ANALYSIS

87In this section, an optimization analysis is presented to demonstrate the efficiency of the proposed algorithm.To achieve this, various mathematical benchmark functions are considered and compared with different metaheuristic algorithms.The CEC 2020 competition test bed [37] is utilized, which consists of 10 benchmark functions with 20 dimensions.The numerical results are presented in Table 5, showcasing the best, worst, median, mean, and standard deviation (SD) values.The evaluated errors are 116662 VOLUME 11, 2023 Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.calculated as f (x)-f (x * ), where x represents the best solution and x * denotes the global optimum value.

88Moreover, to further illustrate the efficiency of the proposed algorithm, Table 6 presents the results of the Wilcoxon signed-rank test (α = 0.05) for comparisons with other well-known optimization algorithms, including the genetic algorithm (GA) [38], the classic version of PSO, the artificial bee colony (ABC) [39], and the gravitational search algorithm (GSA) [40].

89According to Table 6, the sum of ranks for the functions is denoted by R + and the sum of ranks for the opposing algorithms is denoted by R − .Based on the results in the table, it can be confidently asserted that the proposed algorithm surpasses all other optimization algorithms in terms of performance and effectiveness.

V. CONCLUSION

90A crucial concern in optimal load planning in energy systems was discussed and addressed in this study.An optimum load flow model based on the enhanced locust search algorithm was proposed for the energy management of community energy hubs.The model incorporated various energy generation resources, EVs, and analyzed the uncertainties using Monte Carlo simulation.The results demonstrated the effectiveness of coordinated charge/discharge modes for EVs and the cost-saving potential of DR programs.Simulation results revealed that the coordinated charge/discharge mode of EV is effective, and cooperative charging/discharging strategy of an EV is able to save the overall costs for 12% as compared to uncoordinated charging approach.The results additionally show a 5% overall cost reduction once DR program was implemented.The proposed strategy provided valuable insights into demand transmission in community energy hubs with high EV penetration.In this process, the improved version of the PSO algorithm was utilized as a solution model for resolving the presented optimization problem.The proposed strategy provides a new insight into the demand transmission of community energy hubs with a high penetration of EVs.

FIGURE 1 .

91FIGURE 1. Main framework of energy hub.

FIGURE 2 .

92FIGURE 2. The strategy of input/output port in energy hub.

FIGURE 3 .

93FIGURE 3. A description of the potential energy hub.

FIGURE 4 .

94FIGURE 4. The PDs of arrival time of EVs.

FIGURE 5 .

95FIGURE 5.The schematics of the HSS.

FIGURE 6 .

96FIGURE 6.The impacts of the DSM program on the electricity price.

97T t=1 P PEV .t+ T t=1 P PEVload.t= P PEV .total

FIGURE 7 .

98FIGURE 7. The water storage (A), the water well (B).

Fig. 8 (

99a) illustrate the schematics of the water reservoir and Fig. 8 (b) presents the water well.

FIGURE 8 .

100FIGURE 8.The EVs uncoordinated charging demand.

FIGURE 9 .

101FIGURE 9.The predicted price of energy's lower limit.

FIGURE 10 .

102FIGURE 10.Thermal and electrical load.

FIGURE 11 .

103FIGURE 11.The output energy profile of PV and WT.

FIGURE 14 .

104FIGURE 14.The result of transmission under planning scenario 3.

FIGURE 15 .

105FIGURE 15.The overall cost under various scenarios including/excluding the EV degradation cost.

FIGURE 16 .

106FIGURE 16.The planning outcomes in planning scenario 2 excluding the degradation cost of EVs.

107represent the EVs being discharged during high-energy-cost periods.Fig.16presents the outcomes of transmission in scenario 2, excluding the EV degradation cost.Similar to the previous

FIGURE 17 .

108FIGURE 17.The planning outcomes in planning scenario 3 excluding the degradation cost of EVs.

109[32]the speed of the d th element of the i th candidate in the t th iteration.C 1 and C 2 are the constant parameter where C 1 C 2 ̸ = 0. φ 1 and φ 2 are random values between 0 and 1. pbest i , which is a set composed of pbest 1 i , pbest 2 i , ..., pbest d i , indicates the i th candidate's best location in the t th iteration.Also, gbest d indicates the best global location achieved so far from all of the candidates in the t th iteration[32].The pbest i and gbest in the improved PSO (IPSO) are calculated as follows:

110= min O bj pbest 1 (t) , O bj pbest 2 (t) , . . ., O bj pbest N (t)

TABLE 1 .

111[24]variables of the used EVs[24].

TABLE 2 .

112The thermal energy storage parameters.

TABLE 3 .

113Remaining considered variables in simulation.

TABLE 4 .

114The comparisons of the price of various planning scenarios.FIGURE 13.The result of transmission under planning scenario 2.

115Table 4 presents pricing comparisons for several planning scenarios.Scenario 2 shows a 12% reduction

TABLE 5 .

116The CEC 2020 test function results (for D=20).

TABLE 6 .

117Obtained results for Wilcoxon signed-rank test.

참고문헌 40건

  1. Micro-grid Environmental Economic Dispatch Using Improved Linearly Decreasing Weight Particle Swarm Optimization Lecture notes in electrical engineering · Springer Science+Business Media · 2013 10.1007/978-3-319-01273-5_54
  2. Multi-objective economic emission load dispatch problem with trust-region strategy Electric Power Systems Research · Elsevier BV · 2013 10.1016/j.epsr.2013.11.003
  3. Energy hubs for the future IEEE Power and Energy Magazine · Institute of Electrical and Electronics Engineers · 2007 10.1109/mpae.2007.264850
  4. Optimal electrical and thermal energy management of a residential energy hub, integrating demand response and energy storage system Energy and Buildings · Elsevier BV · 2014 10.1016/j.enbuild.2014.12.039
  5. Dynamic economic dispatch of a microgrid: Mathematical models and solution algorithm International Journal of Electrical Power & Energy Systems · Elsevier BV · 2014 10.1016/j.ijepes.2014.06.002
  6. Coordinated Charging of Electric Vehicles for Congestion Prevention in the Distribution Grid IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2013 10.1109/tsg.2013.2279007
  7. Modeling and optimization of a network of energy hubs to improve economic and emission considerations Energy · Elsevier BV · 2015 10.1016/j.energy.2015.10.079
  8. Stochastic optimization of energy hub operation with consideration of thermal energy market and demand response Energy Conversion and Management · Elsevier BV · 2017 10.1016/j.enconman.2017.04.074
  9. An integrated approach to design site specific distributed electrical hubs combining optimization, multi-criterion assessment and decision making Energy · Elsevier BV · 2017 10.1016/j.energy.2017.06.002
  10. Multi-objective biogeography-based optimization for dynamic economic emission load dispatch considering plug-in electric vehicles charging Energy · Elsevier BV · 2017 10.1016/j.energy.2017.06.102
  11. Optimal operation of interconnected energy hubs by using decomposed hybrid particle swarm and interior-point approach International Journal of Electrical Power & Energy Systems · Elsevier BV · 2017 10.1016/j.ijepes.2017.08.004
  12. Optimal operation of multi-energy systems in distributed energy network considering energy storage 2017 10.1109/ei2.2017.8245261
  13. Robust multi-objective optimization of a renewable based hybrid power system Applied Energy · Elsevier BV · 2018 10.1016/j.apenergy.2018.04.032
  14. Multi-objective optimal load dispatch of microgrid with stochastic access of electric vehicles Journal of Cleaner Production · Elsevier BV · 2018 10.1016/j.jclepro.2018.05.190
  15. Enhancing Power Quality in Microgrids With a New Online Control Strategy for DSTATCOM Using Reinforcement Learning Algorithm IEEE Access · Institute of Electrical and Electronics Engineers · 2018 10.1109/access.2018.2852941
  16. A decentralized robust model for coordinated operation of smart distribution network and electric vehicle aggregators International Journal of Electrical Power & Energy Systems · Elsevier BV · 2018 10.1016/j.ijepes.2018.07.054
  17. Generic modelling and optimal day-ahead dispatch of micro-energy system considering the price-based integrated demand response Energy · Elsevier BV · 2019 10.1016/j.energy.2019.04.004
  18. A robust optimization approach for optimal load dispatch of community energy hub Applied Energy · Elsevier BV · 2019 10.1016/j.apenergy.2019.114195
  19. An Improved Multicriteria Optimization Method for Solving the Electric Vehicles Planning Issue in Smart Grids via Green Energy Sources IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2960557
  20. Optimal household energy management based on smart residential energy hub considering uncertain behaviors Energy · Elsevier BV · 2020 10.1016/j.energy.2020.117052
  21. Multi-objective dynamic and static reconfiguration with optimized allocation of PV-DG and battery energy storage system Renewable and Sustainable Energy Reviews · Elsevier BV · 2020 10.1016/j.rser.2020.109777
  22. Integrated approach for optimal techno-economic planning for high renewable energy-based isolated microgrid considering cost of energy storage and demand response strategies Energy Conversion and Management · Elsevier BV · 2020 10.1016/j.enconman.2020.112917
  23. An n-state switching PSO algorithm for scalable optimization Soft Computing · Springer Science+Business Media · 2020 10.1007/s00500-020-05069-2
  24. Dynamic economic dispatch of islanded water-energy microgrids with smart building thermal energy management system Applied Energy · Elsevier BV · 2020 10.1016/j.apenergy.2020.115422
  25. Evaluating the Performance of Adaptive GainingSharing Knowledge Based Algorithm on CEC 2020 Benchmark Problems 2020 10.1109/cec48606.2020.9185901
  26. A Novel Gate Resource Allocation Method Using Improved PSO-Based QEA IEEE Transactions on Intelligent Transportation Systems · Institute of Electrical and Electronics Engineers · 2020 10.1109/tits.2020.3025796
  27. A comprehensive review on renewable energy integration for combined heat and power production Energy Conversion and Management · Elsevier BV · 2020 10.1016/j.enconman.2020.113454
  28. Gravitational search algorithm: a comprehensive analysis of recent variants Multimedia Tools and Applications · Springer Science+Business Media · 2020 10.1007/s11042-020-09831-4
  29. Distributed planning of electricity and natural gas networks and energy hubs Applied Energy · Elsevier BV · 2020 10.1016/j.apenergy.2020.116090
  30. Combined economic and emission power dispatch problems through multi-objective squirrel search algorithm Applied Soft Computing · Elsevier BV · 2020 10.1016/j.asoc.2020.106950
  31. Design and dispatching of all-clean energy producing-consuming system with six-energy coupling International Journal of Electrical Power & Energy Systems · Elsevier BV · 2021 10.1016/j.ijepes.2021.106801
  32. Investigation in economic analysis of microgrids based on renewable energy uncertainty and demand response in the electricity market Energy · Elsevier BV · 2021 10.1016/j.energy.2021.120247
  33. Distributed algorithm based on consensus control strategy for dynamic economic dispatch problem International Journal of Electrical Power & Energy Systems · Elsevier BV · 2021 10.1016/j.ijepes.2021.106833
  34. An estimation–Based optimal scheduling model for settable renewable penetration level in energy hubs Electric Power Systems Research · Elsevier BV · 2021 10.1016/j.epsr.2021.107230
  35. An enhanced fast non-dominated solution sorting genetic algorithm for multi-objective problems Information Sciences · Elsevier BV · 2021 10.1016/j.ins.2021.11.052
  36. Artificial Bee Colony Algorithm with Distant Savants for constrained optimization Applied Soft Computing · Elsevier BV · 2021 10.1016/j.asoc.2021.108343
  37. Fractional-Order Controller for Course-Keeping of Underactuated Surface Vessels Based on Frequency Domain Specification and Improved Particle Swarm Optimization Algorithm Applied Sciences · Multidisciplinary Digital Publishing Institute · 2022 10.3390/app12063139
  38. Optimal Flood-Control Operation of Cascade Reservoirs Using an Improved Particle Swarm Optimization Algorithm Water · Multidisciplinary Digital Publishing Institute · 2022 10.3390/w14081239
  39. Electric vehicle fast charging station design by considering probabilistic model of renewable energy source and demand response Energy · Elsevier BV · 2022 10.1016/j.energy.2022.126545
  40. Day-ahead economical planning of multi-vector energy district considering demand response program Applied Energy · Elsevier BV · 2022 10.1016/j.apenergy.2022.120351