<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1 20151215//EN" "http://jats.nlm.nih.gov/publishing/1.1/JATS-journalpublishing1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xml:lang="en" article-type="research-article" dtd-version="1.1">
<front>
<journal-meta>
<journal-id journal-id-type="pmc">EE</journal-id>
<journal-id journal-id-type="nlm-ta">EE</journal-id>
<journal-id journal-id-type="publisher-id">EE</journal-id>
<journal-title-group>
<journal-title>Energy Engineering</journal-title>
</journal-title-group>
<issn pub-type="epub">1546-0118</issn>
<issn pub-type="ppub">0199-8595</issn>
<publisher>
<publisher-name>Tech Science Press</publisher-name>
<publisher-loc>USA</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">79956</article-id>
<article-id pub-id-type="doi">10.32604/ee.2026.079956</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Article</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>Two-Stage Optimization Strategy of EHDT-BSS Participating in Grid Frequency Regulation</article-title>
<alt-title alt-title-type="left-running-head">Two-Stage Optimization Strategy of EHDT-BSS Participating in Grid Frequency Regulation</alt-title>
<alt-title alt-title-type="right-running-head">Two-Stage Optimization Strategy of EHDT-BSS Participating in Grid Frequency Regulation</alt-title>
</title-group>
<contrib-group>
<contrib id="author-1" contrib-type="author">
<name name-style="western"><surname>Li</surname><given-names>Xin</given-names></name></contrib>
<contrib id="author-2" contrib-type="author" corresp="yes">
<name name-style="western"><surname>Shi</surname><given-names>Shuang</given-names></name><email>shuangshi_sgcc_sc@126.com</email></contrib>
<contrib id="author-3" contrib-type="author">
<name name-style="western"><surname>Liu</surname><given-names>Qiyi</given-names></name></contrib>
<contrib id="author-4" contrib-type="author">
<name name-style="western"><surname>Zhang</surname><given-names>Yan</given-names></name></contrib>
<aff id="aff-1"><institution>State Grid Sichuan Electric Power Company Marketing Service Center (Metrology Center)</institution>, <addr-line>Chengdu</addr-line>, <country>China</country></aff>
</contrib-group>
<author-notes>
<corresp id="cor1"><label>&#x002A;</label>Corresponding Author: Shuang Shi. Email: <email>shuangshi_sgcc_sc@126.com</email></corresp>
</author-notes>
<pub-date date-type="collection" publication-format="electronic">
<year>2026</year>
</pub-date>
<pub-date date-type="pub" publication-format="electronic">
<day>18</day><month>6</month><year>2026</year>
</pub-date>
<volume>123</volume>
<issue>7</issue>
<elocation-id>8</elocation-id>
<history>
<date date-type="received">
<day>31</day>
<month>01</month>
<year>2026</year>
</date>
<date date-type="accepted">
<day>01</day>
<month>04</month>
<year>2026</year>
</date>
</history>
<permissions>
<copyright-statement>&#x00A9; 2026 The Authors. Published by Tech Science Press.</copyright-statement>
<copyright-year>2026</copyright-year>
<copyright-holder>The Authors</copyright-holder>
<license xlink:href="https://creativecommons.org/licenses/by/4.0/">
<license-p>This work is licensed under a <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
</license>
</permissions>
<self-uri content-type="pdf" xlink:href="TSP_EE_79956.pdf"></self-uri>
<abstract>
<p>Electric heavy-duty truck battery swapping stations (EHDT-BSS) are emerging as flexible resources for power systems due to their high controllability and significant power capacity. However, the participation of EHDT-BSSs in grid frequency regulation is severely constrained by the limited battery quantity and the high stochasticity of swapping demand, where forecasting errors can affect system reliability. To address these challenges, this paper proposes a two-stage optimization strategy for EHDT-BSSs participating in frequency regulation considering demand uncertainty. First, the basic operation mode of BSS is designed, and a deep learning-based method is utilized to forecast swapping demand. A state-of-charge (SOC)-based battery classification mechanism is then established to ensure inter-temporal battery availability. The proposed framework includes a day-ahead scheduling stage to maximize the total revenue from frequency regulation and swapping services, followed by an intraday rolling optimization stage designed to compensate for real-time forecasting deviations. The results demonstrate that the proposed method effectively balances economic efficiency and operational reliability, enabling EHDT-BSSs to provide stable ancillary services while meeting heavy-duty truck swapping needs.</p>
</abstract>
<kwd-group kwd-group-type="author">
<kwd>Battery swapping station</kwd>
<kwd>frequency regulation</kwd>
<kwd>two-stage optimization</kwd>
</kwd-group>
<funding-group>
<award-group id="awg1">
<funding-source>Research on Market Mechanisms and Operational Strategies for Vehicle-Grid Interaction Adapted to Spatiotemporal Supply-Demand Balance Needs in Sichuan</funding-source>
<award-id>52199925000M</award-id>
</award-group>
</funding-group>
</article-meta>
</front>
<body>
<sec id="s1">
<label>1</label>
<title>Introduction</title>
<p>With the steady advancement of the global energy transition and the pursuit of &#x201C;carbon peak and carbon neutrality&#x201D; goals [<xref ref-type="bibr" rid="ref-1">1</xref>], vehicle electrification is accelerating [<xref ref-type="bibr" rid="ref-2">2</xref>]. Heavy-duty trucks (HDT), as a primary source of carbon emissions in the transportation sector, play a crucial role in this transformation [<xref ref-type="bibr" rid="ref-3">3</xref>]. Battery swapping has emerged as a crucial method for replenishing energy, offering distinct advantages in efficiency, speed, and safety [<xref ref-type="bibr" rid="ref-4">4</xref>&#x2013;<xref ref-type="bibr" rid="ref-7">7</xref>]. Currently, Battery-swappable electric heavy-duty trucks (EHDT) are gaining significant market traction, paralleled by the large-scale construction of battery swapping stations [<xref ref-type="bibr" rid="ref-8">8</xref>&#x2013;<xref ref-type="bibr" rid="ref-10">10</xref>]. EHDT battery swapping stations (EHDT-BSS) are characterized by high power demand and high controllability, positioning them as high-quality flexible resources [<xref ref-type="bibr" rid="ref-3">3</xref>]. Therefore, optimizing their charging and discharging behavior is essential for enhancing power system stability and reducing operational costs [<xref ref-type="bibr" rid="ref-11">11</xref>].</p>
<p>Extensive research has been conducted on the scheduling strategies for battery swapping stations (BSS). Early research primarily focused on orderly charging management of BSS by optimizing the number of batteries charged or the charging power, aiming to reduce operating costs and mitigate the impact on the power grid. Reference [<xref ref-type="bibr" rid="ref-12">12</xref>] treated individual battery packs as decision units and directly optimized the charging power of each battery in different time periods, enabling fine-grained power control. Reference [<xref ref-type="bibr" rid="ref-13">13</xref>] constructed orderly charging models for electric vehicle battery swapping stations based on queueing theory, and by regulating the number of batteries put into charging in each time period, effectively reduced grid load fluctuations. Reference [<xref ref-type="bibr" rid="ref-14">14</xref>] adopted a SOC grading approach, in which batteries were classified into different SOC levels, and the charging quantities of each level were optimized. Reference [<xref ref-type="bibr" rid="ref-15">15</xref>] established a battery redundancy model under orderly charging conditions and optimized it using an adaptive genetic algorithm, which not only effectively reduced the peak-to-valley difference of grid load but also increased battery redundancy. Reference [<xref ref-type="bibr" rid="ref-16">16</xref>] proposed a charging decision model for BSS based on a variable population evolutionary algorithm. By optimizing the charging scheme to maximize battery inventory while minimizing charging losses, the model improves the operational efficiency and economic benefits of the station. Although previous studies have improved the orderly charging capability of BSS, they typically model BSS as pure charging loads and fail to fully exploit their charge&#x2013;discharge flexibility.</p>
<p>With the development of Vehicle-to-Grid (V2G) technology, battery swapping stations, as distributed energy storage units with substantial controllable potential, have increasingly demonstrated their flexibility value to the power grid. Reference [<xref ref-type="bibr" rid="ref-17">17</xref>] proposed a dual-layer model predictive control (MPC) strategy to achieve coordinated control between the battery load demand of electric vehicle swapping stations and grid-side supply matching. Furthermore, Reference [<xref ref-type="bibr" rid="ref-18">18</xref>] investigated an intelligent peak-cutting and valley-filling charging and swapping mode based on potential game theory, which effectively optimizes the interaction between the swapping stations and the power grid. Reference [<xref ref-type="bibr" rid="ref-19">19</xref>] constructed an optimization model for photovoltaic battery swapping stations by integrating weather and traffic forecasts, achieving peak&#x2013;valley regulation while ensuring battery swap demand, thereby effectively promoting renewable energy utilization and economic operation of the system. Moreover, as comprehensively reviewed in [<xref ref-type="bibr" rid="ref-20">20</xref>], BSSs are identified as grid-side distributed energy storage units and are shown to play a key role in power dispatch, peak&#x2013;valley regulation, and ancillary services.</p>
<p>Regarding ancillary services, the inherent fast-response capability and power regulation of vehicle batteries have positioned BSS as a research focus for grid frequency regulation. The aggregated battery resources of swap stations can respond to Automatic Generation Control (AGC) signals within milliseconds, significantly outperforming the frequency response of conventional generators. Reference [<xref ref-type="bibr" rid="ref-21">21</xref>] proposed an optimal frequency regulation participation strategy for BSS considering uncertainties in swapping demand and regulation signals. A day-ahead bidding and real-time dispatch framework based on information-gap decision theory is adopted to improve profitability while maintaining regulation performance. Reference [<xref ref-type="bibr" rid="ref-22">22</xref>] introduced a deep Q-network-based scheduling strategy that enables swap stations to dynamically optimize their frequency regulation capacity and participate in fast frequency response services, thereby enhancing both economic benefits and regulation performance in the ancillary service market. Reference [<xref ref-type="bibr" rid="ref-23">23</xref>] further developed a secondary frequency control strategy for swap stations that accounts for user behavior and battery heterogeneity; using a distributed control approach, it stabilizes grid frequency while coordinating intra-station battery energy balance and health management. These studies indicate that, through advanced control and scheduling strategies, battery swapping stations can effectively serve as frequency regulation resources while ensuring the fulfillment of battery swap demand.</p>
<p>However, the aforementioned studies largely assume scenarios with sufficient in-station batteries or accurately predictable swap demand [<xref ref-type="bibr" rid="ref-21">21</xref>,<xref ref-type="bibr" rid="ref-22">22</xref>], and they often treat the swapping demand as a flexible soft constraint. In the case of EHTD-BSS, the limited number of batteries and the high randomness of swap demand make precise demand forecasting challenging, and forecasting errors can significantly impact scheduling decisions. This renders traditional aggregated energy models or static scheduling methods less applicable [<xref ref-type="bibr" rid="ref-14">14</xref>]. Therefore, the uncertainties of swap demand in BSS should be considered when participating in grid frequency regulation. To address this, this study proposes a two-stage optimization framework for EHDT-BSS that explicitly considers forecast errors. First, the operational characteristics of the EHDT-BSS are modeled, integrated with a deep learning-based method to predict swapping demand. Subsequently, a day-ahead scheduling model is established to maximize the total revenue from both frequency regulation and swapping services based on forecasted demand. In the intraday operation, a real-time rolling optimization method is proposed to eliminate the effect of uncertainties of the swapping demand. The main contributions of this research are:<list list-type="order">
<list-item>
<p>A basic operation mode of BSS is designed, including the battery classification method with a forecasting method of swapping demand. To ensure the demand for EHDT, a battery dispatch strategy for the current and next time period is proposed.</p></list-item>
<list-item>
<p>A two-stage optimization method of EHDT-BSS participating in grid frequency regulation is proposed. The day-ahead optimization method can help BSS reach the maximum benefits from the grid frequency regulation and meet the swapping demand of EHDT. Then, the effect of swapping demand uncertainties is solved by the rolling optimization in the intra-day operation. This two-stage structure effectively reaches a balance between economy and reliability under demand uncertainty.</p></list-item>
</list></p>
<p>The rest of this paper is organized as follows. <xref ref-type="sec" rid="s2">Section 2</xref> describes the operation mode of EHDT-BSS, including the forecasting method of swapping demand and battery dispatch plan in BSS; in <xref ref-type="sec" rid="s3">Section 3</xref>, the two-stage optimization method is proposed; in <xref ref-type="sec" rid="s4">Section 4</xref>, the case study is illustrated to verify the proposed method in <xref ref-type="sec" rid="s5">Section 5</xref>.</p>
</sec>
<sec id="s2">
<label>2</label>
<title>Operation Model of BSS</title>
<sec id="s2_1">
<label>2.1</label>
<title>Basic Operation Mode of BSS</title>
<p>A typical EHDT battery swapping station is a highly automated integrated system for safe and efficient battery replacement and charging. As shown in <xref ref-type="fig" rid="fig-1">Fig. 1</xref>, the system primarily consists of a monitoring and control center, a swapping work bay, a battery swapping robot system, and a battery charging compartment. Specifically, the battery charging compartment is equipped with several regular charging slots. One transit charging slot is used for temporary battery storage, and another one serves as a backup charging slot for storing a spare battery. Externally, a transformer is provided exclusively to power the charging compartment. To ensure the continuity of the swapping process, this paper assumes that the number of batteries equipped in the station matches the number of regular charging slots.</p>
<fig id="fig-1">
<label>Figure 1</label>
<caption>
<title>Structure diagram of the EHDT battery swapping station.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="EE_79956-fig-1.tif"/>
</fig>
<p>The complete battery swapping process operates as follows: An EHDT enters the designated swapping work bay to initiate identity authentication. Subsequently, under the unified scheduling and safety monitoring of the station control system, the swapping robot unloads the depleted battery from the vehicle and transfers it to the transit charging slot. Next, a fully charged battery is selected from the regular charging slots and installed into the vehicle&#x2019;s battery compartment. Upon completion of the battery replacement, the vehicle exits the bay, and the swapping process ends. At this stage, the control system determines the charging strategy for the depleted battery temporarily stored in the transit charging slot. This entire sequence establishes an orderly &#x201C;Unload-Transit-Load&#x201D; workflow.</p>
</sec>
<sec id="s2_2">
<label>2.2</label>
<title>Battery Classification and Swap Demand Prediction</title>
<sec id="s2_2_1">
<label>2.2.1</label>
<title>Battery Classification Method of BSS</title>
<p>The scheduling of EHDT-BSS fundamentally relies on the coordinated charging and discharging of on-site battery resources. However, distinct from standard passenger vehicle stations, EHDT-BSS facilities operate with a limited battery inventory and exhibit a tight coupling between swapping and charging processes. Consequently, battery availability fluctuates dynamically, driven by variations in charging protocols and swapping demand. To address these constraints, we propose a classification strategy based on SOC grading. In contrast to the static grading [<xref ref-type="bibr" rid="ref-14">14</xref>] or the highly discretized multi-energy-level division of batteries [<xref ref-type="bibr" rid="ref-11">11</xref>], the complex battery states are specifically classified into the following three SOC categories in this study. By categorizing and scheduling battery packs according to distinct grades, a robust mapping relationship is established between battery status and charging/discharging protocols. To facilitate the analysis of the scheduling optimization, the following assumptions are made:<list list-type="order">
<list-item>
<p>All battery packs deployed in the battery swapping station are assumed to have uniform specifications and to operate under constant-power charging and discharging.</p></list-item>
<list-item>
<p>Battery packs removed during swapping are assumed to be immediately available for charging, subject to operational decisions.</p></list-item>
<list-item>
<p>To preserve battery longevity, a multi-stage charging and discharging strategy is adopted, with predefined thresholds imposed to prevent overcharging and deep discharging.</p></list-item>
</list></p>
<p>Let <inline-formula id="ieqn-1"><mml:math id="mml-ieqn-1"><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> denote the state of charge of the <italic>i</italic>-th battery pack within the station at a discrete time step <italic>t</italic>. In line with the operational characteristics of BSS, the following SOC thresholds are defined: <inline-formula id="ieqn-2"><mml:math id="mml-ieqn-2"><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mo movablelimits="true" form="prefix">min</mml:mo></mml:mrow></mml:msub></mml:math></inline-formula> represents the minimum safety limit for battery operation; <inline-formula id="ieqn-3"><mml:math id="mml-ieqn-3"><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mrow><mml:mtext>low</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> denotes the lower bound at which a battery retains flexible regulation capability; and <inline-formula id="ieqn-4"><mml:math id="mml-ieqn-4"><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mrow><mml:mtext>high</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> indicates the minimum SOC required for deployment in EHDT swapping. Based on these thresholds, the station&#x2019;s battery inventory is classified into three distinct SOC grades, denoted as <inline-formula id="ieqn-5"><mml:math id="mml-ieqn-5"><mml:msub><mml:mrow><mml:mtext>S</mml:mtext></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula>, <inline-formula id="ieqn-6"><mml:math id="mml-ieqn-6"><mml:msub><mml:mrow><mml:mtext>S</mml:mtext></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula>, and <inline-formula id="ieqn-7"><mml:math id="mml-ieqn-7"><mml:msub><mml:mrow><mml:mtext>S</mml:mtext></mml:mrow><mml:mrow><mml:mn>3</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula>, in descending order of charge level:
<list list-type="simple">
<list-item>
<label>(a)</label>
<p>Category 1: Fully Charged Reserve Batteries. This category represents the highest SOC range. Batteries in this classification satisfy the requisite criteria for swapping operations and are immediately deployable without the need for supplementary charging. Functioning as the core service resource of the BSS, this inventory is dedicated strictly to guaranteeing baseline swapping demands across all operational intervals. Consequently, under nominal conditions, these batteries are withheld from participating in grid discharge. The quantity of batteries in this category is denoted by <inline-formula id="ieqn-8"><mml:math id="mml-ieqn-8"><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>f</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula>, and the corresponding set is defined as follows:</p>
<p><disp-formula id="eqn-1"><label>(1)</label><mml:math id="mml-eqn-1" display="block"><mml:msub><mml:mrow><mml:mi mathvariant="normal">&#x03A9;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>f</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mi>i</mml:mi><mml:mrow><mml:mo>|</mml:mo><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2265;</mml:mo><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mrow><mml:mtext>high</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo fence="true" stretchy="true" symmetric="true"></mml:mo></mml:mrow><mml:mo>}</mml:mo></mml:mrow></mml:math></disp-formula></p></list-item></list></p>
<p>where: <inline-formula id="ieqn-9"><mml:math id="mml-ieqn-9"><mml:msub><mml:mrow><mml:mi mathvariant="normal">&#x03A9;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>f</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> represents the set of Category 1 batteries at time <inline-formula id="ieqn-10"><mml:math id="mml-ieqn-10"><mml:mi>t</mml:mi></mml:math></inline-formula>; <inline-formula id="ieqn-11"><mml:math id="mml-ieqn-11"><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> represents the SOC value of the <italic>i-</italic>th battery at time <inline-formula id="ieqn-12"><mml:math id="mml-ieqn-12"><mml:mi>t</mml:mi></mml:math></inline-formula>.
<list list-type="simple">
<list-item>
<label>(b)</label>
<p>Category 2: Flexible Regulation Batteries. This category comprises batteries whose SOC falls within the medium range. These batteries are capable of not only addressing extreme swapping demands in the next time period but also serving as the core flexible resource for the BSS to participate in grid frequency regulation services, possessing bidirectional charging and discharging capabilities. When current swapping demands are sufficiently covered by the quantity of Category 1 batteries, frequency regulation services can be provided by this category of batteries in response to under-frequency and over-frequency events in the power grid by following AGC commands. The quantity of batteries in this category is denoted by <inline-formula id="ieqn-13"><mml:math id="mml-ieqn-13"><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>d</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula>, and the corresponding set is defined as:</p>
<p><disp-formula id="eqn-2"><label>(2)</label><mml:math id="mml-eqn-2" display="block"><mml:msub><mml:mrow><mml:mi mathvariant="normal">&#x03A9;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>d</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mi>i</mml:mi><mml:mrow><mml:mo>|</mml:mo><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mrow><mml:mtext>low</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x003C;</mml:mo><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mrow><mml:mtext>high</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo fence="true" stretchy="true" symmetric="true"></mml:mo></mml:mrow><mml:mo>}</mml:mo></mml:mrow></mml:math></disp-formula></p>
<p>where: <inline-formula id="ieqn-14"><mml:math id="mml-ieqn-14"><mml:msub><mml:mrow><mml:mi mathvariant="normal">&#x03A9;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>d</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> represents the set of Category 2 batteries at time <inline-formula id="ieqn-15"><mml:math id="mml-ieqn-15"><mml:mi>t</mml:mi></mml:math></inline-formula>.</p></list-item>
<list-item>
<label>(c)</label>
<p>Category 3: Discharged Batteries. Batteries that have just been swapped out from vehicles or discharged to the threshold are classified into this category. These batteries lack discharging capability and primarily respond to subsequent frequency regulation or swapping services by controlling their charging behavior. The quantity of batteries in this category is denoted by <inline-formula id="ieqn-16"><mml:math id="mml-ieqn-16"><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>c</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula>, and the corresponding set is defined as:</p>
<p><disp-formula id="eqn-3"><label>(3)</label><mml:math id="mml-eqn-3" display="block"><mml:msub><mml:mrow><mml:mi mathvariant="normal">&#x03A9;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>c</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mi>i</mml:mi><mml:mrow><mml:mo>|</mml:mo><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mo movablelimits="true" form="prefix">min</mml:mo></mml:mrow></mml:msub><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x003C;</mml:mo><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mrow><mml:mtext>low</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo fence="true" stretchy="true" symmetric="true"></mml:mo></mml:mrow><mml:mo>}</mml:mo></mml:mrow></mml:math></disp-formula></p>
<p>where: <inline-formula id="ieqn-17"><mml:math id="mml-ieqn-17"><mml:msub><mml:mrow><mml:mi mathvariant="normal">&#x03A9;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>c</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> represents the set of Category 3 batteries at time <inline-formula id="ieqn-18"><mml:math id="mml-ieqn-18"><mml:mi>t</mml:mi></mml:math></inline-formula>.</p></list-item>
</list></p>
<p>The charging power of the BSS at each time period is expressed as:</p>
<p><disp-formula id="eqn-4"><label>(4)</label><mml:math id="mml-eqn-4" display="block"><mml:mrow><mml:mo>{</mml:mo><mml:mtable columnalign="left" rowspacing="4pt" columnspacing="1em"><mml:mtr><mml:mtd><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>BSS</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>rigid</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>flex</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>rigid</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:munder><mml:mo movablelimits="false">&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>&#x2208;</mml:mo><mml:msub><mml:mrow><mml:mi mathvariant="normal">&#x03A9;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>c</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:munder><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>flex</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:munder><mml:mo movablelimits="false">&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>&#x2208;</mml:mo><mml:msub><mml:mrow><mml:mi mathvariant="normal">&#x03A9;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>d</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:munder><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>dis</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable><mml:mo fence="true" stretchy="true" symmetric="true"></mml:mo></mml:mrow></mml:math></disp-formula></p>
<p>where: <inline-formula id="ieqn-19"><mml:math id="mml-ieqn-19"><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>BSS</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> represents the charging power of the battery swapping station during time period <italic>t</italic>; <inline-formula id="ieqn-20"><mml:math id="mml-ieqn-20"><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>rigid</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> denotes the rigid charging power, generated by the depleted battery set; <inline-formula id="ieqn-21"><mml:math id="mml-ieqn-21"><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>flex</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> represents the flexible charging/discharging power, contributed by the flexible regulation batteries; <inline-formula id="ieqn-22"><mml:math id="mml-ieqn-22"><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> and <inline-formula id="ieqn-23"><mml:math id="mml-ieqn-23"><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>dis</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> denote the charging and discharging power of the <italic>i</italic>-th battery during time period <italic>t</italic>, respectively.</p>
</sec>
<sec id="s2_2_2">
<label>2.2.2</label>
<title>Demand Forecasting Model for BSS</title>
<p>Compared with normal battery-swapping electric vehicles (EVs), the load of EHDTs exhibits distinct characteristics, specifically concentrated temporal distribution and high-power demand. On the one hand, constrained by the strict timeliness requirements of logistics tasks, battery-swapping demand often surges during specific shift handover periods, resulting in significant peak loads. On the other hand, although the operation schedules of EHDTs are relatively fixed, their transportation tasks are subject to the coupled influence of complex factors such as order dynamics, traffic conditions, and weather. Consequently, their battery-swapping behavior exhibits significant non-linearity and time-varying uncertainty, making it difficult for traditional linear prediction methods to capture the underlying deep dynamic patterns. Therefore, this paper proposes a stacked Long Short-Term Memory (LSTM) prediction model integrated with an attention mechanism [<xref ref-type="bibr" rid="ref-24">24</xref>]. This model utilizes historical operation data to accurately predict battery-swapping demand for future time intervals.</p>
<p>To ensure that the temporal resolution of the prediction model aligns with the physical operational characteristics of the BSS, this paper first defines the prediction time step. The model discretizes the 24-h day into <italic>T</italic> equal-length intervals. To achieve temporal consistency in the operation scheduling of the BSS, the time intervals are segmented based on battery charging characteristics. The interval step size, denoted as <inline-formula id="ieqn-24"><mml:math id="mml-ieqn-24"><mml:msub><mml:mi>t</mml:mi><mml:mrow><mml:mrow><mml:mtext>p</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> (in minutes), is calculated according to <xref ref-type="disp-formula" rid="eqn-5">Eq. (5)</xref>:</p>
<p><disp-formula id="eqn-5"><label>(5)</label><mml:math id="mml-eqn-5" display="block"><mml:msub><mml:mi>t</mml:mi><mml:mrow><mml:mrow><mml:mtext>p</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:msub><mml:mi>W</mml:mi><mml:mrow><mml:mrow><mml:mtext>B</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ce</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:mfrac><mml:mo>&#x00D7;</mml:mo><mml:mn>60</mml:mn></mml:math></disp-formula></p>
<p>where: <inline-formula id="ieqn-25"><mml:math id="mml-ieqn-25"><mml:msub><mml:mi>W</mml:mi><mml:mrow><mml:mrow><mml:mtext>B</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> denotes the rated capacity of the battery; <inline-formula id="ieqn-26"><mml:math id="mml-ieqn-26"><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ce</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> represents the rated charging power of the battery swapping station. The day is discretized into multiple equal-length time intervals starting from 00:00. If the final interval of the current day is shorter than a complete time step <inline-formula id="ieqn-27"><mml:math id="mml-ieqn-27"><mml:msub><mml:mi>t</mml:mi><mml:mrow><mml:mrow><mml:mtext>p</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula>, it is completed using time from the subsequent day.</p>
<p>On this basis, a multi-dimensional feature matrix is constructed as the model input. Given the significant periodicity and regularity exhibited by the battery-swapping demand of electric heavy-duty trucks, the input features are primarily composed of historical battery-swapping order sequences and multi-dimensional temporal features. Specific time-step information is included in the temporal features, and workdays and non-workdays are also explicitly distinguished. After being standardized, the operational and scheduling patterns of electric heavy-duty trucks across different day types and time periods can be effectively reflected by these multi-dimensional features, whereby rich contextual information is provided for the model to capture deep dynamic time-series patterns.</p>
<p>The backbone of the prediction model adopts a stacked LSTM structure to hierarchically extract the temporal features of battery-swapping demand. The lower-layer LSTM captures short-term intraday fluctuation characteristics, while the upper-layer LSTM focuses on learning long-term inter-day patterns. Furthermore, considering the peak load characteristics of EHDT battery-swapping demand, this paper incorporates an attention mechanism at the LSTM output layer. This mechanism performs adaptive weighting on the hidden state sequence <inline-formula id="ieqn-28"><mml:math id="mml-ieqn-28"><mml:mi>H</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>,</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>L</mml:mi></mml:mrow></mml:msub><mml:mo>}</mml:mo></mml:mrow></mml:math></inline-formula> output by the LSTM, enabling the model to focus on the historical time steps that are most relevant to the current prediction time <italic>t</italic>. At time <italic>t</italic>, for the <italic>i</italic>-th historical hidden state <inline-formula id="ieqn-29"><mml:math id="mml-ieqn-29"><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>, its normalized weight coefficient <inline-formula id="ieqn-30"><mml:math id="mml-ieqn-30"><mml:msub><mml:mi>&#x03B1;</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is calculated via the Softmax function:</p>
<p><disp-formula id="eqn-6"><label>(6)</label><mml:math id="mml-eqn-6" display="block"><mml:msub><mml:mi>&#x03B1;</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mi>exp</mml:mi><mml:mo>&#x2061;</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mtext>score</mml:mtext></mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:munderover><mml:mo movablelimits="false">&#x2211;</mml:mo><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>L</mml:mi></mml:mrow></mml:munderover><mml:mi>exp</mml:mi><mml:mo>&#x2061;</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mtext>score</mml:mtext></mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:mfrac></mml:math></disp-formula></p>
<p>where: <italic>L</italic> denotes the length of the input time window; <inline-formula id="ieqn-31"><mml:math id="mml-ieqn-31"><mml:mrow><mml:mtext>score</mml:mtext></mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mo>&#x22C5;</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> represents a correlation scoring function used to evaluate the significance of the hidden state <inline-formula id="ieqn-32"><mml:math id="mml-ieqn-32"><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> at historical time step <italic>i</italic> regarding the prediction result at the current time step <italic>t</italic>; <inline-formula id="ieqn-33"><mml:math id="mml-ieqn-33"><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> represents the LSTM hidden state at the current prediction time <italic>t</italic>; <inline-formula id="ieqn-34"><mml:math id="mml-ieqn-34"><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> and <inline-formula id="ieqn-35"><mml:math id="mml-ieqn-35"><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> represent the <italic>i</italic>-th and <italic>j</italic>-th historical hidden states within the sequence <inline-formula id="ieqn-36"><mml:math id="mml-ieqn-36"><mml:mi>H</mml:mi></mml:math></inline-formula>, respectively.</p>
<p>Based on the calculated weights, the context vector <inline-formula id="ieqn-37"><mml:math id="mml-ieqn-37"><mml:msub><mml:mi>c</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>, which encodes key historical information, is obtained via a weighted summation:</p>
<p><disp-formula id="eqn-7"><label>(7)</label><mml:math id="mml-eqn-7" display="block"><mml:msub><mml:mi>c</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>L</mml:mi></mml:mrow></mml:munderover><mml:msub><mml:mi>&#x03B1;</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></disp-formula></p>
<p>where: <inline-formula id="ieqn-38"><mml:math id="mml-ieqn-38"><mml:msub><mml:mi>c</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> denotes the context vector at prediction time <italic>t</italic>.</p>
<p>Finally, the context vector is fed into a fully connected layer for decoding, which outputs the predicted value of basic battery-swapping demand for the current time interval, denoted as <inline-formula id="ieqn-39"><mml:math id="mml-ieqn-39"><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mi>p</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>. To fully account for the uncertainty in BSS operations, a statistical analysis method is simultaneously employed to extract historical extreme scenarios. The maximum historical battery-swapping frequency for each time interval is defined as the predicted extreme demand value, denoted as <inline-formula id="ieqn-40"><mml:math id="mml-ieqn-40"><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>. This realizes a dual-demand prediction framework that balances both baseline battery-swapping demand and extreme scenarios. The structure of the LSTM-Attention model is illustrated in <xref ref-type="fig" rid="fig-2">Fig. 2</xref>.</p>
<fig id="fig-2">
<label>Figure 2</label>
<caption>
<title>LSTM-Attention model architecture.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="EE_79956-fig-2.tif"/>
</fig>
</sec>
</sec>
<sec id="s2_3">
<label>2.3</label>
<title>Battery Scheduling Strategy of BSS</title>
<p>Uncertainty in battery swap demand may lead to a mismatch between the day-ahead charging plan and the actual number of available batteries in intraday operation: when demand is low, insufficient batteries available for charging can prevent the plan from being executed; when demand is high, it can easily cause user wait times or even battery swap failures. To ensure that users have fully charged batteries available upon arrival at the station, a battery adjustment strategy needs to be introduced in addition to the day-ahead plan. Based on actual operating conditions, the battery swapping station dynamically adjusts the sequence and quantity of charging and discharging for different battery categories to cover the supply-demand gap in each period. Moreover, it is necessary to ensure that the charging and discharging plan for each period aligns as closely as possible with the day-ahead scheduling to meet swap demand. Therefore, the following battery adjustment strategy is proposed to determine the sequence and timing of battery charging and discharging.</p>
<sec id="s2_3_1">
<label>2.3.1</label>
<title>Current Period Battery Dispatch Strategy</title>
<p>To ensure uninterrupted battery swap service, the following battery dispatch strategy is formulated for the current period. This strategy dynamically adjusts the battery status and types based on the actual battery swap demand, building upon the day-ahead forecasting output. Relevant parameter values are set as follows: <inline-formula id="ieqn-41"><mml:math id="mml-ieqn-41"><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mrow><mml:mtext>high</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn>90</mml:mn><mml:mi mathvariant="normal">&#x0025;</mml:mi></mml:math></inline-formula> and <inline-formula id="ieqn-42"><mml:math id="mml-ieqn-42"><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mrow><mml:mtext>emerg</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn>85</mml:mn><mml:mi mathvariant="normal">&#x0025;</mml:mi></mml:math></inline-formula> as the minimum SOC threshold for emergency battery swaps. <inline-formula id="ieqn-43"><mml:math id="mml-ieqn-43"><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mo movablelimits="true" form="prefix">max</mml:mo></mml:mrow></mml:msub></mml:math></inline-formula> is the maximum charging power, <inline-formula id="ieqn-44"><mml:math id="mml-ieqn-44"><mml:msub><mml:mi>W</mml:mi><mml:mrow><mml:mrow><mml:mtext>B</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> is the battery rated capacity, and <inline-formula id="ieqn-45"><mml:math id="mml-ieqn-45"><mml:msub><mml:mi>t</mml:mi><mml:mrow><mml:mi>w</mml:mi><mml:mi>a</mml:mi><mml:mi>i</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the maximum driver waiting time, which is set to 15 min.</p>
<p>Each time a battery swap demand occurs, it checks whether the current number of available fully charged Category 1 batteries <inline-formula id="ieqn-46"><mml:math id="mml-ieqn-46"><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>f</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> is greater than 0, i.e.,</p>
<p><disp-formula id="eqn-8"><label>(8)</label><mml:math id="mml-eqn-8" display="block"><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>f</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>&#x003E;</mml:mo><mml:mn>0</mml:mn></mml:math></disp-formula></p>
<p>If condition <xref ref-type="disp-formula" rid="eqn-8">(8)</xref> is not satisfied, the emergency adjustment strategy is triggered. First, it determines whether the number of Category 2 batteries in the station satisfies:</p>
<p><disp-formula id="eqn-9"><label>(9)</label><mml:math id="mml-eqn-9" display="block"><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>d</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>&#x2265;</mml:mo><mml:mn>1</mml:mn></mml:math></disp-formula></p>
<p>If condition <xref ref-type="disp-formula" rid="eqn-9">(9)</xref> is satisfied, Emergency Battery Adjustment Strategy 1 is adopted; if condition <xref ref-type="disp-formula" rid="eqn-9">(9)</xref> is not satisfied, Emergency Battery Adjustment Strategy 2 is implemented.
<list list-type="simple">
<list-item>
<label>(a)</label>
<p>Battery Emergency Adjustment Strategy 1: When a battery swap demand occurs at the station but the number of Category 1 batteries is zero&#x2014;meaning there are no batteries with <inline-formula id="ieqn-47"><mml:math id="mml-ieqn-47"><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2265;</mml:mo><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mrow><mml:mtext>high</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> available for swapping&#x2014;the battery with the highest SOC among Category 2 batteries is selected and denoted as battery <italic>j</italic>, with its SOC denoted as <inline-formula id="ieqn-48"><mml:math id="mml-ieqn-48"><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>:</p>
<p><disp-formula id="eqn-10"><label>(10)</label><mml:math id="mml-eqn-10" display="block"><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:munder><mml:mrow><mml:msub><mml:mrow><mml:mtext>arg max SOC</mml:mtext></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>&#x2208;</mml:mo><mml:msub><mml:mrow><mml:mi mathvariant="normal">&#x03A9;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>d</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:mrow></mml:munder></mml:math></disp-formula></p>
<p>Its target SOC is set to <inline-formula id="ieqn-49"><mml:math id="mml-ieqn-49"><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mrow><mml:mtext>high</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula>, and it is charged immediately at the maximum power <inline-formula id="ieqn-50"><mml:math id="mml-ieqn-50"><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mo movablelimits="true" form="prefix">max</mml:mo></mml:mrow></mml:msub></mml:math></inline-formula>. The required charging time is:</p>
<p><disp-formula id="eqn-11"><label>(11)</label><mml:math id="mml-eqn-11" display="block"><mml:msub><mml:mi>t</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mtext>II</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mrow><mml:mtext>high</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x00D7;</mml:mo><mml:msub><mml:mi>W</mml:mi><mml:mrow><mml:mi>B</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mo movablelimits="true" form="prefix">max</mml:mo></mml:mrow></mml:msub><mml:mo>&#x00D7;</mml:mo><mml:mn>100</mml:mn></mml:mrow></mml:mfrac></mml:math></disp-formula></p>
<p>The quantities of each battery category are updated as follows:</p>
<p><disp-formula id="eqn-12"><label>(12)</label><mml:math id="mml-eqn-12" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>d</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>d</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p><disp-formula id="eqn-13"><label>(13)</label><mml:math id="mml-eqn-13" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>f</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>f</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p></list-item>
<list-item>
<label>(b)</label>
<p>Battery Emergency Adjustment Strategy 2: When a battery swapping demand occurs at the station but both Category 1 and Category 2 batteries are unavailable (i.e., their quantities are zero), the battery with the highest SOC among Category 3 batteries is selected and denoted as battery <italic>k</italic>, with its SOC denoted as <inline-formula id="ieqn-51"><mml:math id="mml-ieqn-51"><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>:</p>
<p><disp-formula id="eqn-14"><label>(14)</label><mml:math id="mml-eqn-14" display="block"><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:munder><mml:mrow><mml:msub><mml:mrow><mml:mtext>arg max SOC</mml:mtext></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>&#x2208;</mml:mo><mml:msub><mml:mrow><mml:mi mathvariant="normal">&#x03A9;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>c</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:mrow></mml:munder></mml:math></disp-formula></p>
<p>Its target SOC is set to <inline-formula id="ieqn-52"><mml:math id="mml-ieqn-52"><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mrow><mml:mtext>emerg</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula>. The required charging time is calculated as:</p>
<p><disp-formula id="eqn-15"><label>(15)</label><mml:math id="mml-eqn-15" display="block"><mml:msub><mml:mi>t</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mn>3</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mrow><mml:mtext>emerg</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x00D7;</mml:mo><mml:msub><mml:mi>W</mml:mi><mml:mrow><mml:mi>B</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mo movablelimits="true" form="prefix">max</mml:mo></mml:mrow></mml:msub><mml:mo>&#x00D7;</mml:mo><mml:mn>100</mml:mn></mml:mrow></mml:mfrac></mml:math></disp-formula></p>
<p>where: <inline-formula id="ieqn-53"><mml:math id="mml-ieqn-53"><mml:msub><mml:mi>t</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mn>3</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula> denotes the total charging power of Category 3 batteries at time <italic>t</italic>.</p>
<p>If <inline-formula id="ieqn-54"><mml:math id="mml-ieqn-54"><mml:msub><mml:mi>t</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mn>3</mml:mn></mml:mrow></mml:msub><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mrow><mml:mrow><mml:mtext>wait</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> the battery is charged immediately at <inline-formula id="ieqn-55"><mml:math id="mml-ieqn-55"><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mo movablelimits="true" form="prefix">max</mml:mo></mml:mrow></mml:msub></mml:math></inline-formula> until <inline-formula id="ieqn-56"><mml:math id="mml-ieqn-56"><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mrow><mml:mtext>emerg</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> is reached, then reclassified as a Category 1 battery and used for swapping. If <inline-formula id="ieqn-57"><mml:math id="mml-ieqn-57"><mml:msub><mml:mi>t</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mn>3</mml:mn></mml:mrow></mml:msub><mml:mo>&#x003E;</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mrow><mml:mrow><mml:mtext>wait</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula>, it is determined that the swap demand cannot be met, a service failure is recorded. The quantities of each battery category are updated as follows:</p>
<p><disp-formula id="eqn-16"><label>(16)</label><mml:math id="mml-eqn-16" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>c</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>c</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p><disp-formula id="eqn-17"><label>(17)</label><mml:math id="mml-eqn-17" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>f</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>f</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p></list-item>
<list-item>
<label>(c)</label>
<p>Battery Dispatch Strategy Upon Swap Completion: At the moment a battery swap is completed, check whether the number of battery swaps already performed in the current period <inline-formula id="ieqn-58"><mml:math id="mml-ieqn-58"><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>h</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> has reached the basic forecasted swap demand for this period <inline-formula id="ieqn-59"><mml:math id="mml-ieqn-59"><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>p</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mtext>this</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula>, i.e.,</p>
<p><disp-formula id="eqn-18"><label>(18)</label><mml:math id="mml-eqn-18" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>h</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>p</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mtext>this</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p></list-item>
</list></p>
<p>If this condition is not satisfied, the newly depleted battery is removed from the vehicle, put into charging, its SOC target is set to <inline-formula id="ieqn-60"><mml:math id="mml-ieqn-60"><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mrow><mml:mtext>high</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn>90</mml:mn><mml:mi mathvariant="normal">&#x0025;</mml:mi></mml:math></inline-formula>, and it is classified as a Category 1 battery.</p>
</sec>
<sec id="s2_3_2">
<label>2.3.2</label>
<title>Next Period Battery Update Strategy</title>
<p><list list-type="simple">
<list-item>
<label>(a)</label>
<p>Battery Update Strategy 1: To ensure that the basic battery swap demand for the next period <inline-formula id="ieqn-61"><mml:math id="mml-ieqn-61"><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>p</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mtext>next</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> is met, the number of fully charged batteries remaining in the current period, combined with those being charged and converted to Category 1, must satisfy the requirement. Before the end of the current period <italic>t</italic>, ensure:</p>
<p><disp-formula id="eqn-19"><label>(19)</label><mml:math id="mml-eqn-19" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>f</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>&#x2265;</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>p</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mtext>next</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p></list-item>
</list></p>
<p>where: <inline-formula id="ieqn-62"><mml:math id="mml-ieqn-62"><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> denotes the number of batteries already designated as Category 1 and currently under charging during this period.</p>
<p>If condition <xref ref-type="disp-formula" rid="eqn-19">(19)</xref> is not satisfied, calculate the battery shortfall:
<list list-type="simple">
<list-item>
<p><disp-formula id="eqn-20"><label>(20)</label><mml:math id="mml-eqn-20" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mrow><mml:mi mathvariant="normal">&#x0394;</mml:mi></mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>f</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>p</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mtext>next</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>&#x2212;</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>f</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p></list-item>
</list></p>
<p>Then select the <inline-formula id="ieqn-63"><mml:math id="mml-ieqn-63"><mml:mrow><mml:mi mathvariant="normal">&#x0394;</mml:mi></mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>f</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> batteries with the highest SOC from Category 3, charge them to convert to Category 1, and set their target SOC to <inline-formula id="ieqn-64"><mml:math id="mml-ieqn-64"><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mrow><mml:mtext>high</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula>.
<list list-type="simple">
<list-item>
<label>(b)</label>
<p>Battery Update Strategy 2: To address potential extreme battery swap demand <inline-formula id="ieqn-65"><mml:math id="mml-ieqn-65"><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>m</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mtext>next</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> in the next period, ensure that the sum of the remaining fully charged batteries, Category 2 batteries, and the number of batteries undergoing charging to be converted to Category 2 in the current period satisfies the following condition before the end of period <italic>t</italic>:</p>
<p><disp-formula id="eqn-21"><label>(21)</label><mml:math id="mml-eqn-21" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>f</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>d</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>&#x2265;</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>m</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mtext>next</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p><disp-formula id="eqn-22"><label>(22)</label><mml:math id="mml-eqn-22" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mn>2</mml:mn><mml:mo>,</mml:mo><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p></list-item>
</list></p>
<p>where: <inline-formula id="ieqn-66"><mml:math id="mml-ieqn-66"><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mn>2</mml:mn><mml:mo>,</mml:mo><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> represents the number of batteries already designated as Category 2 and currently under charging in this period; Where <inline-formula id="ieqn-67"><mml:math id="mml-ieqn-67"><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> represents the total number of batteries transitioning from the charging state to Category 1 and Category 2.</p>
<p>If condition <xref ref-type="disp-formula" rid="eqn-21">(21)</xref> is not satisfied, calculate the battery shortfall:</p>
<p><disp-formula id="eqn-23"><label>(23)</label><mml:math id="mml-eqn-23" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mrow><mml:mi mathvariant="normal">&#x0394;</mml:mi></mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>d</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>m</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mtext>next</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>&#x2212;</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>f</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>d</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p>Then select the <inline-formula id="ieqn-68"><mml:math id="mml-ieqn-68"><mml:mrow><mml:mi mathvariant="normal">&#x0394;</mml:mi></mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>d</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> batteries with the highest SOC from Category 3 and charge them to convert to Category 2 batteries. Their target SOC should fall within the range <inline-formula id="ieqn-69"><mml:math id="mml-ieqn-69"><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mrow><mml:mtext>low</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mrow><mml:mtext>target</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>&#x003C;</mml:mo><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mrow><mml:mtext>high</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula>.</p>
<p>The overall battery scheduling strategy is illustrated in <xref ref-type="fig" rid="fig-3">Fig. 3</xref> below:</p>
<fig id="fig-3">
<label>Figure 3</label>
<caption>
<title>Battery scheduling strategy flowchart.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="EE_79956-fig-3.tif"/>
</fig>
</sec>
</sec>
</sec>
<sec id="s3">
<label>3</label>
<title>Optimization Scheduling of BSS Participating in Frequency Regulation</title>
<p>The overall dispatch framework for the heavy-duty truck battery swapping station assisting grid frequency regulation is illustrated in <xref ref-type="fig" rid="fig-4">Fig. 4</xref>. It consists of a two-stage dispatch model: day-ahead scheduling based on maximizing the swap station&#x2019;s operational revenue and real-time adjustment considering forecast deviations. In the day-ahead stage, the grid operator formulates the next day&#x2019;s frequency regulation capacity requirement plan based on the overall system load fluctuations and sends it to the battery swapping station. After receiving the grid&#x2019;s frequency regulation plan, the heavy-duty electric truck battery swapping station, considering the in-station battery status and predicted swap demand, develops the day-ahead charging/discharging and frequency regulation capacity reservation plan with the objective of maximizing operational revenue. During the intraday operation, the swap station conducts rolling adjustments to the day-ahead scheduling results based on actual swap demand and real-time battery status, ensuring the reliability of swap services while continuously responding to the grid&#x2019;s regulation requirements.</p>
<fig id="fig-4">
<label>Figure 4</label>
<caption>
<title>Overall framework diagram.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="EE_79956-fig-4.tif"/>
</fig>
<p>It should be pointed out that in this paper, upward and downward frequency regulation respectively represent the regulatory responses of the BSS to under-frequency and over-frequency events in the power grid. Specifically, upward frequency regulation implies that during an under-frequency event, power support is provided to the grid by the BSS through curtailing the baseline charging load or discharging the batteries. Conversely, downward frequency regulation indicates that during an over-frequency event, the capability of absorbing active power from the grid is increased by the BSS, where surplus electrical energy is absorbed through battery charging. Furthermore, when a larger number of available batteries is present at the station, a stronger energy-absorbing capability is exhibited by the system. However, the battery power is strictly kept within its rated limits.</p>
<sec id="s3_1">
<label>3.1</label>
<title>Day-Ahead Optimization Model</title>
<sec id="s3_1_1">
<label>3.1.1</label>
<title>Objective Function</title>
<p>Heavy-duty truck battery swapping stations need to optimize the scheduling of the battery charging and discharging process to maximize their responsiveness to grid frequency regulation demands while ensuring user battery swap services. This aims to achieve the maximization of the station&#x2019;s revenue.</p>
<p>The objective function is to maximize the net revenue of the swap station:</p>
<p><disp-formula id="eqn-24"><label>(24)</label><mml:math id="mml-eqn-24" display="block"><mml:mo movablelimits="true" form="prefix">max</mml:mo><mml:msub><mml:mi>F</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mn>3</mml:mn></mml:mrow></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mn>4</mml:mn></mml:mrow></mml:msub></mml:math></disp-formula></p>
<p><inline-formula id="ieqn-70"><mml:math id="mml-ieqn-70"><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula> is defined as the total charges paid by EV users per swapping event, consisting of two components: the swapping service fee and the electricity consumption fee, i.e.,</p>
<p><disp-formula id="eqn-25"><label>(25)</label><mml:math id="mml-eqn-25" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:munderover><mml:mrow><mml:mo>(</mml:mo><mml:mspace width="negativethinmathspace" /><mml:msub><mml:mi>&#x03B1;</mml:mi><mml:mrow><mml:mrow><mml:mtext>swap</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>R</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:munderover><mml:msub><mml:mi>&#x03BB;</mml:mi><mml:mrow><mml:mi>s</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>[</mml:mo><mml:mn>1</mml:mn><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>]</mml:mo></mml:mrow><mml:msub><mml:mi>W</mml:mi><mml:mrow><mml:mrow><mml:mtext>B</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p>where: <inline-formula id="ieqn-71"><mml:math id="mml-ieqn-71"><mml:msub><mml:mi>&#x03B1;</mml:mi><mml:mrow><mml:mrow><mml:mtext>swap</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> is the fee per swap service, <inline-formula id="ieqn-72"><mml:math id="mml-ieqn-72"><mml:mi>R</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> is the actual number of battery swaps; <inline-formula id="ieqn-73"><mml:math id="mml-ieqn-73"><mml:msub><mml:mi>&#x03BB;</mml:mi><mml:mrow><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the retail electricity price for battery charging; <inline-formula id="ieqn-74"><mml:math id="mml-ieqn-74"><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the battery state of charge of vehicle <italic>i</italic> during the battery swap in time period <italic>t</italic>; <inline-formula id="ieqn-75"><mml:math id="mml-ieqn-75"><mml:msub><mml:mi>W</mml:mi><mml:mrow><mml:mrow><mml:mtext>B</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> is the rated capacity of the battery. Constant power charging is assumed.</p>
<p><inline-formula id="ieqn-76"><mml:math id="mml-ieqn-76"><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula> represents the revenue from the battery swapping station&#x2019;s participation in auxiliary frequency regulation services. Frequency regulation revenue includes capacity revenue and mileage revenue. Capacity revenue refers to the income earned by reserving adjustable capacity for frequency regulation services, while mileage revenue refers to the income earned based on the sum of the absolute values of upward or downward power adjustments in response to frequency regulation signals:</p>
<p><disp-formula id="eqn-26"><label>(26)</label><mml:math id="mml-eqn-26" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:munderover><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mrow><mml:mtext>cap</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mrow><mml:mtext>perf</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p><disp-formula id="eqn-27"><label>(27)</label><mml:math id="mml-eqn-27" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mrow><mml:mtext>cap</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>cap</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x00D7;</mml:mo><mml:msub><mml:mi>&#x03BB;</mml:mi><mml:mrow><mml:mrow><mml:mtext>cap</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x00D7;</mml:mo><mml:mi>T</mml:mi></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p><disp-formula id="eqn-28"><label>(28)</label><mml:math id="mml-eqn-28" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mrow><mml:mtext>perf</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mrow><mml:mtext>mile</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x00D7;</mml:mo><mml:msub><mml:mi>&#x03BB;</mml:mi><mml:mrow><mml:mrow><mml:mtext>mile</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x00D7;</mml:mo><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mrow><mml:mtext>perf</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p>where: <inline-formula id="ieqn-77"><mml:math id="mml-ieqn-77"><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mrow><mml:mtext>cap</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the frequency regulation capacity revenue in time period <italic>t</italic>; <inline-formula id="ieqn-78"><mml:math id="mml-ieqn-78"><mml:msub><mml:mi>R</mml:mi><mml:mrow><mml:mrow><mml:mtext>perf</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the frequency regulation mileage revenue in time period <italic>t</italic>; <inline-formula id="ieqn-79"><mml:math id="mml-ieqn-79"><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>cap</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the awarded frequency regulation capacity bid submitted by the battery swapping station to the grid in time period <italic>t</italic>; <inline-formula id="ieqn-80"><mml:math id="mml-ieqn-80"><mml:msub><mml:mi>&#x03BB;</mml:mi><mml:mrow><mml:mrow><mml:mtext>cap</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> and <inline-formula id="ieqn-81"><mml:math id="mml-ieqn-81"><mml:msub><mml:mi>&#x03BB;</mml:mi><mml:mrow><mml:mrow><mml:mtext>mile</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> are the compensation prices for frequency regulation capacity and mileage in the frequency regulation market for time period <italic>t</italic>, respectively; <inline-formula id="ieqn-82"><mml:math id="mml-ieqn-82"><mml:msub><mml:mi>K</mml:mi><mml:mrow><mml:mrow><mml:mtext>perf</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the frequency regulation performance coefficient; <inline-formula id="ieqn-83"><mml:math id="mml-ieqn-83"><mml:msub><mml:mi>D</mml:mi><mml:mrow><mml:mrow><mml:mtext>mile</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the actual frequency regulation mileage completed in time period <italic>t</italic>; <italic>T</italic> is the service duration (in hours).</p>
<p><inline-formula id="ieqn-84"><mml:math id="mml-ieqn-84"><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mn>3</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula> represents the electricity purchasing cost of the battery swapping station, i.e.,</p>
<p><disp-formula id="eqn-29"><label>(29)</label><mml:math id="mml-eqn-29" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mn>3</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:munderover><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>BSS</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>&#x03BB;</mml:mi><mml:mrow><mml:mrow><mml:mtext>buy</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p>where: <inline-formula id="ieqn-85"><mml:math id="mml-ieqn-85"><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>BSS</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the total charging power in time period <italic>t</italic>; <inline-formula id="ieqn-86"><mml:math id="mml-ieqn-86"><mml:msub><mml:mi>&#x03BB;</mml:mi><mml:mrow><mml:mrow><mml:mtext>buy</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> is the electricity purchasing price.</p>
<p><inline-formula id="ieqn-87"><mml:math id="mml-ieqn-87"><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mn>4</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula> represents the cost associated with the risk of load curtailment. To prioritize user battery swap services, this term economically quantifies the positive deviation between the forecasted demand and the actual number of available fully charged batteries using a relatively large penalty factor. This effectively mitigates the risk of battery swap failures resulting from excessive pursuit of frequency regulation revenue:</p>
<p><disp-formula id="eqn-30"><label>(30)</label><mml:math id="mml-eqn-30" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mn>4</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mi>&#x03B2;</mml:mi><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:munderover><mml:mo movablelimits="true" form="prefix">max</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>P</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p>where: <inline-formula id="ieqn-88"><mml:math id="mml-ieqn-88"><mml:mi>&#x03B2;</mml:mi></mml:math></inline-formula> is the penalty coefficient; <inline-formula id="ieqn-89"><mml:math id="mml-ieqn-89"><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>P</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> represents the forecasted basic battery swapping demand at time <italic>t</italic>; and <inline-formula id="ieqn-90"><mml:math id="mml-ieqn-90"><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> represents the number of Category 1 batteries at time <italic>t</italic>.</p>
<p>Overall, the priority order of the aforementioned four key factors is clearly defined by the proposed model through the objective function and various constraints. First, guaranteeing the heavy-duty truck swapping demand is set as the highest priority of the system; this bottom line is not only restricted by strict physical constraints but also reflected in the penalty term formulated in <xref ref-type="disp-formula" rid="eqn-30">Eq. (30)</xref>. Second, owing to the high economic compensation provided by the auxiliary service market (<xref ref-type="disp-formula" rid="eqn-26">Eqs. (26)</xref>&#x2013;<xref ref-type="disp-formula" rid="eqn-28">(28)</xref>), flexible batteries will be prioritized and dispatched by the optimization model to respond to grid frequency regulation, thereby maximizing the overall net revenue. Finally, the response to TOU prices is adopted as the fundamental cost-reduction measure of the system, whereby operational costs are further controlled under the premise that the preceding two high-priority tasks are satisfied.</p>
</sec>
<sec id="s3_1_2">
<label>3.1.2</label>
<title>Constraints</title>
<p><list list-type="simple">
<list-item>
<label>(a)</label>
<p>Battery Quantity Constraint:</p>
<p><disp-formula id="eqn-31"><label>(31)</label><mml:math id="mml-eqn-31" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mi>N</mml:mi><mml:mo>=</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>f</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>d</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>c</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p>where: <italic>N</italic> represents the total number of batteries in the swap station.</p></list-item>
<list-item><label>(b)</label><p>Charging and Discharging Power Constraints:</p>
<p><disp-formula id="eqn-32"><label>(32)</label><mml:math id="mml-eqn-32" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>&#x2208;</mml:mo><mml:msub><mml:mrow><mml:mi mathvariant="normal">&#x03A9;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>d</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:munder><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>&#x2208;</mml:mo><mml:msub><mml:mrow><mml:mi mathvariant="normal">&#x03A9;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>c</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:munder><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p><disp-formula id="eqn-33"><label>(33)</label><mml:math id="mml-eqn-33" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>dis</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>&#x2208;</mml:mo><mml:msub><mml:mrow><mml:mi mathvariant="normal">&#x03A9;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>d</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:munder><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>dis</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p><disp-formula id="eqn-34"><label>(34)</label><mml:math id="mml-eqn-34" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mn>0</mml:mn><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mo movablelimits="true" form="prefix">max</mml:mo></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p><disp-formula id="eqn-35"><label>(35)</label><mml:math id="mml-eqn-35" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mn>0</mml:mn><mml:mo>&#x2A7D;</mml:mo><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>dis</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo stretchy="false">(</mml:mo><mml:mi>t</mml:mi><mml:mo stretchy="false">)</mml:mo><mml:mo>&#x2A7D;</mml:mo><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>dis</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mo movablelimits="true" form="prefix">max</mml:mo></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p><disp-formula id="eqn-36"><label>(36)</label><mml:math id="mml-eqn-36" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x22C5;</mml:mo><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>dis</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mn>0</mml:mn></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p></list-item></list></p>
<p>where: <inline-formula id="ieqn-91"><mml:math id="mml-ieqn-91"><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the charging power of battery 1 in time period <italic>t</italic>; <inline-formula id="ieqn-92"><mml:math id="mml-ieqn-92"><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>dis</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the discharging power of battery <italic>i</italic> in time period <italic>t</italic>; <inline-formula id="ieqn-93"><mml:math id="mml-ieqn-93"><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> and <inline-formula id="ieqn-94"><mml:math id="mml-ieqn-94"><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>dis</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> are the total charging and total discharging power in time period <italic>t</italic>, respectively; <inline-formula id="ieqn-95"><mml:math id="mml-ieqn-95"><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>dis</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mo movablelimits="true" form="prefix">max</mml:mo></mml:mrow></mml:msub></mml:math></inline-formula> denotes the maximum discharge power.
<list list-type="simple">
<list-item><label>(c)</label><p>SOC Constraint:</p>
<p><disp-formula id="eqn-37"><label>(37)</label><mml:math id="mml-eqn-37" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:mfrac><mml:mrow><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>&#x03B7;</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mi mathvariant="normal">&#x0394;</mml:mi></mml:mrow><mml:mi>t</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>dis,</mml:mtext></mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>/</mml:mo></mml:mrow><mml:msub><mml:mi>&#x03B7;</mml:mi><mml:mrow><mml:mrow><mml:mtext>dis</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x0394;</mml:mi></mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:msub><mml:mi>W</mml:mi><mml:mrow><mml:mrow><mml:mtext>B</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:mfrac></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p><disp-formula id="eqn-38"><label>(38)</label><mml:math id="mml-eqn-38" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mo movablelimits="true" form="prefix">min</mml:mo></mml:mrow></mml:msub><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mo movablelimits="true" form="prefix">max</mml:mo></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mi mathvariant="normal">&#x2200;</mml:mi><mml:mi>i</mml:mi><mml:mo>&#x2208;</mml:mo><mml:mi>N</mml:mi><mml:mo>,</mml:mo><mml:mi mathvariant="normal">&#x2200;</mml:mi><mml:mi>t</mml:mi></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
</p></list-item>
</list></p>
<p>where: <inline-formula id="ieqn-96"><mml:math id="mml-ieqn-96"><mml:msub><mml:mrow><mml:mtext>SOC</mml:mtext></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> denotes the state of charge of the <italic>i</italic>-th battery at time step <inline-formula id="ieqn-97"><mml:math id="mml-ieqn-97"><mml:mi>t</mml:mi></mml:math></inline-formula>; <inline-formula id="ieqn-98"><mml:math id="mml-ieqn-98"><mml:msub><mml:mi>&#x03B7;</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> and <inline-formula id="ieqn-99"><mml:math id="mml-ieqn-99"><mml:msub><mml:mi>&#x03B7;</mml:mi><mml:mrow><mml:mrow><mml:mtext>dis</mml:mtext></mml:mrow></mml:mrow></mml:msub></mml:math></inline-formula> represent the constant charging and discharging efficiencies, respectively.
<list list-type="simple">
<list-item>
<label>(d)</label>
<p>Declared Frequency Regulation Capacity Constraints:</p>
<p><disp-formula id="eqn-39"><label>(39)</label><mml:math id="mml-eqn-39" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mn>0</mml:mn><mml:mo>&#x2264;</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>cap</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>up</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x2264;</mml:mo><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>&#x2208;</mml:mo><mml:msub><mml:mrow><mml:mi mathvariant="normal">&#x03A9;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>d</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:munder><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>dis</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p><disp-formula id="eqn-40"><label>(40)</label><mml:math id="mml-eqn-40" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mn>0</mml:mn><mml:mo>&#x2264;</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>cap</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>down</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x2264;</mml:mo><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>&#x2208;</mml:mo><mml:msub><mml:mrow><mml:mi mathvariant="normal">&#x03A9;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>d</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:munder><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>&#x2208;</mml:mo><mml:msub><mml:mrow><mml:mi mathvariant="normal">&#x03A9;</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>c</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:munder><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p></list-item></list></p>
<p>where: <inline-formula id="ieqn-100"><mml:math id="mml-ieqn-100"><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>cap</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>up</mml:mtext></mml:mrow></mml:mrow></mml:msubsup></mml:math></inline-formula> represents the declared upward frequency regulation capacity at time <inline-formula id="ieqn-101"><mml:math id="mml-ieqn-101"><mml:mi>t</mml:mi></mml:math></inline-formula>; and <inline-formula id="ieqn-102"><mml:math id="mml-ieqn-102"><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>cap</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>down</mml:mtext></mml:mrow></mml:mrow></mml:msubsup></mml:math></inline-formula> represents the declared downward frequency regulation capacity at time <inline-formula id="ieqn-103"><mml:math id="mml-ieqn-103"><mml:mi>t</mml:mi></mml:math></inline-formula>.
<list list-type="simple">
<list-item>
<label>(e)</label>
<p>Transformer Capacity Constraint:</p>
<p><disp-formula id="eqn-41"><label>(41)</label><mml:math id="mml-eqn-41" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>cz</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>T</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mo movablelimits="true" form="prefix">max</mml:mo></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p></list-item>
</list></p>
<p>where: <inline-formula id="ieqn-104"><mml:math id="mml-ieqn-104"><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>cz</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> is the total input power of the battery swapping station at time <italic>t</italic>, and <inline-formula id="ieqn-105"><mml:math id="mml-ieqn-105"><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>T</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mo movablelimits="true" form="prefix">max</mml:mo></mml:mrow></mml:msub></mml:math></inline-formula> is the capacity limit of the transformer equipped at the station.</p>
</sec>
</sec>
<sec id="s3_2">
<label>3.2</label>
<title>Real-Time Rolling Optimization</title>
<p>To enable the battery swapping station to better respond to system frequency regulation needs in real-time operation, a rolling optimization based on intraday real-time information is introduced. This paper implements real-time acquisition of updated battery swap demand information and the status of batteries at different levels through a classified battery scheduling plan. At the start of each scheduling period, based on the latest swap demand, battery status, and grid frequency regulation instructions, the charging and discharging sequence and power of batteries at each level for the current and subsequent periods are dynamically adjusted. This mechanism ensures the reliability of user battery swap demand while tracking and responding to frequency regulation capacity requirements, thereby guaranteeing the operational safety of the battery swapping station and the reliability of frequency regulation services through real-time adjustments.</p>
<sec id="s3_2_1">
<label>3.2.1</label>
<title>Objective Function</title>
<p>The objective of the real-time phase is to mitigate power fluctuations caused by day-ahead prediction errors, ensuring that the actual operation closely tracks the day-ahead plan to reduce economic losses due to uncertainty, while also responding to the real-time AGC instructions issued by the distribution grid. The optimization model aims to minimize the deviation between the real-time output and the day-ahead plan, as well as the deviation in responding to actual frequency regulation instructions. The model is formulated as follows:</p>
<p><disp-formula id="eqn-42"><label>(42)</label><mml:math id="mml-eqn-42" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mi></mml:mi><mml:mo movablelimits="true" form="prefix">min</mml:mo><mml:msub><mml:mi>F</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:munderover><mml:mrow><mml:mo>[</mml:mo><mml:msub><mml:mi>&#x03BB;</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>BSS</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mrow><mml:msup><mml:mi>P</mml:mi><mml:mrow><mml:mo>&#x2217;</mml:mo></mml:mrow></mml:msup></mml:mrow><mml:mrow><mml:mrow><mml:mtext>BSS</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mo>+</mml:mo><mml:msub><mml:mi>&#x03BB;</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mrow><mml:mtext>fe</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>]</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p>where: <inline-formula id="ieqn-106"><mml:math id="mml-ieqn-106"><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>BSS</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the actual power of the battery swapping station during the intraday time period <italic>t</italic>; <inline-formula id="ieqn-107"><mml:math id="mml-ieqn-107"><mml:msub><mml:mrow><mml:msup><mml:mi>P</mml:mi><mml:mrow><mml:mo>&#x2217;</mml:mo></mml:mrow></mml:msup></mml:mrow><mml:mrow><mml:mrow><mml:mtext>BSS</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the power scheduled for time period <italic>t</italic> obtained from day-ahead optimization; <inline-formula id="ieqn-108"><mml:math id="mml-ieqn-108"><mml:msub><mml:mi>&#x03BB;</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula> and <inline-formula id="ieqn-109"><mml:math id="mml-ieqn-109"><mml:msub><mml:mi>&#x03BB;</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula> are deviation coefficients; <inline-formula id="ieqn-110"><mml:math id="mml-ieqn-110"><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mrow><mml:mtext>fe</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the penalty term for deviations in responding to frequency regulation instructions, expressed as:</p>
<p><disp-formula id="eqn-43"><label>(43)</label><mml:math id="mml-eqn-43" display="block"><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mrow><mml:mtext>fe</mml:mtext></mml:mrow><mml:mo>.</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mrow><mml:mo>|</mml:mo><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:munderover><mml:mrow><mml:mo>(</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>up</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x2212;</mml:mo><mml:msubsup><mml:mi>r</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>fu</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>+</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>down</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x2212;</mml:mo><mml:msubsup><mml:mi>r</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>fd</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>)</mml:mo></mml:mrow><mml:mo>|</mml:mo></mml:mrow></mml:math></disp-formula></p>
<p>where: <inline-formula id="ieqn-111"><mml:math id="mml-ieqn-111"><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>up</mml:mtext></mml:mrow></mml:mrow></mml:msubsup></mml:math></inline-formula> and <inline-formula id="ieqn-112"><mml:math id="mml-ieqn-112"><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>down</mml:mtext></mml:mrow></mml:mrow></mml:msubsup></mml:math></inline-formula> are the actual upward and downward frequency regulation outputs provided by batteries; <inline-formula id="ieqn-113"><mml:math id="mml-ieqn-113"><mml:msubsup><mml:mi>r</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>fu</mml:mtext></mml:mrow></mml:mrow></mml:msubsup></mml:math></inline-formula> and <inline-formula id="ieqn-114"><mml:math id="mml-ieqn-114"><mml:msubsup><mml:mi>r</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>fd</mml:mtext></mml:mrow></mml:mrow></mml:msubsup></mml:math></inline-formula> are the real-time upward and downward frequency regulation instruction values issued by the grid.</p>
</sec>
<sec id="s3_2_2">
<label>3.2.2</label>
<title>Constraints</title>
<p><list list-type="simple">
<list-item>
<label>(a)</label>
<p>Response to Frequency Regulation Signal Constraints:</p></list-item>
</list></p>
<p>When responding to AGC instructions, the battery swapping station must not exceed its maximum frequency regulation capacity while tracking the frequency regulation commands.</p>
<p><disp-formula id="eqn-44"><label>(44)</label><mml:math id="mml-eqn-44" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mrow><mml:mo>{</mml:mo><mml:mtable columnalign="left" rowspacing="4pt" columnspacing="1em"><mml:mtr><mml:mtd><mml:mn>0</mml:mn><mml:mo>&#x2264;</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>up</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x2264;</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>up</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mo movablelimits="true" form="prefix">max</mml:mo></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:mn>0</mml:mn><mml:mo>&#x2264;</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>down</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x2264;</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>down</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mo movablelimits="true" form="prefix">max</mml:mo></mml:mrow></mml:msubsup></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:munderover><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>up</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x2264;</mml:mo><mml:msubsup><mml:mi>r</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>fu</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:munderover><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>down</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x2264;</mml:mo><mml:msubsup><mml:mi>r</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>fd</mml:mtext></mml:mrow></mml:mrow></mml:msubsup></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>up</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x22C5;</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>down</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:mn>0</mml:mn></mml:mtd></mml:mtr></mml:mtable><mml:mo fence="true" stretchy="true" symmetric="true"></mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p>where: <inline-formula id="ieqn-115"><mml:math id="mml-ieqn-115"><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>down</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mo movablelimits="true" form="prefix">max</mml:mo></mml:mrow></mml:msubsup></mml:math></inline-formula> and <inline-formula id="ieqn-116"><mml:math id="mml-ieqn-116"><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>up</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mo movablelimits="true" form="prefix">max</mml:mo></mml:mrow></mml:msubsup></mml:math></inline-formula> denote the maximum upward and downward frequency regulation of the <italic>i</italic>-th battery at time <italic>t</italic>.</p>
<p>The remaining constraints remain consistent with the day-ahead constraints.</p>
</sec>
</sec>
</sec>
<sec id="s4">
<label>4</label>
<title>Solution Methodology</title>
<sec id="s4_1">
<label>4.1</label>
<title>Linearization of Nonlinear Terms</title>
<p>Since the original model contains nonlinear terms, to ensure that it can be directly and optimally solved by the Gurobi solver, this paper rigorously linearizes all nonlinear terms, achieving exact equivalence with the original model. The specific transformation processes are detailed as follows:<list list-type="simple">
<list-item>
<label>(a)</label>
<p>Linearization of the penalty function</p></list-item>
</list></p>
<p>In the penalty cost term of the day-ahead objective function, expressed as <xref ref-type="disp-formula" rid="eqn-30">Eq. (30)</xref>: <inline-formula id="ieqn-117"><mml:math id="mml-ieqn-117"><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mn>4</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mi>&#x03B2;</mml:mi><mml:munderover><mml:mo movablelimits="false">&#x2211;</mml:mo><mml:mrow><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:munderover><mml:mo movablelimits="true" form="prefix">max</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>P</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>, we introduce a non-negative continuous auxiliary variable <inline-formula id="ieqn-118"><mml:math id="mml-ieqn-118"><mml:msubsup><mml:mi>Z</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>pen</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x2265;</mml:mo><mml:mn>0</mml:mn></mml:math></inline-formula> to linearize it as follows:</p>
<p><disp-formula id="eqn-45"><label>(45)</label><mml:math id="mml-eqn-45" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mn>4</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mi>&#x03B2;</mml:mi><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:munderover><mml:msubsup><mml:mi>Z</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>pen</mml:mtext></mml:mrow></mml:mrow></mml:msubsup></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p>The original nonlinear term is replaced by <inline-formula id="ieqn-119"><mml:math id="mml-ieqn-119"><mml:msubsup><mml:mi>Z</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>pen</mml:mtext></mml:mrow></mml:mrow></mml:msubsup></mml:math></inline-formula>, which is subject to the following linear constraint:</p>
<p><disp-formula id="eqn-46"><label>(46)</label><mml:math id="mml-eqn-46" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:msubsup><mml:mi>Z</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>pen</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x2265;</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mrow><mml:mtext>p</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p>
<p>Since the objective function aims to minimize the total cost, the solver will naturally drive <inline-formula id="ieqn-120"><mml:math id="mml-ieqn-120"><mml:msubsup><mml:mi>Z</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>pen</mml:mtext></mml:mrow></mml:mrow></mml:msubsup></mml:math></inline-formula> down to its tightest lower bound, exactly reflecting the value of the original max function.
<list list-type="simple">
<list-item>
<label>(b)</label>
<p>Linearization of the absolute value in the intraday optimization</p></list-item>
</list></p>
<p>For the intraday penalty term in <xref ref-type="disp-formula" rid="eqn-43">Eq. (43)</xref>: <inline-formula id="ieqn-121"><mml:math id="mml-ieqn-121"><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mrow><mml:mtext>fe</mml:mtext></mml:mrow><mml:mo>.</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mrow><mml:mo>|</mml:mo><mml:munderover><mml:mo movablelimits="false">&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:munderover><mml:mrow><mml:mo>(</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>up</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x2212;</mml:mo><mml:msubsup><mml:mi>r</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>fu</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>+</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>down</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x2212;</mml:mo><mml:msubsup><mml:mi>r</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>fd</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>)</mml:mo></mml:mrow><mml:mo>|</mml:mo></mml:mrow></mml:math></inline-formula> used to evaluate the tracking deviation, to linearize it strictly without any approximation, we introduce a non-negative auxiliary variable <inline-formula id="ieqn-122"><mml:math id="mml-ieqn-122"><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2265;</mml:mo><mml:mn>0</mml:mn></mml:math></inline-formula>, the tracking error is rewritten as:</p>
<p><disp-formula id="eqn-47"><label>(47)</label><mml:math id="mml-eqn-47" display="block"><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mrow><mml:mtext>fe</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></disp-formula>and the following linear constraints are added:</p>
<p><disp-formula id="eqn-48"><label>(48)</label><mml:math id="mml-eqn-48" display="block"><mml:mrow><mml:mo>{</mml:mo><mml:mtable columnalign="left" rowspacing="4pt" columnspacing="1em"><mml:mtr><mml:mtd><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2265;</mml:mo><mml:munderover><mml:mo movablelimits="false">&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:munderover><mml:mrow><mml:mo>(</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>up</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x2212;</mml:mo><mml:msubsup><mml:mi>r</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>fu</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>+</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>down</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x2212;</mml:mo><mml:msubsup><mml:mi>r</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>fd</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2265;</mml:mo><mml:mo>&#x2212;</mml:mo><mml:munderover><mml:mo movablelimits="false">&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:munderover><mml:mrow><mml:mo>(</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>up</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x2212;</mml:mo><mml:msubsup><mml:mi>r</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>fu</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>+</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>down</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x2212;</mml:mo><mml:msubsup><mml:mi>r</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>fd</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable><mml:mo fence="true" stretchy="true" symmetric="true"></mml:mo></mml:mrow></mml:math></disp-formula></p>
<p>Consequently, the non-linear absolute value operation is precisely replaced by a set of equivalent linear inequalities, provided that <inline-formula id="ieqn-123"><mml:math id="mml-ieqn-123"><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mrow><mml:mtext>fe</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is being minimized in the objective function.
<list list-type="simple">
<list-item>
<label>(c)</label>
<p>Linearization of mutually exclusive constraints</p></list-item>
</list></p>
<p>The original <xref ref-type="disp-formula" rid="eqn-36">Eq. (36)</xref>: <inline-formula id="ieqn-124"><mml:math id="mml-ieqn-124"><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x22C5;</mml:mo><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>dis</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mn>0</mml:mn></mml:math></inline-formula> and <xref ref-type="disp-formula" rid="eqn-44">Eq. (44)</xref>: <inline-formula id="ieqn-125"><mml:math id="mml-ieqn-125"><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>up</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x22C5;</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>down</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:mn>0</mml:mn></mml:math></inline-formula> are both nonlinear, mutually exclusive constraints. This is because the physical states of the system dictate that a battery cannot charge and discharge simultaneously, nor can the battery swapping station provide upward and downward frequency regulation at the same time. We linearized these constraints by introducing binary indicator variables and applying the Big-M method:</p>
<p>For the mutually exclusive charging and discharging, a binary variable <inline-formula id="ieqn-126"><mml:math id="mml-ieqn-126"><mml:msub><mml:mi>y</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2208;</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:mn>1</mml:mn><mml:mo>}</mml:mo></mml:mrow></mml:math></inline-formula> is introduced to linearize <inline-formula id="ieqn-127"><mml:math id="mml-ieqn-127"><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x22C5;</mml:mo><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>dis</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mn>0</mml:mn></mml:math></inline-formula> as follows:</p>
<p><disp-formula id="eqn-49"><label>(49)</label><mml:math id="mml-eqn-49" display="block"><mml:mrow><mml:mo>{</mml:mo><mml:mtable columnalign="left" rowspacing="4pt" columnspacing="1em"><mml:mtr><mml:mtd><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mi>y</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>ch</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mo movablelimits="true" form="prefix">max</mml:mo></mml:mrow></mml:msub></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>dis</mml:mtext></mml:mrow></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x2264;</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:mn>1</mml:mn><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>y</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>dis</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mo movablelimits="true" form="prefix">max</mml:mo></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable><mml:mo fence="true" stretchy="true" symmetric="true"></mml:mo></mml:mrow></mml:math></disp-formula></p>
<p>For the mutually exclusive upward and downward frequency regulation capacities, a binary variable <inline-formula id="ieqn-128"><mml:math id="mml-ieqn-128"><mml:msub><mml:mi>u</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2208;</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:mn>1</mml:mn><mml:mo>}</mml:mo></mml:mrow></mml:math></inline-formula> is introduced to linearize <inline-formula id="ieqn-129"><mml:math id="mml-ieqn-129"><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>up</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x22C5;</mml:mo><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>down</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:mn>0</mml:mn></mml:math></inline-formula> as follows:</p>
<p><disp-formula id="eqn-50"><label>(50)</label><mml:math id="mml-eqn-50" display="block"><mml:mrow><mml:mo>{</mml:mo><mml:mtable columnalign="left" rowspacing="4pt" columnspacing="1em"><mml:mtr><mml:mtd><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>i</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mtext>t</mml:mtext></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:mtext>up</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x2264;</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mrow><mml:mtext>i</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mtext>t</mml:mtext></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:mtext>up</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mo movablelimits="true" form="prefix">max</mml:mo></mml:mrow></mml:msubsup></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>down</mml:mtext></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x2264;</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:mn>1</mml:mn><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:msubsup><mml:mi>P</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mtext>down</mml:mtext></mml:mrow><mml:mo>,</mml:mo><mml:mo movablelimits="true" form="prefix">max</mml:mo></mml:mrow></mml:msubsup></mml:mtd></mml:mtr></mml:mtable><mml:mo fence="true" stretchy="true" symmetric="true"></mml:mo></mml:mrow></mml:math></disp-formula></p>
</sec>
<sec id="s4_2">
<label>4.2</label>
<title>Solution Procedure</title>
<p>The proposed two-stage optimal scheduling strategy for the EHDT-BSS involves nonlinear constraints and strong coupling across multiple time scales. To enhance computational tractability and solution efficiency, a hierarchical solution framework integrating day-ahead global optimization and real-time rolling adjustment is developed. The detailed solution procedure is described as follows:</p>
<p>In the day-ahead stage, the scheduling horizon is set to 24 h with an hourly time resolution. Based on the forecasted battery swapping demand and time-of-use electricity prices, the optimization problem is formulated as a mixed-integer linear programming (MILP) model. By solving this model, the optimal charging and discharging schedules of battery packs for each time period, as well as the corresponding frequency regulation capacity to be submitted, are determined. The resulting solution is treated as the baseline dispatch plan for the subsequent real-time operation.</p>
<p>In the real-time stage, a rolling optimization strategy based on model predictive control (MPC) is adopted. With a one-period rolling horizon, the baseline day-ahead schedule is dynamically adjusted according to the realized battery swapping demand and real-time grid frequency regulation signals. This rolling correction mechanism effectively mitigates the adverse economic impacts caused by forecasting errors and improves the operational robustness of the EHDT-BSS.</p>
<p>All simulations are implemented on a Python 3.8 platform, and the proposed optimization models are solved using the Gurobi 9.5 solver.</p>
</sec>
</sec>
<sec id="s5">
<label>5</label>
<title>Case Study</title>
<sec id="s5_1">
<label>5.1</label>
<title>Basic Parameters</title>
<p>The relevant parameters of an actual EHDT-BSS in Deyang City, Sichuan Province, are adopted in this paper as a case study for strategy verification. Approximately 60 EHDTs are served by this swapping station, and these vehicles are assumed to be equipped with identical battery packs. To forecast the battery swapping demand, actual historical swapping order data collected over three consecutive months from this station is utilized. The relevant parameters of the swap station are set as shown in <xref ref-type="table" rid="table-1">Table 1</xref> below:</p>
<table-wrap id="table-1">
<label>Table 1</label>
<caption>
<title>Parameter settings.</title>
</caption>
<table>
<colgroup>
<col align="center"/>
<col align="center"/>
</colgroup>
<thead>
<tr>
<th>Parameter</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>Number of chargers</td>
<td>8</td>
</tr>
<tr>
<td>Number of spare batteries</td>
<td>8</td>
</tr>
<tr>
<td>Battery rated capacity (kWh)</td>
<td>280</td>
</tr>
<tr>
<td>Rated charge/discharge power (kW)</td>
<td>280</td>
</tr>
<tr>
<td>Maximum charge/discharge power (kW)</td>
<td>480</td>
</tr>
<tr>
<td>Charge/discharge efficiency</td>
<td>0.95</td>
</tr>
<tr>
<td>Swapping service fee (CNY/service)</td>
<td>80</td>
</tr>
<tr>
<td>Swapping electricity price (CNY/kWh)</td>
<td>1.0</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>The time-of-use (TOU) electricity data are shown in <xref ref-type="table" rid="table-2">Table 2</xref>.</p>
<table-wrap id="table-2">
<label>Table 2</label>
<caption>
<title>TOU electricity prices.</title>
</caption>
<table>
<colgroup>
<col align="center"/>
<col align="center"/>
<col align="center"/>
</colgroup>
<thead>
<tr>
<th>Period Type</th>
<th>Time Slot</th>
<th>Price (CNY/kWh)</th>
</tr>
</thead>
<tbody>
<tr>
<td>Peak Period</td>
<td>10:00&#x2013;15:00, 18:00&#x2013;21:00</td>
<td>0.8444</td>
</tr>
<tr>
<td>Flat Period</td>
<td>07:00&#x2013;10:00, 15:00&#x2013;18:00, 21:00&#x2013;23:00</td>
<td>0.6397</td>
</tr>
<tr>
<td>Valley Period</td>
<td>00:00&#x2013;07:00, 23:00&#x2013;24:00</td>
<td>0.4430</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s5_2">
<label>5.2</label>
<title>Battery Swapping Demand Forecasting Results</title>
<p>Based on three consecutive months of historical battery swap order data from the station, an LSTM-Attention model was constructed and trained to predict the battery swap demand for the 24-time intervals of the following day. <xref ref-type="fig" rid="fig-5">Fig. 5</xref> shows a comparison between the actual number of swaps and the model predictions for a typical day. It can be observed that the intraday swap demand exhibits a clear bimodal distribution. Driven by the operating patterns of heavy-duty trucks, swapping activities are highly concentrated in the early morning and afternoon [<xref ref-type="bibr" rid="ref-25">25</xref>&#x2013;<xref ref-type="bibr" rid="ref-27">27</xref>], with peaks occurring between 3&#x2013;6 h and 13&#x2013;17 h. The model can capture the trend and timing of the peak periods fairly accurately, although it slightly underestimates the peak magnitudes, and some peaks appear somewhat smoothed. Predictions during off-peak periods are generally consistent with the actual values, without producing significant false high-demand events, indicating the model&#x2019;s strong ability to track intraday trends.</p>
<fig id="fig-5">
<label>Figure 5</label>
<caption>
<title>Prediction results of the LSTM-Attention model.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="EE_79956-fig-5.tif"/>
</fig>
<p>To validate the effectiveness of the adopted approach, a comparative analysis was conducted using a standard LSTM model as a baseline. From the model evaluation metrics in <xref ref-type="table" rid="table-3">Table 3</xref>, the coefficient of determination (R<sup>2</sup>) of the proposed Stacked LSTM-Attention (ATT-SLSTM) model is 0.7880, outperforming the standard LSTM model (0.7425). This indicates that the proposed model can more effectively explain the overall intraday fluctuations in battery swapping demand at the station. Furthermore, the mean absolute error (MAE), root mean square error (RMSE), and mean squared error (MSE) of our model are 0.7083, 0.8898, and 0.7917, respectively. These error metrics are significantly lower than those of the standard LSTM baseline (MAE &#x003D; 0.8135, RMSE &#x003D; 1.0425, MSE &#x003D; 1.0868). Although the RMSE metric obtained by the Stacked LSTM-Attention model is slightly higher than its MAE value, reflecting some remaining prediction deviation during peak battery-swapping periods, the comparison results clearly demonstrate that incorporating the attention mechanism significantly enhances the model&#x2019;s ability to focus on critical historical time steps, thereby substantially reducing prediction errors. Overall, the adopted model can effectively identify peak swapping demand and intraday variation patterns for heavy-duty trucks, providing a sufficiently reliable prediction input to support the subsequent battery scheduling at the swapping station.</p>
<table-wrap id="table-3">
<label>Table 3</label>
<caption>
<title>Model performance evaluation metrics.</title>
</caption>
<table>
<colgroup>
<col align="center"/>
<col align="center"/>
<col align="center"/>
</colgroup>
<thead>
<tr>
<th>Metric</th>
<th>LSTM</th>
<th>ATT-SLSTM</th>
</tr>
</thead>
<tbody>
<tr>
<td>R<sup>2</sup></td>
<td>0.7425</td>
<td>0.7880</td>
</tr>
<tr>
<td>MAE</td>
<td>0.813</td>
<td>0.7083</td>
</tr>
<tr>
<td>RMSE</td>
<td>1.0425</td>
<td>0.8898</td>
</tr>
<tr>
<td>MSE</td>
<td>1.0868</td>
<td>0.7917</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s5_3">
<label>5.3</label>
<title>Two-Stage Optimal Scheduling Results</title>
<sec id="s5_3_1">
<label>5.3.1</label>
<title>Results and Analysis of the Day-Ahead Optimization Strategy</title>
<p>The frequency regulation capacity declared by the BSS is shown in <xref ref-type="fig" rid="fig-6">Fig. 6</xref>. The figure shows the declared upward and downward regulation capacities in each time period and their relationship with the battery swapping demand. As can be observed from <xref ref-type="fig" rid="fig-6">Fig. 6</xref>, the declared upward and downward regulation capacities of the BSS exhibit a clear negative correlation with battery swapping demand. The overall trend indicates that higher battery swapping demand corresponds to lower declared frequency regulation capacity. Conversely, when battery swapping demand is low, a higher regulation capacity is declared to increase revenue from frequency regulation services. For example, during time periods 3 and 4, the swapping demand reaches the daily peak, and the corresponding declared regulation capacities in these two periods are extremely low. During time periods 6 to 11, the swapping demand remains at a relatively low level, and thus the declared regulation capacity stays at a high level. These results verify the flexibility of the proposed day-ahead optimization strategy, which ensures swapping service reliability while increasing economic benefits by allocating more regulation capacity during low-demand periods.</p>
<fig id="fig-6">
<label>Figure 6</label>
<caption>
<title>Declared frequency regulation capacity.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="EE_79956-fig-6.tif"/>
</fig>
<p><xref ref-type="fig" rid="fig-7">Fig. 7</xref> shows the baseline charging schedule of the BSS under multiple constraints, which exhibits a clear stepwise pattern. The system responds to TOU electricity prices by charging at high power during off-peak periods. For instance, the charging power increases significantly during periods 2&#x2013;5 and reaches its daily peak at 05:00, effectively utilizing low-cost electricity and preparing sufficient energy for the morning swapping demand peak. In contrast, charging power is reduced during high-price periods, such as 9&#x2013;10 and 21&#x2013;22, to lower electricity costs. However, the charging strategy is not solely driven by price signals, as it is also constrained by swapping demand and frequency regulation requirements. During high-demand periods, the system performs advanced charging even at higher prices to avoid service interruption penalties, highlighting the trade-off between reliability and economic efficiency. Moreover, the baseline power reserves adequate flexibility for real-time AGC response, enabling coordinated optimization of electricity price arbitrage and ancillary service provision.</p>
<fig id="fig-7">
<label>Figure 7</label>
<caption>
<title>Baseline charging power of the BSS.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="EE_79956-fig-7.tif"/>
</fig>
<p><xref ref-type="fig" rid="fig-8">Fig. 8</xref> illustrates the overall operational profiles of the battery swapping station. <xref ref-type="fig" rid="fig-8">Fig. 8a</xref> presents the total equivalent charging and discharging power of the station, while <xref ref-type="fig" rid="fig-8">Fig. 8b</xref> shows the average SOC of the station at the initial time step. In <xref ref-type="fig" rid="fig-8">Fig. 8a</xref>, the green bars represent the maximum charging power that can be provided by the station in each period. It should be noted that the red bars do not indicate continuous net discharging power; instead, they represent the maximum equivalent discharging power reserved by the station. This capacity comprises the actual power injected into the grid and the reduction in scheduled charging power. In practice, the regulation is primarily achieved by reducing the baseline charging power, and only when the required regulation exceeds the total scheduled charging power in a given period is short-term reverse discharging of batteries additionally employed. Overall, the charging load is shifted forward to low electricity price periods or delayed to flat-price periods along the time dimension, thereby avoiding operation during peak price periods and reducing cost pressure. Meanwhile, this flexibility enables valuable downward frequency regulation capacity to be provided to the grid. For example, during peak price periods (11:00&#x2013;14:00 and 18:00&#x2013;20:00), charging behaviors are shifted forward or delayed, which effectively contributes to system stability by providing downward regulation capacity.</p>
<fig id="fig-8">
<label>Figure 8</label>
<caption>
<title>Operation profile of the BSS.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="EE_79956-fig-8.tif"/>
</fig>
<p><xref ref-type="fig" rid="fig-8">Fig. 8b</xref> presents the overall SOC profile of the station along with the number of batteries reserved for participation in discharging. To prioritize the battery swapping demand of heavy-duty trucks, only a limited number of batteries are scheduled to participate in V2G discharging. Throughout the day, the station&#x2019;s overall SOC is maintained within the range of 40%&#x2013;90%. During peak swapping periods (e.g., Periods 3 and 4), a high SOC is maintained, and no frequency regulation discharging service is provided. In contrast, during low swapping demand periods when upward regulation is required by the grid (e.g., Periods 18 and 19), support is provided through reduced charging power and limited short-term battery discharging, during which the overall SOC decreases but remains above 50%. In general, the optimized strategy effectively shifts the charging load to non-peak electricity price periods, thereby reducing operational costs while simultaneously ensuring both the battery swapping demand for heavy-duty trucks and reliable frequency regulation support for the grid.</p>
<p>As shown in <xref ref-type="table" rid="table-4">Table 4</xref>, the revenues of the battery swapping station before and after optimization are compared. In the day-ahead optimized scenario, the station obtains 4278.35 CNY from frequency regulation services. Although electricity purchasing costs increase, the ancillary service revenue offsets the additional cost, resulting in a net profit of 8960.75 CNY. In contrast, the non-optimized scenario has lower charging costs (3971.45 CNY) but no regulation revenue, leading to lower overall profit. These results indicate that the proposed frequency regulation participation strategy can significantly improve the economic performance of the battery swapping station.</p>
<table-wrap id="table-4">
<label>Table 4</label>
<caption>
<title>Comparative analysis of the unoptimized scenario and day-ahead optimization results.</title>
</caption>
<table>
<colgroup>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/> </colgroup>
<thead>
<tr>
<th>Scenario</th>
<th>Electricity Procurement Cost (CNY)</th>
<th>Regulation Capacity Revenue (CNY)</th>
<th>Regulation Mileage Revenue (CNY)</th>
<th>Swapping Service Revenue (CNY)</th>
<th>Net Profit (CNY)</th>
</tr>
</thead>
<tbody>
<tr>
<td>Unoptimized</td>
<td>3971.45</td>
<td>0</td>
<td>0</td>
<td>10,368.00</td>
<td>6396.55</td>
</tr>
<tr>
<td>Day-ahead</td>
<td>5685.60</td>
<td>1109.15</td>
<td>3169.20</td>
<td>10,368.00</td>
<td>8960.75</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>To verify the economic adaptability of the proposed framework, a sensitivity analysis on regulation prices is conducted in this section. With other parameters kept constant, the baseline prices (0.035 CNY/kW for regulation capacity and 0.05 CNY/kW for mileage) are scaled by &#x00B1;40%, respectively. The results are summarized in <xref ref-type="table" rid="table-5">Table 5</xref>.</p>
<table-wrap id="table-5">
<label>Table 5</label>
<caption>
<title>Revenue comparison under different frequency regulation service prices.</title>
</caption>
<table>
<colgroup>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
</colgroup>
<thead>
<tr>
<th>Regulation Capacity Price (CNY/kW)</th>
<th>Regulation Mileage Price (CNY/kW)</th>
<th>Electricity Procurement Cost (CNY)</th>
<th>Regulation Capacity Revenue (CNY)</th>
<th>Regulation Mileage Revenue (CNY)</th>
<th>Swapping Service Revenue (CNY)</th>
<th>Net Profit (CNY)</th>
</tr>
</thead>
<tbody>
<tr>
<td>0.021</td>
<td>0.030</td>
<td>5515.03</td>
<td>643.67</td>
<td>1916.29</td>
<td>10,368.00</td>
<td>7412.93</td>
</tr>
<tr>
<td>0.035</td>
<td>0.05</td>
<td>5685.60</td>
<td>1109.15</td>
<td>3169.20</td>
<td>10,368.00</td>
<td>8960.75</td>
</tr>
<tr>
<td>0.049</td>
<td>0.070</td>
<td>5827.74</td>
<td>1739.15</td>
<td>4968.91</td>
<td>10,368.00</td>
<td>11,248.32</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>The data indicate that price signals are effectively responded to by the proposed model. As regulation compensation increases, the scheduling priority is tilted toward ancillary services. In the scenario with higher regulation prices, although the procurement cost slightly rises to 5827.74 CNY due to the enhancement of regulation capacity, the total profit increases by approximately 25.5%. Conversely, when the regulation prices decrease, the declared capacity is reduced by the model to focus on minimizing procurement costs via peak-valley price differentials. Throughout all scenarios, the swapping service revenue remains constant, validating the strategy&#x2019;s capability in prioritizing swapping demand while flexibly allocating resources and synergistically optimizing multi-objective revenues.</p>
</sec>
<sec id="s5_3_2">
<label>5.3.2</label>
<title>Results and Analysis of the Intra-Day Optimization Strategy</title>
<p>Due to the uncertainty of user swapping demand, although day-ahead forecasting is performed, there are inevitable deviations between the actual number of battery swaps and the predicted results. In addition, the real-time AGC signals issued by the grid may also differ from the day-ahead AGC signals. Therefore, intraday real-time adjustments are required. Through the battery scheduling strategy and intraday optimization, the charging and discharging power of the station&#x2019;s battery system is adjusted to rapidly respond to AGC signals while ensuring user swapping demand, thereby ensuring close consistency between the regulation market response and the actual AGC commands.</p>
<p>As shown in <xref ref-type="fig" rid="fig-9">Fig. 9</xref>, the battery swapping station is able to effectively track the AGC signal during most periods, with the actual regulation power closely following the command curve, demonstrating good dynamic response and tracking performance. However, during the period of 18:00&#x2013;19:00, the regulation output decreases to a certain extent, leading to deviations in responding to upward regulation commands. This is mainly due to the significantly increased swapping demand during 16:00&#x2013;17:00, which reduces the available battery resources for frequency regulation as the system prioritizes the reliability of swapping services, thereby limiting the regulation capability in subsequent periods. This phenomenon indicates a trade-off between battery swapping service provision and frequency regulation performance, while also demonstrating the adaptability of the proposed strategy in dynamically allocating battery resources under different operating conditions.</p>
<fig id="fig-9">
<label>Figure 9</label>
<caption>
<title>Real-time response of the battery swapping station to AGC signals.</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="EE_79956-fig-9.tif"/>
</fig>
<p><xref ref-type="table" rid="table-6">Table 6</xref> presents a comparison of the revenue results of the battery swapping station after day-ahead and intraday optimization. It can be observed that the net profit in the intraday stage is 8223.46 CNY, which is only reduced by 8.23% compared with the day-ahead plan but increased by 28.56% compared with the unoptimized system. This verifies the economic stability of the proposed model in real-time operation. Due to the uncertainty of user swapping behavior, the intraday adjustment strategy prioritizes swapping service reliability by reducing real-time frequency regulation capacity, resulting in a decrease in total regulation revenue to 3796.98 CNY and the introduction of certain penalty costs. However, this strategy successfully avoids the risk of energy replenishment shortages caused by a sudden increase in vehicle arrivals, and the overall revenue of the battery swapping station remains considerable.</p>
<table-wrap id="table-6">
<label>Table 6</label>
<caption>
<title>Comparison between day-ahead scheduling plan and intra-day operational results.</title>
</caption>
<table>
<colgroup>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/> </colgroup>
<thead>
<tr>
<th>Scenario</th>
<th>Electricity Procurement Cost (CNY)</th>
<th>Regulation Capacity Revenue (CNY)</th>
<th>Regulation Mileage Revenue (CNY)</th>
<th>Swapping Service Revenue (CNY)</th>
<th>Penalty (CNY)</th>
<th>Net Profit (CNY)</th>
</tr>
</thead>
<tbody>
<tr>
<td>Day-ahead</td>
<td>5685.60</td>
<td>1109.15</td>
<td>3169.20</td>
<td>10,368.00</td>
<td>0</td>
<td>8960.75</td>
</tr>
<tr>
<td>Intra-day</td>
<td>5913.02</td>
<td>998.24</td>
<td>2798.74</td>
<td>10,560.00</td>
<td>220.50</td>
<td>8223.46</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
</sec>
<sec id="s5_4">
<label>5.4</label>
<title>Potential Impacts and Sensitivity Discussion of Battery Degradation</title>
<p>The increased charging and discharging operations for providing grid frequency regulation services may accelerate battery degradation, which in turn affects the long-term economics of the EHDT-BSS. This study did not explicitly incorporate battery degradation costs into the objective function, aiming to focus on validating the effectiveness of the proposed two-stage optimal scheduling strategy while maintaining the model&#x2019;s computational efficiency. Nevertheless, this section provides a quantitative and qualitative analysis of the potential impacts of battery degradation, combining battery life characteristics with economic sensitivity.</p>
<p>According to the GB/T 31484-2015 standard, a traction battery is considered to have reached its end-of-life threshold when its discharge capacity degrades to 80% of the initial rated capacity. The lithium iron phosphate batteries widely used in current EHDTs typically have a standard cycle life of 3500 to 5000 equivalent full cycles. In the scheduling strategy proposed in this paper, the SOC is strictly limited within a safe operating range of 30% to 90%. This effectively avoids irreversible damage such as deep over-discharging at low SOC levels and overcharge-induced lithium plating at high SOC levels. Based on calculations, the equivalent full cycles of the batteries under this strategy are approximately 400&#x2013;500 times per year. The converted service life until reaching 80% of the rated capacity is about 5 to 8 years, which is basically consistent with the natural calendar life of the batteries.</p>
<p>Economically, existing studies have confirmed that battery degradation under scientific scheduling is controllable, and the additional revenue generated from grid ancillary services is sufficient to offset the annualized battery amortization costs caused by the increased charging and discharging frequency [<xref ref-type="bibr" rid="ref-28">28</xref>]. Therefore, under the premise of reasonable SOC boundary management, the strategy proposed in this paper possesses strong engineering practical value. Future work will explore introducing a linearized energy-throughput-based degradation cost into the model framework to achieve a comprehensive co-optimization of battery life and operational revenue.</p>
</sec>
</sec>
<sec id="s6">
<label>6</label>
<title>Conclusion</title>
<p>This paper establishes a two-stage optimal scheduling model for electric heavy-duty truck battery swapping stations participating in grid frequency regulation and proposes a coordinated operation strategy considering the uncertainty of battery swapping demand. Based on comparative simulation analysis, the following conclusions are drawn.
<list list-type="simple">
<list-item>
<label>(1)</label>
<p>The SOC-based battery classification method and scheduling strategy can effectively integrate the internal battery resources of the swapping station. While ensuring the reliability of heavy-duty truck battery swapping services, the station can rapidly respond to AGC frequency regulation signals, fully utilizing its flexibility potential as a regulation resource. This enables the coordinated operation of swapping services and ancillary services and improves the economic benefits of the swapping station by participating in the frequency regulation service.</p></list-item>
<list-item>
<label>(2)</label>
<p>A coupling relationship exists between battery swapping demand and frequency regulation capacity. By optimizing the declaration of regulation capacity and the allocation of charging and discharging power, the swapping station can dynamically release its regulation capability while guaranteeing service reliability, thereby improving the tracking accuracy of AGC signals and frequency regulation performance, and enhancing the operational stability of the power grid.</p></list-item>
<list-item>
<label>(3)</label>
<p>The proposed two-stage optimal scheduling framework can effectively improve the benefits of the swapping station and mitigate deviations between the day-ahead optimal results and real-time operation. This ensures consistency between actual operation and the day-ahead optimal plan, and improves the economic performance and robustness of the scheduling strategy under uncertain operating conditions.</p></list-item>
</list></p>
<p>In summary, the proposed two-stage optimization framework based on SOC classification demonstrates strong scalability and engineering application feasibility. Through rigorous linearization, the model maintains high computational efficiency even when scaled up to larger BSS scenarios. Simultaneously, the highly compatible SOC-based classification mechanism can flexibly accommodate complex real-world operating conditions&#x2014;such as battery heterogeneity and time-varying charging power&#x2014;without altering the core architecture. However, this study has certain limitations: the current model does not explicitly incorporate non-linear battery degradation costs into the objective function, which somewhat simplifies the long-term economic assessment of the system. Additionally, certain simplifications were made regarding battery heterogeneity and charging power limits. Therefore, future research could introduce a linearized energy-throughput-based degradation cost into the modeling framework. By incorporating SOC-dependent dynamic power boundaries and integrating battery SOH assessment indicators, future work will further refine battery classification and boundary constraints, thereby enhancing the practical value and robustness of the proposed strategy in complex and dynamic grid environments.</p>
</sec>
</body>
<back>
<ack>
<p>All authors express gratitude for the support and cooperation provided by their respective institutions.</p>
</ack>
<sec>
<title>Funding Statement</title>
<p>This research was supported by Science and Technology Project of State Grid Sichuan Electric Power Company, titled &#x201C;Research on Market Mechanisms and Operational Strategies for Vehicle-Grid Interaction Adapted to Spatiotemporal Supply-Demand Balance Needs in Sichuan&#x201D; (No. 52199925000M).</p>
</sec>
<sec>
<title>Author Contributions</title>
<p>Xin Li: Conceptualization, Methodology, Formal analysis, Software development; Shuang Shi: Data curation, Validation, Review and editing; Qiyi Liu: Formal analysis, Software development; Yan Zhang: Data curation, Validation. All authors reviewed and approved the final version of the manuscript.</p>
</sec>
<sec sec-type="data-availability">
<title>Availability of Data and Materials</title>
<p>All data generated or analyzed during this study are included in this published article.</p>
</sec>
<sec>
<title>Ethics Approval</title>
<p>This study did not involve human participants or animals, and therefore ethical approval was not required.</p>
</sec>
<sec sec-type="COI-statement">
<title>Conflicts of Interest</title>
<p>The authors declare no conflicts of interest.</p>
</sec>
<ref-list content-type="authoryear">
<title>References</title>
<ref id="ref-1"><label>[1]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Zhong</surname> <given-names>Z</given-names></string-name>, <string-name><surname>Chen</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Fu</surname> <given-names>M</given-names></string-name>, <string-name><surname>Li</surname> <given-names>M</given-names></string-name>, <string-name><surname>Yang</surname> <given-names>K</given-names></string-name>, <string-name><surname>Zeng</surname> <given-names>L</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Role of CO<sub>2</sub> geological storage in China&#x2019;s pledge to carbon peak by 2030 and carbon neutrality by 2060</article-title>. <source>Energy</source>. <year>2023</year>;<volume>272</volume>(<issue>1</issue>):<fpage>127165</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.energy.2023.127165</pub-id>.</mixed-citation></ref>
<ref id="ref-2"><label>[2]</label><mixed-citation publication-type="book"><person-group person-group-type="author"><collab>International Energy Agency</collab></person-group>. <source>Global EV outlook 2024</source>. <publisher-loc>Paris, France</publisher-loc>: <publisher-name>IEA</publisher-name>; <year>2024</year>.</mixed-citation></ref>
<ref id="ref-3"><label>[3]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Cao</surname> <given-names>X</given-names></string-name>, <string-name><surname>Jin</surname> <given-names>C</given-names></string-name>, <string-name><surname>Liu</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Guo</surname> <given-names>P</given-names></string-name>, <string-name><surname>Qu</surname> <given-names>Z</given-names></string-name></person-group>. <article-title>Research on capacity optimization configuration of modular battery swap stations for electric heavy-duty trucks in railway construction scenarios</article-title>. In: <conf-name>Proceedings of the 2024 Boao New Power System International Forum&#x2014;Power System and New Energy Technology Innovation Forum (NPSIF); 2024 Dec 8&#x2013;10</conf-name>; <publisher-loc>Qionghai, China</publisher-loc>. p. <fpage>651</fpage>&#x2013;<lpage>6</lpage>.</mixed-citation></ref>
<ref id="ref-4"><label>[4]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Wu</surname> <given-names>H</given-names></string-name></person-group>. <article-title>A survey of battery swapping stations for electric vehicles: operation modes and decision scenarios</article-title>. <source>IEEE Trans Intell Transp Syst</source>. <year>2022</year>;<volume>23</volume>(<issue>8</issue>):<fpage>10163</fpage>&#x2013;<lpage>85</lpage>. doi:<pub-id pub-id-type="doi">10.1109/TITS.2021.3125861</pub-id>; <pub-id pub-id-type="pmid">25079929</pub-id></mixed-citation></ref>
<ref id="ref-5"><label>[5]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Alhazmi</surname> <given-names>YA</given-names></string-name></person-group>. <article-title>Electric vehicle battery swap stations: an overview and critical review</article-title>. <source>J Umm Al Qura Univ Eng Archit</source>. <year>2025</year>. doi:<pub-id pub-id-type="doi">10.1007/s43995-025-00215-z</pub-id>.</mixed-citation></ref>
<ref id="ref-6"><label>[6]</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><surname>Mohanty</surname> <given-names>PK</given-names></string-name>, <string-name><surname>Pradhan</surname> <given-names>R</given-names></string-name>, <string-name><surname>Jena</surname> <given-names>P</given-names></string-name>, <string-name><surname>Padhy</surname> <given-names>NP</given-names></string-name></person-group>. <chapter-title>Renewable energy-based EV battery swapping stations: opportunities and future directions</chapter-title>. In: <source>Hybrid renewable power infrastructure for sustainable electric vehicle development</source>. <publisher-loc>Singapore</publisher-loc>: <publisher-name>Springer Nature Singapore</publisher-name>; <year>2025</year>. p. <fpage>141</fpage>&#x2013;<lpage>68</lpage>.</mixed-citation></ref>
<ref id="ref-7"><label>[7]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Yang</surname> <given-names>H</given-names></string-name>, <string-name><surname>Guo</surname> <given-names>C</given-names></string-name>, <string-name><surname>Ren</surname> <given-names>J</given-names></string-name>, <string-name><surname>Sheng</surname> <given-names>J</given-names></string-name></person-group>. <article-title>A coordinated charging strategy on battery swapping station in microgrid considering battery to grid</article-title>. In: <conf-name>Proceedings of the 2019 IEEE Innovative Smart Grid Technologies-Asia (ISGT Asia); 2019 May 21&#x2013;24</conf-name>; <publisher-loc>Chengdu, China</publisher-loc>. p. <fpage>3322</fpage>&#x2013;<lpage>6</lpage>.</mixed-citation></ref>
<ref id="ref-8"><label>[8]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Wu</surname> <given-names>X</given-names></string-name>, <string-name><surname>Liu</surname> <given-names>P</given-names></string-name>, <string-name><surname>Lu</surname> <given-names>X</given-names></string-name></person-group>. <article-title>Study on operating cost economy of battery-swapping heavy-duty truck in China</article-title>. <source>World Electr Veh J</source>. <year>2021</year>;<volume>12</volume>(<issue>3</issue>):<fpage>144</fpage>. doi:<pub-id pub-id-type="doi">10.3390/wevj12030144</pub-id>.</mixed-citation></ref>
<ref id="ref-9"><label>[9]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Wang</surname> <given-names>R</given-names></string-name>, <string-name><surname>Martinez</surname> <given-names>A</given-names></string-name>, <string-name><surname>Allybokus</surname> <given-names>Z</given-names></string-name>, <string-name><surname>Zeng</surname> <given-names>W</given-names></string-name>, <string-name><surname>Obrecht</surname> <given-names>N</given-names></string-name>, <string-name><surname>Moura</surname> <given-names>S</given-names></string-name></person-group>. <article-title>Electrifying heavy-duty trucks: battery-swapping versus fast charging</article-title>. <source>IEEE Trans Smart Grid</source>. <year>2025</year>;<volume>16</volume>(<issue>5</issue>):<fpage>3989</fpage>&#x2013;<lpage>4003</lpage>. doi:<pub-id pub-id-type="doi">10.1109/TSG.2025.3571819</pub-id>; <pub-id pub-id-type="pmid">25079929</pub-id></mixed-citation></ref>
<ref id="ref-10"><label>[10]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>&#x00C7;abukoglu</surname> <given-names>E</given-names></string-name>, <string-name><surname>Georges</surname> <given-names>G</given-names></string-name>, <string-name><surname>K&#x00FC;ng</surname> <given-names>L</given-names></string-name>, <string-name><surname>Pareschi</surname> <given-names>G</given-names></string-name>, <string-name><surname>Boulouchos</surname> <given-names>K</given-names></string-name></person-group>. <article-title>Battery electric propulsion: an option for heavy-duty vehicles? Results from a Swiss case-study</article-title>. <source>Transp Res Part C Emerg Technol</source>. <year>2018</year>;<volume>88</volume>(<issue>5</issue>):<fpage>107</fpage>&#x2013;<lpage>23</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.trc.2018.01.013</pub-id>.</mixed-citation></ref>
<ref id="ref-11"><label>[11]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Shi</surname> <given-names>P</given-names></string-name>, <string-name><surname>Ni</surname> <given-names>G</given-names></string-name>, <string-name><surname>Jin</surname> <given-names>R</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>H</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>J</given-names></string-name>, <string-name><surname>Sun</surname> <given-names>Z</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Multi-timescale battery-charging optimization for electric heavy-duty truck battery-swapping stations, considering source&#x2013;load&#x2013;storage uncertainty</article-title>. <source>Energies</source>. <year>2025</year>;<volume>18</volume>(<issue>2</issue>):<fpage>241</fpage>. doi:<pub-id pub-id-type="doi">10.3390/en18020241</pub-id>.</mixed-citation></ref>
<ref id="ref-12"><label>[12]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Song</surname> <given-names>C</given-names></string-name>, <string-name><surname>Huang</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Xu</surname> <given-names>J</given-names></string-name>, <string-name><surname>Deng</surname> <given-names>X</given-names></string-name></person-group>. <article-title>Optimal scheduling model of battery swapping station with virtual power plant mode</article-title>. In: <conf-name>Proceedings of the 2024 IEEE 4th International Conference on Power, Electronics and Computer Applications (ICPECA); 2024 Jan 26&#x2013;28</conf-name>; <publisher-loc>Shenyang, China</publisher-loc>. p. <fpage>648</fpage>&#x2013;<lpage>55</lpage>.</mixed-citation></ref>
<ref id="ref-13"><label>[13]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Choi</surname> <given-names>DI</given-names></string-name>, <string-name><surname>Lim</surname> <given-names>DE</given-names></string-name></person-group>. <article-title>Analysis of the state-dependent queueing model and its application to battery swapping and charging stations</article-title>. <source>Sustainability</source>. <year>2020</year>;<volume>12</volume>(<issue>6</issue>):<fpage>2343</fpage>. doi:<pub-id pub-id-type="doi">10.3390/su12062343</pub-id>.</mixed-citation></ref>
<ref id="ref-14"><label>[14]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Wang</surname> <given-names>FY</given-names></string-name>, <string-name><surname>Chen</surname> <given-names>Z</given-names></string-name>, <string-name><surname>Hu</surname> <given-names>Z</given-names></string-name></person-group>. <article-title>Comprehensive optimization of electrical heavy-duty truck battery swap stations with a SOC-dependent charge scheduling method</article-title>. <source>Energy</source>. <year>2024</year>;<volume>308</volume>(<issue>4</issue>):<fpage>132773</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.energy.2024.132773</pub-id>.</mixed-citation></ref>
<ref id="ref-15"><label>[15]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Su</surname> <given-names>X</given-names></string-name>, <string-name><surname>Li</surname> <given-names>W</given-names></string-name>, <string-name><surname>Li</surname> <given-names>X</given-names></string-name></person-group>. <article-title>Research on ordered charging of battery swapping station based on adaptive genetic algorithm</article-title>. In: <conf-name>Proceedings of the 2019 IEEE Sustainable Power and Energy Conference (iSPEC); 2019 Nov 21&#x2013;23</conf-name>; <publisher-loc>Beijing, China</publisher-loc>. p. <fpage>792</fpage>&#x2013;<lpage>6</lpage>.</mixed-citation></ref>
<ref id="ref-16"><label>[16]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Wu</surname> <given-names>H</given-names></string-name>, <string-name><surname>Pang</surname> <given-names>GK</given-names></string-name>, <string-name><surname>Choy</surname> <given-names>KL</given-names></string-name>, <string-name><surname>Lam</surname> <given-names>HY</given-names></string-name></person-group>. <article-title>A charging-scheme decision model for electric vehicle battery swapping station using varied population evolutionary algorithms</article-title>. <source>Appl Soft Comput</source>. <year>2017</year>;<volume>61</volume>(<issue>2</issue>):<fpage>905</fpage>&#x2013;<lpage>20</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.asoc.2017.09.008</pub-id>.</mixed-citation></ref>
<ref id="ref-17"><label>[17]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Tang</surname> <given-names>M</given-names></string-name>, <string-name><surname>Zhang</surname> <given-names>C</given-names></string-name>, <string-name><surname>Zhang</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Yan</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>W</given-names></string-name>, <string-name><surname>An</surname> <given-names>B</given-names></string-name></person-group>. <article-title>A dual-layer MPC of coordinated control of battery load demand and grid-side supply matching at electric vehicle swapping stations</article-title>. <source>Energies</source>. <year>2024</year>;<volume>17</volume>(<issue>4</issue>):<fpage>879</fpage>. doi:<pub-id pub-id-type="doi">10.3390/en17040879</pub-id>.</mixed-citation></ref>
<ref id="ref-18"><label>[18]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Hu</surname> <given-names>L</given-names></string-name>, <string-name><surname>Yue</surname> <given-names>F</given-names></string-name></person-group>. <article-title>Research on intelligent peak-cutting and valley-filling charging and swapping mode based on potential game theory</article-title>. <source>J Phys Conf Ser</source>. <year>2022</year>;<volume>2189</volume>(<issue>1</issue>):<fpage>012013</fpage>.</mixed-citation></ref>
<ref id="ref-19"><label>[19]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Feng</surname> <given-names>J</given-names></string-name>, <string-name><surname>Hou</surname> <given-names>S</given-names></string-name>, <string-name><surname>Yu</surname> <given-names>L</given-names></string-name>, <string-name><surname>Dimov</surname> <given-names>N</given-names></string-name>, <string-name><surname>Zheng</surname> <given-names>P</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>C</given-names></string-name></person-group>. <article-title>Optimization of photovoltaic battery swapping station based on weather/traffic forecasts and speed variable charging</article-title>. <source>Appl Energy</source>. <year>2020</year>;<volume>264</volume>:<fpage>114708</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.apenergy.2020.114708</pub-id>.</mixed-citation></ref>
<ref id="ref-20"><label>[20]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Revankar</surname> <given-names>SR</given-names></string-name>, <string-name><surname>Kalkhambkar</surname> <given-names>VN</given-names></string-name></person-group>. <article-title>Grid integration of battery swapping station: a review</article-title>. <source>J Energy Storage</source>. <year>2021</year>;<volume>41</volume>(<issue>4</issue>):<fpage>102937</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.est.2021.102937</pub-id>.</mixed-citation></ref>
<ref id="ref-21"><label>[21]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Wang</surname> <given-names>Z</given-names></string-name>, <string-name><surname>Hou</surname> <given-names>S</given-names></string-name></person-group>. <article-title>Optimal participation of battery swapping stations in frequency regulation market considering uncertainty</article-title>. <source>Energy</source>. <year>2024</year>;<volume>302</volume>:<fpage>131815</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.energy.2024.131815</pub-id>.</mixed-citation></ref>
<ref id="ref-22"><label>[22]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Wang</surname> <given-names>X</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>J</given-names></string-name>, <string-name><surname>Liu</surname> <given-names>J</given-names></string-name></person-group>. <article-title>Vehicle to grid frequency regulation capacity optimal scheduling for battery swapping station using deep Q-network</article-title>. <source>IEEE Trans Ind Inform</source>. <year>2021</year>;<volume>17</volume>(<issue>2</issue>):<fpage>1342</fpage>&#x2013;<lpage>51</lpage>. doi:<pub-id pub-id-type="doi">10.1109/TII.2020.2993858</pub-id>; <pub-id pub-id-type="pmid">25079929</pub-id></mixed-citation></ref>
<ref id="ref-23"><label>[23]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Yang</surname> <given-names>N</given-names></string-name>, <string-name><surname>Zhao</surname> <given-names>X</given-names></string-name>, <string-name><surname>Li</surname> <given-names>J</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>J</given-names></string-name>, <string-name><surname>Jiang</surname> <given-names>H</given-names></string-name>, <string-name><surname>Zhang</surname> <given-names>S</given-names></string-name></person-group>. <article-title>Secondary frequency regulation strategy for battery swapping stations considering the behavioral model of electric vehicles</article-title>. <source>Electronics</source>. <year>2025</year>;<volume>14</volume>(<issue>8</issue>):<fpage>1598</fpage>. doi:<pub-id pub-id-type="doi">10.3390/electronics14081598</pub-id>.</mixed-citation></ref>
<ref id="ref-24"><label>[24]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Romdlony</surname> <given-names>MZ</given-names></string-name>, <string-name><surname>Khayr</surname> <given-names>RA</given-names></string-name>, <string-name><surname>Muharam</surname> <given-names>A</given-names></string-name>, <string-name><surname>Priandana</surname> <given-names>ER</given-names></string-name>, <string-name><surname>Sasmono</surname> <given-names>S</given-names></string-name>, <string-name><surname>Rosa</surname> <given-names>MR</given-names></string-name>, <etal>et al.</etal></person-group> <article-title>LSTM-based forecasting on electric vehicles battery swapping demand: addressing infrastructure challenge in Indonesia</article-title>. <source>J Mechatron Electr Power Veh Technol</source>. <year>2023</year>;<volume>14</volume>(<issue>1</issue>):<fpage>72</fpage>&#x2013;<lpage>9</lpage>. doi:<pub-id pub-id-type="doi">10.14203/j.mev.2023.v14.72-79</pub-id>.</mixed-citation></ref>
<ref id="ref-25"><label>[25]</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><surname>Wang</surname> <given-names>Z</given-names></string-name></person-group>. <chapter-title>Battery-swapping battery electric vehicles</chapter-title>. In: <source>Annual report on the big data of new energy vehicle in China (2023)</source>. <publisher-loc>Singapore</publisher-loc>: <publisher-name>Springer Nature Singapore</publisher-name>; <year>2024</year>. p. <fpage>211</fpage>&#x2013;<lpage>53</lpage>.</mixed-citation></ref>
<ref id="ref-26"><label>[26]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Walz</surname> <given-names>K</given-names></string-name>, <string-name><surname>Rudion</surname> <given-names>K</given-names></string-name></person-group>. <article-title>Charging profile modeling of electric trucks at logistics centers</article-title>. <source>Energies</source>. <year>2024</year>;<volume>17</volume>(<issue>22</issue>):<fpage>5613</fpage>. doi:<pub-id pub-id-type="doi">10.3390/en17225613</pub-id>.</mixed-citation></ref>
<ref id="ref-27"><label>[27]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Song</surname> <given-names>S</given-names></string-name>, <string-name><surname>Qiu</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Coates</surname> <given-names>R</given-names></string-name>, <string-name><surname>Dobbelaere</surname> <given-names>C</given-names></string-name>, <string-name><surname>Seles</surname> <given-names>P</given-names></string-name></person-group>. <article-title>Depot charging schedule optimization for medium- and heavy-duty battery-electric trucks</article-title>. <source>World Electr Veh J</source>. <year>2024</year>;<volume>15</volume>(<issue>8</issue>):<fpage>379</fpage>. doi:<pub-id pub-id-type="doi">10.3390/wevj15080379</pub-id>.</mixed-citation></ref>
<ref id="ref-28"><label>[28]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Calearo</surname> <given-names>L</given-names></string-name>, <string-name><surname>Marinelli</surname> <given-names>M</given-names></string-name></person-group>. <article-title>Profitability of frequency regulation by electric vehicles in Denmark and Japan considering battery degradation costs</article-title>. <source>World Electr Veh J</source>. <year>2020</year>;<volume>11</volume>(<issue>3</issue>):<fpage>48</fpage>. doi:<pub-id pub-id-type="doi">10.3390/wevj11030048</pub-id>.</mixed-citation></ref>
</ref-list>
</back></article>