<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article article-type="research-article" dtd-version="2.3" xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Energy Res.</journal-id>
<journal-title>Frontiers in Energy Research</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Energy Res.</abbrev-journal-title>
<issn pub-type="epub">2296-598X</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">1361809</article-id>
<article-id pub-id-type="doi">10.3389/fenrg.2024.1361809</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Energy Research</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Optimal demand response scheduling and voltage reinforcement in distribution grids incorporating uncertainties of energy resources, placement of energy storages, and aggregated flexible loads</article-title>
<alt-title alt-title-type="left-running-head">Zarei et al.</alt-title>
<alt-title alt-title-type="right-running-head">
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3389/fenrg.2024.1361809">10.3389/fenrg.2024.1361809</ext-link>
</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Zarei</surname>
<given-names>Alireza</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
<uri xlink:href="https://loop.frontiersin.org/people/2613514/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/formal-analysis/"/>
<role content-type="https://credit.niso.org/contributor-roles/methodology/"/>
<role content-type="https://credit.niso.org/contributor-roles/resources/"/>
<role content-type="https://credit.niso.org/contributor-roles/software/"/>
<role content-type="https://credit.niso.org/contributor-roles/validation/"/>
<role content-type="https://credit.niso.org/contributor-roles/visualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-original-draft/"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Ghaffarzadeh</surname>
<given-names>Navid</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/data-curation/"/>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
<role content-type="https://credit.niso.org/contributor-roles/project-administration/"/>
<role content-type="https://credit.niso.org/contributor-roles/supervision/"/>
<role content-type="https://credit.niso.org/contributor-roles/validation/"/>
<role content-type="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Shahnia</surname>
<given-names>Farhad</given-names>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
</contrib>
</contrib-group>
<aff id="aff1">
<sup>1</sup>
<institution>Faculty of Technical and Engineering</institution>, <institution>Imam Khomeini International University</institution>, <addr-line>Qazvin</addr-line>, <country>Iran</country>
</aff>
<aff id="aff2">
<sup>2</sup>
<institution>School of Engineering and Energy</institution>, <institution>Murdoch University</institution>, <addr-line>Perth</addr-line>, <addr-line>WA</addr-line>, <country>Australia</country>
</aff>
<author-notes>
<fn fn-type="edited-by">
<p>
<bold>Edited by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/2338739/overview">Sumit Kumar Jha</ext-link>, Indian Institute of Technology Bhubaneswar, India</p>
</fn>
<fn fn-type="edited-by">
<p>
<bold>Reviewed by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1831035/overview">Srinvasa Rao Gampa</ext-link>, Seshadri Rao Gudlavalleru Engineering College, India</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/2681089/overview">Vivekananda Jayaram</ext-link>, JPMorgan Chase &#x26; Co, United States</p>
</fn>
<corresp id="c001">&#x2a;Correspondence: Alireza Zarei, <email>alireza.zarei@edu.ikiu.ac.ir</email>
</corresp>
</author-notes>
<pub-date pub-type="epub">
<day>11</day>
<month>06</month>
<year>2024</year>
</pub-date>
<pub-date pub-type="collection">
<year>2024</year>
</pub-date>
<volume>12</volume>
<elocation-id>1361809</elocation-id>
<history>
<date date-type="received">
<day>26</day>
<month>12</month>
<year>2023</year>
</date>
<date date-type="accepted">
<day>02</day>
<month>05</month>
<year>2024</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2024 Zarei, Ghaffarzadeh and Shahnia.</copyright-statement>
<copyright-year>2024</copyright-year>
<copyright-holder>Zarei, Ghaffarzadeh and Shahnia</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/">
<p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p>
</license>
</permissions>
<abstract>
<p>Instead of expanding power plant capacities, which is an extremely expensive investment option, demand response offers an economical solution to the challenges arising from the variability and intermittency of the renewable energy resources and demand variations, particularly during demand peak periods. This paper proposes a multi-objective optimization framework for the optimal power flow problem that integrates a stepwise demand response involving flexible and aggregated loads. The process includes short-term demand forecasting using long short-term memory (LSTM) networks in a smart distribution grid, followed by the optimal allocation of energy storage systems, and load aggregators. By determining the optimal solution point of the multi-objective problem analytically, significant system costs and peak demand can be reduced without compromising system stability. Through numerical studies for a sample study case, a reduction of 22% in system costs, 2% in total voltage variation, and 10% in peak demand is observed for a negligible impact on customers&#x2019; convenience.</p>
</abstract>
<kwd-group>
<kwd>demand response</kwd>
<kwd>optimal power flow</kwd>
<kwd>distributed energy resources</kwd>
<kwd>aggregator</kwd>
<kwd>energy storage placement</kwd>
</kwd-group>
<custom-meta-wrap>
<custom-meta>
<meta-name>section-at-acceptance</meta-name>
<meta-value>Smart Grids</meta-value>
</custom-meta>
</custom-meta-wrap>
</article-meta>
</front>
<body>
<sec id="s1">
<title>1 Introduction</title>
<p>Demand response (DR) is an important feature of smart grids and aims to change the consumption pattern of end-uses from their normal patterns to reduce the network&#x2019;s peak demand and shift the loads to network&#x2019;s off-peak periods (<xref ref-type="bibr" rid="B3">Albadi and El-Saadany, 2008</xref>). While DR has been widely employed in industrial and commercial sectors since 1970, it is being expanded thanks to technology developments and market improvements (<xref ref-type="bibr" rid="B11">Henr&#xed;quez et al., 2017</xref>). Although consumers are technically capable of reducing their demand quickly and reliably, implementing DR for industrial loads can be more challenging than that for residential loads, primarily because industrial plants require more stringent reliability management (<xref ref-type="bibr" rid="B22">Shoreh et al., 2016</xref>). On the other hand, residential sector accounts for the a very large share of electricity consumption (e.g., 38% in the United States) (<xref ref-type="bibr" rid="B1">Buildings Energy Data Book, 2011</xref>). Heating, ventilation, and air conditioning (HVAC) systems constitute an important part of energy consumption in our daily lives; for example, approximately 40% of the energy consumption of buildings in the United States is related to HVAC systems (<xref ref-type="bibr" rid="B4">Bhattacharya et al., 2017</xref>). Aggregated domestic and commercial loads can be used in the DR program. To manage the flexibility of a large number of scattered DR resources in the context of electricity markets, they must be aggregated by a new participant called the DR aggregator (<xref ref-type="bibr" rid="B11">Henr&#xed;quez et al., 2017</xref>). Aggregators can be used for any type of small-scale and high-potential flexible loads. As an example, HVAC aggregators (HVACA) enable owners to participate in DR by aggregating a number of HVAC units. In fact, without going out of the standard temperature range, it is possible to provide the desired temperature and reduce energy consumption simply by applying the predicted load chart in the process and settings, bringing a win-win situation for smart grid operators and consumers. In fact, with peak shaving via DR, the operator brings less expensive power plants into operation, therefore, reducing the cost of the entire system.</p>
<p>The core of a proficient power markets is the optimal power flow (OPF) challenge from economic, electrical, and computational standpoints. Economically, achieving an effective market equilibrium necessitates multi-faceted nonlinear pricing mechanisms. Electrically, the power flow is characterized by alternating current (AC), thereby introducing supplementary nonlinear elements. Computationally, the optimization process entails non-convexities, encompassing binary variables and continuous functions, rendering the problem arduous to resolve (<xref ref-type="bibr" rid="B5">Cain et al., 2012</xref>). The quadratic and non-linear characteristics of the power flow equations of the ac power grid make the OPF problem non-convex. Therefore, solutions such as the convex relaxation and linear approximation methods have been proposed to simplify the AC-OPF problem (<xref ref-type="bibr" rid="B20">Nakabi and Toivanen, 2021</xref>). The convex relaxations methods are generally shown to be exact only under certain conditions (<xref ref-type="bibr" rid="B6">Chowdhury et al., 2023</xref>). One of the linear approximation methods applied in the transmission network is DCOPF, but due to very small phase changes (<xref ref-type="bibr" rid="B14">Li et al., 2023</xref>), this method is not suitable for the distribution network. According to (<xref ref-type="bibr" rid="B19">Nair et al., 2022</xref>), among the three formulation methods of AC-OPF, the power balance polar formulation is the best choice for small distribution grids because of its fast runtime.</p>
<p>Integration of the AC-OPF problem with DR has been the focus of several studies. Emphasizing the importance of the AC-OPF problem, in some references, such as (<xref ref-type="bibr" rid="B29">Younesi et al., 2024</xref>), where the problem is solved in the electricity market framework, the AC-OPF structure is used to ensure the minimization of lost load and enhance resilience. In (<xref ref-type="bibr" rid="B26">Vanin et al., 2022</xref>) an mixed-integer linearized OPF-based congestion mitigation strategy is presented for DR in unbalanced residential networks. The strategy is based on requiring residential customers to limit their demand for a certain amount of time in exchange for economic benefits. A time-value-based demand-shifting strategy is proposed for DR in (<xref ref-type="bibr" rid="B12">Jabari et al., 2020</xref>) which is focused on transmission system and only active power. The article by (<xref ref-type="bibr" rid="B13">Khonji et al., 2016</xref>) has investigated OPF in the context of utility-maximizing DR management in distribution networks, in which customers&#x2019; demands are satisfied subject to the operating constraints of voltage and transmission power capacity. An optimal DR-based AC-OPF problem considering renewable energies and energy storage systems (ESSs) has been presented in (<xref ref-type="bibr" rid="B30">Zarei and Ghaffarzadeh, 2023</xref>) for a transmission network with short-term load forecasts using long short-term memory networks (LSTM). Considering the constant power factor for before and after DR, active and reactive power are included in the problem at the same time. In (<xref ref-type="bibr" rid="B16">Mak et al., 2023</xref>; <xref ref-type="bibr" rid="B18">Merrad et al., 2022</xref>), machine-learning approaches are used to solve AC-OPF problems in a decentralized fashion, but challenges related to its accuracy are still not solved, especially in systems with a high number of buses (such as the distribution network).</p>
<p>At present, the direct integration of AC-OPF with DR has been the subject of only a few studies. This study introduces a DR-based strategy for the AC-OPF problem, focusing on the aggregator&#x2019;s small-scale flexible HVAC loads and the direct participation of flexible distributed loads at distribution grid buses, considering their simultaneous effects. The paper also discusses LSTM-based load prediction, the optimal placement of ESSs, and an intelligent model for HVACAs that prioritizes the user&#x2019;s desired temperature range. Uncertainties in distributed energy resources (DERs) are modeled using a scenario-based approach and factored into optimal scheduling. The proposed scheme has the potential to significantly delay or eliminate the need to construct a new power plant by leveraging the participation of a small portion of the loads in the distribution network. The multi-objective model presented in the paper leads to a substantial reduction in total system costs, minimizes total voltage variations, and levels out the electrical load pattern while maintaining user convenience.</p>
<p>The key contributions of this paper to the research field can be summarized as below:<list list-type="simple">
<list-item>
<p>&#x2022; Developing a simultaneous two-part DR strategy involving aggregated small-scale flexible HVAC loads and partial flexible loads across different load buses.</p>
</list-item>
<list-item>
<p>&#x2022; Formulating a multi-objective optimization of the AC-OPF problem through an analytical approach that integrates DR considerations, aiming to reduce the total system costs, peak loads, and total voltage variations while enhancing user convenience.</p>
</list-item>
<list-item>
<p>&#x2022; Optimizing the allocation of Energy Storage Systems (ESSs) within the smart distribution grid, utilizing a modified LSTM-based method for short-term load prediction, and implementing intelligent control for HVACA based on predicted load patterns to maintain the desired temperature ranges for residents.</p>
</list-item>
</list>
</p>
<p>The remainder of this paper is organized as follows: The proposal along with the formulated objective function are introduced in <xref ref-type="sec" rid="s2">Section 2</xref>. <xref ref-type="sec" rid="s3">Section 3</xref> presents the performance evaluation of the proposal using numerical studies. Finally, the key findings of the research are summarized and presented in <xref ref-type="sec" rid="s4">Section 4</xref>.</p>
</sec>
<sec id="s2">
<title>2 The proposal</title>
<p>First, the electrical demand was predicted based on previous consumption data using the LSTM method. Then, optimal locations for ESSs were selected in the structure of the smart distribution grid, which included distributed energy sources, such as small DGs, solar and wind units, and thermal units. In addition, multiple scenarios for wind and solar units have been developed to consider the uncertainty of renewable energy sources. An HVACA was integrated into the network based on its network structure and capacity. This aggregator was modeled by considering the min/max margin temperature and the predicted load patterns. Subsequently, a multi-objective problem was modeled and simulated within the AC-OPF framework, considering the relative response of all distribution network buses to DR programs, as well as two modes for the HVACA: flexible and non-flexible. Finally, an analytical method was used for optimal solution selection. The overall solution procedure is illustrated in <xref ref-type="fig" rid="F1">Figure 1</xref>.</p>
<fig id="F1" position="float">
<label>FIGURE 1</label>
<caption>
<p>Flowchart of the proposal.</p>
</caption>
<graphic xlink:href="fenrg-12-1361809-g001.tif"/>
</fig>
<sec id="s2-1">
<title>2.1 Objective functions</title>
<p>The proposed multi-objective function comprises one economic, two technical, and one user-convenience functions, as introduced and discussed below:</p>
<sec id="s2-1-1">
<title>2.1.1 Total Cost Function</title>
<p>The total cost function incorporates the costs of active and reactive power generation, load shedding, and wind/solar curtailment, given by<disp-formula id="e1">
<mml:math id="m1">
<mml:mrow>
<mml:mi>O</mml:mi>
<mml:msub>
<mml:mi>F</mml:mi>
<mml:mn>1</mml:mn>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mi>a</mml:mi>
<mml:mi>g</mml:mi>
</mml:msub>
<mml:msup>
<mml:mrow>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>g</mml:mi>
</mml:msubsup>
</mml:mrow>
<mml:mn>2</mml:mn>
</mml:msup>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>b</mml:mi>
<mml:mi>g</mml:mi>
</mml:msub>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>g</mml:mi>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>c</mml:mi>
<mml:mi>g</mml:mi>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>c</mml:mi>
<mml:mo>&#x22c5;</mml:mo>
<mml:msubsup>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>g</mml:mi>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mi>V</mml:mi>
<mml:mi>O</mml:mi>
<mml:mi>L</mml:mi>
<mml:mi>L</mml:mi>
<mml:mo>&#xd7;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mi>S</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mi>V</mml:mi>
<mml:mi>O</mml:mi>
<mml:mi>L</mml:mi>
<mml:mi>W</mml:mi>
<mml:mo>&#xd7;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>W</mml:mi>
<mml:mi>C</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mi>V</mml:mi>
<mml:mi>O</mml:mi>
<mml:mi>L</mml:mi>
<mml:mi>S</mml:mi>
<mml:mo>&#xd7;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>S</mml:mi>
<mml:mi>C</mml:mi>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:math>
<label>(1)</label>
</disp-formula>and should be minimized. In <xref ref-type="disp-formula" rid="e1">(1)</xref>, <italic>a</italic>
<sub>
<italic>g</italic>
</sub>
<italic>, b</italic>
<sub>
<italic>g</italic>
</sub>
<italic>, c</italic>
<sub>
<italic>g</italic>
</sub>
<italic>, and c</italic> are the fuel cost coefficients of active and reactive power generation at unit <italic>g</italic>, respectively. <italic>P</italic>
<sub>
<italic>i,t</italic>
</sub>
<sup>
<italic>g</italic>
</sup>
<italic>, P</italic>
<sub>
<italic>i,t</italic>
</sub>
<sup>
<italic>LS</italic>
</sup>
<italic>, P</italic>
<sub>
<italic>i,t</italic>
</sub>
<sup>
<italic>WC</italic>
</sup>
<italic>,</italic> and <italic>P</italic>
<sub>
<italic>i,t</italic>
</sub>
<sup>
<italic>SC</italic>
</sup> are the power generation of unit <italic>i</italic>, active load shedding in bus <italic>i</italic>, and wind and solar curtailment in bus <italic>i</italic>, at time <italic>t</italic> respectively. To simplify the problem, the quadratic cost function of thermal power plants was approximated as a first-order function. <italic>VOLL</italic> is the value of the load loss according to the graph of wind and demand changes, which is considered as a penalty (<xref ref-type="bibr" rid="B9">Gorman, 2022</xref>). Similarly, <italic>VOLW/VOLS</italic> is the cost factor for reducing wind/solar energy production in wind/solar power plants, according to the graph of wind/solar and demand changes.</p>
</sec>
<sec id="s2-1-2">
<title>2.1.2 Power quality improvement</title>
<p>In the pursuit of enhancing voltage stability, an objective function is formulated to reduce the voltage deviations across all nodes within the power grid, in the form of<disp-formula id="e2">
<mml:math id="m2">
<mml:mrow>
<mml:mi>O</mml:mi>
<mml:msub>
<mml:mi>F</mml:mi>
<mml:mn>2</mml:mn>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>T</mml:mi>
</mml:munderover>
</mml:mstyle>
<mml:mrow>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:munderover>
</mml:mstyle>
<mml:mrow>
<mml:mfenced open="|" close="|" separators="&#x7c;">
<mml:mrow>
<mml:msub>
<mml:mi>V</mml:mi>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msubsup>
<mml:mi>V</mml:mi>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mo>&#x2a;</mml:mo>
</mml:msubsup>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(2)</label>
</disp-formula>in which the voltage deviation function is used to enhance the voltage profile and power quality, where <italic>V</italic>
<sub>
<italic>t,i</italic>
</sub> is the voltage at bus <italic>i</italic> at time <italic>t</italic>, and <italic>V</italic>
<sub>
<italic>t,i</italic>
</sub>
<sup>
<italic>&#x2a;</italic>
</sup> is set to one in this study.</p>
</sec>
<sec id="s2-1-3">
<title>2.1.3 Peak reduction</title>
<p>The equation for the peak reduction is presented in reference (<xref ref-type="bibr" rid="B2">Aalami et al., 2010</xref>). An objective function is introduced to incorporate the peak reduction of active power before and after DR, in the form of<disp-formula id="e3">
<mml:math id="m3">
<mml:mrow>
<mml:mi>O</mml:mi>
<mml:msub>
<mml:mi>F</mml:mi>
<mml:mn>3</mml:mn>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>l</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2212;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>l</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>o</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>l</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>o</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msubsup>
</mml:mfrac>
<mml:mo>&#xd7;</mml:mo>
<mml:mn>100</mml:mn>
</mml:mrow>
</mml:math>
<label>(3)</label>
</disp-formula>which is highly important during the hot seasons of the year for effectively managing customers&#x2019; electricity consumption.</p>
</sec>
<sec id="s2-1-4">
<title>2.1.4 User convenience</title>
<p>To account for the diverse range of network loads, the similarity between the load profiles with and without DR is evaluated using the correlation coefficient, which is then incorporated as the fourth objective function in the final assessment, in the form of<disp-formula id="e4">
<mml:math id="m4">
<mml:mrow>
<mml:mi>O</mml:mi>
<mml:msub>
<mml:mi>F</mml:mi>
<mml:mn>4</mml:mn>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac bevelled="true">
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mn>24</mml:mn>
</mml:munderover>
</mml:mstyle>
<mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>l</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mover accent="true">
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>l</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#xaf;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>l</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>o</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mover accent="true">
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>l</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>o</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#xaf;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:msqrt>
<mml:mrow>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mn>24</mml:mn>
</mml:munderover>
</mml:mstyle>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>l</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mover accent="true">
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>l</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#xaf;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mn>2</mml:mn>
</mml:msup>
<mml:mo>&#x22c5;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mn>24</mml:mn>
</mml:munderover>
</mml:mstyle>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>l</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>o</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mover accent="true">
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>l</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>o</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#xaf;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mn>2</mml:mn>
</mml:msup>
</mml:mrow>
</mml:mrow>
</mml:msqrt>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:math>
<label>(4)</label>
</disp-formula>
<disp-formula id="e5">
<mml:math id="m5">
<mml:mrow>
<mml:mover accent="true">
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>l</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#xaf;</mml:mo>
</mml:mover>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mn>24</mml:mn>
</mml:munderover>
</mml:mstyle>
<mml:mrow>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>l</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>/</mml:mo>
<mml:mn>24</mml:mn>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(5)</label>
</disp-formula>
<disp-formula id="e6">
<mml:math id="m6">
<mml:mrow>
<mml:mover accent="true">
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>l</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>o</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#xaf;</mml:mo>
</mml:mover>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mn>24</mml:mn>
</mml:munderover>
</mml:mstyle>
<mml:mrow>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>l</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>o</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>/</mml:mo>
<mml:mn>24</mml:mn>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(6)</label>
</disp-formula>
</p>
</sec>
</sec>
<sec id="s2-2">
<title>2.2 Uncertainty of distributed energy resources</title>
<p>To consider the effect of distributed energy resources such as wind and solar units, all <italic>OF</italic>
<sub>
<italic>j</italic>
</sub> are calculated in every possible scenario (<italic>S</italic>
<sub>
<italic>i</italic>
</sub>) and then combined in the form of<disp-formula id="e7">
<mml:math id="m7">
<mml:mrow>
<mml:mi>O</mml:mi>
<mml:msub>
<mml:mi>F</mml:mi>
<mml:mi>j</mml:mi>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:msub>
<mml:mi>S</mml:mi>
<mml:mn>1</mml:mn>
</mml:msub>
<mml:msub>
<mml:mi>S</mml:mi>
<mml:mi>n</mml:mi>
</mml:msub>
</mml:munderover>
</mml:mstyle>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:msub>
<mml:mi>S</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>O</mml:mi>
<mml:msubsup>
<mml:mi>F</mml:mi>
<mml:mi>j</mml:mi>
<mml:msub>
<mml:mi>S</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:msubsup>
</mml:mrow>
<mml:mn>100</mml:mn>
</mml:mfrac>
</mml:mrow>
</mml:math>
<label>(7)</label>
</disp-formula>where <italic>OF</italic>
<sub>
<italic>j</italic>
</sub>
<sup>
<italic>S</italic>
</sup>
<sub>
<italic>i</italic>
</sub> and <italic>P</italic>(<italic>s</italic>
<sub>
<italic>i</italic>
</sub>) are respectively the values of <italic>OF</italic>
<sub>
<italic>j</italic>
</sub> in scenario <italic>S</italic>
<sub>
<italic>i</italic>
</sub> and the probability of scenario <italic>S</italic>
<sub>
<italic>i</italic>
</sub>.</p>
</sec>
<sec id="s2-3">
<title>2.3 Technical constraints</title>
<p>The constraints for the operation of the thermal power plants, load-shedding limits, as well as operation of ESSs and distributed energy resources should be considered for the successful implementation of the DR, as introduced and discussed below:</p>
<sec id="s2-3-1">
<title>2.3.1 Thermal power plant constraints</title>
<p>The constraints regarding the upper and lower limits of active and reactive power generation from thermal power plants, as well as their ramp-up and down rates, are given by<disp-formula id="e8">
<mml:math id="m8">
<mml:mrow>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>g</mml:mi>
<mml:mo>,</mml:mo>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>min</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2264;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>g</mml:mi>
</mml:msubsup>
<mml:mo>&#x2264;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>g</mml:mi>
<mml:mo>,</mml:mo>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>max</mml:mi>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:math>
<label>(8)</label>
</disp-formula>
<disp-formula id="e9">
<mml:math id="m9">
<mml:mrow>
<mml:msubsup>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>g</mml:mi>
<mml:mo>,</mml:mo>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>min</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2264;</mml:mo>
<mml:msubsup>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>g</mml:mi>
</mml:msubsup>
<mml:mo>&#x2264;</mml:mo>
<mml:msubsup>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>g</mml:mi>
<mml:mo>,</mml:mo>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>max</mml:mi>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:math>
<label>(9)</label>
</disp-formula>
<disp-formula id="e10">
<mml:math id="m10">
<mml:mrow>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>g</mml:mi>
</mml:msubsup>
<mml:mo>&#x2212;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>g</mml:mi>
</mml:msubsup>
<mml:mo>&#x2264;</mml:mo>
<mml:mi>R</mml:mi>
<mml:msub>
<mml:mi>U</mml:mi>
<mml:mi>g</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
<label>(10)</label>
</disp-formula>
<disp-formula id="e11">
<mml:math id="m11">
<mml:mrow>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>g</mml:mi>
</mml:msubsup>
<mml:mo>&#x2212;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>g</mml:mi>
</mml:msubsup>
<mml:mo>&#x2264;</mml:mo>
<mml:mi>R</mml:mi>
<mml:msub>
<mml:mi>D</mml:mi>
<mml:mi>g</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
<label>(11)</label>
</disp-formula>
</p>
</sec>
<sec id="s2-3-2">
<title>2.3.2 Load shedding constraints</title>
<p>To determine the cost of load shedding, the curtailed demand of each bus should be within the range of zero to the nominal load capacity of that bus, given by<disp-formula id="e12">
<mml:math id="m12">
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mo>&#x2264;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mi>S</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2264;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>L</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
<label>(12)</label>
</disp-formula>
<disp-formula id="e13">
<mml:math id="m13">
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mo>&#x2264;</mml:mo>
<mml:msubsup>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mi>S</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2264;</mml:mo>
<mml:msubsup>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>L</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
<label>(13)</label>
</disp-formula>
</p>
</sec>
<sec id="s2-3-3">
<title>2.3.3 ESS constraints</title>
<p>The constraints pertaining to ESSs are given by (<xref ref-type="bibr" rid="B25">Thanh et al., 2022</xref>; <xref ref-type="bibr" rid="B21">Nan et al., 2017</xref>)<disp-formula id="e14">
<mml:math id="m14">
<mml:mrow>
<mml:mi>S</mml:mi>
<mml:mi>O</mml:mi>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mi>t</mml:mi>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>S</mml:mi>
<mml:mi>O</mml:mi>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mi>t</mml:mi>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:msub>
<mml:mi>&#x3b7;</mml:mi>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mi>t</mml:mi>
<mml:mrow>
<mml:mi>d</mml:mi>
<mml:mi>c</mml:mi>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>/</mml:mo>
<mml:msub>
<mml:mi>&#x3b7;</mml:mi>
<mml:mrow>
<mml:mi>d</mml:mi>
<mml:mi>c</mml:mi>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x394;</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:math>
<label>(14)</label>
</disp-formula>
<disp-formula id="e15">
<mml:math id="m15">
<mml:mrow>
<mml:mi>S</mml:mi>
<mml:mi>O</mml:mi>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mi>min</mml:mi>
</mml:msub>
<mml:mo>&#x2264;</mml:mo>
<mml:mi>S</mml:mi>
<mml:mi>O</mml:mi>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mi>t</mml:mi>
</mml:msub>
<mml:mo>&#x2264;</mml:mo>
<mml:mi>S</mml:mi>
<mml:mi>O</mml:mi>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mi>max</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
<label>(15)</label>
</disp-formula>
<disp-formula id="e16">
<mml:math id="m16">
<mml:mrow>
<mml:msubsup>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mi>h</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>E</mml:mi>
<mml:mi>S</mml:mi>
<mml:mi>S</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:msubsup>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mi>h</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>E</mml:mi>
<mml:mi>S</mml:mi>
<mml:mi>S</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2264;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>;</mml:mo>
<mml:mtext>&#x2003;</mml:mtext>
<mml:mo>&#x2200;</mml:mo>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:math>
<label>(16)</label>
</disp-formula>
<disp-formula id="e17">
<mml:math id="m17">
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mo>&#x2264;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mi>h</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>E</mml:mi>
<mml:mi>S</mml:mi>
<mml:mi>S</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2264;</mml:mo>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:msubsup>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mi>h</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>E</mml:mi>
<mml:mi>S</mml:mi>
<mml:mi>S</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x22c5;</mml:mo>
<mml:mover accent="true">
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mi>i</mml:mi>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mi>h</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="normal">E</mml:mi>
<mml:mi>S</mml:mi>
<mml:mi>S</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#xaf;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
<label>(17)</label>
</disp-formula>
<disp-formula id="e18">
<mml:math id="m18">
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mo>&#x2264;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>d</mml:mi>
<mml:mi>c</mml:mi>
<mml:mi>h</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>E</mml:mi>
<mml:mi>S</mml:mi>
<mml:mi>S</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2264;</mml:mo>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:msubsup>
<mml:mi>X</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>d</mml:mi>
<mml:mi>c</mml:mi>
<mml:mi>h</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>E</mml:mi>
<mml:mi>S</mml:mi>
<mml:mi>S</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x22c5;</mml:mo>
<mml:mover accent="true">
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mi>i</mml:mi>
<mml:mrow>
<mml:mi>d</mml:mi>
<mml:mi>c</mml:mi>
<mml:mi>h</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi mathvariant="normal">E</mml:mi>
<mml:mi>S</mml:mi>
<mml:mi>S</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#xaf;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
<label>(18)</label>
</disp-formula>
<disp-formula id="e19">
<mml:math id="m19">
<mml:mrow>
<mml:mi>S</mml:mi>
<mml:mi>O</mml:mi>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>S</mml:mi>
<mml:mi>O</mml:mi>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>24</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
<label>(19)</label>
</disp-formula>where Eqs <xref ref-type="disp-formula" rid="e14">14</xref> and <xref ref-type="disp-formula" rid="e15">15</xref> represent the state of charge (SOC) constraints of the battery, indicating that the battery cannot charge when its SOC reaches the maximum value or discharge when its SOC reaches the minimum value. Constraint Eq. <xref ref-type="disp-formula" rid="e17">16</xref> specifies that it is impossible for the battery to charge and discharge simultaneously. The hourly charging and discharging power of the battery are limited by Eqs <xref ref-type="disp-formula" rid="e17">(17)</xref> and (<xref ref-type="disp-formula" rid="e18">18</xref>), respectively. The initial SOC is set to be equal to the SOC at the conclusion of scheduling hour (<xref ref-type="disp-formula" rid="e18">19</xref>).</p>
</sec>
<sec id="s2-3-4">
<title>2.3.4 Distributed energy resources constraints</title>
<p>
<list list-type="simple">
<list-item>
<p>The curtailed power of wind and solar resources is determined from</p>
</list-item>
</list>
<disp-formula id="e20">
<mml:math id="m20">
<mml:mrow>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>W</mml:mi>
<mml:mi>C</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mi>w</mml:mi>
<mml:mi>t</mml:mi>
</mml:msub>
<mml:msubsup>
<mml:mi mathvariant="normal">&#x39b;</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>w</mml:mi>
</mml:msubsup>
<mml:mo>&#x2212;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>W</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
<label>(20)</label>
</disp-formula>in which<disp-formula id="e21">
<mml:math id="m21">
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mo>&#x2264;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>W</mml:mi>
</mml:msubsup>
<mml:mo>&#x2264;</mml:mo>
<mml:msub>
<mml:mi>w</mml:mi>
<mml:mi>t</mml:mi>
</mml:msub>
<mml:msubsup>
<mml:mi mathvariant="normal">&#x39b;</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>w</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
<label>(21)</label>
</disp-formula>where <italic>P</italic>
<sub>
<italic>i,t</italic>
</sub>
<sup>
<italic>s</italic>
</sup> and <italic>P</italic>
<sub>
<italic>i,t</italic>
</sub>
<sup>
<italic>sc</italic>
</sup> are the solar generation and solar curtailment in bus <italic>i</italic> at time <italic>t</italic>, respectively. <italic>S</italic>
<sub>
<italic>t</italic>
</sub> is the solar availability at time <italic>t</italic>; and <italic>&#x394;</italic>
<sub>
<italic>i</italic>
</sub>
<sup>
<italic>s</italic>
</sup> the solar power plant capacity in bus <italic>i</italic>. Similar to wind resources, for the solar bellow relation can be written as<disp-formula id="e22">
<mml:math id="m22">
<mml:mrow>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>S</mml:mi>
<mml:mi>C</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mi>s</mml:mi>
<mml:mi>t</mml:mi>
</mml:msub>
<mml:msubsup>
<mml:mi mathvariant="normal">&#x39b;</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>S</mml:mi>
</mml:msubsup>
<mml:mo>&#x2212;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>S</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
<label>(22)</label>
</disp-formula>
<disp-formula id="e23">
<mml:math id="m23">
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mo>&#x2264;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>S</mml:mi>
</mml:msubsup>
<mml:mo>&#x2264;</mml:mo>
<mml:msub>
<mml:mi>s</mml:mi>
<mml:mi>t</mml:mi>
</mml:msub>
<mml:msubsup>
<mml:mi mathvariant="normal">&#x39b;</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>S</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
<label>(23)</label>
</disp-formula>
</p>
</sec>
</sec>
<sec id="s2-4">
<title>2.4 Power balance polar formulation</title>
<p>The power balance constraints of the power grid include<disp-formula id="e24">
<mml:math id="m24">
<mml:mrow>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mtext>Re</mml:mtext>
<mml:mrow>
<mml:mfenced open="{" close="}" separators="&#x7c;">
<mml:mrow>
<mml:msub>
<mml:mi>S</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msubsup>
<mml:mi>V</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mn>2</mml:mn>
</mml:msubsup>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mi>Z</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mi>cos</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:msub>
<mml:mi>&#x3b8;</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>V</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mi>V</mml:mi>
<mml:mrow>
<mml:mi mathvariant="normal">j</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:msub>
<mml:mi>Z</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mfrac>
<mml:mi>cos</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:msub>
<mml:mi>&#x3b4;</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mi>&#x3b4;</mml:mi>
<mml:mrow>
<mml:mi mathvariant="normal">j</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>&#x3b8;</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(24)</label>
</disp-formula>
<disp-formula id="e25">
<mml:math id="m25">
<mml:mrow>
<mml:msub>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mtext>Im</mml:mtext>
<mml:mrow>
<mml:mfenced open="{" close="}" separators="&#x7c;">
<mml:mrow>
<mml:msub>
<mml:mi>S</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msubsup>
<mml:mi>V</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mn>2</mml:mn>
</mml:msubsup>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mi>Z</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mi>sin</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:msub>
<mml:mi>&#x3b8;</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mtext>&#x2009;</mml:mtext>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>V</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mi>V</mml:mi>
<mml:mrow>
<mml:mi mathvariant="normal">j</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:msub>
<mml:mi>Z</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mfrac>
<mml:mi>sin</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:msub>
<mml:mi>&#x3b4;</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mi>&#x3b4;</mml:mi>
<mml:mrow>
<mml:mi mathvariant="normal">j</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>&#x3b8;</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi>b</mml:mi>
<mml:msubsup>
<mml:mi>V</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mn>2</mml:mn>
</mml:msubsup>
</mml:mrow>
<mml:mn>2</mml:mn>
</mml:mfrac>
</mml:mrow>
</mml:math>
<label>(25)</label>
</disp-formula>
<disp-formula id="e26">
<mml:math id="m26">
<mml:mrow>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>g</mml:mi>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mi>S</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>W</mml:mi>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>S</mml:mi>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>c</mml:mi>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>d</mml:mi>
<mml:mi>c</mml:mi>
<mml:mi>h</mml:mi>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>L</mml:mi>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:msubsup>
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
<mml:mi mathvariant="script">l</mml:mi>
<mml:mi>i</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>:</mml:mo>
<mml:msubsup>
<mml:mi>&#x3bb;</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>P</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
<label>(26)</label>
</disp-formula>
<disp-formula id="e27">
<mml:math id="m27">
<mml:mrow>
<mml:msubsup>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>g</mml:mi>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:msubsup>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mi>S</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:msubsup>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>W</mml:mi>
</mml:msubsup>
<mml:mo>&#x2212;</mml:mo>
<mml:msubsup>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>L</mml:mi>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:msubsup>
<mml:mi mathvariant="normal">&#x3a9;</mml:mi>
<mml:mi mathvariant="script">l</mml:mi>
<mml:mi>i</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:msub>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>:</mml:mo>
<mml:msubsup>
<mml:mi>&#x3bb;</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>q</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
<label>(27)</label>
</disp-formula>in which (24) and (25) describe the relationship for respectively active and reactive power in the network while (26) and (27) outline the active and reactive power balance constraints at time <italic>t</italic>. Also, <italic>P</italic>
<sub>
<italic>i,t</italic>
</sub>
<sup>
<italic>L</italic>
</sup> is the power demand and <italic>Q</italic>
<sub>
<italic>i,t</italic>
</sub>
<sup>
<italic>W</italic>
</sup> is the reactive power generated by the wind power plants on bus <italic>i</italic> at time <italic>t</italic>.</p>
</sec>
<sec id="s2-5">
<title>2.5 Demand response modelling</title>
<p>The DR constraints are formulated as follows:<disp-formula id="e28">
<mml:math id="m28">
<mml:mrow>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>L</mml:mi>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>D</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>;</mml:mo>
<mml:mtext>&#x2003;</mml:mtext>
<mml:mo>&#x2200;</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:math>
<label>(28)</label>
</disp-formula>
<disp-formula id="e29">
<mml:math id="m29">
<mml:mrow>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mn>24</mml:mn>
</mml:munderover>
</mml:mstyle>
<mml:mi>D</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>;</mml:mo>
<mml:mtext>&#x2003;</mml:mtext>
<mml:mo>&#x2200;</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:math>
<label>(29)</label>
</disp-formula>
<disp-formula id="e30">
<mml:math id="m30">
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>&#x3b1;</mml:mi>
<mml:mo>&#x22c5;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2264;</mml:mo>
<mml:mi>D</mml:mi>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2264;</mml:mo>
<mml:mi>&#x3b1;</mml:mi>
<mml:mo>&#x22c5;</mml:mo>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>;</mml:mo>
<mml:mtext>&#x2003;</mml:mtext>
<mml:mo>&#x2200;</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:math>
<label>(30)</label>
</disp-formula>
<disp-formula id="e31">
<mml:math id="m31">
<mml:mrow>
<mml:mi>tan</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:msub>
<mml:mi>&#x3b8;</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msubsup>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
<mml:mrow>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:math>
<label>(31)</label>
</disp-formula>
<disp-formula id="e32">
<mml:math id="m32">
<mml:mrow>
<mml:msubsup>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>L</mml:mi>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>tan</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:msub>
<mml:mi>&#x3b8;</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:msubsup>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mi>L</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
<label>(32)</label>
</disp-formula>
</p>
<p>Constraint (<xref ref-type="disp-formula" rid="e28">28</xref>) specifies that the electrical power consumption at bus <italic>i</italic> and time <italic>t</italic> in the presence of the DR scheme (<italic>P</italic>
<sub>
<italic>i,t</italic>
</sub>
<sup>
<italic>L</italic>
</sup>) which is obtained from the sum of the base load (<italic>P</italic>
<sub>
<italic>i,t</italic>
</sub>
<sup>
<italic>L0</italic>
</sup>) and decision variable of the DR (<italic>DR</italic>
<sub>
<italic>i,t</italic>
</sub>). When <italic>DR</italic>
<sub>
<italic>i,t</italic>
</sub> is zero, no DR program occurs, however for <italic>DR</italic>
<sub>
<italic>i,t</italic>
</sub>
<italic>&#x3e;0</italic>, the active and reactive power demand of bus <italic>i</italic> will increase at hour&#xa0;<italic>t</italic>, resulting in valley filling. Similarly, the active and reactive power demands of bus <italic>i</italic> decrease at hour&#xa0;<italic>t</italic> when <italic>DR</italic>
<sub>
<italic>i,t</italic>
</sub>
<italic>&#x3c;0</italic>; hence, contributing to peak shaving. In accordance with <xref ref-type="disp-formula" rid="e29">(29)</xref>, the net change in the demand across all buses is zero. The upper and lower bounds for the DR values are determined by <xref ref-type="disp-formula" rid="e30">(30)</xref>. By maintaining a constant power factor before and after DR, as described by <xref ref-type="disp-formula" rid="e31">(31)</xref>, the coordinated adjustment of the reactive power in the DR scenario is expressed by <xref ref-type="disp-formula" rid="e32">(32)</xref>.</p>
</sec>
<sec id="s2-6">
<title>2.6 HVAC aggregator modelling</title>
<p>The relationships between the HVAC units can be simplified by omitting the coefficient related to the heating system and expressing the coefficient and value of the cooling system in an aggregated form, as described in <xref ref-type="disp-formula" rid="e33">(33)</xref>. This simplification aims to reduce the volume of calculations and assumes that the calculations are performed on a hot day of the year. In the non-flexible mode, the ambient temperature, room temperature, and air conditioning system capacity are considered; however, in the flexible mode, apart from these parameters, the value of <italic>k</italic>
<sub>
<italic>3</italic>
</sub>
<italic>. P</italic>
<sub>
<italic>AC</italic>
</sub>(<italic>i,t</italic>) is determined based on the load chart specifications and the specified ranges of the peak and valley loads. Constraint (<xref ref-type="disp-formula" rid="e34">34</xref>) specifies that intelligent control is employed to ensure that at low loads, the electricity consumption is higher and the temperature is maintained close to the minimum allowed temperature range. The goal is to minimize electricity consumption and adjust the temperature to the maximum allowable temperature range.<disp-formula id="e33">
<mml:math id="m33">
<mml:mrow>
<mml:msub>
<mml:mi>T</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mi>k</mml:mi>
<mml:mn>1</mml:mn>
</mml:msub>
<mml:mo>.</mml:mo>
<mml:msub>
<mml:mi>T</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>k</mml:mi>
<mml:mn>2</mml:mn>
</mml:msub>
<mml:mo>.</mml:mo>
<mml:msub>
<mml:mi>T</mml:mi>
<mml:mi>a</mml:mi>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mtext>&#x200a;</mml:mtext>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mi>k</mml:mi>
<mml:mn>3</mml:mn>
</mml:msub>
<mml:mo>.</mml:mo>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>A</mml:mi>
<mml:mi>C</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>.</mml:mo>
<mml:mi>U</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(33)</label>
</disp-formula>
<disp-formula id="e34">
<mml:math id="m34">
<mml:mrow>
<mml:mi>U</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mfenced open="{" close="" separators="&#x7c;">
<mml:mrow>
<mml:mtable columnalign="center">
<mml:mtr>
<mml:mtd>
<mml:mtable columnalign="center">
<mml:mtr>
<mml:mtd>
<mml:mn>1</mml:mn>
</mml:mtd>
<mml:mtd>
<mml:mrow>
<mml:msub>
<mml:mi>T</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mtext>&#x200a;</mml:mtext>
<mml:mo>&#x3e;</mml:mo>
<mml:msub>
<mml:mi>T</mml:mi>
<mml:mi mathvariant="italic">Max</mml:mi>
</mml:msub>
<mml:mtext>&#x200a;</mml:mtext>
</mml:mrow>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mtable columnalign="center">
<mml:mtr>
<mml:mtd>
<mml:mn>1</mml:mn>
</mml:mtd>
<mml:mtd>
<mml:mrow>
<mml:mtext>&#x2009;</mml:mtext>
<mml:msub>
<mml:mi>T</mml:mi>
<mml:mi>a</mml:mi>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x3e;</mml:mo>
<mml:msub>
<mml:mi>T</mml:mi>
<mml:mi>a</mml:mi>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mtext>&#x2009;</mml:mtext>
</mml:mrow>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mtable columnalign="center">
<mml:mtr>
<mml:mtd>
<mml:mn>1</mml:mn>
</mml:mtd>
<mml:mtd>
<mml:mrow>
<mml:msub>
<mml:mi>k</mml:mi>
<mml:mn>1</mml:mn>
</mml:msub>
<mml:mo>.</mml:mo>
<mml:msub>
<mml:mi>T</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>k</mml:mi>
<mml:mn>2</mml:mn>
</mml:msub>
<mml:mo>.</mml:mo>
<mml:msub>
<mml:mi>T</mml:mi>
<mml:mi>a</mml:mi>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mtext>&#x200a;</mml:mtext>
<mml:mo>&#x3e;</mml:mo>
<mml:msub>
<mml:mi>T</mml:mi>
<mml:mi mathvariant="italic">Max</mml:mi>
</mml:msub>
<mml:mtext>&#x200a;</mml:mtext>
</mml:mrow>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mtable columnalign="center">
<mml:mtr>
<mml:mtd>
<mml:mn>0</mml:mn>
</mml:mtd>
<mml:mtd>
<mml:mrow>
<mml:mi>e</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>s</mml:mi>
<mml:mi>e</mml:mi>
<mml:mtext>&#x2009;</mml:mtext>
</mml:mrow>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(34)</label>
</disp-formula>
</p>
</sec>
<sec id="s2-7">
<title>2.7 ESS allocation</title>
<p>In this study, the method borrowed from (<xref ref-type="bibr" rid="B24">Soroudi, 2017</xref>), which was used in the DC-OPF program. The allocation of ESSs and their sizes minimized the operational cost. After demand prediction and HVAC aggregator calculation in the AC-OPF platform, the formulation size and number of ESS are calculated. Considering the power quality issues, the uncertainties associated with renewables are addressed when optimizing ESS placement. The state of charge (<italic>SOC</italic>
<sub>i,t</sub>) represents the charging capacity of each ESS, depending on the number of ESS units installed on-site (<italic>N</italic>
<sub>
<italic>i</italic>
</sub>
<sup>
<italic>ESS</italic>
</sup>) and their minimum and maximum capacities (<italic>SOC</italic>
<sub>
<italic>i,min</italic>
</sub> and <italic>SOC</italic>
<sub>
<italic>i,max</italic>
</sub>), as described by <xref ref-type="disp-formula" rid="e35">(35)</xref>. Constraint (<xref ref-type="disp-formula" rid="e36">36</xref>) specifies that the total number of installed ESS units should not exceed the specified maximum limit (<italic>N</italic>
<sub>
<italic>max</italic>
</sub>
<sup>
<italic>E</italic>SS</sup>).<disp-formula id="e35">
<mml:math id="m35">
<mml:mrow>
<mml:mi>S</mml:mi>
<mml:mi>O</mml:mi>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>min</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#xd7;</mml:mo>
<mml:msubsup>
<mml:mi>N</mml:mi>
<mml:mi>i</mml:mi>
<mml:mrow>
<mml:mi>E</mml:mi>
<mml:mi>S</mml:mi>
<mml:mi>S</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2264;</mml:mo>
<mml:mi>S</mml:mi>
<mml:mi>O</mml:mi>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2264;</mml:mo>
<mml:mi>S</mml:mi>
<mml:mi>O</mml:mi>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>max</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#xd7;</mml:mo>
<mml:msubsup>
<mml:mi>N</mml:mi>
<mml:mi>i</mml:mi>
<mml:mrow>
<mml:mi>E</mml:mi>
<mml:mi>S</mml:mi>
<mml:mi>S</mml:mi>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:math>
<label>(35)</label>
</disp-formula>
<disp-formula id="e36">
<mml:math id="m36">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
<mml:msubsup>
<mml:mi>N</mml:mi>
<mml:mi>i</mml:mi>
<mml:mrow>
<mml:mi>E</mml:mi>
<mml:mi>S</mml:mi>
<mml:mi>S</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2264;</mml:mo>
<mml:msubsup>
<mml:mi>N</mml:mi>
<mml:mi>max</mml:mi>
<mml:mrow>
<mml:mi>E</mml:mi>
<mml:mi>S</mml:mi>
<mml:mi>S</mml:mi>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
</mml:math>
<label>(36)</label>
</disp-formula>
</p>
</sec>
</sec>
<sec id="s3">
<title>3 Performance evaluation and discussion</title>
<p>A modified IEEE 33-bus distribution system (<xref ref-type="bibr" rid="B7">Dolatabadi et al., 2020</xref>), as seen in <xref ref-type="fig" rid="F2">Figure 2</xref>, has been used to evaluate the performance of the proposal. The specifications and details of wind and solar energy resources, ESS, aggregated flexible loads, and reactive power compensators are listed in <xref ref-type="table" rid="T1">Table 1</xref>. The generated unit data, including their installation locations and production cost functions, are listed in <xref ref-type="table" rid="T2">Table 2</xref>. The bus and branch data of the modified IEEE 33-bus distribution system are derived from (<xref ref-type="bibr" rid="B7">Dolatabadi et al., 2020</xref>). An initial power level of 4 MVA and designation of bus-1 as the slack bus are noted. The voltage limits of 0.95&#x2013;1.05 pu are considered acceptable for distribution systems. To add the aggregator effect to the distribution grid, a 0.4&#xa0;MW of HVAC aggregator with a power factor of 0.8 is considered. The real and reactive power loads on each bus are shown in <xref ref-type="fig" rid="F3">Figure 3</xref>. The total normal active and reactive electrical demands are respectively 3.715 MW and 2.3 MVar (<xref ref-type="bibr" rid="B27">Wang et al., 2021</xref>). According to the costs in the objective function, the values of VOLS, VOLW, and VOLL become respectively 1,000, 2,000, and 11,000 $/MWh. According to the nodal reactive power pricing in (<xref ref-type="bibr" rid="B28">Wolgast et al., 2022</xref>; <xref ref-type="bibr" rid="B10">Halbhavi et al., 2012</xref>), the cost of reactive power is approximately 1% of that of the active power.</p>
<fig id="F2" position="float">
<label>FIGURE 2</label>
<caption>
<p>The enhanced IEEE 33-bus distribution system.</p>
</caption>
<graphic xlink:href="fenrg-12-1361809-g002.tif"/>
</fig>
<table-wrap id="T1" position="float">
<label>TABLE 1</label>
<caption>
<p>Parameters of the enhanced IEEE 33-bus distribution system.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="center">Symbol</th>
<th align="center">Class</th>
<th align="center">Parameter</th>
<th align="center">Typical value</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td rowspan="2" align="center">
<inline-graphic xlink:href="FENRG_fenrg-2024-1361809_wc_tfx1.tif"/>
</td>
<td rowspan="2" align="center">HVAC Aggregator</td>
<td align="center">Location</td>
<td align="center">Bus &#x23; 8</td>
</tr>
<tr>
<td align="center">Capacity</td>
<td align="center">0.4&#xa0;MWh</td>
</tr>
<tr>
<td rowspan="3" align="center">
<inline-graphic xlink:href="FENRG_fenrg-2024-1361809_wc_tfx2.tif"/>
</td>
<td rowspan="3" align="center">Solar Power Plants</td>
<td align="center">Location</td>
<td align="center">Bus &#x23; 9 and 17</td>
</tr>
<tr>
<td align="center">Capacity</td>
<td align="center">0.1 and 0.1&#xa0;MW</td>
</tr>
<tr>
<td align="center">VOLS</td>
<td align="center">1000</td>
</tr>
<tr>
<td rowspan="3" align="center">
<inline-graphic xlink:href="FENRG_fenrg-2024-1361809_wc_tfx3.tif"/>
</td>
<td rowspan="3" align="center">Wind Power Plants</td>
<td align="center">Location</td>
<td align="center">Bus &#x23; 4 and 32</td>
</tr>
<tr>
<td align="center">Capacity</td>
<td align="center">0.3 and 0.3&#xa0;MW</td>
</tr>
<tr>
<td align="center">VOLW</td>
<td align="center">2000</td>
</tr>
</tbody>
</table>
</table-wrap>
<table-wrap id="T2" position="float">
<label>TABLE 2</label>
<caption>
<p>Generators data of the enhanced IEEE 33-bus distribution system (<xref ref-type="bibr" rid="B7">Dolatabadi et al., 2020</xref>).</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Bus Number</th>
<th align="left">Active capacity (MW)</th>
<th align="left">Reactive capacity (MVAR)</th>
<th align="left">Type</th>
<th align="left">Cost function ($/h)</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">1</td>
<td align="left">4</td>
<td align="left">2.5</td>
<td align="left">Feeder (Conventional Generation)</td>
<td align="left">0.003<italic>P</italic>
<sup>2</sup> &#x2b; 12<italic>P</italic> &#x2b; 240</td>
</tr>
<tr>
<td align="left">18</td>
<td align="left">0.2</td>
<td align="left">0</td>
<td align="left">DG</td>
<td align="left">0.0026<italic>P</italic>
<sup>2</sup> &#x2b; 10.26<italic>P</italic> &#x2b; 210</td>
</tr>
<tr>
<td align="left">22</td>
<td align="left">0.2</td>
<td align="left">0</td>
<td align="left">DG</td>
<td align="left">0.0026<italic>P</italic>
<sup>2</sup> &#x2b; 10.26<italic>P</italic> &#x2b; 210</td>
</tr>
<tr>
<td align="left">25</td>
<td align="left">0.2</td>
<td align="left">0</td>
<td align="left">DG</td>
<td align="left">0.0026<italic>P</italic>
<sup>2</sup> &#x2b; 10.26<italic>P</italic> &#x2b; 210</td>
</tr>
<tr>
<td align="left">33</td>
<td align="left">0.2</td>
<td align="left">0</td>
<td align="left">DG</td>
<td align="left">0.0026<italic>P</italic>
<sup>2</sup> &#x2b; 10.26<italic>P</italic> &#x2b; 210</td>
</tr>
</tbody>
</table>
</table-wrap>
<fig id="F3" position="float">
<label>FIGURE 3</label>
<caption>
<p>The electrical active/reactive load in each bus.</p>
</caption>
<graphic xlink:href="fenrg-12-1361809-g003.tif"/>
</fig>
<p>The control of the on- and off-times and the capacity of the HVAC system units are managed by the HVAC aggregator. The specifications of the HVAC system are listed in <xref ref-type="table" rid="T3">Table 3</xref>. According to the formulas provided in the preceding section and the information in the aforementioned table, the nominal cooling capacity of each unit amounts to approximately 7.1&#xa0;kW of electricity. By disregarding its heating component and considering the 0.4&#xa0;MW capacity of the HVAC aggregator, the number of HVAC system units can be computed. The placement of the HVAC aggregator was designated as Bus 8. The performance of the HVAC aggregator was evaluated in both flexible and non-flexible modes. In the nonflexible mode, the input data comprises only the input temperature and ambient conditions. Conversely, in the flexible mode, adjustments are made based not only on the aforementioned factors but also in alignment with the load diagram. The HVAC aggregator is well versed in the permissible operating temperature range of the HVAC system units, set between 18&#xb0; and 22&#xb0;, as per the projected load curve of the system for the upcoming hours. Consequently, to curtail electricity consumption during peak load periods and optimize utilization during off-peak and valley periods to offset the required power, it operates in accordance with the DR. The following are depicted in <xref ref-type="fig" rid="F4">Figure 4</xref>: a) inlet temperature and ambient conditions at the preceding moment, b) variations in the current inlet temperature in both flexible and non-flexible modes, and c) electricity consumption of each unit within the HVAC aggregator in the aforementioned modes. Notably, the flexible mode shows a reduction in electricity consumption during peak hours, with a subsequent shift towards off-peak and valley periods.</p>
<table-wrap id="T3" position="float">
<label>TABLE 3</label>
<caption>
<p>The characteristics of a single HVAC (<xref ref-type="bibr" rid="B17">Makhdoomi and Moshtagh, 2023</xref>).</p>
</caption>
<table>
<thead valign="top">
<tr>
<th colspan="2" align="center">HVAC&#x2019;s parameters</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">k<sub>1</sub>
</td>
<td align="center">0.212</td>
</tr>
<tr>
<td align="center">k<sub>2</sub>
</td>
<td align="center">0.788</td>
</tr>
<tr>
<td align="center">k<sub>3</sub>
</td>
<td align="center">7.1</td>
</tr>
<tr>
<td align="center">k<sub>4</sub>
</td>
<td align="center">5</td>
</tr>
<tr>
<td align="center">P<sub>AC_max</sub>
</td>
<td align="center">1 kw</td>
</tr>
<tr>
<td align="center">P<sub>H_max</sub>
</td>
<td align="center">2 kw</td>
</tr>
</tbody>
</table>
</table-wrap>
<fig id="F4" position="float">
<label>FIGURE 4</label>
<caption>
<p>Flexible and non-flexible mode for HVAC unit: <bold>(A)</bold> input data, including ambient and indoor temperature at (t-1), <bold>(B)</bold> indoor temperature at (t), <bold>(C)</bold> power consumption of HVAC units.</p>
</caption>
<graphic xlink:href="fenrg-12-1361809-g004.tif"/>
</fig>
<p>In order to calculate the size and number of ESS in distribution system, parameter in <xref ref-type="table" rid="T4">Table 4</xref> are considered. The optimal allocation of ESS units in IEEE 33 bus distribution network is depicted in <xref ref-type="fig" rid="F5">Figure 5</xref>. The ESS was placed to reduce the cost of the entire system. After allocating ESS units in the smart distribution grid, the study focuses on achieving the desired objective function through DR calculations within the AC-OPF framework. Due to the nonlinearity of the problem and integer variables, the GAMS software with Mixed-Integer Nonlinear Programming (MINLP) was used to model the issue, and CONOPT3 was employed as a high-speed MINLP solver for large-scale problems. The research was conducted on a PC with an Intel Core i7 processor, 2.2&#xa0;GHz CPU, and 6&#xa0;GB of RAM.</p>
<table-wrap id="T4" position="float">
<label>TABLE 4</label>
<caption>
<p>The ESS allocation parameters and results.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th colspan="2" align="center">
<italic>ESS allocation Parameters and Values</italic>
</th>
<th colspan="2" align="center">
<italic>Results</italic>
</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="center">
<italic>SOC</italic>
<sub>
<italic>Max</italic>
</sub>
<italic>(i)</italic>
</td>
<td align="center">
<italic>0.1</italic>
<italic>&#xa0;</italic>
<italic>MW</italic>
</td>
<td align="center">
<bold>
<italic>Bus</italic>
</bold>
</td>
<td align="center">
<italic>Size</italic> (<bold>
<italic>MW</italic>
</bold>)</td>
</tr>
<tr>
<td align="center">
<italic>N</italic>
<sup>
<italic>ESS</italic>
</sup>
<sub>
<italic>Max</italic>
</sub>
</td>
<td align="center">
<italic>10</italic>
</td>
<td align="center">
<italic>14, 15, and 16</italic>
</td>
<td align="center">
<italic>0.075 (3 &#xd7; 0.025)</italic>
</td>
</tr>
<tr>
<td align="center">
<italic>N</italic>
<sup>
<italic>i</italic>
</sup>
<sub>
<italic>Max</italic>
</sub>
</td>
<td align="center">
<italic>3</italic>
</td>
<td align="center">
<italic>32</italic>
</td>
<td align="center">
<italic>0.025</italic>
</td>
</tr>
</tbody>
</table>
</table-wrap>
<fig id="F5" position="float">
<label>FIGURE 5</label>
<caption>
<p>The optimal allocation of ESS units in IEEE 33 bus distribution network.</p>
</caption>
<graphic xlink:href="fenrg-12-1361809-g005.tif"/>
</fig>
<sec id="s3-1">
<title>3.1 Uncertainty of Distributed Energy Resources</title>
<p>The uncertainties mainly arise from random variations in the input data, prediction errors, network failures, and intermittent behavior of RESs. In such an uncertain environment, deterministic power flow (DPF) is infeasible and cannot precisely reveal the state of the system. Therefore, for uncertainty assessment, several uncertainty modeling techniques exist, such as probabilistic approaches, possibilistic approaches, hybrid probabilistic-possibilistic approaches, information gap decision theory (IGDT), interval analysis, and robust optimization (<xref ref-type="bibr" rid="B23">Singh et al., 2022</xref>). One of the possibilistic methods is scenario-based. Although the scenario-based method has disadvantages such as sensitivity to selected scenarios and complexity in the number of scenarios, advantages such as flexibility and the possibility of performing sensitivity analysis have led to the use of this method. The three scenarios of normal, high, and low production for each solar and wind unit are shown in <xref ref-type="fig" rid="F6">Figure 6</xref>. Each of these three scenarios was assigned a probability of occurrence in such a way that for the three scenarios of normal, high, and low production in the wind system, the probability of occurrence is 50, 25, and 25, and in the solar system, it is 60, 20%, and 20%, respectively. Owing to the existence of three scenarios for each of the sources, and without losing the generality of the problem, nine scenarios were obtained, and their probabilities are depicted in <xref ref-type="fig" rid="F7">Figure 7</xref>. In each of the nine scenarios, the problem was solved and multiplied by the probability of its occurrence, and the system output was obtained from the sum of the results of the nine scenarios, taking into account the uncertainty of scattered production resources.</p>
<fig id="F6" position="float">
<label>FIGURE 6</label>
<caption>
<p>Uncertainty scenarios of wind and solar units.</p>
</caption>
<graphic xlink:href="fenrg-12-1361809-g006.tif"/>
</fig>
<fig id="F7" position="float">
<label>FIGURE 7</label>
<caption>
<p>Probability of each scenario for distributed energy resources.</p>
</caption>
<graphic xlink:href="fenrg-12-1361809-g007.tif"/>
</fig>
</sec>
<sec id="s3-2">
<title>3.2 Demand prediction</title>
<p>Accurate electricity demand prediction is vital for efficient network operation because errors can result in increased production costs and grid losses. Also seasonal ARIMA has better forecasting result for capturing the seasonality and short-term fluctuations in demand but in general, LSTM performed better for products with stable demand (<xref ref-type="bibr" rid="B8">Falatouri et al., 2022</xref>). In this study, the Modified LSTM method for load predictions, based on the deep neural network architecture referenced in (<xref ref-type="bibr" rid="B30">Zarei and Ghaffarzadeh, 2023</xref>), was utilized. The prediction data cover the period from August 19 to 19 September 2022, and were obtained from the New Zealand Electricity Company (<xref ref-type="bibr" rid="B15">Live load data, 2022</xref>) using the MATLAB software. <xref ref-type="fig" rid="F8">Figure 8</xref> demonstrates the load prediction using this method, with the achieved accuracy indicated by the root-mean-square error and mean absolute error values of 61.8 and 274.9, respectively.</p>
<fig id="F8" position="float">
<label>FIGURE 8</label>
<caption>
<p>Modified LSTM load prediction.</p>
</caption>
<graphic xlink:href="fenrg-12-1361809-g008.tif"/>
</fig>
</sec>
</sec>
<sec sec-type="results|discussion" id="s4">
<title>4 Results and discussion</title>
<p>This section compares the performance of the proposed DR-based AC-OPF in various states and investigates the effect of the HVAC aggregator on peak reduction, various RES scenarios on total cost, DR on voltage profile, peak reduction, and valley filling, and finally, an analytical multi-objective optimization analysis.</p>
<sec id="s4-1">
<title>4.1 Investigating the effect HVAC aggregator</title>
<p>Two flexible and non-flexible modes were considered for the aggregator to investigate the effect of the HVAC aggregator on DR. As mentioned earlier, this aggregator is included in Bus 8 with a capacity of 0.4 megawatts and a power factor of 0.8. In flexible mode, the aggregator adjusts its performance according to the predicted load chart. In addition to the ambient temperature inside and outside the building, it also checks the load chart and then makes a decision regarding the settings of the on and off times and the corresponding power. For a better comparison, in addition to the simultaneous effect of flexible aggregators and non-flexible, different percentages of DR were applied to other buses. In <xref ref-type="fig" rid="F9">Figures 9</xref>&#x2013;<xref ref-type="fig" rid="F12">12</xref>, respectively, the objective functions of the total cost, total voltage variation, peak reconnection, and use convenience are displayed in two different modes of aggregator operation and in different DR steps. As can be seen in all the different DRs, the total system cost and total voltage variation in the flexible operating mode of the HVAC aggregator are reduced, and the amount of peak reduction also increases in this mode. The aggregator installed at a point does not have a noticeable effect on the fourth objective function, that is, the UC. To investigate the effect of the HVAC aggregator individually, in the state without DR, the demand of the entire network in two flexible and nonflexible modes is shown in <xref ref-type="fig" rid="F13">Figure 13</xref>. Because its capacity is approximately 10% of the demand of the entire system, a noticeable reduction in the two peak loads and the transfer of its consumption time to periods of low and intermediate loads are observed.</p>
<fig id="F9" position="float">
<label>FIGURE 9</label>
<caption>
<p>The comparison of total cost in different cases.</p>
</caption>
<graphic xlink:href="fenrg-12-1361809-g009.tif"/>
</fig>
<fig id="F10" position="float">
<label>FIGURE 10</label>
<caption>
<p>The comparison of TVV in different cases.</p>
</caption>
<graphic xlink:href="fenrg-12-1361809-g010.tif"/>
</fig>
<fig id="F11" position="float">
<label>FIGURE 11</label>
<caption>
<p>The comparison of peak reduction in different cases.</p>
</caption>
<graphic xlink:href="fenrg-12-1361809-g011.tif"/>
</fig>
<fig id="F12" position="float">
<label>FIGURE 12</label>
<caption>
<p>The comparison of UC in different cases.</p>
</caption>
<graphic xlink:href="fenrg-12-1361809-g012.tif"/>
</fig>
<fig id="F13" position="float">
<label>FIGURE 13</label>
<caption>
<p>Flexible and non-flexible HVAC aggregator effect on total demand (with no DR).</p>
</caption>
<graphic xlink:href="fenrg-12-1361809-g013.tif"/>
</fig>
</sec>
<sec id="s4-2">
<title>4.2 Effect of different RES scenarios on total cost of grid</title>
<p>According to the possible scenarios for RESs, the total cost of the system in different DRs from zero to 10% is calculated and shown in <xref ref-type="fig" rid="F14">Figure 14</xref>. Therefore, in scenarios with the possibility of producing more energy through solar and wind energy, the cost of the entire system is reduced. In addition, the cost of the entire system decreased significantly with an increase in the DR. Scenario 9, characterized by maximum solar and wind production, exhibits the lowest cost at each DR step, whereas Scenario 5, with minimal renewable resource production, incurs the highest system cost.</p>
<fig id="F14" position="float">
<label>FIGURE 14</label>
<caption>
<p>The total cost comparison in various DR steps for the all scenarios.</p>
</caption>
<graphic xlink:href="fenrg-12-1361809-g014.tif"/>
</fig>
</sec>
<sec id="s4-3">
<title>4.3 Demand response effect on voltage profile</title>
<p>In <xref ref-type="fig" rid="F15">Figure 15</xref>, the voltages of all buses are shown under peak load and low load conditions, with and without consideration of the DR. As can be seen, the effect of applying the DR is to improve the voltage of all buses and approach the optimal voltage (1 pu), especially in low load and end buses of the distribution network.</p>
<fig id="F15" position="float">
<label>FIGURE 15</label>
<caption>
<p>Voltage profile of buses in a modified IEEE 33-bus system for: <bold>(A)</bold> without DR, <bold>(B)</bold> 10% DR.</p>
</caption>
<graphic xlink:href="fenrg-12-1361809-g015.tif"/>
</fig>
</sec>
<sec id="s4-4">
<title>4.4 Demand response effect on peak reduction and valley filling</title>
<p>The effect of levelization on the demand graph of all network loads by applying DR is presented in <xref ref-type="fig" rid="F16">Figure 16</xref>. In the case without DR, the load curve had a desert valley and almost two afternoon and evening peaks. By applying only 10% DR, valley filling has been done to a considerable extent, and almost all the two peaks mentioned have also had a significant reduction. This important factor causes fewer negative effects on the smart distribution grid during peak times.</p>
<fig id="F16" position="float">
<label>FIGURE 16</label>
<caption>
<p>Peak reduction in demand response program.</p>
</caption>
<graphic xlink:href="fenrg-12-1361809-g016.tif"/>
</fig>
</sec>
<sec id="s4-5">
<title>4.5 Demand response effect on load scheduling</title>
<p>In this subsection, the load scheduling involving demand response at various generating stations, including conventional, wind, solar, DG, and ESS, is discussed. Additionally, the electrical load power, including electrical load and power loss, is presented both without DR and with 10% DR states. As depicted in <xref ref-type="fig" rid="F17">Figure 17</xref>, the implementation of a 10% DR results in a reduction of conventional generation and a subsequent decrease in generation costs. Furthermore, with the 10% DR, power generation costs are lower at lower loads, leading to an increase in power generation by DGs compared to scenarios without demand response.</p>
<fig id="F17" position="float">
<label>FIGURE 17</label>
<caption>
<p>The effect of DR program on generation scheduling: <bold>(A)</bold> Without DR and <bold>(B)</bold> with 10% DR.</p>
</caption>
<graphic xlink:href="fenrg-12-1361809-g017.tif"/>
</fig>
</sec>
<sec id="s4-6">
<title>4.6 Multi-objective optimization analysis</title>
<p>In order to address multi-objective optimization challenges, various methods like the &#x190;-Constraint and TOPSIS are utilized. Each method has its own set of advantages and drawbacks. <xref ref-type="fig" rid="F18">Figure 18</xref> illustrates the values of four objective functions: total cost (TC), total voltage variation (TVV) for power quality enhancement, peak reduction (PR), and user convenience (UC), ranging from 0 to 30 percent of DR. Utilizing the TOPSIS method identified the optimal point in DR at 30%, albeit resulting in a significant decrease in user convenience from 100% to nearly zero. Given the opposing trends of the other three functions in comparison with UC, even with low weighting factors, the final solution remains unaffected. To address this issue, a thorough analytical approach to the objective function responses is imperative. The cost function exhibited a fully decreasing trend, with a steeper decline at lower DR values and a more gradual decrease at higher DR values. The TVV objective function displays a slight decrease with increasing DR, with a reduction range of less than 0.7% between 23.7 and 23. Because a substantial reduction in TVV comes at a high cost, a balance must be struck. Peak reduction, as the third objective, sees a rapid increase in peak value at the start of DR, reaching a local peak of over 10% before 15% DR, followed by minimal changes thereafter, and maintaining peak reduction below 12% up to DR 30%. Despite increasing the DR in certain regions, a decrease in the PR may still occur. Finally, the UC objective function focuses on user convenience, which diminishes gradually with DR, drops sharply after 15% DR, and approaches zero at 30% DR. Considering the explanations provided, the importance of subscriber consumption patterns, and the societal impact of economic decisions, an analytical approach suggests that DR values below 15% are optimal for altering subscriber consumption patterns. During this phase, when UC falls below 20%, significant cost reductions across the system and optimal peak efficiency are achieved at a DR of 14%.</p>
<fig id="F18" position="float">
<label>FIGURE 18</label>
<caption>
<p>Multi-objective optimization results and analysis.</p>
</caption>
<graphic xlink:href="fenrg-12-1361809-g018.tif"/>
</fig>
</sec>
<sec id="s4-7">
<title>4.7 Practical implications</title>
<p>The simultaneous solution of AC-OPF and DR problems in a smart distribution network was achieved by applying the effects of a small-scale load aggregator owing to its control and feedback capabilities. Although, in theory, there is no limit to the participation of more electricity subscribers in demand response, in practice, a large change in the time and amount of their consumption will cause dissatisfaction. In practice, choosing the appropriate percentage of DR by considering the behavioral habits of energy consumption of electricity subscribers in the framework of user convenience makes the network operator&#x2019;s planning on this value closer to reality and reduces the difficulty of adjusting the demand-production balance. The participation of the local aggregator of the HVAC loads to comply with the optimal temperature range of the residents was also emphasized.</p>
</sec>
</sec>
<sec sec-type="conclusion" id="s5">
<title>5 Conclusion</title>
<p>The integration of renewable energy sources with their intermittent operation and unbalanced electrical loads has created challenges for power grids, particularly in the distribution network section. This paper presents a multi-objective DR approach within the AC-OPF framework by employing two simultaneous participation options: distributed flexible and concentrated aggregated loads. The simulation results demonstrate that flexible modeling of the HVAC aggregator, considering the optimal temperature range for the operation of the units, reduces the total cost, peak load, and total voltage variation. By incorporating modified LSTM demand prediction, optimal ESS placement, and addressing the uncertainty in DERs, along with implementing an analytical method and introducing a 15% maximum step in the DR with a negligible impact of less than 10% on user convenience, significant reductions were achieved across various objective functions. Specifically, the total system cost, network peak, and total voltage variation decrease by 22%, 10%, and 2%, respectively. This optimization effort led to a $8,000 cost reduction and a 0.4&#xa0;MW decrease in peak load. For future work, the electrical power losses can be considered as another objective functions. And more scenarios can be used for more exact uncertainty modelling of DERs.</p>
</sec>
</body>
<back>
<sec sec-type="data-availability" id="s6">
<title>Data availability statement</title>
<p>The original contributions presented in the study are included in the article/Supplementary material, further inquiries can be directed to the corresponding author.</p>
</sec>
<sec id="s7">
<title>Author contributions</title>
<p>AZ: Conceptualization, Formal Analysis, Methodology, Resources, Software, Validation, Visualization, Writing&#x2013;original draft. NG: Conceptualization, Data curation, Investigation, Project administration, Supervision, Validation, Writing&#x2013;review and editing. FS: Resoures, Validation, Writing&#x2013;review and editing.</p>
</sec>
<sec sec-type="funding-information" id="s8">
<title>Funding</title>
<p>The author(s) declare that no financial support was received for the research, authorship, and/or publication of this article.</p>
</sec>
<sec sec-type="COI-statement" id="s9">
<title>Conflict of interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec sec-type="disclaimer" id="s10">
<title>Publisher&#x2019;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<ref-list>
<title>References</title>
<ref id="B1">
<citation citation-type="book">
<year>2011</year> <source>Buildings energy data Book, energy efficiency and renewable energy: building of technologies program</source>. <publisher-name>U.S. Department of Energy</publisher-name>, <publisher-loc>Washington, DC</publisher-loc>,</citation>
</ref>
<ref id="B2">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Aalami</surname>
<given-names>H. A.</given-names>
</name>
<name>
<surname>Moghaddam</surname>
<given-names>M. P.</given-names>
</name>
<name>
<surname>Yousefi</surname>
<given-names>G. R.</given-names>
</name>
</person-group> (<year>2010</year>). <article-title>Modeling and prioritizing demand response programs in power markets</article-title>. <source>Electr. power Syst. Res.</source> <volume>80</volume> (<issue>4</issue>), <fpage>426</fpage>&#x2013;<lpage>435</lpage>. <pub-id pub-id-type="doi">10.1016/j.epsr.2009.10.007</pub-id>
</citation>
</ref>
<ref id="B3">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Albadi</surname>
<given-names>M. H.</given-names>
</name>
<name>
<surname>El-Saadany</surname>
<given-names>E. F.</given-names>
</name>
</person-group> (<year>2008</year>). <article-title>A summary of demand response in electricity markets</article-title>. <source>Electr. power Syst. Res.</source> <volume>78</volume> (<issue>11</issue>), <fpage>1989</fpage>&#x2013;<lpage>1996</lpage>. <pub-id pub-id-type="doi">10.1016/j.epsr.2008.04.002</pub-id>
</citation>
</ref>
<ref id="B4">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Bhattacharya</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Kar</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Chow</surname>
<given-names>J. H.</given-names>
</name>
</person-group> (<year>2017</year>). <article-title>Optimal precooling of thermostatic loads under time-varying electricity prices</article-title>. <source>Proc. Am. Control Conf.</source>, <fpage>1407</fpage>&#x2013;<lpage>1412</lpage>. <pub-id pub-id-type="doi">10.23919/ACC.2017.7963150</pub-id>
</citation>
</ref>
<ref id="B5">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Cain</surname>
<given-names>M. B.</given-names>
</name>
<name>
<surname>O&#x2019;neill</surname>
<given-names>R. P.</given-names>
</name>
<name>
<surname>Castillo</surname>
<given-names>A.</given-names>
</name>
</person-group> (<year>2012</year>). <article-title>History of optimal power flow and formulations</article-title>. <source>Fed. Energy Regul. Comm.</source> <volume>1</volume>, <fpage>1</fpage>&#x2013;<lpage>36</lpage>.</citation>
</ref>
<ref id="B6">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Chowdhury</surname>
<given-names>M. M.-U.-T.</given-names>
</name>
<name>
<surname>Biswas</surname>
<given-names>B. D.</given-names>
</name>
<name>
<surname>Kamalasadan</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2023</year>). <article-title>Second-order cone programming (SOCP) model for three phase optimal power flow (OPF) in active distribution networks</article-title>. <source>IEEE Trans. Smart Grid</source> <volume>14</volume>, <fpage>3732</fpage>&#x2013;<lpage>3743</lpage>. <pub-id pub-id-type="doi">10.1109/tsg.2023.3241216</pub-id>
</citation>
</ref>
<ref id="B7">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Dolatabadi</surname>
<given-names>S. H.</given-names>
</name>
<name>
<surname>Ghorbanian</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Siano</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Hatziargyriou</surname>
<given-names>N. D.</given-names>
</name>
</person-group> (<year>2020</year>). <article-title>An enhanced IEEE 33 bus benchmark test system for distribution system studies</article-title>. <source>IEEE Trans. Power Syst.</source> <volume>36</volume> (<issue>3</issue>), <fpage>2565</fpage>&#x2013;<lpage>2572</lpage>. <pub-id pub-id-type="doi">10.1109/tpwrs.2020.3038030</pub-id>
</citation>
</ref>
<ref id="B8">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Falatouri</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Darbanian</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Brandtner</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Udokwu</surname>
<given-names>C.</given-names>
</name>
</person-group> (<year>2022</year>). <article-title>Predictive analytics for demand forecasting&#x2013;a comparison of SARIMA and LSTM in retail SCM</article-title>. <source>Procedia Comput. Sci.</source> <volume>200</volume>, <fpage>993</fpage>&#x2013;<lpage>1003</lpage>. <pub-id pub-id-type="doi">10.1016/j.procs.2022.01.298</pub-id>
</citation>
</ref>
<ref id="B9">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Gorman</surname>
<given-names>W.</given-names>
</name>
</person-group> (<year>2022</year>). <article-title>The quest to quantify the value of lost load: a critical review of the economics of power outages</article-title>. <source>Electr. J.</source> <volume>35</volume> (<issue>8</issue>), <fpage>107187</fpage>. <pub-id pub-id-type="doi">10.1016/j.tej.2022.107187</pub-id>
</citation>
</ref>
<ref id="B10">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Halbhavi</surname>
<given-names>S. B.</given-names>
</name>
<name>
<surname>Karki</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Kulkarni</surname>
<given-names>S. G.</given-names>
</name>
</person-group> (<year>2012</year>). <article-title>Reactive power pricing framework problems and a proposal for a competitive market</article-title>. <source>Int. J. Innov. Eng. Technol.</source> <volume>1</volume> (<issue>2</issue>), <fpage>22</fpage>&#x2013;<lpage>27</lpage>.</citation>
</ref>
<ref id="B11">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Henr&#xed;quez</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Wenzel</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Olivares</surname>
<given-names>D. E.</given-names>
</name>
<name>
<surname>Negrete-Pincetic</surname>
<given-names>M.</given-names>
</name>
</person-group> (<year>2017</year>). <article-title>Participation of demand response aggregators in electricity markets: optimal portfolio management</article-title>. <source>IEEE Trans. Smart Grid</source> <volume>9</volume> (<issue>5</issue>), <fpage>4861</fpage>&#x2013;<lpage>4871</lpage>. <pub-id pub-id-type="doi">10.1109/tsg.2017.2673783</pub-id>
</citation>
</ref>
<ref id="B12">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Jabari</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Mohammadpourfard</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Mohammadi-Ivatloo</surname>
<given-names>B.</given-names>
</name>
</person-group>, &#x201c;<article-title>AC optimal power flow incorporating demand-side management strategy</article-title>,&#x201d; in <source>Demand Response Appl. Smart Grids Operation Issues-</source>Volume <volume>2</volume>, <year>2020</year>, pp. <fpage>147</fpage>&#x2013;<lpage>165</lpage>. <pub-id pub-id-type="doi">10.1007/978-3-030-32104-8_7</pub-id>
</citation>
</ref>
<ref id="B13">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Khonji</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Chau</surname>
<given-names>C.-K.</given-names>
</name>
<name>
<surname>Elbassioni</surname>
<given-names>K.</given-names>
</name>
</person-group> (<year>2016</year>). <article-title>Optimal power flow with inelastic demands for demand response in radial distribution networks</article-title>. <source>IEEE Trans. Control Netw.</source> <volume>5</volume> (<issue>1</issue>), <fpage>513</fpage>&#x2013;<lpage>524</lpage>. <pub-id pub-id-type="doi">10.1109/tcns.2016.2622362</pub-id>
</citation>
</ref>
<ref id="B14">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Li</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Wan</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Jiang</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Yu</surname>
<given-names>P.</given-names>
</name>
</person-group> (<year>2023</year>). <article-title>Generalized linear&#x2010;constrained optimal power flow for distribution networks</article-title>. <source>IET Gener. Transm. Distrib.</source> <volume>17</volume>, <fpage>1298</fpage>&#x2013;<lpage>1309</lpage>. <pub-id pub-id-type="doi">10.1049/gtd2.12735</pub-id>
</citation>
</ref>
<ref id="B15">
<citation citation-type="web">
<collab>Live load data</collab> (<year>2022</year>). <article-title>Live load data</article-title>. <comment>Available at: <ext-link ext-link-type="uri" xlink:href="https://www.transpower.co.nz/system-operator/operational-information/load-graphs#download">https://www.transpower.co.nz/system-operator/operational-information/load-graphs&#x23;download</ext-link>.</comment>
</citation>
</ref>
<ref id="B16">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Mak</surname>
<given-names>T. W. K.</given-names>
</name>
<name>
<surname>Chatzos</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Tanneau</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Van Hentenryck</surname>
<given-names>P.</given-names>
</name>
</person-group> (<year>2023</year>). <article-title>Learning regionally decentralized ac optimal power flows with admm</article-title>. <source>IEEE Trans. Smart Grid</source> <volume>14</volume>, <fpage>4863</fpage>&#x2013;<lpage>4876</lpage>. <pub-id pub-id-type="doi">10.1109/tsg.2023.3251292</pub-id>
</citation>
</ref>
<ref id="B17">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Makhdoomi</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Moshtagh</surname>
<given-names>J.</given-names>
</name>
</person-group> (<year>2023</year>). <article-title>Optimal scheduling of electrical storage system and flexible loads to participate in energy and flexible ramping product markets</article-title>. <source>J. Oper. Autom. Power Eng.</source> <volume>11</volume> (<issue>3</issue>), <fpage>203</fpage>&#x2013;<lpage>212</lpage>. <pub-id pub-id-type="doi">10.22098/joape.2023.10258.1729</pub-id>
</citation>
</ref>
<ref id="B18">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Merrad</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Habaebi</surname>
<given-names>M. H.</given-names>
</name>
<name>
<surname>Toha</surname>
<given-names>S. F.</given-names>
</name>
<name>
<surname>Islam</surname>
<given-names>M. R.</given-names>
</name>
<name>
<surname>Gunawan</surname>
<given-names>T. S.</given-names>
</name>
<name>
<surname>Mesri</surname>
<given-names>M.</given-names>
</name>
</person-group> (<year>2022</year>). <article-title>Fully decentralized, cost-effective energy demand response management system with a smart contracts-based optimal power flow solution for smart grids</article-title>. <source>Energies</source> <volume>15</volume> (<issue>12</issue>), <fpage>4461</fpage>. <pub-id pub-id-type="doi">10.3390/en15124461</pub-id>
</citation>
</ref>
<ref id="B19">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Nair</surname>
<given-names>A. S.</given-names>
</name>
<name>
<surname>Abhyankar</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Peles</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Ranganathan</surname>
<given-names>P.</given-names>
</name>
</person-group> (<year>2022</year>). <article-title>Computational and numerical analysis of ac optimal power flow formulations on large-scale power grids</article-title>. <source>Electr. Power Syst. Res.</source> <volume>202</volume>, <fpage>107594</fpage>. <pub-id pub-id-type="doi">10.1016/j.epsr.2021.107594</pub-id>
</citation>
</ref>
<ref id="B20">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Nakabi</surname>
<given-names>T. A.</given-names>
</name>
<name>
<surname>Toivanen</surname>
<given-names>P.</given-names>
</name>
</person-group> (<year>2021</year>). <article-title>Deep reinforcement learning for energy management in a microgrid with flexible demand</article-title>. <source>Sustain. Energy , Grids Netw.</source> <volume>25</volume>, <fpage>100413</fpage>. <pub-id pub-id-type="doi">10.1016/j.segan.2020.100413</pub-id>
</citation>
</ref>
<ref id="B21">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Nan</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Zhou</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>G.</given-names>
</name>
</person-group> (<year>2017</year>). <article-title>Optimal residential community demand response scheduling in smart grid</article-title>. <source>Appl. Energy</source> <volume>210</volume>, <fpage>1280</fpage>&#x2013;<lpage>1289</lpage>. <pub-id pub-id-type="doi">10.1016/j.apenergy.2017.06.066</pub-id>
</citation>
</ref>
<ref id="B22">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Shoreh</surname>
<given-names>M. H.</given-names>
</name>
<name>
<surname>Siano</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Shafie-khah</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Loia</surname>
<given-names>V.</given-names>
</name>
<name>
<surname>Catal&#xe3;o</surname>
<given-names>J. P. S.</given-names>
</name>
</person-group> (<year>2016</year>). <article-title>A survey of industrial applications of Demand Response</article-title>. <source>Electr. Power Syst. Res.</source> <volume>141</volume>, <fpage>31</fpage>&#x2013;<lpage>49</lpage>. <pub-id pub-id-type="doi">10.1016/j.epsr.2016.07.008</pub-id>
</citation>
</ref>
<ref id="B23">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Singh</surname>
<given-names>V.</given-names>
</name>
<name>
<surname>Moger</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Jena</surname>
<given-names>D.</given-names>
</name>
</person-group> (<year>2022</year>). <article-title>Uncertainty handling techniques in power systems: a critical review</article-title>. <source>Electr. Power Syst. Res.</source> <volume>203</volume>, <fpage>107633</fpage>. <pub-id pub-id-type="doi">10.1016/j.epsr.2021.107633</pub-id>
</citation>
</ref>
<ref id="B24">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Soroudi</surname>
<given-names>A.</given-names>
</name>
</person-group> (<year>2017</year>) <source>Power system optimization modeling in GAMS</source>.</citation>
</ref>
<ref id="B25">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Thanh</surname>
<given-names>V.-V.</given-names>
</name>
<name>
<surname>Su</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>B.</given-names>
</name>
</person-group> (<year>2022</year>). <article-title>Optimal DC microgrid operation with model predictive control-based voltage-dependent demand response and optimal battery dispatch</article-title>. <source>Energies</source> <volume>15</volume> (<issue>6</issue>), <fpage>2140</fpage>. <pub-id pub-id-type="doi">10.3390/en15062140</pub-id>
</citation>
</ref>
<ref id="B26">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Vanin</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Van Acker</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Ergun</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>D&#x2019;hulst</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Vanthournout</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Van Hertem</surname>
<given-names>D.</given-names>
</name>
</person-group> (<year>2022</year>). <article-title>Congestion mitigation in unbalanced residential networks with OPF-based demand management</article-title>. <source>Sustain. Energy, Grids Netw.</source> <volume>32</volume>, <fpage>100936</fpage>. <pub-id pub-id-type="doi">10.1016/j.segan.2022.100936</pub-id>
</citation>
</ref>
<ref id="B27">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Wang</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Xu</surname>
<given-names>Q.</given-names>
</name>
<name>
<surname>Su</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Fang</surname>
<given-names>K.</given-names>
</name>
</person-group> (<year>2021</year>). <article-title>A distributed and robust optimal scheduling model for an active distribution network with load aggregators</article-title>. <source>Front. Energy Res.</source> <volume>9</volume>, <fpage>646869</fpage>. <pub-id pub-id-type="doi">10.3389/fenrg.2021.646869</pub-id>
</citation>
</ref>
<ref id="B28">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Wolgast</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Ferenz</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Nie&#xdf;e</surname>
<given-names>A.</given-names>
</name>
</person-group> (<year>2022</year>). <article-title>Reactive power markets: a review</article-title>. <source>IEEE Access</source> <volume>10</volume>, <fpage>28397</fpage>&#x2013;<lpage>28410</lpage>. <pub-id pub-id-type="doi">10.1109/access.2022.3141235</pub-id>
</citation>
</ref>
<ref id="B29">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Younesi</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Siano</surname>
<given-names>P.</given-names>
</name>
</person-group> (<year>2024</year>). <article-title>Enhancing the resilience of zero-carbon energy communities: leveraging network reconfiguration and effective load carrying capability quantification</article-title>. <source>J. Clean. Prod.</source> <volume>434</volume>, <fpage>139794</fpage>. <pub-id pub-id-type="doi">10.1016/j.jclepro.2023.139794</pub-id>
</citation>
</ref>
<ref id="B30">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zarei</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Ghaffarzadeh</surname>
<given-names>N.</given-names>
</name>
</person-group> (<year>2023</year>). <article-title>Optimal demand response-based AC OPF over smart grid platform considering solar and wind power plants and ESSs with short-term load forecasts using LSTM</article-title>. <source>J. Sol. Energy Res.</source> <volume>8</volume> (<issue>2</issue>), <fpage>1367</fpage>&#x2013;<lpage>1379</lpage>. <pub-id pub-id-type="doi">10.22059/JSER.2023.352567.1271</pub-id>
</citation>
</ref>
</ref-list>
<sec id="s11">
<title>Nomenclature</title>
<table-wrap id="udT1" position="float">
<table>
<tbody valign="top">
<tr>
<td align="left">
<bold>AC-OPF</bold>
</td>
<td align="left">AC Optimal power flow</td>
</tr>
<tr>
<td align="left">
<bold>DERs</bold>
</td>
<td align="left">Distributed energy resources</td>
</tr>
<tr>
<td align="left">
<bold>DR</bold>
</td>
<td align="left">Demand Response</td>
</tr>
<tr>
<td align="left">
<bold>ESS</bold>
</td>
<td align="left">Energy Storage System</td>
</tr>
<tr>
<td align="left">
<bold>HVAC</bold>
</td>
<td align="left">heating, ventilation, and air conditioning</td>
</tr>
<tr>
<td align="left">
<bold>HVACA</bold>
</td>
<td align="left">HVAC aggregator</td>
</tr>
<tr>
<td align="left">
<bold>Indices and Sets <italic>ch/dch</italic>
</bold>
</td>
<td align="left">Index denotes the charge/discharge state of ESS</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>g</italic>
</bold>
</td>
<td align="left">Index denotes the thermal generation units</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>i,j</italic>
</bold>
</td>
<td align="left">Index denotes the network buses</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>t</italic>
</bold>
</td>
<td align="left">Time indicator</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>w</italic>
</bold>
</td>
<td align="left">Index denotes the wind turbine units</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>&#x3a9;</italic>
</bold>
<sup>
<bold>
<italic>i</italic>
</bold>
</sup>
<sub>
<bold>
<italic>&#x3b9;</italic>
</bold>
</sub>
</td>
<td align="left">Set of all buses connected to bus i</td>
</tr>
<tr>
<td align="left">
<bold>Parameters and Variables <italic>a</italic>
</bold>
<sub>
<bold>
<italic>g</italic>
</bold>
</sub>
<bold>
<italic>, b</italic>
</bold>
<sub>
<bold>
<italic>g</italic>
</bold>
</sub>
<bold>
<italic>, and c</italic>
</bold>
<sub>
<bold>
<italic>g</italic>
</bold>
</sub>
</td>
<td align="left">fuel cost coefficient of active power generation at unit <italic>g</italic> ($/MW)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>c</italic>
</bold>
</td>
<td align="left">fuel cost coefficient of reactive power generation at unit <italic>g</italic> ($/MW)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>k</italic>
</bold>
<sub>
<bold>
<italic>1,</italic>
</bold>
</sub> <bold>
<italic>k</italic>
</bold>
<sub>
<bold>
<italic>2,</italic>
</bold>
</sub> <bold>
<italic>k</italic>
</bold>
<sub>
<bold>
<italic>3,</italic>
</bold>
</sub> <bold>
<italic>k</italic>
</bold>
<sub>
<bold>
<italic>4</italic>
</bold>
</sub>
</td>
<td align="left">Thermal equation coefficients</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>n</italic>
</bold>
<sup>
<bold>
<italic>FP</italic>
</bold>
</sup>
<bold>
<italic>/n</italic>
</bold>
<sup>
<bold>
<italic>SP</italic>
</bold>
</sup>
</td>
<td align="left">Minimum number of EVs to participate in the first/second peaks</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>N</italic>
</bold>
<sub>
<bold>
<italic>max</italic>
</bold>
</sub>
<sup>
<bold>
<italic>E</italic>SS</bold>
</sup>
</td>
<td align="left">Maximum number of ESSs</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>P</italic>
</bold>
<sub>
<bold>
<italic>AC</italic>
</bold>
</sub>
</td>
<td align="left">Cooling power consumption of HVAC system</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>P</italic>
</bold>
<sub>
<bold>
<italic>AC_max</italic>
</bold>
</sub>
</td>
<td align="left">Maximum possible cooling power consumption of HVAC system</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>P</italic>
</bold>
<sub>
<bold>
<italic>ch</italic>
</bold>
</sub>
<sup>
<bold>
<italic>max</italic>
</bold>
</sup>
<bold>
<italic>/P</italic>
</bold>
<sub>
<bold>
<italic>dch</italic>
</bold>
</sub>
<sup>
<bold>
<italic>max</italic>
</bold>
</sup>
</td>
<td align="left">Maximum charging and discharging limits (MW)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>P</italic>
</bold>
<sub>
<bold>
<italic>ch</italic>
</bold>
</sub>
<sup>
<bold>
<italic>min</italic>
</bold>
</sup>
<bold>
<italic>/P</italic>
</bold>
<sub>
<bold>
<italic>dch</italic>
</bold>
</sub>
<sup>
<bold>
<italic>min</italic>
</bold>
</sup>
</td>
<td align="left">Minimum charging and discharging limits (MW)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>P</italic>
</bold>
<sub>
<bold>
<italic>i,t</italic>
</bold>
</sub>
<sup>
<bold>
<italic>ch</italic>
</bold>
</sup>
<bold>
<italic>/P</italic>
</bold>
<sub>
<bold>
<italic>i,t</italic>
</bold>
</sub>
<sup>
<bold>
<italic>dch</italic>
</bold>
</sup>
</td>
<td align="left">Charging/discharging power of ESS (MW)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>P</italic>
</bold>
<sub>
<bold>
<italic>i,t</italic>
</bold>
</sub>
<sup>
<bold>
<italic>L</italic>
</bold>
</sup>
<bold>
<italic>/P</italic>
</bold>
<sub>
<bold>
<italic>i,t</italic>
</bold>
</sub>
<sup>
<bold>
<italic>L0</italic>
</bold>
</sup>
</td>
<td align="left">Active power consumption at bus i and time t after/before demand response (MW)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>P</italic>
</bold>
<sub>
<bold>
<italic>i,t</italic>
</bold>
</sub>
<sup>
<bold>
<italic>LS</italic>
</bold>
</sup>
</td>
<td align="left">Active Load shedding in bus i at time t (MW)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>P</italic>
</bold>
<sub>
<bold>
<italic>i,t</italic>
</bold>
</sub>
<sup>
<bold>
<italic>WC</italic>
</bold>
</sup>
<bold>
<italic>/P</italic>
</bold>
<sub>
<bold>
<italic>i,t</italic>
</bold>
</sub>
<sup>
<bold>
<italic>SC</italic>
</bold>
</sup>
</td>
<td align="left">Wind/Solar curtailment in bus i at time t (MW)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>P</italic>
</bold>
<sub>
<bold>
<italic>i,t</italic>
</bold>
</sub>
<sup>
<bold>
<italic>S</italic>
</bold>
</sup>
</td>
<td align="left">Solar plant generation in bus i at time t (MW)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>P</italic>
</bold>
<sub>
<bold>
<italic>ij,t</italic>
</bold>
</sub>
<bold>
<italic>/Q</italic>
</bold>
<sub>
<bold>
<italic>ij,t</italic>
</bold>
</sub>
</td>
<td align="left">Active/Reactive power flow from bus i to bus j (MW/MVar)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>P</italic>
</bold>
<sub>
<bold>
<italic>i</italic>
</bold>
</sub>
<sup>
<bold>
<italic>g,min</italic>
</bold>
</sup>
<bold>/<italic>P</italic>
</bold>
<sub>
<bold>
<italic>i</italic>
</bold>
</sub>
<sup>
<bold>
<italic>g,max</italic>
</bold>
</sup>
</td>
<td align="left">Minimum and maximum limits of active power (MW)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>P</italic>
</bold>
<sup>
<bold>
<italic>c</italic>
</bold>
</sup>
<sub>
<bold>
<italic>j</italic>
</bold>
</sub>
</td>
<td align="left">Rated charging power of EV</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>P</italic>
</bold>
<sub>
<bold>
<italic>load</italic>
</bold>
</sub>
<sup>
<bold>
<italic>new</italic>
</bold>
</sup>
</td>
<td align="left">Active Load after demand response (MW)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>P</italic>
</bold>
<sub>
<bold>
<italic>load</italic>
</bold>
</sub>
<sup>
<bold>
<italic>old</italic>
</bold>
</sup>
</td>
<td align="left">Active Load before demand response (MW)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>Q</italic>
</bold>
<sub>
<bold>
<italic>i</italic>
</bold>
</sub>
<sup>
<bold>
<italic>g,min</italic>
</bold>
</sup>
<bold>
<italic>/Q</italic>
</bold>
<sub>
<bold>
<italic>i</italic>
</bold>
</sub>
<sup>
<bold>
<italic>g,max</italic>
</bold>
</sup>
</td>
<td align="left">Minimum and maximum limits of reactive power (MVar)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>Q</italic>
</bold>
<sub>
<bold>
<italic>i,t</italic>
</bold>
</sub>
<sup>
<bold>
<italic>L</italic>
</bold>
</sup>
<bold>
<italic>/Q</italic>
</bold>
<sub>
<bold>
<italic>i,t</italic>
</bold>
</sub>
<sup>
<bold>
<italic>L0</italic>
</bold>
</sup>
</td>
<td align="left">Reactive power consumption at bus i and time t after/before demand response (MVar)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>Q</italic>
</bold>
<sub>
<bold>
<italic>i,t</italic>
</bold>
</sub>
<sup>
<bold>
<italic>LS</italic>
</bold>
</sup>
</td>
<td align="left">Reactive Load shedding in bus i at time t (MVar)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>Q</italic>
</bold>
<sub>
<bold>
<italic>i,t</italic>
</bold>
</sub>
<sup>
<bold>
<italic>W</italic>
</bold>
</sup>
</td>
<td align="left">Wind turbine reactive power generation (MVar)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>RU</italic>
</bold>
<sub>
<bold>
<italic>g</italic>
</bold>
</sub>
<bold>
<italic>/RD</italic>
</bold>
<sub>
<bold>
<italic>g</italic>
</bold>
</sub>
</td>
<td align="left">Ramp up/down rate (MW/h)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>S</italic>
</bold>
<sub>
<bold>
<italic>ij,t</italic>
</bold>
</sub>
</td>
<td align="left">Complex power flow from bus i to j (MVA)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>S</italic>
</bold>
<sub>
<bold>
<italic>t</italic>
</bold>
</sub>
</td>
<td align="left">Solar availability in time t (pu)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>SOC</italic>
</bold>
<sub>
<bold>
<italic>t</italic>
</bold>
</sub>
</td>
<td align="left">State of charge of ESS at time t (MWh)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>T</italic>
</bold>
<sub>
<bold>
<italic>a</italic>
</bold>
</sub>
</td>
<td align="left">Ambient temperature</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>T</italic>
</bold>
<sub>
<bold>
<italic>in</italic>
</bold>
</sub>
</td>
<td align="left">Indoor temperature of house</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>V</italic>
</bold>
<sub>
<bold>
<italic>i</italic>
</bold>
</sub>
</td>
<td align="left">Voltage magnitude at the bus i (pu)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>VOLL</italic>
</bold>
</td>
<td align="left">
<italic>VOLW VOLS</italic> Value of loss of load ($/MWh) Value of loss of wind ($/MWh) Value of loss of solar ($/MWh)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>w</italic>
</bold>
<sub>
<bold>
<italic>t</italic>
</bold>
</sub>
</td>
<td align="left">Wind availability in time t (pu)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>X</italic>
</bold>
<sub>
<bold>
<italic>i,t</italic>
</bold>
</sub>
<sup>
<bold>
<italic>ch,ESS</italic>
</bold>
</sup>
<bold>
<italic>/X</italic>
</bold>
<sub>
<bold>
<italic>i,t</italic>
</bold>
</sub>
<sup>
<bold>
<italic>dch,ESS</italic>
</bold>
</sup>
</td>
<td align="left">Charging/Discharging power state of ESS</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>Z</italic>
</bold>
<sub>
<bold>
<italic>ij</italic>
</bold>
</sub>
<bold>
<italic>&#x3c;&#x3b8;</italic>
</bold>
<sub>
<bold>
<italic>ij</italic>
</bold>
</sub>
</td>
<td align="left">Impedance of transmission line i to j (pu &#x3c; deg)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>&#x39b;</italic>
</bold>
<sub>
<bold>
<italic>t</italic>
</bold>
</sub>
<sup>
<bold>
<italic>S</italic>
</bold>
</sup>
<bold>
<italic>/&#x39b;</italic>
</bold>
<sub>
<bold>
<italic>t</italic>
</bold>
</sub>
<sup>
<bold>
<italic>w</italic>
</bold>
</sup>
</td>
<td align="left">Solar/Wind availability at time t (pu)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>&#x3bb;</italic>
</bold>
<sub>
<bold>
<italic>i</italic>
</bold>
</sub>
</td>
<td align="left">Locational marginal price in bus i ($/MWh)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>&#x3b4;</italic>
</bold>
<sub>
<bold>
<italic>i</italic>
</bold>
</sub>
</td>
<td align="left">Voltage angle at the bus i (deg)</td>
</tr>
<tr>
<td align="left">
<bold>
<italic>&#x3b7;</italic>
</bold>
<sub>
<bold>
<italic>ch</italic>
</bold>
</sub>
<bold>
<italic>/&#x3b7;</italic>
</bold>
<sub>
<bold>
<italic>dch</italic>
</bold>
</sub>
</td>
<td align="left">Charge/Discharge efficiency of ESS</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
</back>
</article>