<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1 20151215//EN" "http://jats.nlm.nih.gov/publishing/1.1/JATS-journalpublishing1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" article-type="research-article" dtd-version="1.1">
<front>
<journal-meta>
<journal-id journal-id-type="pmc">EE</journal-id>
<journal-id journal-id-type="nlm-ta">EE</journal-id>
<journal-id journal-id-type="publisher-id">EE</journal-id>
<journal-title-group>
<journal-title>Energy Engineering</journal-title>
</journal-title-group>
<issn pub-type="epub">1546-0118</issn>
<issn pub-type="ppub">0199-8595</issn>
<publisher>
<publisher-name>Tech Science Press</publisher-name>
<publisher-loc>USA</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">21410</article-id>
<article-id pub-id-type="doi">10.32604/ee.2022.021410</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Article</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>Modeling the Proposal of the Simultaneous Purchases and Sales of Electricity and Gas for the Energy Market in a Microgrid Using the Harmony Search&#x00A0;Algorithm</article-title>
<alt-title alt-title-type="left-running-head">Modeling the Proposal of the Simultaneous Purchases and Sales of Electricity and Gas for the Energy Market in a Microgrid Using the Harmony Search Algorithm</alt-title>
<alt-title alt-title-type="right-running-head">Modeling the Proposal of the Simultaneous Purchases and Sales of Electricity and Gas for the Energy Market in a Microgrid Using the Harmony Search Algorithm</alt-title>
</title-group>
<contrib-group content-type="authors">
<contrib id="author-1" contrib-type="author">
<name name-style="western"><surname>Zhou</surname><given-names>Zinan</given-names>
</name></contrib>
<contrib id="author-2" contrib-type="author">
<name name-style="western"><surname>Chen</surname><given-names>Yirun</given-names>
</name></contrib>
<contrib id="author-3" contrib-type="author" corresp="yes">
<name name-style="western"><surname>Dai</surname><given-names>Wensheng</given-names>
</name><email>daiws@ruc.edu.cn</email></contrib>
<aff><institution>Financial School, China Financial Policy Research Center, International Money Institute, Renmin University of China</institution>, <addr-line>Beijing, 100872</addr-line>, <country>China</country></aff>
</contrib-group>
<author-notes>
<corresp id="cor1"><label>&#x002A;</label>Corresponding Author: Wensheng Dai. Email: <email>daiws@ruc.edu.cn</email></corresp>
</author-notes>
<pub-date pub-type="epub" date-type="pub" iso-8601-date="2022-09-13">
<day>13</day>
<month>09</month>
<year>2022</year>
</pub-date>
<volume>119</volume>
<issue>6</issue>
<fpage>2681</fpage>
<lpage>2709</lpage>
<history>
<date date-type="received">
<day>13</day>
<month>1</month>
<year>2022</year>
</date>
<date date-type="accepted">
<day>12</day>
<month>4</month>
<year>2022</year>
</date>
</history>
<permissions>
<copyright-statement>&#x00A9; 2022 Zhou, Chen and Dai</copyright-statement>
<copyright-year>2022</copyright-year>
<copyright-holder>Zhou, Chen and Dai</copyright-holder>
<license xlink:href="https://creativecommons.org/licenses/by/4.0/">
<license-p>This work is licensed under a <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
</license>
</permissions>
<self-uri content-type="pdf" xlink:href="TSP_EE_21410.pdf"></self-uri>
<abstract>
<p>The use of different energy carriers together, known as an energy hub, has been a hot topic of research in recent years amongst scientists and researchers. The term energy hub refers to the simultaneous operation of various infrastructures for energy generation and transfer, which has gained momentum in the form of microgrids (MGs). This paper introduces a new strategy for the optimal performance of an MG consisting of different energy carriers for each day. In a smart distribution network (DN), MGs can reduce their own costs in the previous-day market by bidding on sales and purchases. The sales and purchases bidding problem is challenging due to different uncertainties, however. This paper proposes a two-stage strategy for making an optimal bid on electricity sales and purchases with electricity and gas price dependency in the previous-day and real-time markets for an energy hub. In this model, the MG behavior regarding the electricity and gas energy sales/purchase, the simultaneous effects of electricity and gas prices, as well as the energy carriers&#x2019; dependence on one another are all examined. Due to the inherent uncertainty in the sources of clean energy production, the probabilistic model and the production and reduction scenario have been used in the paper to cover this issue. In the proposed grid, energy sales/purchases are presented in a multi-carrier MG in a two-stage model. This model is solved by using the harmony search algorithm in MATLAB. Numeric results demonstrate the benefits of this model in reducing energy hub costs of operation.</p>
</abstract>
<kwd-group kwd-group-type="author">
<kwd>Energy management</kwd>
<kwd>energy market</kwd>
<kwd>operation</kwd>
<kwd>multi-carrier microgrids</kwd>
<kwd>uncertainty</kwd>
<kwd>harmony search algorithm</kwd>
<kwd>HSA</kwd>
<kwd>microgrids</kwd>
<kwd>MGs</kwd>
<kwd>distribution network</kwd>
<kwd>DN</kwd>
<kwd>MATLAB</kwd>
</kwd-group>
</article-meta>
</front>
<body>
<sec id="s1">
<label>1</label>
<title>Introduction</title>
<p>Microgrids (MGs) are a controllable set of distributed generation (DG) sources such as wind turbines, diesel generators, fuel cells, photovoltaic (PV) systems, energy storage systems (ESS) and loads that can supply electric and, if necessary, thermal power as well. MGs can be operated in grid-connected or islanded modes [<xref ref-type="bibr" rid="ref-1">1</xref>], and they confer numerous benefits for both the consumer, as well as the electricity generation companies generating. From the customers&#x2019; point of view, an MG can simultaneously supply electricity and heating, increase confidence within the society and infrastructure, reduce greenhouse gas emissions and improve life quality simultaneously. From the electricity companies&#x2019; point of view, MG use can reduce the consumer demand and, therefore, decrease transfer line development facilities, remove peak consumption points and, thus, reduce network losses [<xref ref-type="bibr" rid="ref-2">2</xref>].</p>
<p>Energy, and electricity in particular, is a major factor influencing the countries&#x2019; economic growth and growth opportunities in nations across the entire planet. Traditionally, meeting the demand safely requires the expansion of generation and transfer capacities of the power system [<xref ref-type="bibr" rid="ref-3">3</xref>]. Energy management has long been a fundamental aspect of power systems and has recently gained momentum in the world of MGs and their technicians and researchers too. Industrial, commercial and residential consumers are in contact with energy carrier grids such as regional electricity, natural gas, heating, or cooling systems [<xref ref-type="bibr" rid="ref-4">4</xref>]. Various previous studies have focused on energy infrastructure, but few works have investigated the combination of these systems together, which confers numerous advantages in comparison.</p>
<p>One such advantage is the use of combined and flexible properties of these systems. For instance, natural gas grids can store energy easily and cost-effectively. The electricity system can transfer energy from long distances with relatively little loss. Therefore, aggregating these two grids and exploiting the advantage of each will promote system confidence and efficiency and lead to optimal performances for each as well [<xref ref-type="bibr" rid="ref-5">5</xref>]. Several flexible capabilities in the structure and operation of MGs require a comprehensive framework for explaining the effects of combining various energy carriers on economic and technical indicators of energy systems.</p>
<p>In recent years, such a framework has, in fact, been discussed in general to provide a combination of various energy carriers, conversion and storage to supply the consumer-side load [<xref ref-type="bibr" rid="ref-6">6</xref>]. In [<xref ref-type="bibr" rid="ref-7">7</xref>], an energy management system was proposed for a grid-connected MG with different renewable energy sources (RES), at its disposal, including photovoltaic (PV) and, wind turbine (WT) systems, as well as and a battery energy storage system (BESS). A mathematical model was presented for this PV system which. This model evaluated the effects of solar irradiation in different days and seasons on the MG programming.</p>
<p>In [<xref ref-type="bibr" rid="ref-8">8</xref>], a bi-level energy management strategy was proposed to optimize the MG cost of operations and uncertainty management. This method was tested on a standard system with different scenarios. In [<xref ref-type="bibr" rid="ref-9">9</xref>], a combined independent MG system comprising a battery, RES such as wind and solar energy (FC), and an energy storage system (ESS) was introduced. A battery state of charge (SOC)-based energy management strategy was developed and experimentally implemented to maintain energy balance in the combined system. In [<xref ref-type="bibr" rid="ref-10">10</xref>], a multi-objective evaluation of the performance of an MCMG was presented in the presence of technologies, including CAES and P2G storage systems. This model aimed to minimize operation cost and environmental pollution.</p>
<p>In [<xref ref-type="bibr" rid="ref-11">11</xref>], the MG operation with a focus on ESSs was explored. This paper performed 24-h scheduling for different units, in which RES fluctuations were examined. In [<xref ref-type="bibr" rid="ref-12">12</xref>], an energy hub system comprising several parts was used. The electrical energy hub comprised a combined cooling, heating and electrical energy system integrated with RES such as WT and PV systems. ESSs were also used to coordinate and improve confidence in the entire system. The proposed model aimed to examine the effects of a time-based demand-response (DR) program on reducing operating costs and CO<sub>2</sub> pollution.</p>
<p>In [<xref ref-type="bibr" rid="ref-13">13</xref>], a robust operational model and an investment model were proposed for participating in supplying the power and heating demands of a distribution system-connected MG. The optimization algorithm decided on the best investment and operation of a combined heat and power (CHP) system, boiler, PV power generation and BESS. In [<xref ref-type="bibr" rid="ref-14">14</xref>], a stochastic framework was provided for optimally scheduling MGs by considering the islanded mode. In this approach, different uncertainties were taken into account and the daily scheduling of resources was determined by considering emergency conditions.</p>
<p>In [<xref ref-type="bibr" rid="ref-15">15</xref>], two-level stochastic programming was introduced while considering solar and wind sources, ESS and DR under probable outages of generation units. The uncertainties in the problem were modeled through scenarios and the intended scenarios were generated by the Monte Carlo method. Constraints on the participation of units were included in the first stage and constraints on the units&#x2019; optimal distribution and DR were included in the second stage.</p>
<p>In [<xref ref-type="bibr" rid="ref-16">16</xref>], the participation of an aggregator of a hybrid power station comprising WT and responsiveness loads was enabled to achieve the best presentable bid to the market for maximizing profits by using risk-based three-stage programming. In [<xref ref-type="bibr" rid="ref-17">17</xref>], a two-storage energy management strategy was designed for an MG with RES, ESS, residential and industrial loads, which can predict the stochastic electricity demand and electricity price based on operational uncertainties. In [<xref ref-type="bibr" rid="ref-18">18</xref>], a two-stage stochastic model was proposed for MG energy source management based on RES generations, EVs and market price uncertainty.</p>
<p>In [<xref ref-type="bibr" rid="ref-19">19</xref>], a two-stage stochastic framework was presented for short-term MG operation scheduling, including electricity and natural gas grids, composed of an energy hub, RES and ESS, while considering predicted uncertainties. In [<xref ref-type="bibr" rid="ref-20">20</xref>], a probabilistic optimization model was presented on a multi-carrier MG. Dispersed generations (DGs) and converters such as transformers, simultaneous generation converters, boilers, solar and wind power stations, as well as battery and heating systems were included in the proposed MG.</p>
<p>In [<xref ref-type="bibr" rid="ref-21">21</xref>], a multi-objective distribution problem was solved in an MG, including cost and emission minimization, while considering DR programs and uncertainty. A probabilistic framework based on scenarios was considered to overcome the uncertainties in MG optimal energy management. In [<xref ref-type="bibr" rid="ref-22">22</xref>], a multi-energy MG that could simultaneously provide electric and thermal energy to the customers was presented to improve energy consumption efficiency. Still, the alternation and uncertainty caused by the generation of REs such as wind turbines, solar PVs, and thermal loads that depend on electricity and heat could seriously challenge and complicate the performance of these grids.</p>
<p>In [<xref ref-type="bibr" rid="ref-23">23</xref>], a hydrogen-based CCHP-MG (combined cooling, heating and power microgrid) was proposed. The proposed grid contained a CHP unit and other energy generation and storage units. In this grid, the CCHP-MG operator could actively participate in electricity, natural gas and heat markets. In [<xref ref-type="bibr" rid="ref-24">24</xref>], a Monte Carlo simulation method was used for stochastically modeling the real-time market price profile.</p>
<p>A new model based on Demand response-based microgrid planning has been proposed in [<xref ref-type="bibr" rid="ref-25">25</xref>]. The novel multi-step model is proposed in [<xref ref-type="bibr" rid="ref-26">26</xref>], in which, in the first step non-cooperative game theory is applied to illustrate the behavior of the grid, demand response and end-customers. In the second one, the optimal amount of energy transmission between the microgrid and the main grid is calculated. In the third step, the optimal resource placement for energy generation including energy storage systems based on economic factors is determined. In the final the technologies are proposed based on economic factors to energy conversion systems that have been studied.</p>
<p>In [<xref ref-type="bibr" rid="ref-27">27</xref>], to achieve the optimal management strategy based on cost factors, an integrated offering technique model in deregulated power market has been proposed. The novel optimal management energy system based on electric/thermal power for buildings energy has been proposed in [<xref ref-type="bibr" rid="ref-28">28</xref>]. At first, this model is applied to one building with multiple energy sources of operation, and in the next step its applied to multi-building with multi-energy sources. The model of this paper is based upon mixed-integer linear programming.</p>
<p>A demand-side management system based on game theory approach is proposed in [<xref ref-type="bibr" rid="ref-29">29</xref>]. In this modeling of the problem, the capacity constraints of sources and loads, environmental factors, and reliability factors are considered beside demand management. In [<xref ref-type="bibr" rid="ref-30">30</xref>], the dynamic behaviors of grid-connected microgrid systems were studied. This paper considered and contains two different systems contains; integrated PV systems and urban wind turbines.</p>
<p>Yet the previous literature has not adequately examined the electricity purchase/sales bid in a multi-carrier MG while considering the dependency of the electricity and gas grids. Moreover, the effects of different uncertainties in load and generation have not been investigated on the multi-carrier cost of MG operation. Since various uncertainties on MG optimal operation directly affect the forward purchase and forward sales of energy, it is important to investigate an optimal strategy for reducing the cost of MG operation. Also, in the presentation methods in the articles, the possibility of being located in local points increases with increasing the number of variables of the desired problem. Therefore, the proposed classical methods cannot guarantee an optimal answer.</p>
<p>Thus, the present paper presents a probabilistic optimization model for a multi-carrier MG. The levels of DGs, the electric and thermal loads as well as the electric prices in the previous-day and real-time markets have uncertainties; therefore, this paper presents a probabilistic converter compatible with the energy distribution strategy in the multi-carrier MG. The previous-day and real-time markets are also examined. In the proposed grid, energy sales/purchase bids are presented in a multi-carrier MG as a two-stage model.</p>
<p>Based on the provided explanations, the most important highlights of this article are:
<list list-type="simple">
<list-item><label>A)</label>
<p>Provide an extended harmonization search optimization algorithm by the local operator enhancement</p></list-item>
<list-item><label>B)</label>
<p>Provide a two-step strategy to propose the optimal amount of electricity sales despite the dependence of electricity and gas prices in the market</p></list-item>
<list-item><label>C)</label>
<p>Modeling the uncertainty of renewable units based on scenario generation and its reduction</p></list-item>
</list></p>
<p>The rest of the article can be organized in the following sections. In the second part, multiple microgrid hardware with the presence of related energy is expressed. In the third part, probabilistic modeling of load and renewable resources is stated. In the fourth section, the problem formulation and its objective functions and constraints are mentioned. In the fifth section, the developed algorithm of harmonic search is presented. In the sixth section, the production and reduction scenario is stated to take into account the uncertainty of renewable sources. In the eighth section, the results and analysis of the simulation are presented. Finally, the conclusion is stated in the ninth section.</p>
</sec>
<sec id="s2">
<label>2</label>
<title>Structure of the Multi-Carrier MG</title>
<p>A multi-carrier MG is defined as interconnected loads and DGs within energy infrastructure. Multi-carrier MGs are a separate region from the main grid and act in grid-connected or islanded modes. In this paper, <xref ref-type="fig" rid="fig-1">Fig. 1</xref> shows the multi-carrier MG with the electricity and natural gas grid infrastructure, energy hub system, RES and battery. Here, the energy hub system connects various resources, e.g., electricity, natural gas as well as electric and thermal loads. The proposed MG is connected to the upstream electricity and gas grid and can also work in the islanded mode. To facilitate the operation, a central controller is included in the MG that collects information from each local controller, e.g., the status of DG and loads and, if necessary, issues commands for optimal operation of the MG. In fact, this central controller performs the optimal operation of the MG based on the status of DG, predictswind speed, solar irradiation and loads, and then dispatches the energy distribution signal to the local controller of each MG. The independent MG operator manages this central controller.</p>
<fig id="fig-1">
<label>Figure 1</label>
<caption>
<title>Multi-carrier MG</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="EE_21410-fig-1.png"/>
</fig>
<sec id="s2_1">
<label>2.1</label>
<title>Energy Hub</title>
<p>The energy hub system facilitates the conversion of energy carriers. The energy hub connects various energy sources such as electricity and natural gas, and different loads (e.g., electricity and heating) to one another. The hub comprises a transformer, boiler and simultaneous electricity and heat generator, receives natural gas and electricity from the upstream grid as the input and supplies the consumers&#x2019; demanded electricity and heating as the output.</p>
</sec>
</sec>
<sec id="s3">
<label>3</label>
<title>Probabilistic Load, Electricity Price and RES Modeling</title>
<sec id="s3_1">
<label>3.1</label>
<title>Load Modeling</title>
<p>Herein, electric and thermal loads are modeled as follows <xref ref-type="disp-formula" rid="eqn-1">Eq. (1)</xref> by using a normal distribution function with a mean equal to the baseline load in each period and a standard deviation (SD) of 5% of the baseline load [<xref ref-type="bibr" rid="ref-20">20</xref>].</p>
<p><disp-formula id="eqn-1"><label>(1)</label><mml:math id="mml-eqn-1" display="block"><mml:mi>f</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>l</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mrow><mml:msub><mml:mi>&#x03C3;</mml:mi><mml:mrow><mml:mi>l</mml:mi></mml:mrow></mml:msub><mml:msqrt><mml:mn>2</mml:mn><mml:mi>&#x03C0;</mml:mi></mml:msqrt></mml:mrow></mml:mfrac><mml:mi>e</mml:mi><mml:mi>x</mml:mi><mml:mi>p</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mo>&#x2212;</mml:mo><mml:mfrac><mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>l</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>&#x03BC;</mml:mi><mml:mrow><mml:mi>l</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mrow><mml:mn>2</mml:mn><mml:msubsup><mml:mi>&#x03C3;</mml:mi><mml:mrow><mml:mi>l</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mrow></mml:mfrac><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula></p>
</sec>
<sec id="s3_2">
<label>3.2</label>
<title>Electricity Price Modeling in the Previous-Day Market and Real-Time Market</title>
<p>The statistical analysis shows that the general distribution logic is the most appropriate model and confirms the proposed strategy in the analysis. Thus, the log-normal distribution function with the mean equal to the baseline electricity price in a certain interval and the SD of 5% of the baseline price is used for modeling the electricity market in <xref ref-type="disp-formula" rid="eqn-2">Eq. (2)</xref> [<xref ref-type="bibr" rid="ref-25">25</xref>]:</p>
<p><disp-formula id="eqn-2"><label>(2)</label><mml:math id="mml-eqn-2" display="block"><mml:mi>f</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>e</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>c</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>&#x03C3;</mml:mi><mml:mrow><mml:mi>c</mml:mi></mml:mrow></mml:msub><mml:msqrt><mml:mn>2</mml:mn><mml:mi>&#x03C0;</mml:mi></mml:msqrt></mml:mrow></mml:mfrac><mml:mi>e</mml:mi><mml:mi>x</mml:mi><mml:mi>p</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mo>&#x2212;</mml:mo><mml:mfrac><mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>ln</mml:mi><mml:mo>&#x2061;</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>e</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>&#x03BC;</mml:mi><mml:mrow><mml:mi>c</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mrow><mml:mn>2</mml:mn><mml:msubsup><mml:mi>&#x03C3;</mml:mi><mml:mrow><mml:mi>c</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mrow></mml:mfrac><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula></p>
</sec>
<sec id="s3_3">
<label>3.3</label>
<title>Electricity Price Modeling in the Previous-Day Market and Real-Time Market</title>
<p>Two distribution functions are applied to model the uncertainties in the wind and solar units. The output power of the wind generator depends on the wind speed with zero fuel costs. The wind speed changes in real-time, which highlights the importance of a probabilistic model. The literature usually uses the Weibull normal distribution function for wind speed (<xref ref-type="disp-formula" rid="eqn-3">Eq. (3)</xref>).</p>
<p><disp-formula id="eqn-3"><label>(3)</label><mml:math id="mml-eqn-3" display="block"><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mi>v</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mtable columnalign="left left" rowspacing="4pt" columnspacing="1em"><mml:mtr><mml:mtd><mml:mrow><mml:mo>(</mml:mo><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mfrac><mml:mi>&#x03B2;</mml:mi><mml:mi>&#x03B1;</mml:mi></mml:mfrac></mml:mstyle><mml:mo>)</mml:mo></mml:mrow><mml:mo>.</mml:mo><mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mfrac><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mi>&#x03B1;</mml:mi></mml:mfrac></mml:mstyle><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mi>&#x03B2;</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msup></mml:mtd><mml:mtd><mml:mo>.</mml:mo><mml:mspace width="thickmathspace" /><mml:mi>e</mml:mi><mml:mi>x</mml:mi><mml:mi>p</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mo>&#x2212;</mml:mo><mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mfrac><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mi>&#x03B1;</mml:mi></mml:mfrac><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mi>&#x03B2;</mml:mi></mml:mrow></mml:msup><mml:mo>)</mml:mo></mml:mrow><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2265;</mml:mo><mml:mn>0</mml:mn></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mn>0</mml:mn></mml:mtd><mml:mtd><mml:mrow><mml:mi mathvariant="italic">o</mml:mi><mml:mi mathvariant="italic">t</mml:mi><mml:mi mathvariant="italic">h</mml:mi><mml:mi mathvariant="italic">e</mml:mi><mml:mi mathvariant="italic">r</mml:mi><mml:mi mathvariant="italic">w</mml:mi><mml:mi mathvariant="italic">i</mml:mi><mml:mi mathvariant="italic">s</mml:mi><mml:mi mathvariant="italic">e</mml:mi></mml:mrow></mml:mtd></mml:mtr></mml:mtable><mml:mo fence="true" stretchy="true" symmetric="true"></mml:mo></mml:mrow></mml:math></disp-formula></p>
<p>The output power from the wind farm in any interval is calculated via the wind power-wind speed curve that expresses in <xref ref-type="disp-formula" rid="eqn-4">Eq. (4)</xref> [<xref ref-type="bibr" rid="ref-20">20</xref>,<xref ref-type="bibr" rid="ref-21">21</xref>]:</p>
<p><disp-formula id="eqn-4"><label>(4)</label><mml:math id="mml-eqn-4" display="block"><mml:mi>R</mml:mi><mml:msup><mml:mi>P</mml:mi><mml:mrow><mml:mi>w</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mtable columnalign="left left" rowspacing=".2em" columnspacing="1em" displaystyle="false"><mml:mtr><mml:mtd><mml:mn>0</mml:mn></mml:mtd><mml:mtd><mml:mn>0</mml:mn><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>c</mml:mi><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr><mml:mtr><mml:mtd /><mml:mtd><mml:mi>o</mml:mi><mml:mi>r</mml:mi><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2265;</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>c</mml:mi><mml:mi>o</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>r</mml:mi></mml:mrow><mml:mrow><mml:mi>w</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:msubsup><mml:mo>.</mml:mo><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mfrac><mml:mrow><mml:msubsup><mml:mi>v</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>&#x2212;</mml:mo><mml:msubsup><mml:mi>v</mml:mi><mml:mrow><mml:mi>c</mml:mi><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mrow><mml:mrow><mml:msubsup><mml:mi>v</mml:mi><mml:mrow><mml:mi>r</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>&#x2212;</mml:mo><mml:msubsup><mml:mi>v</mml:mi><mml:mrow><mml:mi>c</mml:mi><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mrow></mml:mfrac></mml:mstyle></mml:mtd><mml:mtd><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>c</mml:mi><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>r</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>r</mml:mi></mml:mrow><mml:mrow><mml:mi>w</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:msubsup></mml:mtd><mml:mtd><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>r</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2264;</mml:mo><mml:mi>v</mml:mi><mml:mi>t</mml:mi><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>c</mml:mi><mml:mi>o</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable><mml:mo fence="true" stretchy="true" symmetric="true"></mml:mo></mml:mrow></mml:math></disp-formula></p>
<p>The power generated from a solar unit differs with solar irradiation that depends on various factors such as environmental conditions, time, day, month, season and orientation of the solar plant towards solar irradiation. Herein, solar irradiation is modeled via a beta distribution function, expressed in <xref ref-type="disp-formula" rid="eqn-5">Eq. (5)</xref>.</p>
<p><disp-formula id="eqn-5"><label>(5)</label><mml:math id="mml-eqn-5" display="block"><mml:mi>f</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mi mathvariant="normal">&#x0393;</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>&#x03C6;</mml:mi><mml:mo>,</mml:mo><mml:mi>&#x03BE;</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x0393;</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>&#x03C6;</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>.</mml:mo><mml:mi mathvariant="normal">&#x0393;</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>&#x03BE;</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:mfrac><mml:mo>&#x22C5;</mml:mo><mml:msubsup><mml:mi>R</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mi>&#x03C6;</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x22C5;</mml:mo><mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mn>1</mml:mn><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mi>&#x03BE;</mml:mi></mml:mrow></mml:msup></mml:math></disp-formula></p>
<p>The solar generator of the output power belongs to solar irradiation; therefore, output power modeling needs solar irradiation modeling. The output power of the solar station as a function of irradiation in any interval of the irradiation-power curve is calculated in <xref ref-type="disp-formula" rid="eqn-6">Eq. (6)</xref> as:</p>
<p><disp-formula id="eqn-6"><label>(6)</label><mml:math id="mml-eqn-6" display="block"><mml:mi>R</mml:mi><mml:msup><mml:mi>P</mml:mi><mml:mrow><mml:mi>p</mml:mi><mml:mi>v</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mtable columnalign="left left" rowspacing=".2em" columnspacing="1em" displaystyle="false"><mml:mtr><mml:mtd><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>r</mml:mi></mml:mrow><mml:mrow><mml:mi>p</mml:mi><mml:mi>v</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x22C5;</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:mfrac><mml:msubsup><mml:mi>R</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mrow><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mi>S</mml:mi><mml:mi>T</mml:mi><mml:mi>A</mml:mi><mml:mi>D</mml:mi></mml:mrow></mml:msub><mml:mo>&#x22C5;</mml:mo><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mi>c</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac><mml:mo>)</mml:mo></mml:mrow></mml:mtd><mml:mtd><mml:mn>0</mml:mn><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mi>c</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>r</mml:mi></mml:mrow><mml:mrow><mml:mi>p</mml:mi><mml:mi>v</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x22C5;</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:mfrac><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mi>S</mml:mi><mml:mi>T</mml:mi><mml:mi>A</mml:mi><mml:mi>D</mml:mi></mml:mrow></mml:msub></mml:mfrac><mml:mo>)</mml:mo></mml:mrow></mml:mtd><mml:mtd><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mi>c</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mi>S</mml:mi><mml:mi>T</mml:mi><mml:mi>A</mml:mi><mml:mi>D</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>r</mml:mi></mml:mrow><mml:mrow><mml:mi>p</mml:mi><mml:mi>v</mml:mi></mml:mrow></mml:msubsup></mml:mtd><mml:mtd><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mi>S</mml:mi><mml:mi>T</mml:mi><mml:mi>A</mml:mi><mml:mi>D</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable><mml:mo fence="true" stretchy="true" symmetric="true"></mml:mo></mml:mrow></mml:math></disp-formula></p>
</sec>
</sec>
<sec id="s4">
<label>4</label>
<title>Problem Formulation</title>
<p>This section deals with the proposed strategy (sales and purchase) in the previous-day and real-time energy market in stochastic conditions. The proposed strategy refers to the amount of energy purchased or sold in the previous-day market. Based on different uncertainties in the predicted system data, it is challenging to find an optimal approach to dealing with this. In the proposed model, electricity and gas can be exchanged between the proposed multi-carrier MG and the upstream grid, which plays a major role in the energy market by accessing real-time data. The price-setting entities make their bids (including the electricity sales/purchase and hourly price) the previous day to the distribution system operator.</p>
<p>The bids to the distribution system operator are based on the previous-day market price, and generation and consumption predictions are based on the prediction data. After settling the market with the distribution system operator, generation and consumption may vary due to the stochastic nature of the variables; thus, the consumer must actively participate in the real-time market to balance loads in real-time. Note that the prices in this secondary market differ from the previous-day market. Since the size of the multi-carrier MG is smaller than the grid, it is assumed as a price-receiving entity. In the proposed model, based on the information in the previous-day market such as the predicted electric and thermal load, RES generation, electricity and gas price in the previous-day market, the program is simulated once, and the price function and the optimal amounts of energy sales and purchase in the previous-day market are obtained. Then, first-stage variables such as the optimal energy sales and purchase in the previous-day market are assumed as second-stage parameters. In the second stage, the real-time market model is simulated based on various uncertainties such as electric and thermal loads, RES and real-time market price to strike an energy balance and settle the market each hour.</p>
<p>The main resources include uncertainty, previous-day price, real-time price, RES and loads. Due to the six types of uncertainty in the proposed problem, this paper uses stochastic optimization. Thus, to examine the effect of uncertainty on the MG operation strategy, a Monte Carlo simulation is performed to generate random scenarios. By using scenario reduction methods (Kantorovich distance-based backward reduction), the scenarios generated by each parameter are reduced to three scenarios in order to reduce the computational load.</p>
<sec id="s4_1">
<label>4.1</label>
<title>First-Stage Objective Function</title>
<p>There are six sources of uncertainty in the proposed multi-carrier MG: previous-day and real-time prices, solar and wind generations, as well as electric and thermal loads. The proposed grid presents energy sales/purchases in a multi-carrier MG as a two-stage model. In the first stage, the MG presents the hourly energy purchase and sales to the distribution system operator without considering uncertainties. After settling the market, the MG programs generation for day-ahead MG operation is based on deterministic parameters. In the second stage (real-time operation), by considering the confirmed previous-day sales and purchase bids, the MG operator uses the resources to balance the generation and consumption due to uncertainties. In fact, this stage precedes the real-time market settlement in each hour; therefore, the units&#x2019; level of generation, ESS charge/discharge and energy sales/purchase in the real-time market are optimized. This model is a mixed-integer linear problem, in which the objective function and constraints of the proposed multi-carrier MG are modeled for 24 h in each scenario. In this model, the objective function is to minimize the energy sales and purchase costs as well as maintenance costs of the equipment. The minimization objective function is modeled as <xref ref-type="disp-formula" rid="eqn-7">Eq. (7)</xref> [<xref ref-type="bibr" rid="ref-20">20</xref>]:</p>
<p><disp-formula id="eqn-7"><label>(7)</label><mml:math id="mml-eqn-7" display="block"><mml:mi>O</mml:mi><mml:mi>F</mml:mi><mml:mo>&#x003A;</mml:mo><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>s</mml:mi></mml:mrow></mml:munder><mml:msub><mml:mi mathvariant="normal">&#x03A9;</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub><mml:mo>&#x22C5;</mml:mo><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:munder><mml:mrow><mml:mo>[</mml:mo><mml:msup><mml:mi>&#x03C1;</mml:mi><mml:mrow><mml:mi>D</mml:mi><mml:mi>A</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x22C5;</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mi>D</mml:mi><mml:mi>A</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msub><mml:mi>&#x03C1;</mml:mi><mml:mrow><mml:mi>g</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x22C5;</mml:mo><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mi>g</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi>o</mml:mi><mml:mi mathvariant="normal">&#x0026;</mml:mi><mml:mi>m</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula></p>
<p>where the first term is the energy purchase costs or sales profit in the previous-day market per hour. The second term is the natural gas purchase cost to supply the gas fuel-consuming units that are in charge of supplying electricity and heating to the MG. The final term is the equipment maintenance costs modeled in <xref ref-type="disp-formula" rid="eqn-8">Eq. (8)</xref> as follows:</p>
<p><disp-formula id="eqn-8"><label>(8)</label><mml:math id="mml-eqn-8" display="block"><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi>o</mml:mi><mml:mi mathvariant="normal">&#x0026;</mml:mi><mml:mi>m</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mi>C</mml:mi><mml:mi>H</mml:mi><mml:mi>P</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:msubsup><mml:mi>K</mml:mi><mml:mrow><mml:mi>o</mml:mi><mml:mi mathvariant="normal">&#x0026;</mml:mi><mml:mi>m</mml:mi></mml:mrow><mml:mrow><mml:mi>C</mml:mi><mml:mi>H</mml:mi><mml:mi>P</mml:mi></mml:mrow></mml:msubsup><mml:mo>+</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mi>A</mml:mi><mml:mi>B</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:msubsup><mml:mi>K</mml:mi><mml:mrow><mml:mi>o</mml:mi><mml:mi mathvariant="normal">&#x0026;</mml:mi><mml:mi>m</mml:mi></mml:mrow><mml:mrow><mml:mi>A</mml:mi><mml:mi>B</mml:mi></mml:mrow></mml:msubsup><mml:mo>+</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mi>W</mml:mi><mml:mi>T</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:msubsup><mml:mi>K</mml:mi><mml:mrow><mml:mi>o</mml:mi><mml:mi mathvariant="normal">&#x0026;</mml:mi><mml:mi>m</mml:mi></mml:mrow><mml:mrow><mml:mi>W</mml:mi><mml:mi>T</mml:mi></mml:mrow></mml:msubsup><mml:mo>+</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mi>N</mml:mi><mml:mi>e</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:msubsup><mml:mi>K</mml:mi><mml:mrow><mml:mi>o</mml:mi><mml:mi mathvariant="normal">&#x0026;</mml:mi><mml:mi>m</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>r</mml:mi><mml:mi>a</mml:mi><mml:mi>n</mml:mi></mml:mrow></mml:msubsup><mml:mo>+</mml:mo><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mi>s</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:msubsup><mml:mi>K</mml:mi><mml:mrow><mml:mi>o</mml:mi><mml:mi mathvariant="normal">&#x0026;</mml:mi><mml:mi>m</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi><mml:mi>S</mml:mi></mml:mrow></mml:msubsup></mml:math></disp-formula></p>
<p>In <xref ref-type="disp-formula" rid="eqn-8">Eq. (8)</xref>, each units&#x2019; maintenance cost is calculated by multiplying the generation of each unit by the maintenance cost coefficient per hour.</p>
</sec>
<sec id="s4_2">
<label>4.2</label>
<title>Problem Constraints</title>
<p>The following equations show the MG equipment conversion/generation equation. In this MG, energy conversion is performed by a transformer modeled in <xref ref-type="disp-formula" rid="eqn-9">Eq. (9)</xref>. The generated energy by the simultaneous generation converter and the boiler is presented in <xref ref-type="disp-formula" rid="eqn-10">Eqs. (10)</xref> and <xref ref-type="disp-formula" rid="eqn-11">(11)</xref>, and depends on the purchased gas and equipment efficiency. The heating system is formulated in <xref ref-type="disp-formula" rid="eqn-12">Eq. (12)</xref> [<xref ref-type="bibr" rid="ref-20">20</xref>]:</p>
<p><disp-formula id="eqn-9"><label>(9)</label><mml:math id="mml-eqn-9" display="block"><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="italic">t</mml:mi><mml:mi mathvariant="italic">r</mml:mi><mml:mi mathvariant="italic">a</mml:mi><mml:mi mathvariant="italic">n</mml:mi><mml:mi mathvariant="italic">s</mml:mi></mml:mrow></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mi>N</mml:mi><mml:mi>e</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:msup><mml:mrow><mml:mi mathvariant="normal">&#x03B7;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="italic">t</mml:mi><mml:mi mathvariant="italic">r</mml:mi><mml:mi mathvariant="italic">a</mml:mi><mml:mi mathvariant="italic">n</mml:mi><mml:mi mathvariant="italic">s</mml:mi></mml:mrow></mml:mrow></mml:msup></mml:math></disp-formula></p>
<p><disp-formula id="eqn-10"><label>(10)</label><mml:math id="mml-eqn-10" display="block"><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>l</mml:mi></mml:mrow><mml:mrow><mml:mi>C</mml:mi><mml:mi>H</mml:mi><mml:mi>P</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mi>g</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:msubsup><mml:mrow><mml:mi mathvariant="normal">&#x03B7;</mml:mi></mml:mrow><mml:mrow><mml:mi>l</mml:mi></mml:mrow><mml:mrow><mml:mi>C</mml:mi><mml:mi>H</mml:mi><mml:mi>P</mml:mi></mml:mrow></mml:msubsup><mml:mi>v</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mi>l</mml:mi><mml:mo>&#x2208;</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mi>e</mml:mi><mml:mo>,</mml:mo><mml:mi>h</mml:mi><mml:mo>}</mml:mo></mml:mrow></mml:math></disp-formula></p>
<p><disp-formula id="eqn-11"><label>(11)</label><mml:math id="mml-eqn-11" display="block"><mml:msup><mml:mi>P</mml:mi><mml:mrow><mml:mi>A</mml:mi><mml:mi>B</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mi>g</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:msup><mml:mrow><mml:mi mathvariant="normal">&#x03B7;</mml:mi></mml:mrow><mml:mrow><mml:mi>A</mml:mi><mml:mi>B</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mn>1</mml:mn><mml:mo>&#x2212;</mml:mo><mml:mi>v</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula></p>
<p><disp-formula id="eqn-12"><label>(12)</label><mml:math id="mml-eqn-12" display="block"><mml:msup><mml:mi>P</mml:mi><mml:mrow><mml:mi>E</mml:mi><mml:mi>H</mml:mi><mml:mi>P</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi><mml:mi>H</mml:mi><mml:mi>P</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:msup><mml:mrow><mml:mi mathvariant="normal">&#x03B7;</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi><mml:mi>H</mml:mi><mml:mi>P</mml:mi></mml:mrow></mml:msup><mml:mi>C</mml:mi><mml:mi>o</mml:mi></mml:math></disp-formula></p>
<p>Battery modeling is formulated in <xref ref-type="disp-formula" rid="eqn-13">Eq. (13)</xref> such that <xref ref-type="disp-formula" rid="eqn-14">Eq. (14)</xref> prevents simultaneous battery charge/discharge. In <xref ref-type="disp-formula" rid="eqn-12">Eq. (12)</xref>, for sustainable use of the battery, the amount of energy at the first and last moments of the day must be equal, as shown by <xref ref-type="disp-formula" rid="eqn-15">Eq. (15)</xref>:</p>
<p><disp-formula id="eqn-13"><label>(13)</label><mml:math id="mml-eqn-13" display="block"><mml:mi>M</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mo>[</mml:mo><mml:mi>E</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x2212;</mml:mo><mml:mi>E</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mo>&#x00D7;</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:msup><mml:mrow><mml:mi mathvariant="normal">&#x03B7;</mml:mi></mml:mrow><mml:mrow><mml:mi>c</mml:mi><mml:mi>h</mml:mi></mml:mrow></mml:msup><mml:msup><mml:mi>I</mml:mi><mml:mrow><mml:mi>c</mml:mi><mml:mi>h</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msup><mml:mrow><mml:mi mathvariant="normal">&#x03B7;</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi><mml:mi>i</mml:mi><mml:mi>s</mml:mi></mml:mrow></mml:msup><mml:msup><mml:mi>I</mml:mi><mml:mrow><mml:mi>d</mml:mi><mml:mi>i</mml:mi><mml:mi>s</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula></p>
<p><disp-formula id="eqn-14"><label>(14)</label><mml:math id="mml-eqn-14" display="block"><mml:msup><mml:mi>I</mml:mi><mml:mrow><mml:mi>c</mml:mi><mml:mi>h</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msup><mml:mi>I</mml:mi><mml:mrow><mml:mi>d</mml:mi><mml:mi>i</mml:mi><mml:mi>s</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:math></disp-formula></p>
<p><disp-formula id="eqn-15"><label>(15)</label><mml:math id="mml-eqn-15" display="block"><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mi>l</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mi>m</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mi>l</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mn>24</mml:mn><mml:mo>,</mml:mo><mml:mi>m</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula></p>
<p><xref ref-type="disp-formula" rid="eqn-16">Eq. (16)</xref> presents the electric and thermal load balance that must hold for each scenario in each hour. <xref ref-type="disp-formula" rid="eqn-16">(16)</xref> shows that the electric load and electricity required for supplying the heating system can be supplied by the upstream grid, CHP generator, wind and solar power stations and battery. Based on <xref ref-type="disp-formula" rid="eqn-17">Eq. (17)</xref>, the thermal load can be supplied by the CHP generator, absorption chiller and heating system.</p>
<p><disp-formula id="eqn-16"><label>(16)</label><mml:math id="mml-eqn-16" display="block"><mml:mi>L</mml:mi><mml:mi>o</mml:mi><mml:mi>a</mml:mi><mml:msub><mml:mi>d</mml:mi><mml:mrow><mml:mi>e</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi><mml:mi>H</mml:mi><mml:mi>P</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mi>N</mml:mi><mml:mi>e</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mi>&#x03B1;</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mi>C</mml:mi><mml:mi>H</mml:mi><mml:mi>P</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msup><mml:mi>P</mml:mi><mml:mrow><mml:mi>W</mml:mi><mml:mi>T</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msup><mml:mi>P</mml:mi><mml:mrow><mml:mi>P</mml:mi><mml:mi>V</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:mi>M</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula></p>
<p><disp-formula id="eqn-17"><label>(17)</label><mml:math id="mml-eqn-17" display="block"><mml:mi>L</mml:mi><mml:mi>o</mml:mi><mml:mi>a</mml:mi><mml:msub><mml:mi>d</mml:mi><mml:mrow><mml:mi>h</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x2264;</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mi>C</mml:mi><mml:mi>H</mml:mi><mml:mi>P</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mi>A</mml:mi><mml:mi>B</mml:mi></mml:mrow></mml:msubsup><mml:mo>+</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi><mml:mi>H</mml:mi><mml:mi>P</mml:mi></mml:mrow></mml:msubsup></mml:math></disp-formula></p>
<p>The upper and lower bounds of each unit, e.g., transformer capacity, CHP generator, boiler, heating system, ESS and the battery charged/discharged energy, are in <xref ref-type="disp-formula" rid="eqn-18">Eqs. (18)</xref>&#x2013;<xref ref-type="disp-formula" rid="eqn-23">(23)</xref>:</p>
<p><disp-formula id="eqn-18"><label>(18)</label><mml:math id="mml-eqn-18" display="block"><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="italic">t</mml:mi><mml:mi mathvariant="italic">r</mml:mi><mml:mi mathvariant="italic">a</mml:mi><mml:mi mathvariant="italic">n</mml:mi><mml:mi mathvariant="italic">s</mml:mi></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x003C;</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="italic">t</mml:mi><mml:mi mathvariant="italic">r</mml:mi><mml:mi mathvariant="italic">a</mml:mi><mml:mi mathvariant="italic">n</mml:mi><mml:mi mathvariant="italic">s</mml:mi></mml:mrow></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x003C;</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="italic">t</mml:mi><mml:mi mathvariant="italic">r</mml:mi><mml:mi mathvariant="italic">a</mml:mi><mml:mi mathvariant="italic">n</mml:mi><mml:mi mathvariant="italic">s</mml:mi></mml:mrow></mml:mrow></mml:msubsup></mml:math></disp-formula></p>
<p><disp-formula id="eqn-19"><label>(19)</label><mml:math id="mml-eqn-19" display="block"><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi></mml:mrow><mml:mrow><mml:mi>C</mml:mi><mml:mi>H</mml:mi><mml:mi>P</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x003C;</mml:mo><mml:msup><mml:mi>P</mml:mi><mml:mrow><mml:mi>C</mml:mi><mml:mi>H</mml:mi><mml:mi>P</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x003C;</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>C</mml:mi><mml:mi>H</mml:mi><mml:mi>P</mml:mi></mml:mrow></mml:msubsup></mml:math></disp-formula></p>
<p><disp-formula id="eqn-20"><label>(20)</label><mml:math id="mml-eqn-20" display="block"><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi></mml:mrow><mml:mrow><mml:mi>A</mml:mi><mml:mi>B</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x003C;</mml:mo><mml:msup><mml:mi>P</mml:mi><mml:mrow><mml:mi>A</mml:mi><mml:mi>B</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x003C;</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>A</mml:mi><mml:mi>B</mml:mi></mml:mrow></mml:msubsup></mml:math></disp-formula></p>
<p><disp-formula id="eqn-21"><label>(21)</label><mml:math id="mml-eqn-21" display="block"><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi><mml:mi>H</mml:mi><mml:mi>P</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x003C;</mml:mo><mml:msup><mml:mi>P</mml:mi><mml:mrow><mml:mi>E</mml:mi><mml:mi>H</mml:mi><mml:mi>P</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x003C;</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi><mml:mi>H</mml:mi><mml:mi>P</mml:mi></mml:mrow></mml:msubsup></mml:math></disp-formula></p>
<p><disp-formula id="eqn-22"><label>(22)</label><mml:math id="mml-eqn-22" display="block"><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>&#x003C;</mml:mo><mml:mi>E</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x003C;</mml:mo><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:mrow></mml:msub></mml:math></disp-formula></p>
<p><disp-formula id="eqn-23"><label>(23)</label><mml:math id="mml-eqn-23" display="block"><mml:mrow><mml:mo>|</mml:mo><mml:msup><mml:mi>M</mml:mi><mml:mrow><mml:mi>E</mml:mi><mml:mi>S</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>|</mml:mo></mml:mrow><mml:mo>&#x003C;</mml:mo><mml:msup><mml:mi>M</mml:mi><mml:mrow><mml:mi>E</mml:mi><mml:mi>S</mml:mi></mml:mrow></mml:msup></mml:math></disp-formula></p>
<p><xref ref-type="disp-formula" rid="eqn-24">Eq. (24)</xref> models the input gas coefficient to the CHP generator and the boiler.</p>
<p><disp-formula id="eqn-24"><label>(24)</label><mml:math id="mml-eqn-24" display="block"><mml:mn>0</mml:mn><mml:mo>&#x2264;</mml:mo><mml:mi>v</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x2264;</mml:mo><mml:mn>1</mml:mn></mml:math></disp-formula></p>
</sec>
<sec id="s4_3">
<label>4.3</label>
<title>Electricity Price Dependence on Gas</title>
<p>The high sensitivity of the previous-day and real-time electricity prices to gas supply was demonstrated vividly in the winter of 2014. Although this electricity price follows the natural gas price model, their relative dependence must be the starting point for creating proper interdependence models; still, the real-time market electricity price depends on many other factors, a few of which can be measured by available data; e.g., natural gas price in the real-time market, the effect of gas pipe capacity, load model deviations and load responsiveness, RES penetrability and previous-day market electricity price, each somehow affecting the real-time market electricity price. Finally, to determine how various factors affect future and real-time electricity prices in the mentioned periods, the correlation coefficient of electricity prices and different factors are calculated in each local hub. The carriers&#x2019; price dependence is demonstrated with <xref ref-type="disp-formula" rid="eqn-25">Eq. (25)</xref>, in which the y-axis shows the previous-day and real-time market prices. The x-axis shows the load prediction error, wind prediction error, natural gas price or previous-day electricity price.</p>
<p><disp-formula id="eqn-25"><label>(25)</label><mml:math id="mml-eqn-25" display="block"><mml:mi>y</mml:mi><mml:mo>=</mml:mo><mml:msub><mml:mi>&#x03B2;</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mi>x</mml:mi><mml:mo>+</mml:mo><mml:msub><mml:mi>&#x03B2;</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:math></disp-formula></p>
<p>Coefficients 1&#x03B2; and 2&#x03B2; denote the best line for carrier dependencies.</p>
</sec>
<sec id="s4_4">
<label>4.4</label>
<title>Second-Stage Objective Function</title>
<p>In this stage, the first-stage variable (the forward purchase/sales of electricity) is placed in the second-stage objective function as a constant parameter (first term), and the electricity shortage/surplus is traded on the real-time market (second term). In this stage, all the uncertainties are taken into account and the MG operator can sell the forward purchased surplus electricity on the market in real-time. <xref ref-type="disp-formula" rid="eqn-26">Eq. (26)</xref> shows the second-stage objective function.</p>
<p><disp-formula id="eqn-26"><label>(26)</label><mml:math id="mml-eqn-26" display="block"><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>s</mml:mi></mml:mrow></mml:munder><mml:msub><mml:mi mathvariant="normal">&#x03A9;</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub><mml:mo>&#x22C5;</mml:mo><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:munder><mml:mrow><mml:mo>[</mml:mo><mml:msup><mml:mi>&#x03C1;</mml:mi><mml:mrow><mml:mi>D</mml:mi><mml:mi>A</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x22C5;</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mi>D</mml:mi><mml:mi>A</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msubsup><mml:mi>&#x03C1;</mml:mi><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mrow><mml:mi>R</mml:mi><mml:mi>T</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x22C5;</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mrow><mml:mi>R</mml:mi><mml:mi>T</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:munder><mml:msubsup><mml:mi>&#x03C1;</mml:mi><mml:mrow><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mi>R</mml:mi><mml:mi>T</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x22C5;</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mi>R</mml:mi><mml:mi>T</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msubsup><mml:mi>C</mml:mi><mml:mrow><mml:mi>o</mml:mi><mml:mi mathvariant="normal">&#x0026;</mml:mi><mml:mi>m</mml:mi></mml:mrow><mml:mrow><mml:mi>R</mml:mi><mml:mi>T</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula></p>
<p>All the constraints mentioned above, except <xref ref-type="disp-formula" rid="eqn-27">Eqs. (27)</xref> and (<xref ref-type="disp-formula" rid="eqn-28">28)</xref> which have been changed, hold. Thus, in this stage, the electricity purchased in <xref ref-type="disp-formula" rid="eqn-27">Eq. (27)</xref> changes, as the result of which the electricity load balance is altered based on <xref ref-type="disp-formula" rid="eqn-28">Eq. (28)</xref>.</p>
<p><disp-formula id="eqn-27"><label>(27)</label><mml:math id="mml-eqn-27" display="block"><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mi>R</mml:mi><mml:mi>T</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mi>R</mml:mi><mml:mi>T</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mi>R</mml:mi><mml:mi>T</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula></p>
<p><disp-formula id="eqn-28"><label>(28)</label><mml:math id="mml-eqn-28" display="block"><mml:mi>L</mml:mi><mml:mi>o</mml:mi><mml:mi>a</mml:mi><mml:msub><mml:mi>d</mml:mi><mml:mrow><mml:mi>e</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi><mml:mi>H</mml:mi><mml:mi>P</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mi>N</mml:mi><mml:mi>e</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>e</mml:mi></mml:mrow><mml:mrow><mml:mi>C</mml:mi><mml:mi>H</mml:mi><mml:mi>P</mml:mi></mml:mrow></mml:msubsup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msup><mml:mi>P</mml:mi><mml:mrow><mml:mi>W</mml:mi><mml:mi>T</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msup><mml:mi>P</mml:mi><mml:mrow><mml:mi>P</mml:mi><mml:mi>V</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:mi>M</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula></p>
<p>Based on <xref ref-type="disp-formula" rid="eqn-27">Eq. (27)</xref>, the total electricity purchased from the grid is the sum of the electricity purchased from the previous-day market and the real-time market.</p>
</sec>
</sec>
<sec id="s5">
<label>5</label>
<title>Harmony Search Algorithm</title>
<p>The harmony search algorithm (HSA), also known as the soft computing algorithm or evolutionary algorithm, is inspired by the formation and performance of an orchestra to look for the optimal solution, or simply put, the best coordination between the factors involved in leading a process. Musicians in an orchestra play musical pieces, the best combination of which creates the best final product. Likewise, HSA looks for optimal coordination when examining the result of components&#x2019; performance and looks for the best path in solving optimization problems, with which the computational cost functions can then be reduced by [<xref ref-type="bibr" rid="ref-25">25</xref>]. The stages of the HSA are:
<list list-type="bullet">
<list-item>
<p>Determining the problem and algorithm parameters</p></list-item>
<list-item>
<p>Initially determining the harmony memory</p></list-item>
<list-item>
<p>Generating a new harmony</p></list-item>
<list-item>
<p>Updating the harmony memory</p></list-item>
<list-item>
<p>Examining the algorithm stop region</p></list-item>
</list>
<list list-type="simple">
<list-item>
<p>1) In the first stage, the optimization problem is determined in <xref ref-type="disp-formula" rid="eqn-29">Eq. (29)</xref>:</p></list-item>
</list></p>
<p><disp-formula id="eqn-29"><label>(29)</label><mml:math id="mml-eqn-29" display="block"><mml:mrow><mml:mo>{</mml:mo><mml:mtable columnalign="left left" rowspacing=".2em" columnspacing="1em" displaystyle="false"><mml:mtr><mml:mtd /><mml:mtd><mml:mrow><mml:mi mathvariant="italic">M</mml:mi><mml:mi mathvariant="italic">i</mml:mi><mml:mi mathvariant="italic">n</mml:mi><mml:mi mathvariant="italic">m</mml:mi><mml:mi mathvariant="italic">i</mml:mi><mml:mi mathvariant="italic">z</mml:mi><mml:mi mathvariant="italic">e</mml:mi></mml:mrow><mml:mo>&#x003A;</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mi>f</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>x</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mi>x</mml:mi><mml:mo>&#x2208;</mml:mo><mml:mi>X</mml:mi><mml:mo>}</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd /><mml:mtd><mml:mi>s</mml:mi><mml:mi>t</mml:mi></mml:mtd></mml:mtr><mml:mtr><mml:mtd /><mml:mtd><mml:mi>g</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>x</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x2265;</mml:mo><mml:mn>0</mml:mn></mml:mtd></mml:mtr><mml:mtr><mml:mtd /><mml:mtd><mml:mi>h</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>x</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mn>0</mml:mn></mml:mtd></mml:mtr></mml:mtable><mml:mo fence="true" stretchy="true" symmetric="true"></mml:mo></mml:mrow></mml:math></disp-formula></p>
<p>Here, <inline-formula id="ieqn-1"><mml:math id="mml-ieqn-1"><mml:mi>f</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:math></inline-formula> is the objective function, <inline-formula id="ieqn-2"><mml:math id="mml-ieqn-2"><mml:mi>h</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:math></inline-formula> is the equality constraint function and g(x) is the inequality constraint function. Moreover, x is a set of decision variables, and xi and X are the set of possible values of each decision variable. Furthermore, <inline-formula id="ieqn-3"><mml:math id="mml-ieqn-3"><mml:mi>x</mml:mi><mml:mi>i</mml:mi><mml:mi>L</mml:mi><mml:mo>&#x2264;</mml:mo><mml:mi>x</mml:mi><mml:mi>i</mml:mi><mml:mo>&#x2264;</mml:mo><mml:mi>x</mml:mi><mml:mi>i</mml:mi><mml:mi>U</mml:mi></mml:math></inline-formula>, where <inline-formula id="ieqn-4"><mml:math id="mml-ieqn-4"><mml:mi>x</mml:mi><mml:mi>i</mml:mi><mml:mi>U</mml:mi></mml:math></inline-formula> and <inline-formula id="ieqn-5"><mml:math id="mml-ieqn-5"><mml:mi>x</mml:mi><mml:mi>i</mml:mi><mml:mi>L</mml:mi></mml:math></inline-formula> are the upper and lower bounds for each decision variable. The HSA parameters are specified in the first stage and include the harmony memory size (HMS), harmony memory considering rate (HMCR), pitch adjustment rate (PAR) and the number of improvisations (NI) or the algorithm stop region. The HM is where all the solution vectors are stored. HMCR and PAR are parameters used to improve the solution vector in the third stage.
<list list-type="simple">
<list-item>
<p>2) Initial determination of the HM</p></list-item>
</list></p>
<p>In this stage, the HM matrix is randomly generated with a large number of solution vectors and is filled based on the HMS, that shows in <xref ref-type="disp-formula" rid="eqn-30">Eq. (30)</xref> [<xref ref-type="bibr" rid="ref-15">15</xref>]:</p>
<p><disp-formula id="eqn-30"><label>(30)</label><mml:math id="mml-eqn-30" display="block"><mml:mi>H</mml:mi><mml:mi>M</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mo>[</mml:mo><mml:mtable columnalign="left left left left left" rowspacing="4pt" columnspacing="1em"><mml:mtr><mml:mtd><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msubsup></mml:mtd><mml:mtd><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msubsup></mml:mtd><mml:mtd><mml:mo>&#x22EF;</mml:mo></mml:mtd><mml:mtd><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>N</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msubsup></mml:mtd><mml:mtd><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>N</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msubsup></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mtd><mml:mtd><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mtd><mml:mtd><mml:mo>&#x22EF;</mml:mo></mml:mtd><mml:mtd><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>N</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mtd><mml:mtd><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>N</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mo>&#x22EE;</mml:mo></mml:mtd><mml:mtd><mml:mo>&#x22EE;</mml:mo></mml:mtd><mml:mtd><mml:mo>&#x22EE;</mml:mo></mml:mtd><mml:mtd><mml:mo>&#x22EE;</mml:mo></mml:mtd><mml:mtd><mml:mo>&#x22EE;</mml:mo></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>H</mml:mi><mml:mi>M</mml:mi><mml:mi>S</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msubsup></mml:mtd><mml:mtd><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mi>H</mml:mi><mml:mi>M</mml:mi><mml:mi>S</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msubsup></mml:mtd><mml:mtd><mml:mo>&#x22EF;</mml:mo></mml:mtd><mml:mtd><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>N</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>H</mml:mi><mml:mi>M</mml:mi><mml:mi>S</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msubsup></mml:mtd><mml:mtd><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>N</mml:mi></mml:mrow><mml:mrow><mml:mi>H</mml:mi><mml:mi>M</mml:mi><mml:mi>S</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msubsup></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>H</mml:mi><mml:mi>M</mml:mi><mml:mi>S</mml:mi></mml:mrow></mml:msubsup></mml:mtd><mml:mtd><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mi>H</mml:mi><mml:mi>M</mml:mi><mml:mi>S</mml:mi></mml:mrow></mml:msubsup></mml:mtd><mml:mtd><mml:mo>&#x22EF;</mml:mo></mml:mtd><mml:mtd><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>N</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>H</mml:mi><mml:mi>M</mml:mi><mml:mi>S</mml:mi></mml:mrow></mml:msubsup></mml:mtd><mml:mtd><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>N</mml:mi></mml:mrow><mml:mrow><mml:mi>H</mml:mi><mml:mi>M</mml:mi><mml:mi>S</mml:mi></mml:mrow></mml:msubsup></mml:mtd></mml:mtr></mml:mtable><mml:mo>]</mml:mo></mml:mrow></mml:math></disp-formula>
<list list-type="simple">
<list-item>
<p>3) Generating a new harmony based on improvisation</p></list-item>
</list></p>
<p>A new vector <inline-formula id="ieqn-6"><mml:math id="mml-ieqn-6"><mml:msup><mml:mi>x</mml:mi><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>,</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>N</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:msubsup><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> is generated based on three rules (memory requirements, pitch adjustment and random selection) and is called the improvisation vector. The value of the first decision variable &#x00D7;11 for the new vector is selected from any value in the HM range. The values of the other variables are selected similarly. HMCR is the selection rate of a value from the previously calculated values stored in the HM and HMC-1 is the rate of the random selection of a value from the range of possible values, That Presented in <xref ref-type="disp-formula" rid="eqn-31">Eq. (31)</xref>:</p>
<p><disp-formula id="eqn-31"><label>(31)</label><mml:math id="mml-eqn-31" display="block"><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:msubsup><mml:mo stretchy="false">&#x2190;</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mtable columnalign="left" rowspacing="4pt" columnspacing="1em"><mml:mtr><mml:mtd><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x2208;</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>,</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>H</mml:mi><mml:mi>M</mml:mi><mml:mi>S</mml:mi></mml:mrow></mml:msubsup><mml:mo>}</mml:mo></mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mi>H</mml:mi><mml:mi>M</mml:mi><mml:mi>C</mml:mi><mml:mi>R</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x2208;</mml:mo><mml:msub><mml:mi>X</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mn>1</mml:mn><mml:mo>&#x2212;</mml:mo><mml:mi>H</mml:mi><mml:mi>M</mml:mi><mml:mi>C</mml:mi><mml:mi>R</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable><mml:mo>}</mml:mo></mml:mrow></mml:math></disp-formula></p>
<p>HSA selects the value of the decision variable from the entire range of possible values. The obtained solutions from the memory requirements are tested to determine whether this pitch adjustment is more appropriate or not, which is done using the PAR parameter, which is defined in <xref ref-type="disp-formula" rid="eqn-32">Eq. (32)</xref>:</p>
<p><disp-formula id="eqn-32"><label>(32)</label><mml:math id="mml-eqn-32" display="block"><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:msubsup><mml:mo stretchy="false">&#x2190;</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mtable columnalign="left" rowspacing="4pt" columnspacing="1em"><mml:mtr><mml:mtd><mml:mi>Y</mml:mi><mml:mi>e</mml:mi><mml:mi>s</mml:mi><mml:mo>,</mml:mo><mml:mo movablelimits="true" form="prefix">Pr</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:mi>P</mml:mi><mml:mi>A</mml:mi><mml:mi>R</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mi>N</mml:mi><mml:mi>o</mml:mi><mml:mo>,</mml:mo><mml:mo movablelimits="true" form="prefix">Pr</mml:mo><mml:mo stretchy="false">(</mml:mo><mml:mn>1</mml:mn><mml:mo>&#x2212;</mml:mo><mml:mi>P</mml:mi><mml:mi>A</mml:mi><mml:mi>R</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mtd></mml:mtr></mml:mtable><mml:mo>}</mml:mo></mml:mrow></mml:math></disp-formula></p>
<p>If the decision for pitch adjustment is Yes, &#x2018;xi is replaced in <xref ref-type="disp-formula" rid="eqn-33">Eq. (33)</xref>:</p>
<p><disp-formula id="eqn-33"><label>(33)</label><mml:math id="mml-eqn-33" display="block"><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:msubsup><mml:mo stretchy="false">&#x2190;</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x00B1;</mml:mo><mml:mi>r</mml:mi><mml:mi>a</mml:mi><mml:mi>n</mml:mi><mml:mi>d</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mo stretchy="false">)</mml:mo><mml:mo>&#x00D7;</mml:mo><mml:mi>b</mml:mi><mml:mi>w</mml:mi></mml:math></disp-formula>where <inline-formula id="ieqn-7"><mml:math id="mml-ieqn-7"><mml:mi>b</mml:mi><mml:mi>w</mml:mi></mml:math></inline-formula> is the audible bandwidth and () rand is a random number between 0 and 1. In the third stage, HM requirements of pitch adjustment are applied on each variable of the new harmony vector by selective selection.
<list list-type="simple">
<list-item>
<p>4) Updating the HM</p></list-item>
</list></p>
<p>If the new harmony vector <inline-formula id="ieqn-8"><mml:math id="mml-ieqn-8"><mml:msup><mml:mi>x</mml:mi><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>,</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mrow><mml:mi>N</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:msubsup><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> is better than the worst harmony vector in the HM based on the selected objective function, the new harmony will be placed inside the HM and the worst harmony is discarded from the HM.
<list list-type="simple">
<list-item>
<p>5) Checking the stop area</p></list-item>
</list></p>
<p>If the stop area, i.e., the maximum number of improvisations, is satisfied, calculations end; otherwise, Stages 3 and 4 are reiterated. The flowchart of the proposed algorithm is shown in <xref ref-type="fig" rid="fig-2">Fig. 2</xref>.</p>
<fig id="fig-2">
<label>Figure 2</label>
<caption>
<title>Flowchart of harmony search Algorithm</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="EE_21410-fig-2.png"/>
</fig>
</sec>
<sec id="s6">
<label>6</label>
<title>Scenario Generation</title>
<p>LHS is a group sampling method. Since the Weibull distribution function of each stochastic variable is known, the sampling stratification is done with the sampling delay mean to ensure the integrity of sampling data and increase the volume of data. For each uncertain parameter, the Weibull distribution should be classified into several parts. Herein, the LHS method is adopted for scenario generation, as shown below:</p>
<p>Step 1: Determining the number of scenarios and, then, dividing the probability distribution of each uncertain parameter into N levels;</p>
<p>Step 2: Selecting the mean value from the probabilistic distance <inline-formula id="ieqn-9"><mml:math id="mml-ieqn-9"><mml:mo stretchy="false">[</mml:mo><mml:mo stretchy="false">(</mml:mo><mml:mi>i</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn><mml:mo stretchy="false">)</mml:mo><mml:mrow><mml:mo>/</mml:mo></mml:mrow><mml:mi>N</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mrow><mml:mo>/</mml:mo></mml:mrow><mml:mi>N</mml:mi><mml:mo stretchy="false">]</mml:mo></mml:math></inline-formula> where <inline-formula id="ieqn-10"><mml:math id="mml-ieqn-10"><mml:mn>1</mml:mn><mml:mo>&#x2264;</mml:mo><mml:mi>i</mml:mi><mml:mo>&#x2264;</mml:mo><mml:mi>N</mml:mi></mml:math></inline-formula>;</p>
<p>Step 3: Calculating the values of the sample of wind speed, solar irradiation, electricity price and electric charge based on the inverse cumulative distribution function.</p>
<sec id="s6_1">
<label>6.1</label>
<title>Scenario Reduction</title>
<p>To create knowledgeable choices withinside the existence of uncertainties, threat control issues of electricity utilities can be simulated through multistage stochastic packages. These packages utilize a hard and fast bevy of situations (or potential realizations), as well as taking into consideration the corresponding changes to the version of the multivariate random statistics procedure, e.g., electric demand, stream flows to hydro units, the output of production in intermittent clean sources, fuel and electricity prices. To show the involved uncertainty, the number of scenarios is demanded while, reduction scenario approaches are often used because of computational complexity and time limitations. This work suggests a novel model for to recursive backward scenario reduction is possible regarding next-day scenarios to generate wind power. Therefore, a set of the initial scenario set is determined by the following algorithm and assigns new probabilities to the stored scenarios. The output is planned to assist production scheduling of power systems employing intermittent type clean energy sources.</p>
<p>Backward scenario reduction is a positive method for reducing the number of scenarios. This technique provides a set of scenarios to estimate their primary set.</p>
<p>Considering <inline-formula id="ieqn-11"><mml:math id="mml-ieqn-11"><mml:msub><mml:mi>&#x03BE;</mml:mi><mml:mrow><mml:mi>s</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>S</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mn>2</mml:mn><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>,</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mi>s</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> as different N<sub>s</sub> scenarios with the probability, probabilities and <inline-formula id="ieqn-12"><mml:math id="mml-ieqn-12"><mml:mi>D</mml:mi><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi>s</mml:mi><mml:mrow><mml:mo>,</mml:mo><mml:msup><mml:mi>s</mml:mi><mml:mrow><mml:mo>&#x22C5;</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> as the paired distance of the scenarios, the following steps should be followed:</p>
<p>Step 1: Take S as the primary set of scenarios and DS is the set of scenarios that should be eliminated. The primary DS is zero. Calculate the distance of all the scenario pairs: <inline-formula id="ieqn-13"><mml:math id="mml-ieqn-13"><mml:mi>D</mml:mi><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi>s</mml:mi><mml:mrow><mml:mo>,</mml:mo><mml:msup><mml:mi>s</mml:mi><mml:mrow><mml:mo>&#x22C5;</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mi>D</mml:mi><mml:mi>T</mml:mi><mml:mspace width="thinmathspace" /></mml:math></inline-formula><inline-formula id="ieqn-13a"><mml:math id="mml-ieqn-13a"><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>&#x03BE;</mml:mi><mml:mrow><mml:mi>s</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>&#x03BE;</mml:mi><mml:mrow><mml:mi>s</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mi>S</mml:mi><mml:mo>,</mml:mo><mml:msup><mml:mi>S</mml:mi><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mn>2</mml:mn><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>,</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> while; <inline-formula id="ieqn-14"><mml:math id="mml-ieqn-14"><mml:mi>D</mml:mi><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi>s</mml:mi><mml:mrow><mml:mo>,</mml:mo><mml:msup><mml:mi>s</mml:mi><mml:mrow><mml:mo>&#x22C5;</mml:mo></mml:mrow></mml:msup></mml:mrow></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msqrt><mml:mo>&#x2211;</mml:mo><mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:msubsup><mml:mi>V</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>s</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x2212;</mml:mo><mml:msubsup><mml:mi>V</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>s</mml:mi></mml:mrow></mml:msubsup><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mo>&#x22C5;</mml:mo><mml:msubsup><mml:mi>V</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>s</mml:mi></mml:mrow></mml:msubsup></mml:msqrt><mml:mo>,</mml:mo></mml:math></inline-formula> the vector of unspecified parameters in scenario s.</p>
<p>Step 2: For any scenario k, <inline-formula id="ieqn-15"><mml:math id="mml-ieqn-15"><mml:mi>D</mml:mi><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>r</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mi>m</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi><mml:mi>D</mml:mi><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi>k</mml:mi><mml:mo>,</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msup><mml:mi>S</mml:mi><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:msup><mml:mo>,</mml:mo><mml:mi>k</mml:mi><mml:mo>&#x2208;</mml:mo><mml:mi>s</mml:mi></mml:math></inline-formula> and <inline-formula id="ieqn-16"><mml:math id="mml-ieqn-16"><mml:msup><mml:mi>S</mml:mi><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:msup><mml:mo>&#x2260;</mml:mo><mml:mi>k</mml:mi><mml:mo>,</mml:mo><mml:mi>r</mml:mi></mml:math></inline-formula> are the scenario criteria with minimum distance from scenario k.</p>
<p>Step 3: Calculate <inline-formula id="ieqn-17"><mml:math id="mml-ieqn-17"><mml:mi>P</mml:mi><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">(</mml:mo><mml:mi>r</mml:mi><mml:mo stretchy="false">)</mml:mo><mml:mo>=</mml:mo><mml:mi>p</mml:mi><mml:mi>r</mml:mi><mml:mi>o</mml:mi><mml:mi>b</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>k</mml:mi><mml:mo stretchy="false">)</mml:mo><mml:mo>&#x00D7;</mml:mo><mml:mi>D</mml:mi><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">(</mml:mo><mml:mi>r</mml:mi><mml:mo stretchy="false">)</mml:mo><mml:mo>,</mml:mo><mml:mi>k</mml:mi><mml:mo>&#x2208;</mml:mo><mml:mi>s</mml:mi></mml:math></inline-formula> and select d in it <inline-formula id="ieqn-18"><mml:math id="mml-ieqn-18"><mml:mi>P</mml:mi><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi>d</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mi>m</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi><mml:mi>P</mml:mi><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mi>k</mml:mi><mml:mo>&#x2208;</mml:mo><mml:mi>S</mml:mi></mml:math></inline-formula> .</p>
<p>Step 4: <inline-formula id="ieqn-19"><mml:math id="mml-ieqn-19"><mml:mi>S</mml:mi><mml:mo>=</mml:mo><mml:mi>S</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mi>d</mml:mi><mml:mo>}</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mi>D</mml:mi><mml:mi>S</mml:mi><mml:mo>=</mml:mo><mml:mi>D</mml:mi><mml:mi>S</mml:mi><mml:mo>+</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mi>d</mml:mi><mml:mo>}</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mi>p</mml:mi><mml:mi>r</mml:mi><mml:mi>o</mml:mi><mml:mi>b</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>r</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mi>p</mml:mi><mml:mi>r</mml:mi><mml:mi>o</mml:mi><mml:mi>b</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>r</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:mi>p</mml:mi><mml:mi>r</mml:mi><mml:mi>o</mml:mi><mml:mi>b</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>d</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>.</p>
<p>Step 5: Repeat Steps 2&#x2013;4 to eliminate the intended number.</p>
</sec>
</sec>
<sec id="s7">
<label>7</label>
<title>Simulation and Results</title>
<sec id="s7_1">
<label>7.1</label>
<title>The Studied System</title>
<p>A multi-carrier MG is a system that boosts energy flexibility. To respond to different forms of demands, the multi-carrier MG is equipped with energy converters, generators, and ESS. <xref ref-type="fig" rid="fig-1">Fig. 1</xref> illustrates the structure of a multi-carrier MG. Each multi-carrier MG comprises small-scale energy sources, several demands and a battery. The small-scale energy sources include PV and wind power stations, a boiler, CHP generator, transformers and a heating system. <xref ref-type="table" rid="table-1">Table 1</xref> lists the technical specifications of the equipment in this MG.</p>
<table-wrap id="table-1">
<label>Table 1</label>
<caption>
<title>Technical specifications of the MG elements [<xref ref-type="bibr" rid="ref-20">20</xref>,<xref ref-type="bibr" rid="ref-21">21</xref>]</title>
</caption>
<table frame="hsides">
<colgroup>
<col align="left"/>
<col align="left"/>
<col align="left"/>
<col align="left"/>
<col align="left"/>
<col align="left"/>
</colgroup>
<thead>
<tr>
<th>Elements</th>
<th>Maintenance coefficient ($/kWh)</th>
<th colspan="3" align="center">Performance (%)</th>
<th>Max. capacity (kW/kWh) Elements</th>
</tr>
<tr>
<th/>
<th/>
<th>El</th>
<th>Th</th>
<th>&#x03A3;</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>Trans</td>
<td>0/012</td>
<td>92</td>
<td>&#x2013;</td>
<td>92</td>
<td>1000</td>
</tr>
<tr>
<td>Simultaneous generator of electricity and heat</td>
<td>0/03</td>
<td>80</td>
<td>40</td>
<td>40</td>
<td>300</td>
</tr>
<tr>
<td>Boiler</td>
<td>0/012</td>
<td>85</td>
<td>85</td>
<td>&#x2013;</td>
<td>600</td>
</tr>
<tr>
<td>PV</td>
<td>0</td>
<td>95</td>
<td>&#x2013;</td>
<td>95</td>
<td>50</td>
</tr>
<tr>
<td>Wind</td>
<td>0/02</td>
<td>90</td>
<td>&#x2013;</td>
<td>90</td>
<td>50</td>
</tr>
<tr>
<td>Heat system</td>
<td>0/01</td>
<td>&#x2013;</td>
<td>&#x2013;</td>
<td>&#x2013;</td>
<td>450</td>
</tr>
<tr>
<td>Battery</td>
<td>0/01</td>
<td>&#x2013;</td>
<td>&#x2013;</td>
<td>&#x2013;</td>
<td>&#x2212;20/20</td>
</tr>
<tr>
<td>Battery size</td>
<td>0/02</td>
<td>95/90</td>
<td>&#x2013;</td>
<td>&#x2013;</td>
<td>100</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s7_2">
<label>7.2</label>
<title>Case Studies and Results</title>
<p>In this simulation, the number of scenarios for each parameter is reduced to three scenarios by using the introduced method. The data of electric and thermal loads, wind and solar generations, previous-day electricity price, and real-time electricity price for the three scenarios are presented in <xref ref-type="fig" rid="fig-3">Figs. 3</xref> and <xref ref-type="fig" rid="fig-4">4</xref>.</p>
<fig id="fig-3">
<label>Figure 3</label>
<caption>
<title>Electric load curve</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="EE_21410-fig-3.png"/>
</fig><fig id="fig-4">
<label>Figure 4</label>
<caption>
<title>Thermal load curve</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="EE_21410-fig-4.png"/>
</fig>
<p>The electricity and natural gas prices for the three scenarios are given in <xref ref-type="fig" rid="fig-5">Fig. 5</xref>.</p>
<fig id="fig-5">
<label>Figure 5</label>
<caption>
<title>Electricity price for three scenarios for previous-day and real-time modes</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="EE_21410-fig-5a.png"/>
<graphic mimetype="image" mime-subtype="png" xlink:href="EE_21410-fig-5b.png"/>
</fig>
<p>Solar and wind units&#x2019; generation for each scenario is depicted in <xref ref-type="fig" rid="fig-6">Figs. 6</xref> and <xref ref-type="fig" rid="fig-7">7</xref>.</p>
<fig id="fig-6">
<label>Figure 6</label>
<caption>
<title>Power generated by the wind power station</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="EE_21410-fig-6.png"/>
</fig><fig id="fig-7">
<label>Figure 7</label>
<caption>
<title>Power generated by the solar power station</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="EE_21410-fig-7.png"/>
</fig>
<p>The simulation results are presented and discussed in this section. The bidding strategy problem in the multi-carrier MG is applied to implemented on the proposed grid. Seven modes are considered to evaluate the model.</p>
<p>Mode 1. Purchase and sales strategy with previous-day and real-time electricity price uncertainty</p>
<p>Mode 2. Purchase and sales strategy with all the uncertainties in previous-day and real-time electricity price, electric and thermal loads as well as RES generation</p>
<p>Mode 3. Effect of previous-day electricity price variation on the purchasing and sales strategies with all the uncertainties in the paper</p>
<p>Mode 4. Effect of RES power station (wind and solar) on the purchasing and sales strategy with all the uncertainties in the paper</p>
<p>Mode 5. Effect of battery capacity on the purchasing and sales strategy with all the uncertainties in the paper</p>
<p>Mode 6. Effect of gas price on the purchasing and sales strategies, with all the uncertainties in the paper</p>
<p>Mode 7. Effect of uncertainties on the cost of MG operation</p>
<p><italic>Mode 1:</italic> Here, the proposed strategy is applied to a multi-carrier MG. <xref ref-type="fig" rid="fig-8">Fig. 8</xref> compares the cost of MG operation in the previous-day and real-time market with previous-day and real-time market electricity price uncertainty. Based on <xref ref-type="fig" rid="fig-8">Fig. 8</xref>, the cost of operation is considerably reduced for the dual participation model compared to the model, in which it participates only in the previous-day or real-time markets. The cost of MG operation is severely increased if it participates in the real-time market due to the high electricity price, compared to participating in the previous-day market. The comparison of optimal MG operation with/without participation in the previous-day market shows that the cost of MG operation is reduced by about 5.2% with dual participation, compared to participation only in the real-time market.</p>
<fig id="fig-8">
<label>Figure 8</label>
<caption>
<title>Cost of MG operation with uncertainty in the previous-day and real-time electricity price</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="EE_21410-fig-8.png"/>
</fig>
<p><italic>Mode 2:</italic> To demonstrate the importance of the proposed strategy for a multi-carrier MG and using the proposed strategy for MG operation by considering previous-day and real-time market electricity price, the electric and thermal load and RES generation (solar and wind) are simulated in mode 2.</p>
<p><xref ref-type="fig" rid="fig-9">Fig. 9</xref> compares the cost of MG operation in dual participation mode with the uncertainty in all previous-day and real-time market parameters. Based on <xref ref-type="fig" rid="fig-9">Fig. 9</xref>, each cost of operation is increased in the dual participation mode compared to participating only in the previous-day market, due to a rise in electric and thermal loads and a reduction in DG prediction. Compared to the single participation in the real-time market, it has been reduced due to the expensive electricity price in the real-time market. This mode reveals that the cost of operation has increased during dual participation compared to Mode 1 due to having a more realistic model with different uncertainties. This difference in costs could seem unreasonable at first; however, due to uncertainties in DG and energy price, the MG tends to purchase energy from the previous-day market due to the low electricity price, while it tends to sell energy at a higher price on the real-time market.</p>
<fig id="fig-9">
<label>Figure 9</label>
<caption>
<title>Comparison of the cost of MG operation in dual participation mode with the uncertainty in all previous-day and real-time market parameters</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="EE_21410-fig-9.png"/>
</fig>
<p><xref ref-type="fig" rid="fig-10">Figs. 10</xref> and <xref ref-type="fig" rid="fig-11">11</xref> display the average purchased/sold energy on the previous-day market and the energy exchanges on the real-time market to compensate for the imbalance. In <xref ref-type="fig" rid="fig-11">Fig. 11</xref>, the image of a clock is used to display the forward sales/purchases on the previous-day market, as well as the energy sales/purchase on the real-time market to compensate for load imbalance. A binary variable is used to see whether the forward sales/purchase of energy in the first stage was cost-effective or not, denoted by 0 (no) and 1 (yes). Based on the following two figures, in the first stage, the MG tended to sell energy at 1, 2, 3, 5, 6, and 23&#x2013;24 due to the low consumption and high generation, but generation or economic profit from the real-time purchase was impossible for the MG. This could be because, appraising and considering maximum generation for RES units on the previous day, less energy was generated on the real-time market due to uncertainty.</p>
<fig id="fig-10">
<label>Figure 10</label>
<caption>
<title>Average energy (purchased/sold) on the previous-day market and energy exchanges on the real-time market</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="EE_21410-fig-10.png"/>
</fig><fig id="fig-11">
<label>Figure 11</label>
<caption>
<title>Average energy (purchased/sold) on the previous-day market and energy exchanges on the real-time market</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="EE_21410-fig-11.png"/>
</fig>
<p>After second-stage analysis and examining the defined binary variable (confirmation of sales or purchase on the previous-day market), it is concluded that the MG should sell the surplus electricity in the real-time market due to the high electricity price. Evidently, the MG operator had decided to sell energy in the forward sales and purchase strategy at 4, while it needed to purchase a small amount of electricity from the upstream grid, even at that hour in the real-time market. At 7&#x2013;9, 11&#x2013;15, 17, 19, and 20&#x2013;22, the MG operator decided to purchase electricity from the upstream grid, which is acceptable at most hours, and even purchase a small amount of electricity from the grid to supply the surplus load on the real-time market. The rejection of the forward electricity purchase at 10 and 18 is notable; the operator has realized in the real-time stage that the electricity price has been reduced on the real-time market and found it cost-effective to purchase all the electricity on the real-time market.</p>
<p>Finally, it is concluded that the MG operator should forward purchase electricity at peak hours due to the uncertainties; however, it should not forward sell any electricity and, instead, sell the surplus electricity on the real-time market. Forward purchase of surplus electricity is more optimal than a little forward purchase to overcome the uncertainties because it is possible to sell the forward-purchased surplus electricity on the real-time market.</p>
<p><italic>Mode 3:</italic>
<xref ref-type="fig" rid="fig-12">Fig. 12</xref> and <xref ref-type="table" rid="table-2">Table 2</xref> show the effect of variations (increases/decreases) in the previous-day electricity price on the cost of MG operation. Evidently, if the previous-day market electricity price has a declining trend, the cost of MG operation is reduced when participating only in the previous-day market; in this case, it is cost-effective for the MG operator to forward purchase on the previous-day market.</p>
<fig id="fig-12">
<label>Figure 12</label>
<caption>
<title>Effect of electricity price variations in the previous-day, real-time and dual participation on the cost of MG operation</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="EE_21410-fig-12.png"/>
</fig><table-wrap id="table-2">
<label>Table 2</label>
<caption>
<title>Scenario of the percentage of changes in electricity prices compared to Mode 2 on the previous-day market</title>
</caption>
<table frame="hsides">
<colgroup>
<col align="left"/>
<col align="left"/>
<col align="left"/>
<col align="left"/>
<col align="left"/>
</colgroup>
<thead>
<tr>
<th>Scenario</th>
<th>Electricity price changes</th>
<th colspan="3" align="center">Operation costs ($)</th>
</tr>
<tr>
<th/>
<th/>
<th>RT</th>
<th>DA&#x0026;RT</th>
<th>DA</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>&#x2212;50%</td>
<td>547/8721</td>
<td>431/3794</td>
<td>406/6590</td>
</tr>
<tr>
<td>2</td>
<td>&#x2212;30%</td>
<td>547/8721</td>
<td>473/2795</td>
<td>440/7312</td>
</tr>
<tr>
<td>3</td>
<td>&#x2212;20%</td>
<td>547/8721</td>
<td>494/1735</td>
<td>457/4609</td>
</tr>
<tr>
<td>4</td>
<td>&#x2212;10%</td>
<td>547/8721</td>
<td>515/1937</td>
<td>474/1613</td>
</tr>
<tr>
<td>5</td>
<td>0%</td>
<td>547/8721</td>
<td>535/5298</td>
<td>490/8398</td>
</tr>
<tr>
<td>6</td>
<td>10%</td>
<td>547/8721</td>
<td>546/1913</td>
<td>507/5003</td>
</tr>
<tr>
<td>7</td>
<td>20%</td>
<td>547/8721</td>
<td>545/0163</td>
<td>524/118</td>
</tr>
<tr>
<td>8</td>
<td>30%</td>
<td>547/8721</td>
<td>541/5598</td>
<td>540/8028</td>
</tr>
<tr>
<td>9</td>
<td>50%</td>
<td>547/8721</td>
<td>533/3108</td>
<td>574/1011</td>
</tr>
<tr>
<td>10</td>
<td>100%</td>
<td>547/8721</td>
<td>512/3133</td>
<td>657/3025</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>Interestingly, in this mode, the final cost of participation in the real-time market alone is more than the other two modes. Overall, if the electricity price remains unchanged, the costs of operation in the previous-day and real-time markets also remains unchanged. If the electricity price increases by 10%, then the cost of operation only in the previous-day participation model or dual participation slightly increases. Nevertheless, if the electricity price gradually increases by 20% and above, the cost of operation in the previous-day participation model rises, while it decreases during dual participation. By raising the electricity price up to 30% on the previous-day market, the cost of operation increases only when participating in the previous-day market; however, in the dual participation model, the changes were not significant; the cost of operation is still higher when participating only in the real-time market. The declining trend of the operation cost with a &#x003E;30% rise in the previous-day electricity price in the dual participation model is notable, which is due to the sale of electricity on the previous-day market, only to then purchase it in the real-time market.</p>
<p>Based on <xref ref-type="fig" rid="fig-12">Fig. 12</xref>, the minimum 50% rise in the electricity price in the previous-day market has led to an exponential elevation in the cost of operation in the previous-day market, but a reduction in the cost of dual participation. In this model, the operation cost of dual participation is less than participation only in the real-time market. It is shown that when the electricity price is increased by 100% in the previous-day market, to reduce the cost of MG operation, a very little amount of energy should be purchased from the previous-day market and the maximum amount of energy from the real-time market.</p>
<p><italic>Mode 4:</italic>
<xref ref-type="fig" rid="fig-13">Fig. 13</xref> depicts the effects of RES (wind and solar) power station capacity on the cost of operation; the more the capacity of the RES power station increases, the more the cost of operation would decrease. The notable point in this scenario is that, by increasing the RES units&#x2019; capacity by 10 times, the cost of MG operation will greatly decrease. Based on <xref ref-type="table" rid="table-3">Table 3</xref>, with this extent of RES power station installation, there is no need to participate in the previous-day market and the consumer can trade all the required energy on the real-time market.</p>
<fig id="fig-13">
<label>Figure 13</label>
<caption>
<title>Capacity of RES power station in previous-day, real-time and dual participation on the cost of operation</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="EE_21410-fig-13.png"/>
</fig><table-wrap id="table-3">
<label>Table 3</label>
<caption>
<title>Effect of RES power station capacity</title>
</caption>
<table frame="hsides">
<colgroup>
<col align="left"/>
<col align="left"/>
<col align="left"/>
<col align="left"/>
<col align="left"/>
</colgroup>
<thead>
<tr>
<th>Scenario</th>
<th colspan="3" align="center">Operation costs ($)</th>
<th>Renewable power plant capacity change coefficient</th>
</tr>
<tr>
<th/>
<th>RT</th>
<th>DA&#x0026;RT</th>
<th>DA</th>
<th/>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>593/938</td>
<td>577/0783</td>
<td>572/895</td>
<td>0</td>
</tr>
<tr>
<td>2</td>
<td>570/841</td>
<td>556/1308</td>
<td>531/637</td>
<td>0/5</td>
</tr>
<tr>
<td>3</td>
<td>547/8728</td>
<td>535/5319</td>
<td>490/8398</td>
<td>1</td>
</tr>
<tr>
<td>4</td>
<td>502/2383</td>
<td>494/3118</td>
<td>410/6963</td>
<td>2</td>
</tr>
<tr>
<td>5</td>
<td>457/1622</td>
<td>452/0738</td>
<td>332/7513</td>
<td>3</td>
</tr>
<tr>
<td>6</td>
<td>412/8873</td>
<td>409/6016</td>
<td>256/5412</td>
<td>4</td>
</tr>
<tr>
<td>7</td>
<td>369/448</td>
<td>367/0828</td>
<td>182/9038</td>
<td>5</td>
</tr>
<tr>
<td>8</td>
<td>160/1258</td>
<td>160/1271</td>
<td>&#x2212;176/811</td>
<td>10</td>
</tr>
</tbody>
</table>
</table-wrap>
<p><italic>Mode 5:</italic>
<xref ref-type="fig" rid="fig-14">Fig. 14</xref> and <xref ref-type="table" rid="table-4">Table 4</xref> present the effect of battery capacity on the cost of operation. Based on this scenario, by increasing the battery capacity, the system operator will have more flexibility in selling/purchasing energy in all three modes (participation in previous-day market, participation in day-ahead market and both), which eventually reduces the cost of MG operation.</p>
<fig id="fig-14">
<label>Figure 14</label>
<caption>
<title>Effect of battery capacity in previous-day, real-time and dual participation on the cost of operation</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="EE_21410-fig-14.png"/>
</fig><table-wrap id="table-4">
<label>Table 4</label>
<caption>
<title>Effect of increasing the battery capacity on the cost of MG operation</title>
</caption>
<table frame="hsides">
<colgroup>
<col align="left"/>
<col align="left"/>
<col align="left"/>
<col align="left"/>
<col align="left"/>
<col align="left"/>
</colgroup>
<thead>
<tr>
<th>Scenario</th>
<th colspan="3" align="center">Operation costs ($)</th>
<th>Converter power (kV)</th>
<th>Battery power (kWh)</th>
</tr>
<tr>
<th/>
<th>RT</th>
<th>DA&#x0026;RT</th>
<th>DA</th>
<th/>
<th/>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>549/9428</td>
<td>537/6078</td>
<td>493/4338</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>2</td>
<td>548/9375</td>
<td>536/5838</td>
<td>492/1697</td>
<td>10</td>
<td>50</td>
</tr>
<tr>
<td>3</td>
<td>547/8735</td>
<td>535/5319</td>
<td>490/8390</td>
<td>20</td>
<td>100</td>
</tr>
<tr>
<td>4</td>
<td>546/8263</td>
<td>534/5206</td>
<td>489/5109</td>
<td>30</td>
<td>150</td>
</tr>
<tr>
<td>5</td>
<td>545/8108</td>
<td>533/5153</td>
<td>488/2788</td>
<td>40</td>
<td>200</td>
</tr>
<tr>
<td>6</td>
<td>544/8443</td>
<td>532/5078</td>
<td>487/0966</td>
<td>50</td>
<td>250</td>
</tr>
<tr>
<td>7</td>
<td>543/9458</td>
<td>531/558</td>
<td>485/9123</td>
<td>60</td>
<td>300</td>
</tr>
<tr>
<td>8</td>
<td>540/8133</td>
<td>528/0439</td>
<td>481/6819</td>
<td>100</td>
<td>500</td>
</tr>
<tr>
<td>9</td>
<td>531/7411</td>
<td>515/7596</td>
<td>470/7729</td>
<td>250</td>
<td>1000</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>As an example, the ESS performance in the main model is illustrated in <xref ref-type="fig" rid="fig-15">Fig. 15</xref>. The battery performance shows that the MG tends to charge in non-peak hours, while energy discharge is done to supply loads in peak hours when the electricity price is high. Also, the effect of increasing natural gas price is presented in <xref ref-type="table" rid="table-5">Table 5</xref> for the operation cost.</p>
<fig id="fig-15">
<label>Figure 15</label>
<caption>
<title>ESS performance in the main model</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="EE_21410-fig-15.png"/>
</fig><table-wrap id="table-5">
<label>Table 5</label>
<caption>
<title>Effect of increasing natural gas price on the cost of operation</title>
</caption>
<table frame="hsides">
<colgroup>
<col align="left"/>
<col align="left"/>
<col align="left"/>
<col align="left"/>
<col align="left"/>
</colgroup>
<thead>
<tr>
<th>Scenario</th>
<th colspan="3" align="center">Operation costs ($)</th>
<th>Electricity price changes</th>
</tr>
<tr>
<th/>
<th>RT</th>
<th>DA&#x0026;RT</th>
<th>DA</th>
<th/>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>547/8708</td>
<td>535/5318</td>
<td>490/8412</td>
<td>1</td>
</tr>
<tr>
<td>2</td>
<td>609/7918</td>
<td>597/4508</td>
<td>552/7613</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>671/7111</td>
<td>659/3706</td>
<td>614/6786</td>
<td>3</td>
</tr>
<tr>
<td>4</td>
<td>795/5509</td>
<td>783/2078</td>
<td>738/1212</td>
<td>5</td>
</tr>
<tr>
<td>5</td>
<td>918/2653</td>
<td>902/9928</td>
<td>856/1811</td>
<td>7</td>
</tr>
<tr>
<td>6</td>
<td>1064/528</td>
<td>1028/483</td>
<td>978/5911</td>
<td>10</td>
</tr>
</tbody>
</table>
</table-wrap>
<p><italic>Mode 6:</italic>
In <xref ref-type="table" rid="table-6">Table 6</xref> and <xref ref-type="fig" rid="fig-16">Fig. 16</xref>, it is observed that the electricity price depends on the gas price on the previous day and in real-time; by increasing the gas price, the electricity prices also rise, thereby increasing the total cost of MG operation.</p>
<table-wrap id="table-6">
<label>Table 6</label>
<caption>
<title>Effect of uncertainties on the cost of MG operation</title>
</caption>
<table frame="hsides">
<colgroup>
<col align="left"/>
<col align="left"/>
<col align="left"/>
<col align="left"/>
<col align="left"/>
</colgroup>
<thead>
<tr>
<th/>
<th colspan="4" align="center">Scenarios</th>
</tr>
</thead>
<tbody>
<tr>
<td>Number</td>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>Loads</td>
<td>&#x221A;</td>
<td></td>
<td>&#x221A;</td>
<td>&#x221A;</td>
</tr>
<tr>
<td>Renewables</td>
<td></td>
<td>&#x221A;</td>
<td>&#x221A;</td>
<td>&#x221A;</td>
</tr>
<tr>
<td>Energy price</td>
<td>&#x221A;</td>
<td>&#x221A;</td>
<td></td>
<td>&#x221A;</td>
</tr>
<tr>
<td>Operation costs ($)</td>
<td>482/12</td>
<td>519/38</td>
<td>528/28</td>
<td>529/69</td>
</tr>
</tbody>
</table>
</table-wrap><fig id="fig-16">
<label>Figure 16</label>
<caption>
<title>Electricity price to gas price in the previous-day, real-time and dual participation</title>
</caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="EE_21410-fig-16.png"/>
</fig>
<p><italic>Mode 7:</italic> In this model, the effect of uncertainty on the MG cost in the dual participation model is studied based on <xref ref-type="table" rid="table-6">Table 6</xref>. Evidently, the absence of uncertainty in RES generation has unrealistically decreased the costs.</p>

<p>In Scenario 1, the importance of RES and battery uncertainty on the cost of MG operation is greater than in the other modes. If uncertainty is not included, the real cost of MG is underestimated unrealistically due to assuming maximum RES generation. Therefore, considering RES uncertainty even with low capacity in MG operation is inevitable. However, in the model that does not consider load uncertainty, the cost of operation is markedly increased compared to Scenario 1, which could partly be due to considering uncertainty in RES generation. In Scenario 3, the effect of disregarding uncertainty on price has increased the cost of operation compared to Scenario 2. Comparison of Scenarios 2 and 3 reveals it is due to the greater importance of considering load uncertainty and, to a lesser extent, disregarding price uncertainty, which has further increased the costs in the MG. Uncertainty is considered in all cases in Scenario 4, in which compared to Scenario 3, the cost of operation is slightly reduced. The important conclusion is that the simultaneous operation of several energy carriers, e.g., electricity and gas, greatly mitigates the effects of electricity price variations on the cost of MG operation; in fact, the effects of electricity price uncertainty have diminished, whether regarding the previous-day market or the real-time market.</p>
</sec>
</sec>
<sec id="s8">
<label>8</label>
<title>Conclusion</title>
<p>Energy hubs play a mediating role in the entire interplay of energy resources, like that of an electrical energy retailer, with the difference being that the manager owns the equipment within the hub. By using the existing electricity and gas sources to purchase energy, CHP equipment and heating furnaces for energy conversion, greater infrastructural problems can obe overcome while those hubs can simultaneously maximize profits.</p>
<p>Electric and thermal energies are at the hub output, able to be sold, of which generates revenue for that hub. Electrical energy is supplied from the power pool market, and yet prices in the pool market inherently have uncertainties. Thermal energy is supplied by CHP gas units and the heating furnace. The price of this carrier is assumed to be constant due to the minor price fluctuations in the gas grid. The thermal energy generated by gas can also be assumed as having a constant price with acceptable variation in accuracy.</p>
<p>The electrical energy is purchased from the electrical energy market at a variable price, but sold to the consumers at a constant price. This is why selecting a proper price for selling electrical energy to maximize the profit and keep the customers is of utmost importance. This paper performed the simultaneous economic dispatch optimization of carriers&#x2019; energy for electric and hydraulic systems in a setting with uncertainties on the previous-day and real-time markets in a multi-carrier MG.</p>
<p>In this model, the energy management system of the multi-carrier MG bided on energy sales/purchases to the distribution system operator to participate in the previous-day market. Decision-making was defined as follows: How much energy should the hub manager purchase from the electrical energy market and the gas grid per hour, so that it can make the maximum profit by using the purchased carriers and the existing gas units? The bidding price should also be included in the decision variables. Finally, a developed optimization algorithm based on harmony search was employed to solve the problem. Based on the results, by increasing the electricity price in the real-time market, the cost of MG operation was markedly reduced due to energy sales. Furthermore, the simultaneous operation of several energy carriers, e.g., electricity and gas, considerably mitigated the effects of uncertainties on the cost of MG operation. Future work will try to focus on the storage system and demand-side management for the cost. Also, the pollution target function should be considered as a target.</p>
</sec>
</body>
<back>
<glossary content-type="abbreviations" id="glossary-1">
<title>Abbreviations</title>
<def-list>
<def-item>
<term>c:</term>
<def>
<p>Price</p>
</def>
</def-item>
<def-item>
<term>po:</term>
<def>
<p>Energy production</p>
</def>
</def-item>
<def-item>
<term>p:</term>
<def>
<p>Received energy</p>
</def>
</def-item>
<def-item>
<term>T:</term>
<def>
<p>Transferred energy</p>
</def>
</def-item>
<def-item>
<term>E:</term>
<def>
<p>Storage energy</p>
</def>
</def-item>
<def-item>
<term>I:</term>
<def>
<p>Binary variable of storage status</p>
</def>
</def-item>
<def-item>
<term>L:</term>
<def>
<p>Unresponsive demand</p>
</def>
</def-item>
<def-item>
<term>M:</term>
<def>
<p>Charge and discharge energy of storage</p>
</def>
</def-item>
<def-item>
<term>t:</term>
<def>
<p>Hour</p>
</def>
</def-item>
<def-item>
<term>RP:</term>
<def>
<p>Distributed generation</p>
</def>
</def-item>
<def-item>
<term><inline-formula id="ieqn-20"><mml:math id="mml-ieqn-20"><mml:msub><mml:mrow><mml:mtext>P</mml:mtext></mml:mrow><mml:mrow><mml:mrow><mml:mtext>r</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula>:</term>
<def>
<p>Nominal power</p>
</def>
</def-item>
<def-item>
<term>R:</term>
<def>
<p>Irradiation</p>
</def>
</def-item>
<def-item>
<term>v:</term>
<def>
<p>Wind velocity</p>
</def>
</def-item>
<def-item>
<term><inline-formula id="ieqn-21"><mml:math id="mml-ieqn-21"><mml:mrow><mml:mtext>a</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mtext>B</mml:mtext></mml:mrow></mml:math></inline-formula>:</term>
<def>
<p>Vibal selection parameters</p>
</def>
</def-item>
<def-item>
<term><inline-formula id="ieqn-22"><mml:math id="mml-ieqn-22"><mml:mi>&#x03C6;</mml:mi><mml:mo>,</mml:mo><mml:mi>&#x03B4;</mml:mi></mml:math></inline-formula>:</term>
<def>
<p>Beta selection parameters</p>
</def>
</def-item>
<def-item>
<term><inline-formula id="ieqn-23"><mml:math id="mml-ieqn-23"><mml:mrow><mml:mi mathvariant="normal">&#x03B7;</mml:mi></mml:mrow></mml:math></inline-formula>:</term>
<def>
<p>Units performance</p>
</def>
</def-item>
<def-item>
<term><inline-formula id="ieqn-24"><mml:math id="mml-ieqn-24"><mml:mrow><mml:mtext>K</mml:mtext></mml:mrow></mml:math></inline-formula>:</term>
<def>
<p>Maintenance cost ratio</p>
</def>
</def-item>
<def-item>
<term><inline-formula id="ieqn-25"><mml:math id="mml-ieqn-25"><mml:mrow><mml:mtext>S</mml:mtext></mml:mrow></mml:math></inline-formula>:</term>
<def>
<p>Storage coupling coefficient</p>
</def>
</def-item>
<def-item>
<term><inline-formula id="ieqn-26"><mml:math id="mml-ieqn-26"><mml:mi>&#x03C3;</mml:mi></mml:math></inline-formula>:</term>
<def>
<p>Standard deviations</p>
</def>
</def-item>
<def-item>
<term><inline-formula id="ieqn-27"><mml:math id="mml-ieqn-27"><mml:mi>&#x03BC;</mml:mi></mml:math></inline-formula>:</term>
<def>
<p>Average value</p>
</def>
</def-item>
<def-item>
<term><inline-formula id="ieqn-28"><mml:math id="mml-ieqn-28"><mml:mrow><mml:mtext>m</mml:mtext></mml:mrow></mml:math></inline-formula>:</term>
<def>
<p>MG numbers</p>
</def>
</def-item>
<def-item>
<term><inline-formula id="ieqn-29"><mml:math id="mml-ieqn-29"><mml:mrow><mml:mtext>s</mml:mtext></mml:mrow></mml:math></inline-formula>:</term>
<def>
<p>Scenario</p>
</def>
</def-item>
<def-item>
<term>Pix:</term>
<def>
<p>Pre-purchase/sale confirmation</p>
</def>
</def-item>
<def-item>
<term><inline-formula id="ieqn-30"><mml:math id="mml-ieqn-30"><mml:mrow><mml:mtext>P</mml:mtext></mml:mrow></mml:math></inline-formula>:</term>
<def>
<p>Energy purchase price</p>
</def>
</def-item>
<def-item>
<term><inline-formula id="ieqn-31"><mml:math id="mml-ieqn-31"><mml:mi>&#x03C5;</mml:mi></mml:math></inline-formula>:</term>
<def>
<p>Gas distribution coefficient</p>
</def>
</def-item>
<def-item>
<term><inline-formula id="ieqn-32"><mml:math id="mml-ieqn-32"><mml:mrow><mml:mi mathvariant="normal">&#x03A9;</mml:mi></mml:mrow></mml:math></inline-formula>:</term>
<def>
<p>Probability</p>
</def>
</def-item>
<def-item>
<term>pv:</term>
<def>
<p>photovoltaic</p>
</def>
</def-item>
<def-item>
<term>wt:</term>
<def>
<p>Wind turbine</p>
</def>
</def-item>
<def-item>
<term>Ru:</term>
<def>
<p>Restructured units</p>
</def>
</def-item>
<def-item>
<term>chp:</term>
<def>
<p>Combined heat and power</p>
</def>
</def-item>
<def-item>
<term>EHP:</term>
<def>
<p>Electric heat pump</p>
</def>
</def-item>
<def-item>
<term>AB:</term>
<def>
<p>Boiler</p>
</def>
</def-item>
<def-item>
<term>ES:</term>
<def>
<p>Energy storage</p>
</def>
</def-item>
<def-item>
<term>Net:</term>
<def>
<p>Network</p>
</def>
</def-item>
<def-item>
<term>char:</term>
<def>
<p>Charger storage power converter</p>
</def>
</def-item>
<def-item>
<term>dischar:</term>
<def>
<p>Discharge storage power converter</p>
</def>
</def-item>
<def-item>
<term>trans:</term>
<def>
<p>Transformer</p>
</def>
</def-item>
<def-item>
<term>e:</term>
<def>
<p>Electricity</p>
</def>
</def-item>
<def-item>
<term>g:</term>
<def>
<p>Natural gas</p>
</def>
</def-item>
<def-item>
<term>h:</term>
<def>
<p>Heat</p>
</def>
</def-item>
<def-item>
<term>tot:</term>
<def>
<p>Total</p>
</def>
</def-item>
<def-item>
<term>p:</term>
<def>
<p>Input porter</p>
</def>
</def-item>
<def-item>
<term>l:</term>
<def>
<p>Output porter</p>
</def>
</def-item>
<def-item>
<term>O:</term>
<def>
<p>Initial value</p>
</def>
</def-item>
<def-item>
<term>stb:</term>
<def>
<p>Storage energy losses</p>
</def>
</def-item>
<def-item>
<term>O&#x0026;M:</term>
<def>
<p>Operation and maintenance</p>
</def>
</def-item>
<def-item>
<term>ci:</term>
<def>
<p>Minimum velocity</p>
</def>
</def-item>
<def-item>
<term>co:</term>
<def>
<p>Maximum velocity</p>
</def>
</def-item>
<def-item>
<term>ce:</term>
<def>
<p>Specific radiation point</p>
</def>
</def-item>
<def-item>
<term>STAD:</term>
<def>
<p>Standard situation</p>
</def>
</def-item>
<def-item>
<term>RT:</term>
<def>
<p>Real time</p>
</def>
</def-item>
<def-item>
<term>DA:</term>
<def>
<p>Day ahead</p>
</def>
</def-item>
</def-list>
</glossary>
<fn-group>
<fn fn-type="other"><p><bold>Funding Statement:</bold> This work was supported as a Major Project of the Beijing Social Science Foundation &#x201C;Research on Financial Support System Adapting to the Coordinated Development of Strategic Emerging Industries in Beijing-Tianjin-Hebei&#x201D;, No. 20ZDA11.</p>
</fn>
<fn fn-type="conflict"><p><bold>Conflicts of Interest:</bold> The authors declare that they have no conflicts of interest to report regarding the present study.</p>
</fn>
</fn-group>
<ref-list content-type="authoryear">
<title>References</title>
<ref id="ref-1"><label>1.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Cao</surname>, <given-names>W.</given-names></string-name>, <string-name><surname>Pan</surname>, <given-names>X.</given-names></string-name>, <string-name><surname>Sobhani</surname>, <given-names>B.</given-names></string-name></person-group> (<year>2021</year>). <article-title>Integrated demand response based on household and photovoltaic load and oscillations effects</article-title>. <source>International Journal of Hydrogen Energy</source><italic>,</italic> <volume>46</volume><italic>(</italic><issue>79</issue><italic>),</italic> <fpage>39523</fpage>&#x2013;<lpage>39535</lpage>.</mixed-citation></ref>
<ref id="ref-2"><label>2.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Wang</surname>, <given-names>C.</given-names></string-name>, <string-name><surname>Zhang</surname>, <given-names>Z.</given-names></string-name>, <string-name><surname>Abedinia</surname>, <given-names>O.</given-names></string-name>, <string-name><surname>Farkoush</surname>, <given-names>S. G.</given-names></string-name></person-group> (<year>2021</year>). <article-title>Modeling and analysis of a microgrid considering the uncertainty in renewable energy resources, energy storage systems and demand management in electrical retail market</article-title>. <source>Journal of Energy Storage</source><italic>,</italic> <volume>33</volume><italic>,</italic> <fpage>102111</fpage>.</mixed-citation></ref>
<ref id="ref-3"><label>3.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Huang</surname>, <given-names>S.</given-names></string-name>, <string-name><surname>Abedinia</surname>, <given-names>O.</given-names></string-name></person-group> (<year>2021</year>). <article-title>Investigation in economic analysis of microgrids based on renewable energy uncertainty and demand response in the electricity market</article-title>. <source>Energy</source><italic>,</italic> <volume>225</volume><italic>,</italic> <fpage>120247</fpage>.</mixed-citation></ref>
<ref id="ref-4"><label>4.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Abedinia</surname>, <given-names>O.</given-names></string-name>, <string-name><surname>Lotfi</surname>, <given-names>M.</given-names></string-name>, <string-name><surname>Bagheri</surname>, <given-names>M.</given-names></string-name>, <string-name><surname>Sobhani</surname>, <given-names>B.</given-names></string-name>, <string-name><surname>Shafie-Khah</surname>, <given-names>M.</given-names></string-name> <etal>et al.</etal></person-group> (<year>2020</year>). <article-title>Improved EMD-based complex prediction model for wind power forecasting</article-title>. <source>IEEE Transactions on Sustainable Energy</source><italic>,</italic> <volume>11</volume><italic>(</italic><issue>4</issue><italic>),</italic> <fpage>2790</fpage>&#x2013;<lpage>2802</lpage>.</mixed-citation></ref>
<ref id="ref-5"><label>5.</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Nurmanova</surname>, <given-names>V.</given-names></string-name>, <string-name><surname>Bagheri</surname>, <given-names>M.</given-names></string-name>, <string-name><surname>Abedinia</surname>, <given-names>O.</given-names></string-name>, <string-name><surname>Sobhani</surname>, <given-names>B.</given-names></string-name>, <string-name><surname>Mohammad</surname>, <given-names>S.</given-names></string-name></person-group> (<year>2018</year>). <article-title>A synthetic forecast engine for wind power prediction</article-title>. <conf-name>2018 7th International Conference on Renewable Energy Research and Applications (ICRERA)</conf-name>, pp. <fpage>732</fpage>&#x2013;<lpage>737</lpage>. Paris, France, <publisher-name>IEEE</publisher-name>. </mixed-citation></ref>
<ref id="ref-6"><label>6.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Yang</surname>, <given-names>J. C. </given-names></string-name> <string-name><surname>Sobhani</surname>, <given-names>B.</given-names></string-name></person-group> (<year>2021</year>). <article-title>Integration of biomass gasification with a supercritical CO<sub>2</sub> and Kalina cycles in a combined heating and power system: A thermodynamic and exergoeconomic analysis</article-title>. <source>Energy</source><italic>,</italic> <volume>222</volume><italic>,</italic> <fpage>119980</fpage>.</mixed-citation></ref>
<ref id="ref-7"><label>7.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Luo</surname>, <given-names>L.</given-names></string-name>, <string-name><surname>Abdulkareem</surname>, <given-names>S. S.</given-names></string-name>, <string-name><surname>Rezvani</surname>, <given-names>A.</given-names></string-name>, <string-name><surname>Miveh</surname>, <given-names>M. R.</given-names></string-name>, <string-name><surname>Samad</surname>, <given-names>S.</given-names></string-name> <etal>et al.</etal></person-group> (<year>2020</year>). <article-title>Optimal scheduling of a renewable-based microgrid considering photovoltaic system and battery energy storage under uncertainty</article-title>. <source>Journal of Energy Storage</source><italic>,</italic> <volume>28</volume><italic>(</italic><issue>25</issue><italic>),</italic> <fpage>101306</fpage>. DOI <pub-id pub-id-type="doi">10.1016/j.est.2020.101306</pub-id>.</mixed-citation></ref>
<ref id="ref-8"><label>8.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Jani</surname>, <given-names>A.</given-names></string-name>, <string-name><surname>Karimi</surname>, <given-names>H.</given-names></string-name>, <string-name><surname>Jadid</surname>, <given-names>S.</given-names></string-name></person-group> (<year>2021</year>). <article-title>Hybrid energy management for islanded networked microgrids considering battery energy storage and wasted energy</article-title>. <source>Journal of Energy Storage</source><italic>,</italic> <volume>40</volume><italic>(</italic><issue>6</issue><italic>),</italic> <fpage>102700</fpage>. DOI <pub-id pub-id-type="doi">10.1016/j.est.2021.102700</pub-id>.</mixed-citation></ref>
<ref id="ref-9"><label>9.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Benlahbib</surname>, <given-names>B.</given-names></string-name>, <string-name><surname>Bouarroudj</surname>, <given-names>N.</given-names></string-name>, <string-name><surname>Mekhilef</surname>, <given-names>S.</given-names></string-name>, <string-name><surname>Abdeldjalil</surname>, <given-names>D.</given-names></string-name>, <string-name><surname>Abdelkrim</surname>, <given-names>T.</given-names></string-name> <etal>et al.</etal></person-group> (<year>2020</year>). <article-title>Experimental investigation of power management and control of a PV/wind/fuel cell/battery hybrid energy system microgrid</article-title>. <source>International Journal of Hydrogen Energy</source><italic>,</italic> <volume>45</volume><italic>(</italic><issue>53</issue><italic>),</italic> <fpage>29110</fpage>&#x2013;<lpage>29122</lpage>. DOI <pub-id pub-id-type="doi">10.1016/j.ijhydene.2020.07.251</pub-id>.</mixed-citation></ref>
<ref id="ref-10"><label>10.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Hamedi</surname>, <given-names>K.</given-names></string-name>, <string-name><surname>Sadeghi</surname>, <given-names>S.</given-names></string-name>, <string-name><surname>Esfandi</surname>, <given-names>S.</given-names></string-name>, <string-name><surname>Azimian</surname>, <given-names>M.</given-names></string-name>, <string-name><surname>Golmohamadi</surname>, <given-names>H.</given-names></string-name></person-group> (<year>2021</year>). <article-title>Eco-emission analysis of multi-carrier microgrid integrated with compressed air and power-to-gas energy storage technologies</article-title>. <source>Sustainability</source><italic>,</italic> <volume>13</volume><italic>(</italic><issue>9</issue><italic>),</italic> <fpage>4681</fpage>. DOI <pub-id pub-id-type="doi">10.3390/su13094681</pub-id>.</mixed-citation></ref>
<ref id="ref-11"><label>11.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Ma</surname>, <given-names>Y.</given-names></string-name>, <string-name><surname>Li</surname>, <given-names>C.</given-names></string-name>, <string-name><surname>Zhou</surname>, <given-names>J.</given-names></string-name>, <string-name><surname>Zhang</surname>, <given-names>Y.</given-names></string-name></person-group> (<year>2020</year>). <article-title>Comprehensive stochastic optimal scheduling in residential micro energy grid considering pumped-storage unit and demand response</article-title>. <source>Journal of Energy Storage</source><italic>,</italic> <volume>32</volume><italic>,</italic> <fpage>101968</fpage>. DOI <pub-id pub-id-type="doi">10.1016/j.est.2020.101968</pub-id>.</mixed-citation></ref>
<ref id="ref-12"><label>12.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Garcia-Torres</surname>, <given-names>F.</given-names></string-name>, <string-name><surname>Bordons</surname>, <given-names>C.</given-names></string-name>, <string-name><surname>Ridao</surname>, <given-names>M. A.</given-names></string-name></person-group> (<year>2018</year>). <article-title>Optimal economic schedule for a network of microgrids with hybrid energy storage system using distributed model predictive control</article-title>. <source>IEEE Transactions on Industrial Electronics</source><italic>,</italic> <volume>66</volume><italic>(</italic><issue>3</issue><italic>),</italic> <fpage>1919</fpage>&#x2013;<lpage>1929</lpage>. DOI <pub-id pub-id-type="doi">10.1109/TIE.2018.2826476</pub-id>.</mixed-citation></ref>
<ref id="ref-13"><label>13.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Angarita</surname>, <given-names>J. L.</given-names></string-name>, <string-name><surname>Jafari</surname>, <given-names>H.</given-names></string-name>, <string-name><surname>Mohseni</surname>, <given-names>M.</given-names></string-name>, <string-name><surname>Al-Sumaiti</surname>, <given-names>A. S.</given-names></string-name>, <string-name><surname>Heydarian-Forushani</surname>, <given-names>E.</given-names></string-name> <etal>et al.</etal></person-group> (<year>2021</year>). <article-title>Optimal investment and operation of a microgrid to provide electricity and heat</article-title>. <source>IET Renewable Power Generation</source><italic>,</italic> <volume>15</volume><italic>(</italic><issue>12</issue><italic>),</italic> <fpage>2586</fpage>&#x2013;<lpage>2595</lpage>. DOI <pub-id pub-id-type="doi">10.1049/rpg2.12190</pub-id>.</mixed-citation></ref>
<ref id="ref-14"><label>14.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Vahedipour-Dahraie</surname>, <given-names>M.</given-names></string-name>, <string-name><surname>Rashidizadeh-Kermani</surname>, <given-names>H.</given-names></string-name>, <string-name><surname>Anvari-Moghaddam</surname>, <given-names>A.</given-names></string-name>, <string-name><surname>Siano</surname>, <given-names>P.</given-names></string-name></person-group> (<year>2020</year>). <article-title>Flexible stochastic scheduling of microgrids with islanding operations complemented by optimal offering strategies</article-title>. <source>CSEE Journal of Power and Energy Systems</source><italic>,</italic> <volume>6</volume><italic>(</italic><issue>4</issue><italic>),</italic> <fpage>867</fpage>&#x2013;<lpage>877</lpage>.</mixed-citation></ref>
<ref id="ref-15"><label>15.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Mazidi</surname>, <given-names>M.</given-names></string-name>, <string-name><surname>Zakariazadeh</surname>, <given-names>A.</given-names></string-name>, <string-name><surname>Jadid</surname>, <given-names>S.</given-names></string-name>, <string-name><surname>Siano</surname>, <given-names>P.</given-names></string-name></person-group> (<year>2014</year>). <article-title>Integrated scheduling of renewable generation and demand response programs in a microgrid</article-title>. <source>Energy Conversion and Management</source><italic>,</italic> <volume>86</volume><italic>(</italic><issue>12</issue><italic>),</italic> <fpage>1118</fpage>&#x2013;<lpage>1127</lpage>. DOI <pub-id pub-id-type="doi">10.1016/j.enconman.2014.06.078</pub-id>.</mixed-citation></ref>
<ref id="ref-16"><label>16.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Aghaei</surname>, <given-names>J.</given-names></string-name>, <string-name><surname>Barani</surname>, <given-names>M.</given-names></string-name>, <string-name><surname>Shafie-Khah</surname>, <given-names>M.</given-names></string-name>, <string-name><surname>de La Nieta</surname>, <given-names>A. A. S.</given-names></string-name>, <string-name><surname>Catal&#x00E3;o</surname>, <given-names>J. P.</given-names></string-name></person-group> (<year>2015</year>). <article-title>Risk-constrained offering strategy for aggregated hybrid power plant including wind power producer and demand response provider</article-title>. <source>IEEE Transactions on Sustainable Energy</source><italic>,</italic> <volume>7</volume><italic>(</italic><issue>2</issue><italic>),</italic> <fpage>513</fpage>&#x2013;<lpage>525</lpage>. DOI <pub-id pub-id-type="doi">10.1109/TSTE.2015.2500539</pub-id>.</mixed-citation></ref>
<ref id="ref-17"><label>17.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Sedighizadeh</surname>, <given-names>M.</given-names></string-name>, <string-name><surname>Mohammadpour</surname>, <given-names>A. H.</given-names></string-name>, <string-name><surname>Alavi</surname>, <given-names>S. M. M.</given-names></string-name></person-group> (<year>2019</year>). <article-title>A two-stage optimal energy management by using ADP and HBB-BC algorithms for microgrids with renewable energy sources and storage</article-title>. <source>Journal of Energy Storage</source><italic>,</italic> <volume>21</volume><italic>(</italic><issue>5</issue><italic>),</italic> <fpage>460</fpage>&#x2013;<lpage>480</lpage>. DOI <pub-id pub-id-type="doi">10.1016/j.est.2018.12.010</pub-id>.</mixed-citation></ref>
<ref id="ref-18"><label>18.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Beer</surname>, <given-names>S.</given-names></string-name>, <string-name><surname>G&#x00F3;mez</surname>, <given-names>T.</given-names></string-name>, <string-name><surname>Dallinger</surname>, <given-names>D.</given-names></string-name>, <string-name><surname>Momber</surname>, <given-names>I.</given-names></string-name>, <string-name><surname>Marnay</surname>, <given-names>C.</given-names></string-name> <etal>et al.</etal></person-group> (<year>2012</year>). <article-title>An economic analysis of used electric vehicle batteries integrated into commercial building microgrids</article-title>. <source>IEEE Transactions on Smart Grid</source><italic>,</italic> <volume>3</volume><italic>(</italic><issue>1</issue><italic>),</italic> <fpage>517</fpage>&#x2013;<lpage>525</lpage>. DOI <pub-id pub-id-type="doi">10.1109/TSG.2011.2163091</pub-id>.</mixed-citation></ref>
<ref id="ref-19"><label>19.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Shams</surname>, <given-names>M. H.</given-names></string-name>, <string-name><surname>Shahabi</surname>, <given-names>M.</given-names></string-name>, <string-name><surname>Khodayar</surname>, <given-names>M. E.</given-names></string-name></person-group> (<year>2018</year>). <article-title>Stochastic day-ahead scheduling of multiple energy carrier microgrids with demand response</article-title>. <source>Energy</source><italic>,</italic> <volume>155</volume><italic>(</italic><issue>3</issue><italic>),</italic> <fpage>326</fpage>&#x2013;<lpage>338</lpage>. DOI <pub-id pub-id-type="doi">10.1016/j.energy.2018.04.190</pub-id>.</mixed-citation></ref>
<ref id="ref-20"><label>20.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Haddadipour</surname>, <given-names>S.</given-names></string-name>, <string-name><surname>Amir</surname>, <given-names>V.</given-names></string-name>, <string-name><surname>Javadi Arani</surname>, <given-names>S.</given-names></string-name></person-group> (<year>2020</year>). <article-title>A strategy proposing the simultaneous purchase and sale of electricity to exploit of a multi-agent micro-grid energy market</article-title>. <source>Computational Intelligence in Electrical Engineering</source><italic>,</italic> <volume>11</volume><italic>(</italic><issue>4</issue><italic>),</italic> <fpage>93</fpage>&#x2013;<lpage>110</lpage>.</mixed-citation></ref>
<ref id="ref-21"><label>21.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Nazari-Heris</surname>, <given-names>M.</given-names></string-name>, <string-name><surname>Abapour</surname>, <given-names>S.</given-names></string-name>, <string-name><surname>Mohammadi-Ivatloo</surname>, <given-names>B.</given-names></string-name></person-group> (<year>2017</year>). <article-title>Optimal economic dispatch of FC-CHP based heat and power micro-grids</article-title>. <source>Applied Thermal Engineering</source><italic>,</italic> <volume>114</volume><italic>,</italic> <fpage>756</fpage>&#x2013;<lpage>769</lpage>. DOI <pub-id pub-id-type="doi">10.1016/j.applthermaleng.2016.12.016</pub-id>.</mixed-citation></ref>
<ref id="ref-22"><label>22.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Zhang</surname>, <given-names>C.</given-names></string-name>, <string-name><surname>Xu</surname>, <given-names>Y.</given-names></string-name>, <string-name><surname>Li</surname>, <given-names>Z.</given-names></string-name>, <string-name><surname>Dong</surname>, <given-names>Z. Y.</given-names></string-name></person-group> (<year>2018</year>). <article-title>Robustly coordinated operation of a multi-energy microgrid with flexible electric and thermal loads</article-title>. <source>IEEE Transactions on Smart Grid</source><italic>,</italic> <volume>10</volume><italic>(</italic><issue>3</issue><italic>),</italic> <fpage>2765</fpage>&#x2013;<lpage>2775</lpage>. DOI <pub-id pub-id-type="doi">10.1109/TSG.2018.2810247</pub-id>.</mixed-citation></ref>
<ref id="ref-23"><label>23.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Mansour-Saatloo</surname>, <given-names>A.</given-names></string-name>, <string-name><surname>Mirzaei</surname>, <given-names>M. A.</given-names></string-name>, <string-name><surname>Mohammadi-Ivatloo</surname>, <given-names>B.</given-names></string-name>, <string-name><surname>Zare</surname>, <given-names>K.</given-names></string-name></person-group> (<year>2020</year>). <article-title>A risk-averse hybrid approach for optimal participation of power-to-hydrogen technology-based multi-energy microgrid in multi-energy markets</article-title>. <source>Sustainable Cities and Society</source><italic>,</italic> <volume>63</volume><italic>(</italic><issue>24</issue><italic>),</italic> <fpage>102421</fpage>. DOI <pub-id pub-id-type="doi">10.1016/j.scs.2020.102421</pub-id>.</mixed-citation></ref>
<ref id="ref-24"><label>24.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Kienzle</surname>, <given-names>F.</given-names></string-name>, <string-name><surname>Ah&#x010D;in</surname>, <given-names>P.</given-names></string-name>, <string-name><surname>Andersson</surname>, <given-names>G.</given-names></string-name></person-group> (<year>2011</year>). <article-title>Valuing investments in multi-energy conversion, storage, and demand-side management systems under uncertainty</article-title>. <source>IEEE Transactions on Sustainable Energy</source><italic>,</italic> <volume>2</volume><italic>(</italic><issue>2</issue><italic>),</italic> <fpage>194</fpage>&#x2013;<lpage>202</lpage>. DOI <pub-id pub-id-type="doi">10.1109/TSTE.2011.2106228</pub-id>.</mixed-citation></ref>
<ref id="ref-25"><label>25.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Mohseni</surname>, <given-names>S.</given-names></string-name>, <string-name><surname>Brent</surname>, <given-names>A. C.</given-names></string-name>, <string-name><surname>Kelly</surname>, <given-names>S.</given-names></string-name>, <string-name><surname>Browne</surname>, <given-names>W. N.</given-names></string-name>, <string-name><surname>Burmester</surname>, <given-names>D.</given-names></string-name></person-group> (<year>2021</year>). <article-title>Strategic design optimisation of multi-energy-storage-technology micro-grids considering a two-stage game-theoretic market for demand response aggregation</article-title>. <source>Applied Energy</source><italic>,</italic> <volume>287</volume><italic>(</italic><issue>4</issue><italic>),</italic> <fpage>116563</fpage>. DOI <pub-id pub-id-type="doi">10.1016/j.apenergy.2021.116563</pub-id>.</mixed-citation></ref>
<ref id="ref-26"><label>26.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Golmohamadi</surname>, <given-names>H.</given-names></string-name>, <string-name><surname>Larsen</surname>, <given-names>K. G.</given-names></string-name>, <string-name><surname>Jensen</surname>, <given-names>P. G.</given-names></string-name>, <string-name><surname>Hasrat</surname>, <given-names>I. R.</given-names></string-name></person-group> (<year>2022</year>). <article-title>Integration of flexibility potentials of district heating systems into electricity markets: A review</article-title>. <source>Renewable and Sustainable Energy Reviews</source><italic>,</italic> <volume>159</volume><italic>(</italic><issue>3</issue><italic>),</italic> <fpage>112200</fpage>. DOI <pub-id pub-id-type="doi">10.1016/j.rser.2022.112200</pub-id>.</mixed-citation></ref>
<ref id="ref-27"><label>27.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Ge</surname>, <given-names>S.</given-names></string-name>, <string-name><surname>Li</surname>, <given-names>J.</given-names></string-name>, <string-name><surname>He</surname>, <given-names>X.</given-names></string-name>, <string-name><surname>Liu</surname>, <given-names>H.</given-names></string-name></person-group> (<year>2021</year>). <article-title>Joint energy market design for local integrated energy system service procurement considering demand flexibility</article-title>. <source>Applied Energy</source><italic>,</italic> <volume>297</volume><italic>(</italic><issue>2</issue><italic>),</italic> <fpage>117060</fpage>. DOI <pub-id pub-id-type="doi">10.1016/j.apenergy.2021.117060</pub-id>.</mixed-citation></ref>
<ref id="ref-28"><label>28.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Ghilardi</surname>, <given-names>L. M. P.</given-names></string-name>, <string-name><surname>Castelli</surname>, <given-names>A. F.</given-names></string-name>, <string-name><surname>Moretti</surname>, <given-names>L.</given-names></string-name>, <string-name><surname>Morini</surname>, <given-names>M.</given-names></string-name>, <string-name><surname>Martelli</surname>, <given-names>E.</given-names></string-name></person-group> (<year>2021</year>). <article-title>Co-optimization of multi-energy system operation, district heating/cooling network and thermal comfort management for buildings</article-title>. <source>Applied Energy</source><italic>,</italic> <volume>302</volume><italic>,</italic> <fpage>117480</fpage>. DOI <pub-id pub-id-type="doi">10.1016/j.apenergy.2021.117480</pub-id>.</mixed-citation></ref>
<ref id="ref-29"><label>29.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Noor</surname>, <given-names>S.</given-names></string-name>, <string-name><surname>Yang</surname>, <given-names>W.</given-names></string-name>, <string-name><surname>Guo</surname>, <given-names>M.</given-names></string-name>, <string-name><surname>van Dam</surname>, <given-names>K. H.</given-names></string-name>, <string-name><surname>Wang</surname>, <given-names>X.</given-names></string-name></person-group> (<year>2018</year>). <article-title>Energy demand side management within micro-grid networks enhanced by blockchain</article-title>. <source>Applied Energy</source><italic>,</italic> <volume>228</volume><italic>,</italic> <fpage>1385</fpage>&#x2013;<lpage>1398</lpage>. DOI <pub-id pub-id-type="doi">10.1016/j.apenergy.2018.07.012</pub-id>.</mixed-citation></ref>
<ref id="ref-30"><label>30.</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Chen</surname>, <given-names>T.</given-names></string-name>, <string-name><surname>Cao</surname>, <given-names>Y.</given-names></string-name>, <string-name><surname>Qing</surname>, <given-names>X.</given-names></string-name>, <string-name><surname>Zhang</surname>, <given-names>J.</given-names></string-name>, <string-name><surname>Sun</surname>, <given-names>Y.</given-names></string-name> <etal>et al.</etal></person-group> (<year>2022</year>). <article-title>Multi-energy microgrid robust energy management with a novel decision-making strategy</article-title>. <source>Energy</source><italic>,</italic> <volume>239</volume><italic>(</italic><issue>4</issue><italic>),</italic> <fpage>121840</fpage>. DOI <pub-id pub-id-type="doi">10.1016/j.energy.2021.121840</pub-id>.</mixed-citation></ref>
</ref-list>
</back>
</article>






















