<?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">736439</article-id>
<article-id pub-id-type="doi">10.3389/fenrg.2021.736439</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>A Hierarchical Game Theory Based Demand Optimization Method for Grid-Interaction of Energy Flexible Buildings</article-title>
<alt-title alt-title-type="left-running-head">Xu et&#x20;al.</alt-title>
<alt-title alt-title-type="right-running-head">Grid-Interaction of Energy Flexible Buildings</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name>
<surname>Xu</surname>
<given-names>Jinyi</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Yan</surname>
<given-names>Chengchu</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/1217526/overview"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Xu</surname>
<given-names>Yizhe</given-names>
</name>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Shi</surname>
<given-names>Jingfeng</given-names>
</name>
<xref ref-type="aff" rid="aff3">
<sup>3</sup>
</xref>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Sheng</surname>
<given-names>Kai</given-names>
</name>
<xref ref-type="aff" rid="aff3">
<sup>3</sup>
</xref>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Xu</surname>
<given-names>Xiaoping</given-names>
</name>
<xref ref-type="aff" rid="aff4">
<sup>4</sup>
</xref>
</contrib>
</contrib-group>
<aff id="aff1">
<label>
<sup>1</sup>
</label>College of Urban Construction, Nanjing Tech University, <addr-line>Nanjing</addr-line>, <country>China</country>
</aff>
<aff id="aff2">
<label>
<sup>2</sup>
</label>Key Laboratory of Aircraft Environment Control and Life Support, MIIT, Nanjing University of Aeronautics and Astronautics, <addr-line>Nanjing</addr-line>, <country>China</country>
</aff>
<aff id="aff3">
<label>
<sup>3</sup>
</label>Qingdao Hisense Hitachi Air-conditioning Systems Co., Ltd., <addr-line>Qingdao</addr-line>, <country>China</country>
</aff>
<aff id="aff4">
<label>
<sup>4</sup>
</label>The Second Construction Co., Ltd., China Construction Third Engineering Bureau, <addr-line>Wuhan</addr-line>, <country>China</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/1145776/overview">Yongjun Sun</ext-link>, City University of Hong Kong, Hong Kong, SAR China</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/1246192/overview">Yong Cheng</ext-link>, Chongqing University, China</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1262815/overview">Pei Huang</ext-link>, Dalarna University, Sweden</p>
</fn>
<corresp id="c001">&#x2a;Correspondence: Chengchu Yan, <email>chengchu.yan@njtech.edu.cn</email>
</corresp>
<fn fn-type="other">
<p>This article was submitted to Sustainable Energy Systems and Policies, a section of the journal Frontiers in Energy Research</p>
</fn>
</author-notes>
<pub-date pub-type="epub">
<day>31</day>
<month>08</month>
<year>2021</year>
</pub-date>
<pub-date pub-type="collection">
<year>2021</year>
</pub-date>
<volume>9</volume>
<elocation-id>736439</elocation-id>
<history>
<date date-type="received">
<day>05</day>
<month>07</month>
<year>2021</year>
</date>
<date date-type="accepted">
<day>16</day>
<month>08</month>
<year>2021</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2021 Xu, Yan, Xu, Shi, Sheng and Xu.</copyright-statement>
<copyright-year>2021</copyright-year>
<copyright-holder>Xu, Yan, Xu, Shi, Sheng and Xu</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&#x20;terms.</p>
</license>
</permissions>
<abstract>
<p>Building demand-side management is an effective solution for relieving the peak and imbalance problems of electrical grids. How to explore the energy flexibility of buildings and to coordinate a variety of buildings with different energy flexibilities for effective interactions with smart grids are a great challenge. This paper proposes a game theory&#x2013;based hierarchical demand optimization method for energy flexible buildings for achieving better grid interactions. This method consists of two optimization strategies at the grid and building levels. At the grid level, a demand-price interaction model for buildings and the grid is established to identify the Nash equilibrium solutions based on game theory; these solutions are used to determine the optimized energy demand of buildings and the associated electricity prices by accommodating the interests of all participants involved. At the building level, three types of buildings with different energy flexibilities are investigated to analyze the influence of building management strategies on grid interactions. The effectiveness of the proposed method is verified in a simulated case study. The results show that the optimization method can reduce building operational cost by 3&#x2013;18%, reduce the fluctuation of the power grid by 30&#x2013;50%, and ensure that the power grid increases income by 8&#x2013;20%.</p>
</abstract>
<kwd-group>
<kwd>energy flexible building</kwd>
<kwd>demand optimization</kwd>
<kwd>game theory</kwd>
<kwd>smart grid</kwd>
<kwd>grid interaction</kwd>
</kwd-group>
<contract-sponsor id="cn001">National Key Research and Development Program of China<named-content content-type="fundref-id">10.13039/501100012166</named-content>
</contract-sponsor>
<contract-sponsor id="cn002">Priority Academic Program Development of Jiangsu Higher Education Institutions<named-content content-type="fundref-id">10.13039/501100012246</named-content>
</contract-sponsor>
<contract-sponsor id="cn003">National Natural Science Foundation of China<named-content content-type="fundref-id">10.13039/501100001809</named-content>
</contract-sponsor>
</article-meta>
</front>
<body>
<sec id="s1">
<title>Introduction</title>
<sec id="s1-1">
<title>Backgrounds</title>
<p>With the continuous increase in power consumption and the high penetration of renewable energy generations, peak load and power imbalance have become two major challenges for an electrical grid; these challenges significantly affect the reliability, quality and energy efficiency of the grid (<xref ref-type="bibr" rid="B1">Arteconi et&#x20;al., 2019</xref>). The peak load usually results from end-user energy behaviors (e.g., the power demands of buildings or industrial production during office hours/peak hours). Power imbalances generally result from a sudden loss of power supply or an increase in power demand. Redundant capacities of power plants and adequate operating reserves are essentially required by power generation sectors. Energy storage devices/systems (e.g., electric vehicles, batteries, and pumped-storage hydroelectricity) can also be employed as operating reserves. However, these methods are usually limited by either geographic conditions or high initial/operation costs and low storage capacities (<xref ref-type="bibr" rid="B2">Yan et&#x20;al., 2020</xref>). In contrast, methods that use incentive benefits (i.e.,&#x20;implement the power demand response programs) to encourage end-users to manage their power usage behaviors are considered a more promising solution for peak load and power imbalance of&#x20;grids.</p>
<p>Buildings are the largest electricity consumers worldwide and have great potential for power demand management in practice. In the United&#x20;States, China, and Europe, the proportion of electricity used in construction in total electricity consumption reached 39.1, 20.6, and 29.4%, respectively (<xref ref-type="bibr" rid="B4">Electrical and Mechanical Services Department of Hong Kong, 2012</xref>; <xref ref-type="bibr" rid="B3">DoE, 2014</xref>). With the wide applications of building automation systems, IT technologies, smart meters and energy storage, buildings have demonstrated their great capabilities and willingness to participate in the demand management of grids through the bidirectional interaction between buildings and smart grids (<xref ref-type="bibr" rid="B5">Reynders et&#x20;al., 2018</xref>). &#x201c;Energy flexible buildings&#x201d; (EFBs), which have the capacity to manage their energy demand and production according to local climate conditions, user needs, and grid requirements, have been proposed by the International Energy Agency (IEA) (<xref ref-type="bibr" rid="B6">Jensen et&#x20;al., 2017</xref>). More specifically, Wang proposed the concept of &#x2018;grid-friendly and grid-responsive&#x2019; buildings in a research report, where energy flexible buildings are required to work in synergy with (i.e.,&#x20;be responsive to) the grid or avoid additional stresses (i.e.,&#x20;be friendly) on the power grid balance (<xref ref-type="bibr" rid="B7">Wang, 2016</xref>). The energy flexibility of buildings can be greatly enhanced with the use of passive/active thermal storage. For instance, building thermal mass is an inherent passive storage of building structures and internal furniture for building load shifting and demand limiting by using precooling and room temperature set-point reset (<xref ref-type="bibr" rid="B8">Liang et&#x20;al., 2020</xref>). Wang summarized three typical categories of active storage used in buildings to enhance energy flexibility: conventional storage (e.g., chilled water storage), small-scale storage (e.g., phase-change material), and innovative use of existing building facilities (e.g., fire water tanks) for load shifting, demand limitation and management. The increasing usage of power generation in buildings is a trend for sustainable building design and significantly affects the demand and flexibility characteristics of buildings (<xref ref-type="bibr" rid="B31">Zhong et&#x20;al., 2016</xref>). Above all, buildings have the potential to be an excellent carrier for demand-side energy consumption management to solve grid imbalance.</p>
</sec>
<sec id="s1-2">
<title>Literature Review</title>
<p>How to explore the energy flexibility of buildings and to coordinate a variety of buildings with different energy flexibilities for effective interactions with smart grids are challenging. The key issue is how to accommodate the interests of all participants involved in the interactions between grids and buildings (<xref ref-type="bibr" rid="B10">Xu et&#x20;al., 2020</xref>). In fact, driven by attractive electricity prices and various incentive policies, buildings may change their power demand flexibly and responsively. The altered aggregate power demand of buildings will affect electricity prices once a dynamic pricing mechanism is adopted in a smart grid. In contrast, the adjusted electricity prices will also induce buildings to change their energy behaviors to lower their operation cost. Further adjustments to electricity prices and building demands will continue until optimal operation is approached (<xref ref-type="bibr" rid="B11">Saad et&#x20;al., 2012</xref>; <xref ref-type="bibr" rid="B31">Huang et&#x20;al., 2019</xref>). A dynamic pricing method based on genetic algorithm is proposed by Huang et&#x20;al.to improve two-way interaction and reduce power imbalance (<xref ref-type="bibr" rid="B12">Huang and Sun, 2019</xref>). They also proposed the collaborative demand response of nearly zero energy buildings to respond to the dynamic pricing of cluster-level performance improvement, which provides decision makers with computationally efficient demand response control for almost zero-energy buildings, thereby realizing full collaboration and helping To improve performance (<xref ref-type="bibr" rid="B13">Basar and Olsder, 1999</xref>).</p>
<p>At the same time, as an iterative and interactive power demand management strategy, mutual matching of supply-demand between EFBs and smart grid can be analyzed by game theory. Game theory is a mathematical theory and method for studying interactive phenomena whose nature is characterized by struggle or competition (<xref ref-type="bibr" rid="B14">Huang et&#x20;al., 2017</xref>). Previous studies have investigated the feasibility of using game theory to solve the supply-demand interaction problem. Huang et&#x20;al. reviewed the related research on cluster energy consumption planning when EFB buildings are connected to the grid. The authors pointed out the importance of consumer participation in the interaction of supply and demand and proposed an information interaction platform structure based on game theory, thereby aiming to improve the reliability of energy planning strategies for building clusters (<xref ref-type="bibr" rid="B15">Chen et&#x20;al., 2019</xref>). Chen et&#x20;al. used game theory as a tool to define the strategies of participants in the Israeli construction market; the authors combined these strategies with various incentives in the interaction of supply and demand and analyzed the strategy combination that optimally improved the market to help the expansion of the Israeli EFB market (<xref ref-type="bibr" rid="B16">Najafi-Ghalelou et&#x20;al., 2018</xref>). Afshin et&#x20;al. conducted game modeling on the internal energy interaction problem of a building complex, ensured the global optimal solution through mixed integer programming, and determined the individual strategies in equilibrium through general algebraic modeling system optimization software. The results of this case study showed that the internal energy interaction strategy of the building complex can improve the power exchange capacity and reduce the power cost (<xref ref-type="bibr" rid="B17">Lv and Ai, 2016</xref>). Lv et&#x20;al. proposed a new dynamic energy management strategy that interacts with an active power distribution system based on multigrid-connected microgrids; the strategy was aimed at a higher-level benefit distribution network and multiple smart grid units participating in the interaction. A high-level interaction between smart grid units and benefit distribution networks is described by two-level programming, and the smart grid units are modeled by using an innovative interactive energy game matrix (<xref ref-type="bibr" rid="B18">Li and Wang, 2020</xref>). In a study by Li et&#x20;al., an online multi-objective coordinated control strategy composed of two control optimization schemes was proposed for predictive scheduling and real-time optimal control of the energy system of zero-energy buildings. The strategy is based on a cooperative game model and is tested and evaluated by simulating energy storage system scheduling in a typical period in a zero-energy building. The control variables and target weights are finally optimized, and energy costs and grid fluctuations are minimized (<xref ref-type="bibr" rid="B19">Zhao, 2001</xref>). The abovementioned studies regard the smart grid and buildings as two participants simultaneously engaged in decision-making and thereby provide a guiding idea for analyzing supply-demand interaction from the perspective of game theory. The traditional game model regards the building and the power grid as equal participants in the buying and selling relationship; however, this view differs from reality, and consequently, the final Nash equilibrium is inaccurate.</p>
<p>The economic competition relationship between the power grid and buildings is usually defined as a hierarchical planning problem in which one party is dominant and the other party is subordinate. Specifically, the power grid precedes buildings in making decisions on electricity prices, and the buildings then respond to the electricity price plans formulated by the grid and determine the power purchase demand to maximize the buildings&#x2019; own benefits. Additionally, because the power grid needs to consider the response of buildings to electricity prices when making decisions (excessive prices will cause buildings to be more self-produced and self-sold), the energy demand of buildings can also counteract the power grid&#x2019;s pricing plan. This game model of interaction between different levels of decision-making is called the Stackelberg model (<xref ref-type="bibr" rid="B20">Yang et&#x20;al., 2013</xref>). In the production and operation of some commodities with poor price elasticity, the company that decides the strategy first in the Stackelberg model does not have the first-mover advantage, but the company that determines the output later has the latter-mover advantage. Therefore, traditional electricity sales models adopt monopoly or national production and operation methods. However, when renewable energy and energy storage systems are connected, the price demand elasticity of electricity usage in buildings increases. Under the Stackelberg model, the grid side can ensure its own first-mover advantage while incentivizing the buildings to reduce their consumption, and the revenue of electricity is also higher than that under the traditional Cournot model, so it is beneficial to use the Stackelberg model to solve the game equilibrium in the game analysis.</p>
<p>In a study by Peng et&#x20;al., the Stackelberg model was used to optimize the time-of-use (TOU) pricing strategy of the grid. The model satisfied equilibrium user demand and reduced the potential cost of the utility by encouraging buildings to purchase electricity through low trough and low pricing and by encouraging the self-production of buildings through high peak pricing (<xref ref-type="bibr" rid="B21">Yang et&#x20;al., 2014</xref>). On this basis, Jie et&#x20;al. optimized the utility problem of building user comfort based on the new effect function for determining the optimal power consumption and grid pricing under real-time electricity prices (RTPs) (<xref ref-type="bibr" rid="B22">Srinivasan et&#x20;al., 2017</xref>). Srinivasan et&#x20;al. selected dynamic pricing strategies based on game theory for the Singapore electricity market and compared the economic benefits of three pricing strategies: half-hour pricing, time-of-use electricity pricing, and day-and-night electricity pricing (DN). The results show that RTP can reduce the peak load of the residential and commercial sectors by 10 and 5%, respectively; and increase profits by 15.5 and 18.7%, respectively (<xref ref-type="bibr" rid="B23">Tang et&#x20;al., 2019</xref>). Tang et&#x20;al. used the Stackelberg model to maximize the profits of buildings and power grids by considering the impact of uncertainties (<xref ref-type="bibr" rid="B24">Zhang et&#x20;al., 2019</xref>).</p>
<p>However, the game model used in the literature cited above does not classify the types of buildings that the game applies to and ignores the impact of different building system conditions on the interaction of supply and demand.</p>
</sec>
<sec id="s1-3">
<title>Research Gaps and Main Contributions</title>
<p>In previous studies, when considering grid interactions or games between EFBs and smart grids, buildings were often considered to have the same energy &#x201c;flexibility&#x201d;. In fact, buildings with different energy systems and different control strategies have different energy flexibilities and energy consumption patterns, which affect the results of the supply-demand interaction of the game with the power grid. To obtain better demand response optimization results with more realistic performances, this paper constructs three typical flexible buildings with different energy systems and energy control strategies and proposes a hierarchical demand optimization method based on game theory to coordinate these buildings with different energy flexibilities for effective grid interaction with smart grids. The remainder of this paper is arranged as follows. In <italic>Principle of the Hierarchical Optimization Method</italic>, the principle of hierarchical optimization methods will be explained in detail, and the specific interactive game model and internal strategy selection algorithm will be established in <italic>Hierarchical Optimization Implementation Based on Game Theory</italic>. Finally, in <italic>Case Study</italic>, the rationality of the two-tier optimization scheme will be analyzed by using case analysis.</p>
</sec>
</sec>
<sec id="s2">
<title>Principle of the Hierarchical Optimization Method</title>
<sec id="s2-1">
<title>Structure of the Optimization Methods</title>
<p>As shown in <xref ref-type="fig" rid="F1">Figure&#x20;1</xref>, the proposed hierarchical game theory-based demand optimization method consists of two optimization strategies at the grid and building levels. At the grid level, a demand-price interaction model between buildings and the grid is established to use game theory to identify the Nash equilibrium solutions, which are used to determine the optimized energy demand of buildings and the associated electricity prices by accommodating the interests of all participants involved. At this level, buildings can adjust their energy consumption patterns in response to the real-time electricity price or other incentive policies to pursue the lowest possible electricity cost. However, the power grid will also provide the corresponding RTP according to the energy consumption of the building at different times to ensure maximum profit for the building. This kind of supply-demand interaction level analysis of building energy strategy is a typical non-cooperative game problem. Building energy demand and grid quotations are bargained at the game level; when the demand and the quotations reach the Nash equilibrium, the mutual benefits of both parties can be maximized.</p>
<fig id="F1" position="float">
<label>FIGURE 1</label>
<caption>
<p>The framework of the proposed hierarchical optimization strategy.</p>
</caption>
<graphic xlink:href="fenrg-09-736439-g001.tif"/>
</fig>
<p>At the building level, three types of EFBs with different energy flexibilities are investigated to achieve their maximum interests by using appropriate control strategies during the interaction with the grid; the details of the building system conditions are shown in <xref ref-type="table" rid="T1">Table&#x20;1</xref>. Type-1 buildings are &#x201c;passive storage buildings&#x201d;, which can adjust their energy usage by changing the indoor air temperature of the air-conditioning system with a certain degree of thermal comfort sacrifice. Considering that the acceptable temperature change range is small (e.g., 2&#xb0;C), the energy flexibility is limited. Type-2 buildings are &#x201c;active storage buildings&#x201d;, which can purchase excess electricity during periods of low electricity prices and use active energy storage systems to transfer the excess electricity to use during periods of high electricity prices. The energy flexibility is generally moderate, and buildings have a certain degree of initiative in the game, which requires the grid to set peak electricity prices with more consideration of the building&#x2019;s acceptance. Type-3 buildings, which both generate and store energy, have relatively considerable energy flexibility by controlling both their own energy generation and consumption patterns. Such buildings can purchase low-priced or sell high-priced electricity as much as possible and therefore have a strong initiative in the game with the power grid. In summary, the building energy flexibility or the ability of a building to adjust energy consumption in response to electricity prices depends on the system conditions of the building. How to encourage buildings with different energy flexibilities to take part in the grid interaction game and maximize their own interests by using appropriate control strategies is the other key of the proposed optimization method.</p>
<table-wrap id="T1" position="float">
<label>TABLE 1</label>
<caption>
<p>Three types of typical energy flexible buildings.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Building type</th>
<th align="center">Involved system</th>
<th align="center">Control strategy</th>
<th align="center">Energy flexibility</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">Type1-Passive storage</td>
<td align="left">Building thermal mass</td>
<td align="left">Indoor temperature resetting</td>
<td align="left">Limited</td>
</tr>
<tr>
<td align="left">Type2-Active storage</td>
<td align="left">Energy storage system</td>
<td align="left">Energy storage</td>
<td align="left">Moderate</td>
</tr>
<tr>
<td align="left">Type3-Generation &#x26; storage</td>
<td align="left">Renewable energy system &#x2b; energy storage system</td>
<td align="left">Energy generation and active storage</td>
<td align="left">Large</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s2-2">
<title>Game-Based Interactive Optimization at Grid-Level</title>
<p>The optimization objective of the grid level is to achieve the Nash equilibrium of the EFB-grid game interaction. The three elements that make up game <inline-formula id="inf1">
<mml:math id="m1">
<mml:mi>G</mml:mi>
</mml:math>
</inline-formula> are its participants <inline-formula id="inf2">
<mml:math id="m2">
<mml:mi>&#x3c3;</mml:mi>
</mml:math>
</inline-formula> (two or more), their strategies <inline-formula id="inf3">
<mml:math id="m3">
<mml:mi>S</mml:mi>
</mml:math>
</inline-formula>, and the benefits gained by strategies <inline-formula id="inf4">
<mml:math id="m4">
<mml:mi>U</mml:mi>
</mml:math>
</inline-formula>; game <inline-formula id="inf5">
<mml:math id="m5">
<mml:mrow>
<mml:mi>G</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mo>{</mml:mo>
<mml:mi>&#x3c3;</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>S</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>U</mml:mi>
<mml:mo>}</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula>. The interactive participants of the supply and demand strategy proposed in this paper are the EFB cluster and the smart grid. The strategy determined by the grid is the electricity price (<inline-formula id="inf6">
<mml:math id="m6">
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:mi>r</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>), and the strategy determined by the EFBs is its energy demand scheme (<inline-formula id="inf7">
<mml:math id="m7">
<mml:mi>q</mml:mi>
</mml:math>
</inline-formula>). Grid pricing is based on the intensity of the demand of EFBs, and this demand is also affected by the acceptance of the current electricity price, which is <inline-formula id="inf8">
<mml:math id="m8">
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:mi>r</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>f</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mi>q</mml:mi>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:mi>q</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>g</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:mi>r</mml:mi>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:mo>.</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> The grid first quotes the EFBs, and then the EFBs adjusts their own demand based on their acceptance of the current electricity price and feeds the electricity price back to grid. After receiving the electricity price, the grid adjusts the quotation strategy and sends the price to the EFBs. Both parties repeat this process until <inline-formula id="inf9">
<mml:math id="m9">
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mo>&#x2217;</mml:mo>
</mml:msup>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>f</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:msup>
<mml:mi>q</mml:mi>
<mml:mo>&#x2217;</mml:mo>
</mml:msup>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
<mml:msup>
<mml:mi>q</mml:mi>
<mml:mo>&#x2217;</mml:mo>
</mml:msup>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>g</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mo>&#xa0;</mml:mo>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mo>&#x2217;</mml:mo>
</mml:msup>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula>; that is, the supply and demand strategies given by the grid and EFBs meet the expectations of both parties. The game process enters a dynamic equilibrium process; this equilibrium state is called the Nash equilibrium, and the process is shown in <xref ref-type="fig" rid="F2">Figure&#x20;2</xref>. Under the Nash equilibrium, the strategies of both participants of the game will no longer change because breaking the balance will not be more beneficial to either of them. Unlike the &#x201c;maximum profit,&#x201d; which exists in an ideal state, the profit of both parties at this time is the real profit after concession to guarantee the transaction. The definition of the Nash equilibrium is as follows:</p>
<fig id="F2" position="float">
<label>FIGURE 2</label>
<caption>
<p>Participant&#x2019;s strategies converge when the game towards Nash equilibrium.</p>
</caption>
<graphic xlink:href="fenrg-09-736439-g002.tif"/>
</fig>
<p>A strategy vector <inline-formula id="inf10">
<mml:math id="m10">
<mml:mrow>
<mml:msup>
<mml:mi>s</mml:mi>
<mml:mo>&#x2217;</mml:mo>
</mml:msup>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mo>{</mml:mo>
<mml:msubsup>
<mml:mi>s</mml:mi>
<mml:mi>i</mml:mi>
<mml:mo>&#x2217;</mml:mo>
</mml:msubsup>
<mml:mo>,</mml:mo>
<mml:msubsup>
<mml:mi>s</mml:mi>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mo>&#x2217;</mml:mo>
</mml:msubsup>
<mml:mo>}</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> that is in the Nash equilibrium state needs to satisfy <inline-formula id="inf11">
<mml:math id="m11">
<mml:mrow>
<mml:mi>U</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:msup>
<mml:mi>s</mml:mi>
<mml:mtext>&#x2217;</mml:mtext>
</mml:msup>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:mo>&#x2265;</mml:mo>
<mml:mi>U</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:msubsup>
<mml:mi>s</mml:mi>
<mml:mi>i</mml:mi>
<mml:mtext>&#x2217;</mml:mtext>
</mml:msubsup>
<mml:mo>,</mml:mo>
<mml:msubsup>
<mml:mi>s</mml:mi>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mtext>&#x2217;</mml:mtext>
</mml:msubsup>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula>.</p>
<p>In the above definition, <inline-formula id="inf12">
<mml:math id="m12">
<mml:mrow>
<mml:msubsup>
<mml:mi>s</mml:mi>
<mml:mi>i</mml:mi>
<mml:mtext>&#x2217;</mml:mtext>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> is the strategy of game player <inline-formula id="inf13">
<mml:math id="m13">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula>, <inline-formula id="inf14">
<mml:math id="m14">
<mml:mrow>
<mml:msubsup>
<mml:mi>s</mml:mi>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mtext>&#x2217;</mml:mtext>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> is the strategy of all other players, and <inline-formula id="inf15">
<mml:math id="m15">
<mml:mi>U</mml:mi>
</mml:math>
</inline-formula> is the profit that the strategy can promote.</p>
<p>To model the game objective on the building side, the mathematical description of the game objective is as follows:<disp-formula id="e1">
<mml:math id="m16">
<mml:mrow>
<mml:mrow>
<mml:mo>{</mml:mo>
<mml:mrow>
<mml:mtable>
<mml:mtr>
<mml:mtd>
<mml:mrow>
<mml:mo>&#x2200;</mml:mo>
<mml:mi>Q</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mo>&#x2205;</mml:mo>
<mml:mo>,</mml:mo>
<mml:mi>Q</mml:mi>
<mml:mo>&#x2260;</mml:mo>
<mml:msup>
<mml:mi>Q</mml:mi>
<mml:mo>&#x2217;</mml:mo>
</mml:msup>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>U</mml:mi>
<mml:mrow>
<mml:mi>b</mml:mi>
<mml:mi>u</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>d</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
<mml:mi>g</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mo>&#x2217;</mml:mo>
</mml:msup>
<mml:mo>,</mml:mo>
<mml:mi>Q</mml:mi>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:mo>&#x2264;</mml:mo>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>U</mml:mi>
<mml:mrow>
<mml:mi>b</mml:mi>
<mml:mi>u</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>d</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
<mml:mi>g</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:mi>r</mml:mi>
<mml:mo>,</mml:mo>
<mml:msup>
<mml:mi>Q</mml:mi>
<mml:mo>&#x2217;</mml:mo>
</mml:msup>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mrow>
<mml:msup>
<mml:mi>Q</mml:mi>
<mml:mo>&#x2217;</mml:mo>
</mml:msup>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>a</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>g</mml:mi>
<mml:mi>m</mml:mi>
<mml:mi>a</mml:mi>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mrow>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mi>Q</mml:mi>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mi>U</mml:mi>
<mml:mrow>
<mml:mi>b</mml:mi>
<mml:mi>u</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>d</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
<mml:mi>g</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(1)</label>
</disp-formula>where <inline-formula id="inf16">
<mml:math id="m17">
<mml:mo>&#x2205;</mml:mo>
</mml:math>
</inline-formula> is the value range of the building strategy, <inline-formula id="inf17">
<mml:math id="m18">
<mml:mrow>
<mml:msub>
<mml:mi>U</mml:mi>
<mml:mrow>
<mml:mi>b</mml:mi>
<mml:mi>u</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>d</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
<mml:mi>g</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is the building revenue, <inline-formula id="inf18">
<mml:math id="m19">
<mml:mi>Q</mml:mi>
</mml:math>
</inline-formula> is the decision value of the building demand, <inline-formula id="inf19">
<mml:math id="m20">
<mml:mrow>
<mml:msup>
<mml:mi>Q</mml:mi>
<mml:mtext>&#x2217;</mml:mtext>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> is the optimal decision value of building demand under Nash equilibrium, <inline-formula id="inf20">
<mml:math id="m21">
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:mi>r</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> is the dynamic electricity price set by the grid, and <inline-formula id="inf21">
<mml:math id="m22">
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mtext>&#x2217;</mml:mtext>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> is the maximum value under Nash equilibrium. Building energy demand under this balance is the most conducive to the common economic benefits of the building complex and the power grid and can be used as a reliable energy optimization result under the demand response strategy.</p>
<p>The mathematical description corresponding to the grid strategy is:<disp-formula id="e2">
<mml:math id="m23">
<mml:mrow>
<mml:mrow>
<mml:mo>{</mml:mo>
<mml:mrow>
<mml:mtable>
<mml:mtr>
<mml:mtd>
<mml:mrow>
<mml:mo>&#x2200;</mml:mo>
<mml:mi>P</mml:mi>
<mml:mi>r</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi>P</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>P</mml:mi>
<mml:mi>r</mml:mi>
<mml:mo>&#x2260;</mml:mo>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mo>&#x2217;</mml:mo>
</mml:msup>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>U</mml:mi>
<mml:mrow>
<mml:mi>g</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:msup>
<mml:mi>Q</mml:mi>
<mml:mo>&#x2217;</mml:mo>
</mml:msup>
<mml:mo>,</mml:mo>
<mml:mi>P</mml:mi>
<mml:mi>r</mml:mi>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:mo>&#x2264;</mml:mo>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>U</mml:mi>
<mml:mrow>
<mml:mi>g</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mi>Q</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mo>&#x2217;</mml:mo>
</mml:msup>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mo>&#x2217;</mml:mo>
</mml:msup>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>a</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>g</mml:mi>
<mml:mi>m</mml:mi>
<mml:mi>a</mml:mi>
<mml:msub>
<mml:mi>x</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mi>P</mml:mi>
<mml:mi>r</mml:mi>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mi>U</mml:mi>
<mml:mrow>
<mml:mi>g</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(2)</label>
</disp-formula>where <inline-formula id="inf22">
<mml:math id="m24">
<mml:mi>P</mml:mi>
</mml:math>
</inline-formula> is the value range of the grid strategy and <inline-formula id="inf23">
<mml:math id="m25">
<mml:mrow>
<mml:msub>
<mml:mi>U</mml:mi>
<mml:mrow>
<mml:mi>g</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is the grid revenue.</p>
<p>The premise of the existence of the Nash equilibrium is that the players of the game abide by the basic rules of the transaction, and any conflicting strategy that only considers unilateral interests will lead to the failure of the transaction. Therefore, it is necessary to define the value range of the game strategy set:<disp-formula id="e3">
<mml:math id="m26">
<mml:mrow>
<mml:mrow>
<mml:mo>{</mml:mo>
<mml:mrow>
<mml:mtable>
<mml:mtr>
<mml:mtd>
<mml:mrow>
<mml:mo>&#x2205;</mml:mo>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mo>{</mml:mo>
<mml:mrow>
<mml:mrow>
<mml:mi>Q</mml:mi>
<mml:mo>&#x7c;</mml:mo>
</mml:mrow>
<mml:mi>Q</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mi>R</mml:mi>
<mml:mi>N</mml:mi>
</mml:msup>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2264;</mml:mo>
<mml:mi>Q</mml:mi>
<mml:mo>&#x2264;</mml:mo>
<mml:msub>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo>}</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mo>{</mml:mo>
<mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:mi>r</mml:mi>
</mml:mrow>
<mml:mo>&#x7c;</mml:mo>
</mml:mrow>
<mml:mi>P</mml:mi>
<mml:mi>r</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mi>R</mml:mi>
<mml:mi>N</mml:mi>
</mml:msup>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2264;</mml:mo>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:mi>r</mml:mi>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:mo>&#x2264;</mml:mo>
<mml:msub>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo>}</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(3)</label>
</disp-formula>
</p>
<p>In <xref ref-type="disp-formula" rid="e3">Equation 3</xref>, <inline-formula id="inf24">
<mml:math id="m27">
<mml:mrow>
<mml:msup>
<mml:mi>R</mml:mi>
<mml:mi>N</mml:mi>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> is the complete set of strategies, <inline-formula id="inf25">
<mml:math id="m28">
<mml:mrow>
<mml:msub>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>,<inline-formula id="inf26">
<mml:math id="m29">
<mml:mrow>
<mml:msub>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is the value range of energy consumption under the rules, and <inline-formula id="inf27">
<mml:math id="m30">
<mml:mrow>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mi>P</mml:mi>
<mml:mi>r</mml:mi>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> is the building demand in response to electricity prices.</p>
</sec>
<sec id="s2-3">
<title>Internal Optimization at Building-Level</title>
<p>To determine the energy demand scheme that can minimize the overall cost of a building, the cost optimization objective function must be constructed first. The building cost is composed of three main parts: user dissatisfaction, mismatch cost (these two will not be directly reflected in the bill), and the electricity purchase cost of the transaction with the&#x20;grid.</p>
<sec id="s2-3-1">
<title>User Dissatisfaction</title>
<p>User dissatisfaction is an indicator that describes the degree of dissatisfaction of users in the building with the current thermal comfort conditions when the demand is limited to deviate from the normal level. It should be noted that even under the original energy demand, due to differences in the definition of thermal comfort by users, there will still be a small number of users who are dissatisfied with the current thermal environment, so there is a unique positive minimum for user dissatisfaction, and It has the property of monotonically increasing with the degree of deviation from the minimum point, so the quadratic function is used for description in this study. Assuming that there are <inline-formula id="inf28">
<mml:math id="m31">
<mml:mi>M</mml:mi>
</mml:math>
</inline-formula> buildings in a building cluster, a day is divided into <inline-formula id="inf29">
<mml:math id="m32">
<mml:mi>N</mml:mi>
</mml:math>
</inline-formula> periods, where the user dissatisfaction at time <inline-formula id="inf30">
<mml:math id="m33">
<mml:mi>k</mml:mi>
</mml:math>
</inline-formula> with building <inline-formula id="inf31">
<mml:math id="m34">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula> is defined in <xref ref-type="disp-formula" rid="e4">Eq. 4</xref>:<disp-formula id="e4">
<mml:math id="m35">
<mml:mrow>
<mml:msubsup>
<mml:mi>S</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:msubsup>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mi>&#x3b1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<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>k</mml:mi>
</mml:mrow>
<mml:mi>b</mml:mi>
</mml:msubsup>
<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>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>&#x3b1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
<mml:mn>2</mml:mn>
</mml:mfrac>
<mml:mo>&#x22c5;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mn>2</mml:mn>
</mml:msup>
</mml:mrow>
</mml:math>
<label>(4)</label>
</disp-formula>where <inline-formula id="inf32">
<mml:math id="m36">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> is the optimized power demand of building <inline-formula id="inf33">
<mml:math id="m37">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula> at time <inline-formula id="inf34">
<mml:math id="m38">
<mml:mi>k</mml:mi>
</mml:math>
</inline-formula> after participating in the dynamic electricity price game, <inline-formula id="inf35">
<mml:math id="m39">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>b</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> is the original power demand of building <inline-formula id="inf36">
<mml:math id="m40">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula> at time <inline-formula id="inf37">
<mml:math id="m41">
<mml:mi>k</mml:mi>
</mml:math>
</inline-formula>, and <inline-formula id="inf38">
<mml:math id="m42">
<mml:mrow>
<mml:msub>
<mml:mi>&#x3b1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is the preset coefficient of building user&#x2019;s acceptance of dissatisfaction with the building, changes with differences in building use and user attributes. Its main function is to transform user dissatisfaction into an economic cost of the same order of magnitude as the electricity purchase cost, and to characterize its importance in the total cost. There are a large number of relevant studies that provide guidance on the value of this parameter, this paper uses the value method in literature (<xref ref-type="bibr" rid="B23">Tang et&#x20;al., 2019</xref>; <xref ref-type="bibr" rid="B24">Zhang et&#x20;al., 2019</xref>).</p>
</sec>
<sec id="s2-3-2">
<title>Mismatch Cost</title>
<p>Mismatch costs refer to the hidden costs, such as energy storage loss and machine loss, incurred when the building demand is shifted or changed. It is determined by the difference between the optimized and original demand at the same time, the minimum value is 0 when the two are equal. It has the same monotonicity and concavity as the user dissatisfaction, so it can also be described by a quadratic function. The building mismatch cost at time <inline-formula id="inf39">
<mml:math id="m43">
<mml:mi>k</mml:mi>
</mml:math>
</inline-formula> of building <inline-formula id="inf40">
<mml:math id="m44">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula> is defined in <xref ref-type="disp-formula" rid="e5">Eq. 5</xref>:<disp-formula id="e5">
<mml:math id="m45">
<mml:mrow>
<mml:msubsup>
<mml:mi>D</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mi>&#x3c1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</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>k</mml:mi>
</mml:mrow>
<mml:mi>b</mml:mi>
</mml:msubsup>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mn>2</mml:mn>
</mml:msup>
</mml:mrow>
</mml:math>
<label>(5)</label>
</disp-formula>where <inline-formula id="inf41">
<mml:math id="m46">
<mml:mrow>
<mml:msub>
<mml:mi>&#x3c1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is a preset parameter describing the transfer cost level of building <inline-formula id="inf42">
<mml:math id="m47">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula> demand. It converts the mismatch cost into an economic cost of the same order of magnitude as the power purchase cost, and characterize its importance in the total cost. The value method can be referred to literature (<xref ref-type="bibr" rid="B23">Tang et&#x20;al., 2019</xref>; <xref ref-type="bibr" rid="B24">Zhang et&#x20;al., 2019</xref>).</p>
</sec>
<sec id="s2-3-3">
<title>Power Purchase Cost</title>
<p>The electricity purchase cost, which is the most intuitive economic cost, refers to the electricity bill paid by the building. The power purchase cost of building <inline-formula id="inf43">
<mml:math id="m48">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula> at time <inline-formula id="inf44">
<mml:math id="m49">
<mml:mi>k</mml:mi>
</mml:math>
</inline-formula> is defined in <xref ref-type="disp-formula" rid="e6">Eq. 6</xref>.:<disp-formula id="e6">
<mml:math id="m50">
<mml:mrow>
<mml:msubsup>
<mml:mi>B</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
<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>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
<label>(6)</label>
</disp-formula>where <inline-formula id="inf45">
<mml:math id="m51">
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> is the dynamic electricity price at time&#x20;<inline-formula id="inf46">
<mml:math id="m52">
<mml:mi>k</mml:mi>
</mml:math>
</inline-formula>.</p>
</sec>
</sec>
</sec>
<sec id="s3">
<title>Hierarchical Optimization Implementation Based on Game Theory</title>
<sec id="s3-1">
<title>Grid-Level: The Solution of Nash Equilibrium in the Stackelberg Model</title>
<p>During the interaction between the EFB and the grid, biding of the grid will affect the motivation of the EFB to purchase electricity, while the degree of the EFB&#x2019;s dependence on electricity will also affect the grid&#x2019;s biding strategy. The grid&#x2019;s actions always precede those of EFBs; this accords with the application conditions of the Stackelberg model. The principle of backward induction is used to determine the optimal energy use plan of the buildings under the Nash equilibrium of the game and the optimal price of the power&#x20;grid.</p>
<sec id="s3-1-1">
<title>Demand Strategy of Energy Flexible Buildings</title>
<p>Determining the energy demand plan that minimizes the overall cost of the building is a cost function conditional extreme value problem with <inline-formula id="inf47">
<mml:math id="m53">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>b</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> as the independent variable, and the Lagrange multiplier method is used to solve the problem. The Lagrange multiplier <inline-formula id="inf48">
<mml:math id="m54">
<mml:mrow>
<mml:msub>
<mml:mi>&#x3bb;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is introduced, and the cost function is combined with the constraints to construct the Lagrange function.<disp-formula id="e7">
<mml:math id="m55">
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:munderover>
<mml:mrow>
<mml:mrow>
<mml:mo>{</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>&#x3c1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</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>k</mml:mi>
</mml:mrow>
<mml:mi>b</mml:mi>
</mml:msubsup>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mn>2</mml:mn>
</mml:msup>
<mml:mo>&#x2212;</mml:mo>
<mml:mrow>
<mml:mo>[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mi>&#x3b1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<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>k</mml:mi>
</mml:mrow>
<mml:mi>b</mml:mi>
</mml:msubsup>
<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>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mi>&#x3b1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
<mml:mn>2</mml:mn>
</mml:mfrac>
<mml:mo>&#x22c5;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mn>2</mml:mn>
</mml:msup>
</mml:mrow>
<mml:mo>]</mml:mo>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msubsup>
<mml:mi>&#x3b2;</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:msubsup>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi mathvariant="italic">P</mml:mi>
<mml:msup>
<mml:mi mathvariant="italic">r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
</mml:mrow>
<mml:mo>}</mml:mo>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>&#x3bb;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>&#x3b4;</mml:mi>
</mml:mrow>
</mml:mstyle>
</mml:mrow>
</mml:math>
<label>(7)</label>
</disp-formula>
</p>
<p>In <xref ref-type="disp-formula" rid="e7">Eq. 7</xref>, <inline-formula id="inf49">
<mml:math id="m56">
<mml:mi>&#x3b4;</mml:mi>
</mml:math>
</inline-formula> is the constraint condition. The cost function in <xref ref-type="disp-formula" rid="e7">Eq. 7</xref> is a comprehensive cost that takes into account the explicit and hidden costs in the building operation period. Literature (<xref ref-type="bibr" rid="B24">Zhang et&#x20;al., 2019</xref>) proves the rationality of the cost function.</p>
<p>By expanding the Lagrange function and finding the partial derivatives of the independent variables <inline-formula id="inf50">
<mml:math id="m57">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>b</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> and <inline-formula id="inf51">
<mml:math id="m58">
<mml:mrow>
<mml:msub>
<mml:mi>&#x3bb;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, we obtain:<disp-formula id="e8">
<mml:math id="m59">
<mml:mrow>
<mml:mrow>
<mml:mo>{</mml:mo>
<mml:mrow>
<mml:mtable>
<mml:mtr>
<mml:mtd>
<mml:mrow>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:msub>
<mml:mi>&#x3c1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>&#x3b1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
<mml:mo>&#x2212;</mml:mo>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:msub>
<mml:mi>&#x3c1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>&#x3b1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>b</mml:mi>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:msubsup>
<mml:mi>&#x3b2;</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:msubsup>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>&#x3bb;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mrow>
<mml:mi>&#x3b4;</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(8)</label>
</disp-formula>
</p>
<p>In fact, different types of EFBs have different constraints. For passive storage buildings, the energy consumption change caused by temperature resetting is the optimized amount of building energy consumption. According to the law of conservation of energy, the electricity demand before and after optimization meet the following constraints:<disp-formula id="e9">
<mml:math id="m60">
<mml:mrow>
<mml:msub>
<mml:mi>&#x3b4;</mml:mi>
<mml:mn>1</mml:mn>
</mml:msub>
<mml:mo>:</mml:mo>
<mml:mstyle displaystyle="true">
<mml:msubsup>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:msubsup>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:mstyle>
<mml:mo>&#x2212;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:msubsup>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:msubsup>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>b</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:mstyle>
<mml:mo>&#x2b;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:msubsup>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:msubsup>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>t</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:mstyle>
<mml:mo>&#xa0;</mml:mo>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:math>
<label>(9)</label>
</disp-formula>
</p>
<p>In <xref ref-type="disp-formula" rid="e9">Eq. 9</xref>, <inline-formula id="inf52">
<mml:math id="m61">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>t</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> is the building power consumption of building <inline-formula id="inf53">
<mml:math id="m62">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula> affected by the change of indoor temperature presetting at time&#x20;<inline-formula id="inf54">
<mml:math id="m63">
<mml:mi>k</mml:mi>
</mml:math>
</inline-formula>.</p>
<p>For active storage buildings, the excess load during the low electricity consumption period is stored in the energy storage system and transferred to the peak period to reduce the peak electricity consumption. This type of building does not have an independent capacity device, and the total electricity demand after participating in the dynamic electricity price game should be consistent with the benchmark demand, that is, meet the constraint conditions:<disp-formula id="e10">
<mml:math id="m64">
<mml:mrow>
<mml:msub>
<mml:mi>&#x3b4;</mml:mi>
<mml:mn>2</mml:mn>
</mml:msub>
<mml:mo>:</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:munderover>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:mstyle>
<mml:mo>&#x2212;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:munderover>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>b</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:mstyle>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:math>
<label>(10)</label>
</disp-formula>
</p>
<p>For generation and storage buildings, while the load transfer is completed through the energy storage system, photovoltaic and wind power generation systems can be used to assist the power supply to help the building improve its power purchase demand. Due to the building&#x2019;s own production capacity, the actual demand after the building side participates in the dynamic electricity price game is less than the benchmark demand, and both types of demand satisfy the following numerical relationship:<disp-formula id="e11">
<mml:math id="m65">
<mml:mrow>
<mml:msub>
<mml:mi>&#x3b4;</mml:mi>
<mml:mn>3</mml:mn>
</mml:msub>
<mml:mo>:</mml:mo>
<mml:mo>&#xa0;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:munderover>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:mstyle>
<mml:mo>&#x2212;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:munderover>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>b</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:mstyle>
<mml:mo>&#x2b;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:munderover>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>r</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:mstyle>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:math>
<label>(11)</label>
</disp-formula>
</p>
<p>In <xref ref-type="disp-formula" rid="e11">Eq. 11</xref>, <inline-formula id="inf55">
<mml:math id="m66">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>r</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> is the distributed energy production capacity at time <inline-formula id="inf56">
<mml:math id="m67">
<mml:mi>k</mml:mi>
</mml:math>
</inline-formula> of building&#x20;<inline-formula id="inf57">
<mml:math id="m68">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula>.</p>
<p>Due to the backward compatibility of building equipment, it is generally believed that buildings with stronger energy flexibility can also use the energy control strategy of buildings with weaker energy flexibility. If a building uses all three types of energy control strategies at the same time, its demand will meet the constraint conditions:<inline-formula id="inf58">
<mml:math id="m69">
<mml:mrow>
<mml:mo>&#xa0;</mml:mo>
<mml:msub>
<mml:mi>&#x3b4;</mml:mi>
<mml:mn>4</mml:mn>
</mml:msub>
<mml:mo>:</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:munderover>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:mstyle>
<mml:mo>&#x2212;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:munderover>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>b</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:mstyle>
<mml:mo>&#x2b;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:munderover>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>r</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:mstyle>
<mml:mo>&#x2b;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:munderover>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>t</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:mstyle>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>. However, in fact, considering that the use of the energy control strategy of buildings with weaker energy flexibility has higher marginal costs, we assume that buildings will use the best match energy control strategy conform to their system conditions in this study.<inline-formula id="inf59">
<mml:math id="m70">
<mml:mrow>
<mml:msub>
<mml:mi>&#x3b4;</mml:mi>
<mml:mn>1</mml:mn>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, <inline-formula id="inf60">
<mml:math id="m71">
<mml:mrow>
<mml:msub>
<mml:mi>&#x3b4;</mml:mi>
<mml:mn>2</mml:mn>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, and <inline-formula id="inf61">
<mml:math id="m72">
<mml:mrow>
<mml:msub>
<mml:mi>&#x3b4;</mml:mi>
<mml:mn>3</mml:mn>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> are put into <xref ref-type="disp-formula" rid="e8">Eq. 8</xref>, and the independent variable <inline-formula id="inf62">
<mml:math id="m73">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> is solved to obtain:</p>
<p>The optimized power demand of passive storage buildings:<disp-formula id="e12">
<mml:math id="m74">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>b</mml:mi>
</mml:msubsup>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msubsup>
<mml:mi>&#x3b2;</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:msubsup>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:msub>
<mml:mi>&#x3c1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>&#x3b1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mstyle displaystyle="true">
<mml:msubsup>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:msubsup>
<mml:mrow>
<mml:msubsup>
<mml:mi>&#x3b2;</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:msubsup>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
</mml:mrow>
</mml:mstyle>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
<mml:mo>&#x22c5;</mml:mo>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:msub>
<mml:mi>&#x3c1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>&#x3b1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mstyle displaystyle="true">
<mml:msubsup>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:msubsup>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>t</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:mstyle>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:mfrac>
</mml:mrow>
</mml:math>
<label>(12)</label>
</disp-formula>
</p>
<p>The optimized power demand of active storage buildings:<disp-formula id="e13">
<mml:math id="m75">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>b</mml:mi>
</mml:msubsup>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msubsup>
<mml:mi>&#x3b2;</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:msubsup>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:msub>
<mml:mi>&#x3c1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>&#x3b1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mstyle displaystyle="true">
<mml:msubsup>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:msubsup>
<mml:mrow>
<mml:msubsup>
<mml:mi>&#x3b2;</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:msubsup>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
</mml:mrow>
</mml:mstyle>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
<mml:mo>&#x22c5;</mml:mo>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:msub>
<mml:mi>&#x3c1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>&#x3b1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:math>
<label>(13)</label>
</disp-formula>
</p>
<p>The optimized power demand of generation &#x26; storage buildings:<disp-formula id="e14">
<mml:math id="m76">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>b</mml:mi>
</mml:msubsup>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msubsup>
<mml:mi>&#x3b2;</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:msubsup>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:msub>
<mml:mi>&#x3c1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>&#x3b1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mstyle displaystyle="true">
<mml:msubsup>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:msubsup>
<mml:mrow>
<mml:msubsup>
<mml:mi>&#x3b2;</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:msubsup>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
</mml:mrow>
</mml:mstyle>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
<mml:mo>&#x22c5;</mml:mo>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:msub>
<mml:mi>&#x3c1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>&#x3b1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mstyle displaystyle="true">
<mml:msubsup>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:msubsup>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>r</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:mstyle>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:mfrac>
</mml:mrow>
</mml:math>
<label>(14)</label>
</disp-formula>
</p>
<p>Therefore, the energy demand plan that minimizes the overall cost of building <inline-formula id="inf63">
<mml:math id="m77">
<mml:mi>k</mml:mi>
</mml:math>
</inline-formula> at time <inline-formula id="inf64">
<mml:math id="m78">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula> has been determined. To prove that the scheme exists in the Nash equilibrium of the game, the second-order partial derivative of <inline-formula id="inf65">
<mml:math id="m79">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> is calculated by <xref ref-type="disp-formula" rid="e7">Eq. 7</xref>, and the Hessian matrix is derived:<disp-formula id="e15">
<mml:math id="m80">
<mml:mrow>
<mml:mfrac>
<mml:mrow>
<mml:msup>
<mml:mo>&#x2202;</mml:mo>
<mml:mn>2</mml:mn>
</mml:msup>
<mml:mi>U</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2202;</mml:mo>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
<mml:mo>&#x2202;</mml:mo>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mo>{</mml:mo>
<mml:mrow>
<mml:mtable>
<mml:mtr>
<mml:mtd>
<mml:mrow>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mn>2</mml:mn>
<mml:msub>
<mml:mi>&#x3c1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi>&#x3b1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mtd>
<mml:mtd>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mi>o</mml:mi>
</mml:mtd>
<mml:mtd>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2260;</mml:mo>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(15)</label>
</disp-formula>
</p>
<p>The preset parameters <inline-formula id="inf66">
<mml:math id="m81">
<mml:mrow>
<mml:msub>
<mml:mi>&#x3c1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> and <inline-formula id="inf67">
<mml:math id="m82">
<mml:mrow>
<mml:msub>
<mml:mi>&#x3b1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> are all positive values, so the diagonal element is greater than zero, and the matrix is positive definite. The relationship between the Hessian matrix and the concave convexity of the function shows that the objective function has a unique minimum value and thus that the Nash equilibrium exists and is unique. The calculation result of formulas <xref ref-type="disp-formula" rid="e12">Eqs 12</xref>, <xref ref-type="disp-formula" rid="e14">14</xref>&#x2013; is the construction energy demand strategy corresponding to the Nash equilibrium in the&#x20;game.</p>
<p>In <xref ref-type="disp-formula" rid="e12">Equations 12</xref>, <xref ref-type="disp-formula" rid="e14">14</xref>, there are still parameters <inline-formula id="inf68">
<mml:math id="m83">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>t</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> and <inline-formula id="inf69">
<mml:math id="m84">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>r</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> that need to be determined. Among them, the key parameter &#x201c;indoor temperature&#x201d; for determining <inline-formula id="inf70">
<mml:math id="m85">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>t</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> is the internal energy control strategy corresponding to passive storage buildings, which will be introduced in <italic>Indoor Temperature Resetting</italic> . <inline-formula id="inf71">
<mml:math id="m86">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>r</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> can be calculated by the mathematical models of wind power generation and photovoltaic power generation (<xref ref-type="bibr" rid="B12">Kusakana and Vermaak, 2014</xref>; <xref ref-type="bibr" rid="B6">Guo et&#x20;al., 2019</xref>). The energy production at each moment can be used immediately or transferred to subsequent moments through energy storage equipment. Through the internal energy control strategy analysis in <italic>Energy Generation and Active Storage</italic>, the most reasonable immediate use share can be determined as the internal energy control strategy of generation &#x26; storage buildings. Since energy storage involves only the transfer of energy within a day and does not affect total energy consumption. The corresponding energy storage can be directly determined by the difference (i.e.,&#x20;<inline-formula id="inf72">
<mml:math id="m87">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula>-<inline-formula id="inf73">
<mml:math id="m88">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula>) of the building demand before and after the grid interactive hierarchical optimization as the internal energy control strategy of the active storage buildings.</p>
</sec>
<sec id="s3-1-2">
<title>Biding Strategy of Grid</title>
<p>The income from grid sales after deducting comprehensive costs is defined as the grid&#x2019;s revenue. The explicit cost is the direct cost consumed by the power grid, and the hidden cost is the various energy losses caused by the change in the amount of power generated by the power grid in response to user demand fluctuations. The grid&#x2019;s revenue is defined as the following equation:<disp-formula id="e16">
<mml:math id="m89">
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
<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>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>f</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mi>D</mml:mi>
<mml:mi>f</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
<label>(16)</label>
</disp-formula>where <inline-formula id="inf74">
<mml:math id="m90">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mi>k</mml:mi>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> is the total purchased power of the building group at time <inline-formula id="inf75">
<mml:math id="m91">
<mml:mi>k</mml:mi>
</mml:math>
</inline-formula>, <inline-formula id="inf76">
<mml:math id="m92">
<mml:mrow>
<mml:mi>f</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> is the direct economic cost of power generation by the grid, and <inline-formula id="inf77">
<mml:math id="m93">
<mml:mrow>
<mml:msub>
<mml:mi>D</mml:mi>
<mml:mi>f</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is the hidden cost caused by demand fluctuations.<disp-formula id="e17">
<mml:math id="m94">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mi>k</mml:mi>
<mml:mi>d</mml:mi>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:munder>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:mstyle>
</mml:mrow>
</mml:math>
<label>(17)</label>
</disp-formula>
<disp-formula id="e18">
<mml:math id="m95">
<mml:mrow>
<mml:mi>f</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mi>k</mml:mi>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>a</mml:mi>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mi>k</mml:mi>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mn>2</mml:mn>
</mml:msup>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>b</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mi>k</mml:mi>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>c</mml:mi>
</mml:mrow>
</mml:math>
<label>(18)</label>
</disp-formula>
<disp-formula id="e19">
<mml:math id="m96">
<mml:mrow>
<mml:msub>
<mml:mi>D</mml:mi>
<mml:mi>f</mml:mi>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mn>1</mml:mn>
<mml:mi>N</mml:mi>
</mml:mfrac>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:munderover>
<mml:mrow>
<mml:msqrt>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mi>k</mml:mi>
<mml:mi>d</mml:mi>
</mml:msubsup>
<mml:mo>&#x2212;</mml:mo>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>a</mml:mi>
<mml:mi>v</mml:mi>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mn>2</mml:mn>
</mml:msup>
</mml:mrow>
</mml:msqrt>
</mml:mrow>
</mml:mstyle>
</mml:mrow>
</mml:math>
<label>(19)</label>
</disp-formula>
</p>
<p>In <xref ref-type="disp-formula" rid="e18">Equation 18</xref>, a, b, and c are the preset constants, and <inline-formula id="inf78">
<mml:math id="m97">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>a</mml:mi>
<mml:mi>v</mml:mi>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> is the average energy consumption of the building during the&#x20;day.</p>
<p>
<xref ref-type="disp-formula" rid="e12">Equations 12</xref>&#x2013;<xref ref-type="disp-formula" rid="e14">14</xref> show that <inline-formula id="inf79">
<mml:math id="m98">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mi>k</mml:mi>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula> in the power grid revenue function is affected by the electricity price:<disp-formula id="e20">
<mml:math id="m99">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mi>k</mml:mi>
<mml:mi>d</mml:mi>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>f</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(20)</label>
</disp-formula>
</p>
<p>Substituting <inline-formula id="inf80">
<mml:math id="m100">
<mml:mrow>
<mml:mi>f</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> into <xref ref-type="disp-formula" rid="e16">Eq. 16</xref>, we obtain:<disp-formula id="e21">
<mml:math id="m101">
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>f</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mo>&#xa0;</mml:mo>
<mml:mi>a</mml:mi>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mi>f</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mrow>
<mml:mn>2</mml:mn>
</mml:msup>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>b</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mi>f</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>c</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mn>1</mml:mn>
<mml:mi>N</mml:mi>
</mml:mfrac>
<mml:mstyle displaystyle="true">
<mml:munderover>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mi>N</mml:mi>
</mml:munderover>
<mml:mrow>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mi>f</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>g</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:mstyle>
</mml:mrow>
</mml:math>
<label>(21)</label>
</disp-formula>
</p>
<p>Let <inline-formula id="inf81">
<mml:math id="m102">
<mml:mrow>
<mml:mfrac>
<mml:mrow>
<mml:mo>&#x2202;</mml:mo>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2202;</mml:mo>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
</mml:mrow>
</mml:mfrac>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
</mml:math>
</inline-formula>; then, the corresponding dynamic electricity price <inline-formula id="inf82">
<mml:math id="m103">
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> is the optimal pricing strategy under the&#x20;game.</p>
</sec>
</sec>
<sec id="s3-2">
<title>Building-Level: Energy Control Strategy Under Nash Equilibrium</title>
<sec id="s3-2-1">
<title>Indoor Temperature Resetting</title>
<p>Changes in air-conditioning temperature can significantly affect building energy consumption. Previous studies have shown that an increase in indoor temperature by 1&#xb0;C in the southeastern coastal area can bring approximately 3&#x2013;6% energy savings (<xref ref-type="bibr" rid="B27">Lai et&#x20;al., 2013</xref>). However, increasing the air-conditioning temperature may also lead to an increase in the hidden cost of the building; this cost is reflected mainly in the cost of user dissatisfaction caused by the reduction of thermal comfort in the building and the mismatched cost caused by fluctuations in energy consumption. To balance the benefits produced by the reduction of energy consumption and the losses caused by the increase in hidden costs, the building cost function is traversed in a 0&#x2013;2&#xb0;C increase in air-conditioning temperature. The air-conditioning temperature resetting value corresponding to the lowest total cost of the building is taken as the optimal internal energy control strategy of the building under these conditions. The running logic is shown in <xref ref-type="fig" rid="F3">Figure&#x20;3</xref>.<list list-type="simple">
<list-item>
<p>1. Input the objective function and parameters.</p>
</list-item>
<list-item>
<p>2. Calculate the total building cost corresponding to the first set of parameters in the traversal domain (e.g., an indoor temperature of 26&#x2013;28 &#xb0;C) when the building demand and grid pricing are iterated to the Nash equilibrium, define the cost as <inline-formula id="inf83">
<mml:math id="m104">
<mml:mrow>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, and record the calculation parameters.</p>
</list-item>
<list-item>
<p>3. Calculate the cost of all parameters in the traversal domain in turn, and compare the size with <inline-formula id="inf84">
<mml:math id="m105">
<mml:mrow>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>. If the size is less than <inline-formula id="inf85">
<mml:math id="m106">
<mml:mrow>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, define the cost corresponding to the parameter as the new <inline-formula id="inf86">
<mml:math id="m107">
<mml:mrow>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, and record the current calculation parameters.</p>
</list-item>
<list-item>
<p>4. When all parameters in the traversal domain are involved in the calculation, the final <inline-formula id="inf87">
<mml:math id="m108">
<mml:mrow>
<mml:mo>&#xa0;</mml:mo>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is output, and the corresponding indoor temperature is the optimal building internal energy control strategy.</p>
</list-item>
</list>
</p>
<fig id="F3" position="float">
<label>FIGURE 3</label>
<caption>
<p>Logic diagram of temperature resetting optimization.</p>
</caption>
<graphic xlink:href="fenrg-09-736439-g003.tif"/>
</fig>
</sec>
<sec id="s3-2-2">
<title>Energy Generation and Active Storage</title>
<p>The internal control strategy used by generation &#x26; storage buildings is to determine the appropriate share of energy produced by the on-site energy generation systems for storage. During periods of low electricity prices, the energy produced by renewable energy in some buildings can be transferred to peak electricity consumption through energy storage systems. The energy produced during the peak period should be used to minimize the purchasing cost. Through the traversal calculation within a 0&#x2013;100% energy usage rate per hour, the output capacity usage plan corresponding to the lowest construction cost is output as the optimal internal energy control strategy. When the traversal operation is used to determine the optimal share, because the energy storage at the previous moment can theoretically be used at any subsequent time, the traversal domain at every hour will be affected by the previous time except the first hour. The operating logic is shown in <xref ref-type="fig" rid="F4">Figure&#x20;4</xref>.<list list-type="simple">
<list-item>
<p>1. Input the objective function and parameters.</p>
</list-item>
<list-item>
<p>2. Read the first parameter in the traversal domain (a generation usage share of 0&#x2013;100%) at the first hour, and calculate the possible traversal domain at the second hour under this value; then, read the first parameter in the traversal domain at the second moment; then, calculate out the possible traversal domain at the third hour; and so on. Then, record the 24 parameters as a&#x20;list.</p>
</list-item>
<list-item>
<p>3. Calculate the total construction cost of the parameters in this list when the construction demand and grid pricing are iterated to the Nash equilibrium; the total construction cost is defined as&#x20;<inline-formula id="inf88">
<mml:math id="m109">
<mml:mrow>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>.</p>
</list-item>
<list-item>
<p>4. Read all the parameters in the traversal domain at the first moment, repeat step 2, generate the corresponding value list, and calculate the total cost of the building.</p>
</list-item>
<list-item>
<p>5. Compare the calculation result with <inline-formula id="inf89">
<mml:math id="m110">
<mml:mrow>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>; if the result is less than <inline-formula id="inf90">
<mml:math id="m111">
<mml:mrow>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, define the result as the new&#x20;<inline-formula id="inf91">
<mml:math id="m112">
<mml:mrow>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>.</p>
</list-item>
<list-item>
<p>6. When all the parameters in the traversal domain are involved in the&#x20;calculation, the final <inline-formula id="inf92">
<mml:math id="m113">
<mml:mrow>
<mml:msub>
<mml:mi>C</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula> is output, and the corresponding real-time use share of the building capacity is the optimal building internal energy control strategy.</p>
</list-item>
</list>
</p>
<fig id="F4" position="float">
<label>FIGURE 4</label>
<caption>
<p>Logic diagram of capacity utilization share control optimization program.</p>
</caption>
<graphic xlink:href="fenrg-09-736439-g004.tif"/>
</fig>
</sec>
</sec>
</sec>
<sec id="s4">
<title>Case Study</title>
<sec id="s4-1">
<title>Building and System Description</title>
<p>In this paper, some typical buildings of Hong Kong Polytechnic University are selected to provide and generate necessary building energy consumption and energy flexibility data. Buildings adopt central air-conditioning systems and providing energy storage capacity for the building complex by installed phase change material (PCM) storage tank in series with chiller, charging during the low power period is used for the joint power supply during the peak period. In the optimization calculation of passive storage buildings, the PCM air-conditioning system is replaced with an ordinary central air-conditioning system with similar system parameters. At this time, the campus buildings will rely on the energy passive storage of building&#x2019;s thermal mass during the peak period of electricity consumption to regulate demand. In the period of low electricity consumption, considering the marginal cost of sacrificing user dissatisfaction, the demand will be maintained at the baseline level. The renewable power generation system is connected to the building complex to construct a simulated building complex equivalent to generation and storage buildings, and the system parameters refer to the Hong Kong Zero Carbon Building (ZCB) (<xref ref-type="bibr" rid="B28">Jian and Wang, 2010</xref>). A distributed energy system that uses building integrated photovoltaics (BIPV), CIGS thin film solar cells and small wind power generation equipment to provide production capacity for buildings, and cooperates with PCM air-conditioning to complete energy output and transfer. The campus buildings can be divided into four areas according to different functions and locations; these areas are equivalent to four large buildings. The division of each area is shown in <xref ref-type="table" rid="T2">Table&#x20;2</xref>. The data sources, such as building benchmark energy consumption requirements, local meteorological parameters, and time-of-use electricity prices, are based on field observations created on July 3,&#x20;2017.</p>
<table-wrap id="T2" position="float">
<label>TABLE 2</label>
<caption>
<p>Building zoning in Hong Kong Polytechnic University.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">Area</th>
<th align="center">Acreage (<inline-formula id="inf93">
<mml:math id="m114">
<mml:mrow>
<mml:mi>a</mml:mi>
<mml:mi>c</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>e</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>)</th>
<th align="center">Usage</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">A</td>
<td align="char" char=".">37.05</td>
<td align="left">Classrooms, offices, canteens, stadiums, lecture halls</td>
</tr>
<tr>
<td align="left">B</td>
<td align="char" char=".">1.81</td>
<td align="left">Classrooms, offices, meeting rooms</td>
</tr>
<tr>
<td align="left">C</td>
<td align="char" char=".">6.18</td>
<td align="left">Classrooms, laboratories, libraries, lecture halls</td>
</tr>
<tr>
<td align="left">D</td>
<td align="char" char=".">4.87</td>
<td align="left">Classrooms, laboratories, canteens, activity rooms, lecture halls</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s4-2">
<title>Demand Optimization Results and Strategy Analysis</title>
<sec id="s4-2-1">
<title>Passive Storage Buildings</title>
<p>
<xref ref-type="fig" rid="F5">Figure&#x20;5</xref> shows the energy interaction strategy of each building when the building&#x2019;s renewable energy system and energy storage system are not connected. In the interactive optimization of the game built&#x20;on the power grid, during the low electricity consumption period, the energy consumption demand is consistent with the benchmark energy demand, and the user passively accepts the electricity price set by the grid; during the peak period, the user will consider the economic stimulus of the high price. The preset temperature of indoor air conditioners can be adjusted to reduce electricity demand. The peak power consumption reduced in this way can reduce the cost of direct power consumption while also reducing the peak-to-valley power consumption difference of the building and alleviating grid imbalance.</p>
<fig id="F5" position="float">
<label>FIGURE 5</label>
<caption>
<p>Optimized demand profiles of four areas of passive storage buildings.</p>
</caption>
<graphic xlink:href="fenrg-09-736439-g005.tif"/>
</fig>
<p>The gray, red and blue curves in <xref ref-type="fig" rid="F5">Figure&#x20;5</xref> represent the original building load (e.g., indoor temperature of 26&#xb0;C), the building load when the indoor temperature is fixed at 28&#xb0;C, and the optimized demand when the indoor temperature of different areas changes in different periods, respectively. Due to the impact of unsatisfactory and mismatched costs, the excessive increase in building air-conditioning temperature increases the hidden cost of the building. To balance the reduction in power purchase costs and the increase in hidden costs, the internal optimization method described in <italic>Indoor Temperature Resetting</italic> is used as the building internal strategy to determine the optimal indoor temperature, as shown in <xref ref-type="fig" rid="F6">Figure&#x20;6</xref>, thus resulting in the optimized hourly energy demand for each area, as shown by the blue curve in <xref ref-type="fig" rid="F5">Figure&#x20;5</xref>. The load affected by the temperature fluctuation of the air conditioner is calculated using Hongye load calculation software (<xref ref-type="bibr" rid="B29">L&#xfc;th et&#x20;al., 2018</xref>). For the convenience of calculation, the relationship between load and temperature is assumed to be linear.</p>
<fig id="F6" position="float">
<label>FIGURE 6</label>
<caption>
<p>The optimal air-conditioning temperature strategy of passive storage buildings.</p>
</caption>
<graphic xlink:href="fenrg-09-736439-g006.tif"/>
</fig>
</sec>
<sec id="s4-2-2">
<title>Active Storage Buildings</title>
<p>
<xref ref-type="fig" rid="F7">Figure&#x20;7</xref> shows the energy requirements of buildings after the energy storage system is connected. During low electricity consumption periods, electricity charges are relatively low, and users purchase excessive electricity, thereby transferring low-cost electricity to the peak electricity consumption through the energy storage system, reducing high-cost electricity purchases and thereby meeting economic needs. As a result, the peak-to-valley difference in building power consumption is significantly reduced, and grid imbalance is alleviated.</p>
<fig id="F7" position="float">
<label>FIGURE 7</label>
<caption>
<p>Optimized demand profiles of four campus accounts on the test day of active storage buildings.</p>
</caption>
<graphic xlink:href="fenrg-09-736439-g007.tif"/>
</fig>
<p>As described in <italic>Demand Strategy of Energy Flexible Buildings</italic>, because the energy storage system will not affect the total energy consumption of the building throughout the test day, the interaction strategy under this system condition can be determined before the internal strategy. Furthermore, there is no need to separately filter the internal strategy, and the energy storage at each time can be determined by the difference between the energy consumption before and after optimization. The result is shown in <xref ref-type="fig" rid="F8">Figure&#x20;8</xref>.</p>
<fig id="F8" position="float">
<label>FIGURE 8</label>
<caption>
<p>The optimal storage strategy of active storage buildings.</p>
</caption>
<graphic xlink:href="fenrg-09-736439-g008.tif"/>
</fig>
</sec>
<sec id="s4-2-3">
<title>Generation and Storage Buildings</title>
<p>
<xref ref-type="fig" rid="F9">Figure&#x20;9</xref> shows the energy demand of buildings when the renewable capacity system and the energy storage system are connected as the building interaction strategy. While the energy storage system reduces the high-cost power purchase during peak periods through load shifting, the system can also reduce the excessive power purchases of users during the&#x20;low period through the self-production and self-sale of&#x20;renewable energy; on this basis, the renewable energy system can also reduce the power purchases by users during peak periods. This article is based on the relevant&#x20;measurement data of Hong Kong&#x2019;s ZCB renewable energy power generation. Using the output calculation model&#x20;given in the literature (<xref ref-type="bibr" rid="B12">Kusakana and Vermaak, 2014</xref>;&#x20;<xref ref-type="bibr" rid="B6">Guo et&#x20;al., 2019</xref>) for data processing, the simulated distributed energy system is transplanted to the campus building of Hong Kong Polytechnic University for data analysis of generation &#x26; storage buildings.</p>
<fig id="F9" position="float">
<label>FIGURE 9</label>
<caption>
<p>Optimized demand profiles of four campus accounts on the test day of generation and storage buildings.</p>
</caption>
<graphic xlink:href="fenrg-09-736439-g009.tif"/>
</fig>
<p>The red curve in <xref ref-type="fig" rid="F9">Figure&#x20;9</xref> is the building energy consumption curve when all renewable energy production capacity is fully used in real time. Compared with the blue curve representing the final optimization result, after using a reasonable internal energy control strategy optimization, the peak energy consumption of the building is significantly reduced, the fluctuation of energy consumption is reduced, and the hidden cost of the grid can be significantly controlled. The specific output storage value is shown in <xref ref-type="fig" rid="F10">Figure&#x20;10</xref> as the building&#x2019;s internal strategy.</p>
<fig id="F10" position="float">
<label>FIGURE 10</label>
<caption>
<p>The optimal storage of production strategy of generation &#x26; storage buildings.</p>
</caption>
<graphic xlink:href="fenrg-09-736439-g010.tif"/>
</fig>
</sec>
</sec>
<sec id="s4-3">
<title>Economic Analysis</title>
<p>
<xref ref-type="fig" rid="F11">Figure&#x20;11</xref> shows the electricity purchase cost of each building area under three different system conditions. For passive storage buildings, by sacrificing a certain degree of comfort, the peak energy consumption is reduced, and consequently, the electricity purchase cost is directly reduced by 3&#x2013;4.4%. For active storage buildings, since the use of stored energy during peak periods reduces the demand for electricity, the cost of electricity purchases can be reduced, consider the increase in cost caused by excessive power purchase during the low electricity consumption period, the electricity bills of different area have been reduced by 5.5&#x2013;8.8%. For generation &#x26; storage buildings, With the further improvement of building energy flexibility, peak electricity consumption has been greatly reduced, the total daily electricity purchase bill of the building decreased by 13.7&#x2013;18%.</p>
<fig id="F11" position="float">
<label>FIGURE 11</label>
<caption>
<p>Total electricity bills of buildings with different systems.</p>
</caption>
<graphic xlink:href="fenrg-09-736439-g011.tif"/>
</fig>
<p>After adopting the hierarchical optimization method, although the direct sales revenue of smart grid will decrease because of the reduction of the building electricity purchase cost, the peak-to-valley difference is also significantly reduced due to building energy demand optimization, thereby effectively reducing the hidden costs caused by grid imbalance. As shown in <xref ref-type="fig" rid="F12">Figure&#x20;12</xref>, the grid&#x2019;s total income has increased by 8, 12.3, and&#x20;20%.</p>
<fig id="F12" position="float">
<label>FIGURE 12</label>
<caption>
<p>Comprehensive grid income when interacting with buildings with different systems.</p>
</caption>
<graphic xlink:href="fenrg-09-736439-g012.tif"/>
</fig>
</sec>
</sec>
<sec sec-type="discussion" id="s5">
<title>Discussion</title>
<p>The effectiveness and advantages of the hierarchical optimization method proposed in this paper are discussed by comparing with several optimization methods that have been used in previous studies. References (<xref ref-type="bibr" rid="B21">Yang et&#x20;al., 2014</xref>; <xref ref-type="bibr" rid="B24">Zhang et&#x20;al., 2019</xref>) are selected for comparison of optimization methods based on game theory, and references (<xref ref-type="bibr" rid="B30">Wang et&#x20;al., 2018</xref>; <xref ref-type="bibr" rid="B31">Huang et&#x20;al., 2019</xref>) are introduced for comparison of two-stage optimization methods. The analysis details are shown in <xref ref-type="table" rid="T3">Table&#x20;3</xref>.</p>
<table-wrap id="T3" position="float">
<label>TABLE 3</label>
<caption>
<p>Methodological comparison.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left">References</th>
<th align="center">Contributions and shortcomings</th>
<th align="center">Advantages of the proposed method</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">
<xref ref-type="bibr" rid="B30">Wang et&#x20;al. (2018)</xref>
</td>
<td align="left">A two-stage optimization method is used to optimize and predict the power storage trading market of community centralized accounts and user personal accounts, while the robustness of the results is weak.</td>
<td align="left">Based on the nature of the dynamic balance of the Nash equilibrium, any deviation from the predicted result can constitute a new Nash equilibrium, which improves the robustness of the method.</td>
</tr>
<tr>
<td align="left">
<xref ref-type="bibr" rid="B31">Huang et&#x20;al. (2019)</xref>
</td>
<td align="left">A two-stage optimization method is used to optimize the interaction between the building group with a high degree of renewable energy intervention and the grid, and the normal distribution is introduced to solve the randomness of electricity caused by distributed energy. But the linear non-integer multi-objective optimization model is too complicated.</td>
<td align="left">The objective function of the game has a simple structure, and the optimization result can be solved quickly through the reverse induction method.</td>
</tr>
<tr>
<td align="left">
<xref ref-type="bibr" rid="B24">Zhang et&#x20;al. (2019)</xref>
</td>
<td align="left">The Stackelberg model is used to model the supply-demand interaction between the building and the grid to reduce the peak-to-valley difference in energy demand. However, considering only a single type of building does not completely correspond to the actual situation.</td>
<td align="left">Considering the diversity of building systems, subdivide buildings with different energy consumption control measures.</td>
</tr>
<tr>
<td align="left">
<xref ref-type="bibr" rid="B21">Yang et&#x20;al. (2014)</xref>
</td>
<td align="left">The supply-demand interaction game model under single-user and multi-user modes is constructed separately, taking into account the influence of the internal cooperation of the building group on the interactive results. However, the status of different types of buildings in cooperation is often not equal, and the optimization results still deviate from the actual situation.</td>
<td align="left">Determine the degree of influence of building system differences on the Nash equilibrium, and provide a theoretical basis for the cooperation mode of different types of buildings.</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec sec-type="conclusion" id="s6">
<title>Conclusion</title>
<p>A hierarchical demand optimization method based on game theory is proposed for achieving the optimal grid interaction between smart grids and energy flexible buildings. Considering the impact of the diversity of the EFB system on the outcome of the game, a case study of three types of buildings with different energy flexibilities is conducted. The following remarkable conclusions can be drawn.<list list-type="simple">
<list-item>
<p>1. Game theory can be used as an efficient mathematical tool to coordinate buildings with different energy flexibilities for effective interactions with smart grids. The Stackelberg model can be effectively used to identify the hierarchical game equilibrium in the economic competition between the power grid and buildings.</p>
</list-item>
<list-item>
<p>2. The effectiveness of the proposed method is quantitatively verified in a case study that consists of three typical energy flexible buildings in Hong Kong. Results show that the proposed hierarchical demand optimization method can consecutively reduce grid fluctuations by 30, 44, and 50% while increasing the comprehensive income of the grid by 8&#x2013;20%; for the demand side (the EFB), peak demand is reduced by 6&#x2013;22%, and electricity costs are reduced by 3&#x2013;18%.</p>
</list-item>
<list-item>
<p>3. Building energy flexibility conditions have a significant impact on the decision-making and ultimate benefits in the game. During the demand side energy consumption optimization and result analysis, full consideration of the building system diversity can make the forecast results more accurate. Buildings with larger energy flexibility can have lower peak power demand, which will bring smaller fluctuations to the grid and occupy a more active position in the game with the grid. Compared with active storage and passive storage buildings, the electricity price of the generation &#x26; storage buildings with the strongest energy flexibility is reduced by 10&#x2013;11.8% and 12.6&#x2013;14% during the peak electricity consumption period, the whole-day electricity cost is reduced by 13 and 16% respectively.</p>
</list-item>
</list>
</p>
</sec>
</body>
<back>
<sec id="s7">
<title>Data Availability Statement</title>
<p>The raw data supporting the conclusion of this article will be made available by the authors, without undue reservation.</p>
</sec>
<sec id="s8">
<title>Author Contributions</title>
<p>Conceptualization, CY; Data curation, JX; Investigation, YX; Methodology, CY; Writing-original draft, JX and YX; Writing-review and editing, JS and KS; Writing-review and data provision, XX.</p>
</sec>
<sec id="s9">
<title>Funding</title>
<p>The authors gratefully acknowledge the support of the National Key Research and Development Program of China (2018YFE0116300), the National Natural Science Foundation of China (No. 51708287), the Priority Academic Program Development of Jiangsu Higher Education Institutions, and a grant of the Qingdao Hisense Hitachi Air-conditioning Systems Co., Ltd., and Science and Technology Research and Development Project of CSCEC (No. CSCEC-2019-Z-3).</p>
</sec>
<sec sec-type="COI-statement" id="s10">
<title>Conflict of Interest</title>
<p>JS and KS were employed by Qingdao Hisense Hitachi Air-conditioning Systems Co., Ltd. Contributed to the writing-review, editing of the paper, and provided funding for this research. XX is employed by the Second Construction Co., Ltd., China Construction Third Engineering Bureau. Contributed to the review of the paper, and provided data for this research.</p>
<p>The remaining 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 id="s11" sec-type="disclaimer">
<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="journal">
<person-group person-group-type="author">
<name>
<surname>Arteconi</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Mugnini</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Polonara</surname>
<given-names>F.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>Energy Flexible Buildings: A Methodology for Rating the Flexibility Performance of Buildings with Electric Heating and Cooling Systems</article-title>. <source>Appl. Energ.</source> <volume>251</volume>, <fpage>113387</fpage>. <pub-id pub-id-type="doi">10.1016/j.apenergy.2019.113387</pub-id> </citation>
</ref>
<ref id="B2">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Basar</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Olsder</surname>
<given-names>G. J.</given-names>
</name>
</person-group> (<year>1999</year>). <source>Dynamic Noncooperative Game Theory</source>. <publisher-name>London</publisher-name>: <publisher-name>Accademic Press</publisher-name>. <fpage>30</fpage>. <pub-id pub-id-type="doi">10.1016/0377-2217(95)90173-6</pub-id> </citation>
</ref>
<ref id="B3">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Chen</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Pearlmutter</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>Schwartz</surname>
<given-names>M.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>Promoting green Building in Israel: A Game Theory-Based Analysis</article-title>. <source>Building Environ.</source> <volume>163</volume>, <fpage>106277</fpage>. <pub-id pub-id-type="doi">10.1016/j.buildenv.2019.106227</pub-id> </citation>
</ref>
<ref id="B4">
<citation citation-type="book">
<collab>DoE</collab> (<year>2014</year>). <source>Buildings Energy Databook</source>. <publisher-loc>Washington, D.C.</publisher-loc>: <publisher-name>Energy Efficiency &#x26; Renewable Energy Department</publisher-name>.</citation>
</ref>
<ref id="B5">
<citation citation-type="web">
<collab>Electrical and Mechanical Services Department of Hong Kong</collab> (<year>2012</year>). <article-title>Hong Kong Energy End-Use Data</article-title>. <comment>Available at: <ext-link ext-link-type="uri" xlink:href="http://www.emsd.gov.hk/emsd/e_download/pee/HKEEUD%202012.pdf">www.emsd.gov.hk/emsd/e_download/pee/HKEEUD 2012.pdf</ext-link>
</comment>. </citation>
</ref>
<ref id="B6">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Guo</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Yang</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Long</surname>
<given-names>E.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>Energy Saving Effect and Mechanism of Cooling Setting Temperature Increased by 1&#x20;&#xb0;C for Residential Buildings in Different Cities</article-title>. <source>Energy and Buildings</source> <volume>202</volume>, <fpage>109335</fpage>. <pub-id pub-id-type="doi">10.1016/j.enbuild.2019.109335</pub-id> </citation>
</ref>
<ref id="B7">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Huang</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Sun</surname>
<given-names>Y.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>A Collaborative Demand Control of Nearly Zero Energy Buildings in Response to Dynamic Pricing for Performance Improvements at Cluster Level</article-title>. <source>Energy</source> <volume>174</volume>, <fpage>911</fpage>&#x2013;<lpage>921</lpage>. <pub-id pub-id-type="doi">10.1016/j.energy.2019.02.192</pub-id> </citation>
</ref>
<ref id="B9">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Huang</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Xu</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Sun</surname>
<given-names>Y.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>A Genetic Algorithm Based Dynamic Pricing for Improving Bi-directional Interactions with Reduced Power Imbalance</article-title>. <source>Energy and Buildings</source> <volume>199</volume>, <fpage>275</fpage>&#x2013;<lpage>286</lpage>. <pub-id pub-id-type="doi">10.1016/j.enbuild.2019.07.003</pub-id> </citation>
</ref>
<ref id="B8">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Huang</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Yu</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Peng</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Feng</surname>
<given-names>Y.</given-names>
</name>
</person-group> (<year>2017</year>). <article-title>Planning Community Energy System in the Industry 4.0 Era: Achievements, Challenges and a Potential Solution</article-title>. <source>Renew. Sustain. Energ. Rev.</source> <volume>78</volume>, <fpage>710</fpage>&#x2013;<lpage>721</lpage>. <pub-id pub-id-type="doi">10.1016/j.rser.2017.04.004</pub-id> </citation>
</ref>
<ref id="B10">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Jensen</surname>
<given-names>S. &#xd8;.</given-names>
</name>
<name>
<surname>Marszal-Pomianowska</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Lollini</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Pasut</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Knotzer</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Engelmann</surname>
<given-names>P.</given-names>
</name>
<etal/>
</person-group> (<year>2017</year>). <article-title>IEA EBC Annex 67 Energy Flexible Buildings</article-title>. <source>Energy and Buildings</source> <volume>155</volume>, <fpage>25</fpage>&#x2013;<lpage>34</lpage>. <pub-id pub-id-type="doi">10.1016/j.enbuild.2017.08.044</pub-id> </citation>
</ref>
<ref id="B11">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Jian</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>R.</given-names>
</name>
</person-group> (<year>2010</year>). <article-title>Comparative Study of Software thermal Model Affecting Load Calculation Results[J]</article-title>. <source>J.&#x20;Beijing Univ. Technol.</source> (<issue>12</issue>), <fpage>53</fpage>&#x2013;<lpage>58</lpage>. </citation>
</ref>
<ref id="B12">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Kusakana</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Vermaak</surname>
<given-names>H. J.</given-names>
</name>
</person-group> (<year>2014</year>). <article-title>Hybrid Diesel Generator/renewable Energy System Performance Modeling</article-title>. <source>Renew. Energ.</source> <volume>67</volume>, <fpage>97</fpage>&#x2013;<lpage>102</lpage>. <pub-id pub-id-type="doi">10.1016/j.renene.2013.11.025</pub-id> </citation>
</ref>
<ref id="B13">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Lai</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Leung</surname>
<given-names>M. K.</given-names>
</name>
<name>
<surname>Yau</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Ng</surname>
<given-names>E.</given-names>
</name>
</person-group> (<year>2013</year>). <source>Hong Kong First Zero Carbon Building: Design Principles, Features and Technologies. In: PLEA2013 - 29th Conference, Sustainable Architecture for a Renewable Future, Munich, Germany 10-12 September 2013</source>.</citation>
</ref>
<ref id="B14">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Li</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2020</year>). <article-title>Model-based Multi-Objective Predictive Scheduling and Real-Time Optimal Control of Energy Systems in Zero/low Energy Buildings Using a Game Theory Approach</article-title>. <source>Automation in Construction</source> <volume>113</volume>, <fpage>103139</fpage>. <pub-id pub-id-type="doi">10.1016/j.autcon.2020.103139</pub-id> </citation>
</ref>
<ref id="B15">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Liang</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Xu</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>Y.</given-names>
</name>
</person-group> (<year>2020</year>). <article-title>Thermal Performance Optimization and Evaluation of a Redial Finned Shell-And-Tube Latent Heat thermal Energy Storage Unit</article-title>. <source>Appl. Therm. Eng.</source> <volume>166</volume>, <fpage>114753</fpage>. <pub-id pub-id-type="doi">10.1016/j.applthermaleng.2019.114753</pub-id> </citation>
</ref>
<ref id="B16">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>L&#xfc;th</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Zepter</surname>
<given-names>J.&#x20;M.</given-names>
</name>
<name>
<surname>Crespo del Granado</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Egging</surname>
<given-names>R.</given-names>
</name>
</person-group> (<year>2018</year>). <article-title>Local Electricity Market Designs for Peer-To-Peer Trading: The Role of Battery Flexibility</article-title>. <source>Appl. Energ.</source> <volume>229</volume>, <fpage>1233</fpage>&#x2013;<lpage>1243</lpage>. <pub-id pub-id-type="doi">10.1016/j.apenergy.2018.08.004</pub-id> </citation>
</ref>
<ref id="B17">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Lv</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Ai</surname>
<given-names>Q.</given-names>
</name>
</person-group> (<year>2016</year>). <article-title>Interactive Energy Management of Networked Microgrids-Based Active Distribution System Considering Large-Scale Integration of Renewable Energy Resources</article-title>. <source>Appl. Energ.</source> <volume>163</volume>, <fpage>408</fpage>&#x2013;<lpage>422</lpage>. <pub-id pub-id-type="doi">10.1016/j.apenergy.2015.10.179</pub-id> </citation>
</ref>
<ref id="B18">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Najafi-Ghalelou</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Zare</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Nojavan</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2018</year>). <article-title>Optimal Scheduling of Multi-Smart Buildings Energy Consumption Considering Power Exchange Capability</article-title>. <source>Sustain. Cities Soc.</source> <volume>41</volume>, <fpage>73</fpage>&#x2013;<lpage>85</lpage>. <pub-id pub-id-type="doi">10.1016/j.scs.2018.05.029</pub-id> </citation>
</ref>
<ref id="B19">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Reynders</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Amaral Lopes</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Marszal-Pomianowska</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Aelenei</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>Martins</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Saelens</surname>
<given-names>D.</given-names>
</name>
</person-group> (<year>2018</year>). <article-title>Energy Flexible Buildings: An Evaluation of Definitions and Quantification Methodologies Applied to thermal Storage</article-title>. <source>Energy and Buildings</source> <volume>166</volume>, <fpage>372</fpage>&#x2013;<lpage>390</lpage>. <pub-id pub-id-type="doi">10.1016/j.enbuild.2018.02.040</pub-id> </citation>
</ref>
<ref id="B20">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Saad</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Han</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Poor</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Basar</surname>
<given-names>T.</given-names>
</name>
</person-group> (<year>2012</year>). <article-title>Game-theoretic Methods for the Smart Grid: an Overview of Microgrid Systems, Demand-Side Management, and Smart Grid Communications</article-title>. <source>IEEE Signal. Process. Mag.</source> <volume>29</volume>, <fpage>86</fpage>&#x2013;<lpage>105</lpage>. <pub-id pub-id-type="doi">10.1109/msp.2012.2186410</pub-id> </citation>
</ref>
<ref id="B21">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Srinivasan</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>Rajgarhia</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Radhakrishnan</surname>
<given-names>B. M.</given-names>
</name>
<name>
<surname>Sharma</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Khincha</surname>
<given-names>H. P.</given-names>
</name>
</person-group> (<year>2017</year>). <article-title>Game-Theory Based Dynamic Pricing Strategies for Demand Side Management in Smart Grids</article-title>. <source>Energy</source> <volume>126</volume>, <fpage>132</fpage>&#x2013;<lpage>143</lpage>. <pub-id pub-id-type="doi">10.1016/j.energy.2016.11.142</pub-id> </citation>
</ref>
<ref id="B22">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Tang</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>H.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>Game Theory Based Interactive Demand Side Management Responding to Dynamic Pricing in price-based Demand Response of Smart Grids</article-title>. <source>Appl. Energ.</source> <volume>250</volume>, <fpage>118</fpage>&#x2013;<lpage>130</lpage>. <pub-id pub-id-type="doi">10.1016/j.apenergy.2019.04.177</pub-id> </citation>
</ref>
<ref id="B23">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Wang</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>Qiu</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Reedman</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Meng</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Lai</surname>
<given-names>L. L.</given-names>
</name>
</person-group> (<year>2018</year>). <article-title>Two-stage Energy Management for Networked Microgrids with High Renewable Penetration</article-title>. <source>Appl. Energ.</source> <volume>226</volume>, <fpage>39</fpage>&#x2013;<lpage>48</lpage>. <pub-id pub-id-type="doi">10.1016/j.apenergy.2018.05.112</pub-id> </citation>
</ref>
<ref id="B24">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Wang</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2016</year>). <article-title>Making Buildings Smarter, Grid-Friendly, and Responsive to Smart Grids</article-title>. <source>Sci. Technol. Bulid. Environ.</source> <volume>22</volume> (<issue>6</issue>), <fpage>629e632</fpage>. <pub-id pub-id-type="doi">10.1080/23744731.2016.1200888</pub-id> </citation>
</ref>
<ref id="B25">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Xu</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Yan</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Liu</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Yang</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Jiang</surname>
<given-names>Y.</given-names>
</name>
</person-group> (<year>2020</year>). <article-title>Smart Energy Systems: A Critical Review on Design and Operation Optimization</article-title>. <source>Sustain. Cities Soc.</source> <volume>62</volume>, <fpage>102369</fpage>. <pub-id pub-id-type="doi">10.1016/j.scs.2020.102369</pub-id> </citation>
</ref>
<ref id="B26">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Yan</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Pan</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Shan</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Kosonen</surname>
<given-names>R.</given-names>
</name>
</person-group> (<year>2020</year>). <article-title>A Multi-Timescale Cold Storage System within Energy Flexible Buildings for Power Balance Management of Smart Grids</article-title>. <source>Renew. Energ.</source> <volume>161</volume>, <fpage>626</fpage>&#x2013;<lpage>634</lpage>. <pub-id pub-id-type="doi">10.1016/j.renene.2020.07.079</pub-id> </citation>
</ref>
<ref id="B28">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Yang</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Ma</surname>
<given-names>K.</given-names>
</name>
</person-group> (<year>2014</year>). <article-title>Matching Supply with Demand: A Power Control and Real Time Pricing Approach</article-title>. <source>Int. J.&#x20;Electr. Power Energ. Syst.</source> <volume>61</volume>, <fpage>111</fpage>&#x2013;<lpage>117</lpage>. <pub-id pub-id-type="doi">10.1016/j.ijepes.2014.03.014</pub-id> </citation>
</ref>
<ref id="B27">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Yang</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Tang</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Nehorai</surname>
<given-names>A.</given-names>
</name>
</person-group> (<year>2013</year>). <article-title>A Game-Theoretic Approach for Optimal Time-Of-Use Electricity Pricing</article-title>. <source>EEE Trans. Power Syst.</source> <volume>28</volume> (<issue>2</issue>), <fpage>884</fpage>. <pub-id pub-id-type="doi">10.1109/tpwrs.2012.2207134</pub-id> </citation>
</ref>
<ref id="B29">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zhang</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Gao</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Yang</surname>
<given-names>L.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>Demand Response-Based Optimal Dispatching of Building Integrated Energy System</article-title>. <source>Power Demand Side Manage.</source> <volume>4</volume>, <fpage>P28</fpage>&#x2013;<lpage>P34</lpage>. </citation>
</ref>
<ref id="B30">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zhao</surname>
<given-names>X.</given-names>
</name>
</person-group> (<year>2001</year>). <article-title>Nature of Nonlinear Cournot Model and Stackelberg Model. CNKI:SUN:JSDN.0. 2001-03-001</article-title>. <source>J. Jishou Univ (Nat. Scie. Ed.)</source>.</citation>
</ref>
<ref id="B31">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zhong</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Ju</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Lu</surname>
<given-names>Y.</given-names>
</name>
</person-group> (<year>2016</year>). <article-title>Distributed Renewable Energy Building Application Development Path and Policy Guidance</article-title>. <source>Bull Chin Acad Sci</source>. <volume>31</volume>, <fpage>2</fpage>. <pub-id pub-id-type="doi">10.16418/j.issn.1000-3045.2016.02.008</pub-id> </citation>
</ref>
</ref-list>
<sec id="s12">
<title>Glossary</title>
<def-list>
<def-item>
<term id="G1-fenrg.2021.736439">
<bold>
<inline-formula id="inf94">
<mml:math id="m115">
<mml:mrow>
<mml:msub>
<mml:mi>&#x3b1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>
</bold>
</term>
<def>
<p>preset coefficient of the building <italic>i</italic> user&#x2019;s acceptance of dissatisfaction.</p>
</def>
</def-item>
<def-item>
<term id="G2-fenrg.2021.736439">
<bold>a, b, c</bold>
</term>
<def>
<p>Preset constants that affect the cost of power generation</p>
</def>
</def-item>
<def-item>
<term id="G3-fenrg.2021.736439">
<bold>
<inline-formula id="inf95">
<mml:math id="m116">
<mml:mrow>
<mml:msub>
<mml:mi>&#x3c1;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>
</bold>
</term>
<def>
<p>preset parameter describing the transfer cost level of the building <italic>i</italic> demand</p>
</def>
</def-item>
<def-item>
<term id="G4-fenrg.2021.736439">
<bold>
<inline-formula id="inf96">
<mml:math id="m117">
<mml:mrow>
<mml:msub>
<mml:mi>&#x3bb;</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>
</bold>
</term>
<def>
<p>Lagrange multiplier</p>
</def>
</def-item>
<def-item>
<term id="G5-fenrg.2021.736439">
<bold>
<inline-formula id="inf97">
<mml:math id="m118">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>b</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula>
</bold>
</term>
<def>
<p>the original power demand of the building <inline-formula id="inf98">
<mml:math id="m119">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula> at time&#x20;<inline-formula id="inf99">
<mml:math id="m120">
<mml:mi>k</mml:mi>
</mml:math>
</inline-formula>
</p>
</def>
</def-item>
<def-item>
<term id="G6-fenrg.2021.736439">
<bold>
<inline-formula id="inf100">
<mml:math id="m121">
<mml:mrow>
<mml:msubsup>
<mml:mi>S</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula>
</bold>
</term>
<def>
<p>user dissatisfaction at time <inline-formula id="inf101">
<mml:math id="m122">
<mml:mi>k</mml:mi>
</mml:math>
</inline-formula> of the building&#x20;<italic>i</italic>
</p>
</def>
</def-item>
<def-item>
<term id="G7-fenrg.2021.736439">
<bold>
<inline-formula id="inf102">
<mml:math id="m123">
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mi>k</mml:mi>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>
</bold>
</term>
<def>
<p>dynamic electricity price at time&#x20;<inline-formula id="inf103">
<mml:math id="m124">
<mml:mi>k</mml:mi>
</mml:math>
</inline-formula>.</p>
</def>
</def-item>
<def-item>
<term id="G8-fenrg.2021.736439">
<bold>&#x2205;</bold>
</term>
<def>
<p> value range of building strategy</p>
</def>
</def-item>
<def-item>
<term id="G9-fenrg.2021.736439">
<bold>
<inline-formula id="inf105">
<mml:math id="m126">
<mml:mi>Q</mml:mi>
</mml:math>
</inline-formula>
</bold>
</term>
<def>
<p>decision value of building demand</p>
</def>
</def-item>
<def-item>
<term id="G10-fenrg.2021.736439">
<bold>
<inline-formula id="inf106">
<mml:math id="m127">
<mml:mi>P</mml:mi>
</mml:math>
</inline-formula>
</bold>
</term>
<def>
<p>value range of grid strategy</p>
</def>
</def-item>
<def-item>
<term id="G11-fenrg.2021.736439">
<bold>
<inline-formula id="inf107">
<mml:math id="m128">
<mml:mrow>
<mml:msub>
<mml:mi>U</mml:mi>
<mml:mrow>
<mml:mi>g</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>d</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>
</bold>
</term>
<def>
<p>grid revenue</p>
</def>
</def-item>
<def-item>
<term id="G12-fenrg.2021.736439">
<bold>
<inline-formula id="inf108">
<mml:math id="m129">
<mml:mrow>
<mml:msub>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>, <inline-formula id="inf109">
<mml:math id="m130">
<mml:mrow>
<mml:msub>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mi>a</mml:mi>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>
</bold>
</term>
<def>
<p>value range of energy consumption under the&#x20;rules</p>
</def>
</def-item>
<def-item>
<term id="G13-fenrg.2021.736439">
<bold>
<inline-formula id="inf111">
<mml:math id="m132">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>t</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula>
</bold>
</term>
<def>
<p>demand of the building <inline-formula id="inf112">
<mml:math id="m133">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula> affected by the change of the air-conditioning preset temperature at time&#x20;<inline-formula id="inf113">
<mml:math id="m134">
<mml:mi>k</mml:mi>
</mml:math>
</inline-formula>
</p>
</def>
</def-item>
<def-item>
<term id="G14-fenrg.2021.736439">
<bold>
<inline-formula id="inf114">
<mml:math id="m135">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>d</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula>
</bold>
</term>
<def>
<p>the optimized power demand of the building <inline-formula id="inf115">
<mml:math id="m136">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula> at time&#x20;<inline-formula id="inf116">
<mml:math id="m137">
<mml:mi>k</mml:mi>
</mml:math>
</inline-formula>
</p>
</def>
</def-item>
<def-item>
<term id="G15-fenrg.2021.736439">
<bold>
<inline-formula id="inf117">
<mml:math id="m138">
<mml:mrow>
<mml:msubsup>
<mml:mi>D</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula>
</bold>
</term>
<def>
<p>building mismatch cost at time <inline-formula id="inf118">
<mml:math id="m139">
<mml:mi>k</mml:mi>
</mml:math>
</inline-formula> of the building&#x20;<inline-formula id="inf119">
<mml:math id="m140">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula>
</p>
</def>
</def-item>
<def-item>
<term id="G16-fenrg.2021.736439">
<bold>
<inline-formula id="inf120">
<mml:math id="m141">
<mml:mrow>
<mml:msubsup>
<mml:mi>B</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>k</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula>
</bold>
</term>
<def>
<p>power purchase cost of the building <inline-formula id="inf121">
<mml:math id="m142">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula> at time&#x20;<inline-formula id="inf122">
<mml:math id="m143">
<mml:mi>k</mml:mi>
</mml:math>
</inline-formula>
</p>
</def>
</def-item>
<def-item>
<term id="G17-fenrg.2021.736439">
<bold>
<inline-formula id="inf123">
<mml:math id="m144">
<mml:mrow>
<mml:msub>
<mml:mi>U</mml:mi>
<mml:mrow>
<mml:mi>b</mml:mi>
<mml:mi>u</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>d</mml:mi>
<mml:mi>i</mml:mi>
<mml:mi>n</mml:mi>
<mml:mi>g</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:math>
</inline-formula>
</bold>
</term>
<def>
<p>building revenue</p>
</def>
</def-item>
<def-item>
<term id="G18-fenrg.2021.736439">
<bold>
<inline-formula id="inf124">
<mml:math id="m145">
<mml:mrow>
<mml:msup>
<mml:mi>Q</mml:mi>
<mml:mtext>&#x2217;</mml:mtext>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>
</bold>
</term>
<def>
<p>optimal decision value of building demand under Nash equilibrium</p>
</def>
</def-item>
<def-item>
<term id="G19-fenrg.2021.736439">
<bold>
<inline-formula id="inf125">
<mml:math id="m146">
<mml:mrow>
<mml:mi>P</mml:mi>
<mml:msup>
<mml:mi>r</mml:mi>
<mml:mtext>&#x2217;</mml:mtext>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>
</bold>
</term>
<def>
<p>optimal decision value under Nash equilibrium</p>
</def>
</def-item>
<def-item>
<term id="G20-fenrg.2021.736439">
<bold>
<inline-formula id="inf126">
<mml:math id="m147">
<mml:mrow>
<mml:msup>
<mml:mi>R</mml:mi>
<mml:mi>N</mml:mi>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>
</bold>
</term>
<def>
<p>complete set of strategies</p>
</def>
</def-item>
<def-item>
<term id="G21-fenrg.2021.736439">
<bold>
<inline-formula id="inf127">
<mml:math id="m148">
<mml:mrow>
<mml:mi>Q</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mi>P</mml:mi>
<mml:mi>r</mml:mi>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula>
</bold>
</term>
<def>
<p>building demand in response to electricity prices.</p>
</def>
</def-item>
<def-item>
<term id="G22-fenrg.2021.736439">
<bold>
<inline-formula id="inf128">
<mml:math id="m149">
<mml:mrow>
<mml:msubsup>
<mml:mi>q</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
<mml:mi>r</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:math>
</inline-formula>
</bold>
</term>
<def>
<p>distributed energy production capacity at the time <inline-formula id="inf129">
<mml:math id="m150">
<mml:mi>k</mml:mi>
</mml:math>
</inline-formula> of the building&#x20;<inline-formula id="inf130">
<mml:math id="m151">
<mml:mi>i</mml:mi>
</mml:math>
</inline-formula>
</p>
</def>
</def-item>
<def-item>
<term id="G23-fenrg.2021.736439">
<bold>EFB</bold>
</term>
<def>
<p>Energy Flexible Building</p>
</def>
</def-item>
<def-item>
<term id="G24-fenrg.2021.736439">
<bold>IEA</bold>
</term>
<def>
<p>International Energy Agency</p>
</def>
</def-item>
<def-item>
<term id="G25-fenrg.2021.736439">
<bold>DN</bold>
</term>
<def>
<p>Day and Night Price</p>
</def>
</def-item>
<def-item>
<term id="G26-fenrg.2021.736439">
<bold>TOU</bold>
</term>
<def>
<p>Time-of-use Price</p>
</def>
</def-item>
<def-item>
<term id="G27-fenrg.2021.736439">
<bold>RTP</bold>
</term>
<def>
<p>Real-time Prices.</p>
</def>
</def-item>
</def-list>
</sec>
</back>
</article>