<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.4 20241031//EN" "JATS-journalpublishing1-4.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="1.4" xml:lang="en">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">jpee</journal-id>
      <journal-title-group>
        <journal-title>Journal of Power and Energy Engineering</journal-title>
      </journal-title-group>
      <issn pub-type="epub">2327-5901</issn>
      <issn pub-type="ppub">2327-588X</issn>
      <publisher>
        <publisher-name>Scientific Research Publishing</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.4236/jpee.2026.1410002</article-id>
      <article-id pub-id-type="publisher-id">jpee-154779</article-id>
      <article-categories>
        <subj-group>
          <subject>Article</subject>
        </subj-group>
        <subj-group>
          <subject>Engineering</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>Tariff-Based Strategy of Energy Storage System Allocation at University Technical Malaysia Melaka with Solar Photovoltaic Systems</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <name name-style="western">
            <surname>Sardi</surname>
            <given-names>Junainah</given-names>
          </name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <name name-style="western">
            <surname>Sulaima</surname>
            <given-names>Mohamad Fani</given-names>
          </name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <name name-style="western">
            <surname>Suboh</surname>
            <given-names>Surina Mat</given-names>
          </name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
      </contrib-group>
      <aff id="aff1"><label>1</label> Faculty of Electrical Engineering and Technology, Universiti Teknikal Malaysia Melaka, Melaka, Malaysia </aff>
      <aff id="aff2"><label>2</label> Faculty of Electrical Engineering and Technology, Universiti Malaysia Perlis, Perlis, Malaysia </aff>
      <author-notes>
        <fn fn-type="conflict" id="fn-conflict">
          <p>The authors declare no conflicts of interest regarding the publication of this paper.</p>
        </fn>
      </author-notes>
      <pub-date pub-type="epub">
        <day>13</day>
        <month>10</month>
        <year>2026</year>
      </pub-date>
      <pub-date pub-type="collection">
        <month>10</month>
        <year>2026</year>
      </pub-date>
      <volume>14</volume>
      <issue>10</issue>
      <fpage>13</fpage>
      <lpage>33</lpage>
      <history>
        <date date-type="received">
          <day>28</day>
          <month>09</month>
          <year>2026</year>
        </date>
        <date date-type="accepted">
          <day>23</day>
          <month>10</month>
          <year>2026</year>
        </date>
        <date date-type="published">
          <day>26</day>
          <month>10</month>
          <year>2026</year>
        </date>
      </history>
      <permissions>
        <copyright-statement>© 2026 by the authors and Scientific Research Publishing Inc.</copyright-statement>
        <copyright-year>2026</copyright-year>
        <license license-type="open-access">
          <license-p> This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license ( <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link> ). </license-p>
        </license>
      </permissions>
      <self-uri content-type="doi" xlink:href="https://doi.org/10.4236/jpee.2026.1410002">https://doi.org/10.4236/jpee.2026.1410002</self-uri>
      <abstract>
        <p>The increasing demand for reliable and sustainable energy solutions has prompted a surge in the rapid deployment of renewable energy and Energy Storage Systems (ESS). This study presents a tariff-based strategy of ESS allocation at commercial buildings with solar PV in Malaysia. This involves determining the optimal dispatch power and size of ESS for a Universiti Teknikal Malaysia Melaka (UTeM), considering various PV penetration levels and electricity tariffs. An effective ESS dispatch strategy is proposed to minimize electricity cost through maximum demand reduction, charging excess PV generation and maximizing the daily shifted energy from peak period to off-peak period. The strategy incorporates an iterative algorithm to determine daily charge and discharge thresholds, leading to a flattened demand profile. A Cost and Benefit Analysis—based optimization approach is utilized to identify the optimal capacity of ESS for maximizing the total Net Present Value (NPV) of ESS investment considering the strategic ESS scheduling. Numerical results express that the proposed strategy able to effectively dispatch and size ESS for maximizing the total profits of ESS investment. Maximum NPV is obtained when ESS of 6MW/37MWh is integrated in UTeM building with 0% PV penetration level under Time-of-Use (TOU) Tariff. While optimal ESS capacity increases with PV penetration under the general tariff, the required optimal ESS capacity under the TOU tariff decreases with higher levels of PV integration. Despite the reduction in system size at higher PV levels, the TOU tariff continues to yield substantially greater economic returns compared to the general tariff, achieving an NPV between MYR 28 million and MYR 35 million. Furthermore, the combination of TOU tariffs with the proposed optimal ESS capacity creates a more promising economic environment for ESS investments in commercial buildings with high PV penetration.</p>
      </abstract>
      <kwd-group kwd-group-type="author-generated" xml:lang="en">
        <kwd>Energy Storage System</kwd>
        <kwd>Commercial Building</kwd>
        <kwd>Electricity Cost</kwd>
        <kwd>Electricity Tariff</kwd>
        <kwd>Cost-Benefit Analysis</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec1">
      <title>1. Introduction</title>
      <p>Renewable energy (RE) sources, particularly solar photovoltaic (PV) and wind, are increasingly being incorporated into power systems as part of global efforts to mitigate climate change and achieve targets such as net-zero CO<sub>2</sub> emissions by 2050. Under Malaysia’s New Capacity Target scenario, the country aims to expand its RE capacity, aligning with enhanced decarbonization goals for the electricity sector by the 2035 milestone. It represents the official commitment by the Government to achieve 31% (12.916 GW) and 40% (17.996 GW) RE target by 2025 and 2035 respectively. Malaysia has launched various schemes to promote renewable energy, leading to a substantial increase in solar PV capacity. The schemes include 2 GW fifth round of the nation’s Large-Scale Solar (LSS5) tender, Government Rooftop Tendering Program, Corporate Power Purchase Agreement (PPA) via Third-Party Access (TPA) Framework, Green Tariff and Renewable Energy Certificate (REC) Trading [<xref ref-type="bibr" rid="B1">1</xref>].</p>
      <p>Despite government initiatives to promote renewable energy, Malaysia’s total electricity consumption in 2020 reached 152,250 GWh, with the commercial sector contributing 26.6% of the total [<xref ref-type="bibr" rid="B2">2</xref>]. A study conducted by Sustainable Energy Development Authority (SEDA) revealed that the rooftops of 520,000 commercial buildings across Peninsular Malaysia offer a potential of 5.2 GW for rooftop solar PV [<xref ref-type="bibr" rid="B1">1</xref>]. Realizing the potential of solar PV in reducing a building’s electricity cost and climate change issues, many commercial building owners are interested in investing in rooftop solar PV systems. However, the high penetration of PV and the growing adoption of electric vehicles (EVs) pose challenges such as voltage fluctuations, reverse power flow, and increased load demand [<xref ref-type="bibr" rid="B3">3</xref>]. Implementing behind-the-meter (BTM) Energy Storage Systems (ESS), typically up to 5 kW/13.5 kWh for residential customers and 5 MW/10 MWh for commercial and industrial units can mitigate these issues [<xref ref-type="bibr" rid="B4">4</xref>]-[<xref ref-type="bibr" rid="B6">6</xref>]. With ESS in the network, flexible energy flow can be obtained, allowing more benefit both to the consumer and utility. Specifically, it provides on-site services for end-users, such as electricity cost management, increase RE self-consumption, improve power supply resilience and mitigate power quality issues [<xref ref-type="bibr" rid="B7">7</xref>]-[<xref ref-type="bibr" rid="B9">9</xref>].</p>
      <p>The high installed cost of ESS, mainly the battery system, is the main obstacle to its implementation. Integrating PV with a Battery Energy Storage System (BESS) result in lower profits compared to a standalone PV system [<xref ref-type="bibr" rid="B10">10</xref>]. As a result, extensive studies and pilot projects have been carried out to develop strategies in determining the optimal ESS size and operational characteristics which can maximize the profitability of ESS investments.</p>
      <p>A comprehensive approach for peak shaving in a Malaysia’s commercial building using a grid connected PV generator with BESS integration is proposed in [<xref ref-type="bibr" rid="B11">11</xref>]. The optimal dynamic demand limit and rule-based peak-shaving control algorithms are developed for commercial buildings under general tariff to limit the utility grid power, reducing peak demand and electricity cost. The study considers four different cases of different load demand and PV power profiles based on seasonal conditions. The research in [<xref ref-type="bibr" rid="B12">12</xref>] confirms that depending on BESS application, a simplified ranking and sizing methodology can be developed. The authors proposed a ranking system of BESS installation based on the load profile of CCNY campus buildings and its return on investment (ROI).</p>
      <p>Considering the diversity of utility tariffs for commercial loads, an optimization of building’s net load through Battery Energy Storage System (BESS) and RE resources is modeled and explored for minimizing billing cost in [<xref ref-type="bibr" rid="B13">13</xref>]. Results exhibit that for the same building load and RE generation, the tariff type can have an overwhelming impact on costs and savings. Tariffs without Time of Use (TOU) charges or peak demand charge components offer lower savings opportunity from BESS optimization. Similarly, a study presented in [<xref ref-type="bibr" rid="B14">14</xref>] exhibits that adding BESS is more profitable for commercial buildings with lower load factors and Critical Peak Pricing (CPP) rate structures in comparison to buildings with general energy rates. A techno-economic model to assess the viability of commercial building-integrated BESS is proposed in [<xref ref-type="bibr" rid="B15">15</xref>]. The model introduces a Benefit-Cost Ratio (BCR) versus an energy-to-power factor, β relationship to describe the tariff structure and BESS parameters independently of the building load profile. The proposed model is used to determine the optimal size of the BESS, considering cost reductions across various future scenarios. The abovementioned studies have proposed the optimal ESS capacity for commercial buildings under different scenarios.</p>
      <p>Existing studies highlight the importance of exploring optimal ESS scheduling and sizing to enhance investment profitability in specific research contexts. However, some research gaps remain as follows:</p>
      <p>1) ESS allocation strategy for commercial buildings considering different PV penetration levels is still lacking. This study is vital as it represents the future scenario of commercial buildings with high PV integration, aligning with the nation’s sustainability target. The integration of PV systems has a significant impact on ESS sizing and profitability, especially in Malaysia, where the typical operating hours of these buildings are coincided with the time of PV generation.</p>
      <p>2) Some studies only focused on general tariff, overlooking other tariff options available for commercial buildings. However, the strategic dispatch profile and sizing of ESS are highly influenced by the choice of tariff. By evaluating the optimal ESS size and profitability in relation to the selected tariff, general guidelines can be developed to assist in tariff selection based on a commercial building’s specific load profile and PV generation.</p>
      <p>Therefore, this study delves into the investigation of behind-the-meter ESS sizing and operation for commercial-scale applications such as large apartment buildings, hotels, universities, or shopping mall with PV integration. The key contributions of this article are as follows:</p>
      <p>1) Proposed a tariff-based strategy (<italic>i.e.</italic> general or TOU tariffs) to dispatch ESS for a commercial building with different PV penetration level.</p>
      <p>2) Developed a methodology for determining the optimal capacity of ESS for maximizing NPV of ESS investment for commercial buildings with different PV penetration level considering the current installed ESS costs, technical specification of ESS and electricity tariff.</p>
      <p>3) Identified the relationship between ESS capacity and the profitability of ESS deployment for commercial buildings under different PV penetration levels with the MD reduction and electricity tariff.</p>
      <p>Following the introduction, the rest of the paper is structured as follows: The system modelling and detailed methodology of the proposed tariff-based ESS dispatch scheduling and optimal sizing are presented in Section 2. Section 3 outlines the description of the case study and discussion of the results. Section 4 highlights the conclusions and contributions of the work.</p>
    </sec>
    <sec id="sec2">
      <title>2. Methodology</title>
      <sec id="sec2dot1">
        <title>2.1. Overview</title>
        <p>This section outlines a methodology proposed for the optimal deployment of ESS in commercial buildings, aimed at maximizing electricity cost reduction and evaluating its economic impact. <xref ref-type="fig" rid="fig1">Figure 1</xref> illustrates the general framework of the proposed ESS allocation strategy. ESS allocation is defined in this work as the ESS dispatch power and optimal size. The inputs of the ESS allocation strategy include a year of half-hourly historical or forecasted load power and solar PV generation of the building, technical specification and costs associated with ESS installation, electricity tariff applied and current discounted rate. Optimization approach specifically Genetic Algorithm (GA) is used to solve the ESS allocation problem formulation. GA is selected due to its good global search performance and low algorithm complexity. Note that the contribution of the study is more on developing ESS operational characteristics and sizing formulation. Enhancement and selection of optimization technique are not under the scope of this study. The decision variable of the allocation problem is the utilized capacity of ESS unit in kWh, <italic>E</italic><italic><sub>ES</sub></italic>, which is a continuous variable. Utilized capacity of ESS unit in kWh, is defined as the net capacity of ESS unit that can be used daily for discharge and charge before considering the technical characteristics of ESS technology such as its round-trip efficiency, degradation rate, allowable SOC and Depth of Discharge (DOD).</p>
        <p>As shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>, the daily half-hourly active power dispatched by ESS unit (<italic>i.e.</italic>, <italic>P</italic><italic><sub>ES</sub></italic>) are determined using iterative and analytical methods considering the specified electricity tariff and SOC limits and initial <italic>E</italic><italic><sub>ES</sub></italic>. ESS is dispatched with specific objectives depending on the electricity tariff considering the characteristics of the charges associated with the tariffs. Under a general tariff, ESS is scheduled to dispatch power for minimizing maximum demand (MD). For commercial </p>
        <fig id="fig1">
          <label>Figure 1</label>
          <graphic xlink:href="https://html.scirp.org/file/1771416-rId13.jpeg?20261026013333" />
        </fig>
        <p><bold>Figure 1.</bold> General framework of ESS allocation for commercial building with solar PV in Malaysia.</p>
        <p>buildings under TOU tariff, an additional dispatch strategy is employed to maximize the shifting of energy from peak to off-peak periods. Rated power and energy capacity of ESS (<italic>i.e.</italic>, <italic>P</italic><italic><sub>ESR</sub></italic> and <italic>E</italic><italic><sub>ESR</sub></italic>, respectively) are calculated based on the computed values <italic>P</italic><italic><sub>ES</sub></italic>, the technical characteristics of adopted ESS technology and <italic>E</italic><italic><sub>ES</sub></italic>. Next, the optimal ESS size is identified based on the cost-benefit analysis of ESS investment. Considering the rated size of ESS obtained, current ESS installed cost and discounted rate, the total NPV of ESS investment is evaluated until the desired stopping criteria of the optimization problem is met. Using the proposed ESS deployment strategy, the optimal ESS scheduling and size, and total NPV of ESS investment for commercial buildings in Malaysia with different PV penetration levels and electricity tariffs can be identified. The detailed steps and their related mathematical formulations are elaborated in the next subsections.</p>
      </sec>
      <sec id="sec2dot2">
        <title>2.2. Load and PV Model</title>
        <p>Load is represented as PQ constant load model. It is assumed to follow a half-hourly commercial building specifically UTeM building load curve, which can be collected either from the historical or forecasted data. As electricity cost in Malaysia is charge based on half-hourly building load power, ESS allocation strategy is developed using the same sampling time as computed by the utility. Rooftop PV generation can be represented by half-hourly historical or forecasted PV generation power at the commercial building. Normalized PV generations based on the historical data is used in this work to represent much higher size of solar PV that can be integrated to the commercial building.</p>
        <p>A month of PV generation data is used in the analysis as the input data to represent PV generation of all months in a year. As Malaysia experiences a tropical climate every day in a year with almost no seasonal changes, this approach is adequate for planning purposes. In this study, detailed assessment is conducted to evaluate the effect of PV penetration level on the net demand of the commercial building and optimal size of ESS required for electricity cost reduction. The PV penetration level varies with an increment of 20% from 0% to 100% penetration level. The percentage of PV penetration level in this paper is defined as follows,</p>
        <disp-formula id="FD1">
          <label>(1)</label>
          <mml:math>
            <mml:mrow>
              <mml:mi>P</mml:mi>
              <mml:msub>
                <mml:mi>V</mml:mi>
                <mml:mrow>
                  <mml:mi>p</mml:mi>
                  <mml:mi>e</mml:mi>
                  <mml:mi>n</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mrow>
                <mml:mo>(</mml:mo>
                <mml:mrow>
                  <mml:mfrac>
                    <mml:mrow>
                      <mml:msub>
                        <mml:mi>E</mml:mi>
                        <mml:mrow>
                          <mml:mi>p</mml:mi>
                          <mml:mi>v</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                    </mml:mrow>
                    <mml:mrow>
                      <mml:msub>
                        <mml:mi>E</mml:mi>
                        <mml:mrow>
                          <mml:mi>l</mml:mi>
                          <mml:mi>o</mml:mi>
                          <mml:mi>a</mml:mi>
                          <mml:mi>d</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                    </mml:mrow>
                  </mml:mfrac>
                </mml:mrow>
                <mml:mo>)</mml:mo>
              </mml:mrow>
              <mml:mo>∗</mml:mo>
              <mml:mn>100</mml:mn>
              <mml:mi>%</mml:mi>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>where <italic>E</italic><italic><sub>pv</sub></italic> is the annual energy generated by solar PV in kWh and <italic>E</italic><italic><sub>load</sub></italic> is the annual energy consumption of the building in kWh. Given any PV capacity installed at the commercial building, net demand power of the building <italic>P</italic><italic><sub>D,t</sub></italic> at every half-hourly time segments, <italic>t</italic>is expressed as</p>
        <disp-formula id="FD2">
          <label>(2)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>D</mml:mi>
                  <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:mi>L</mml:mi>
                  <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:mi>P</mml:mi>
                  <mml:mi>V</mml:mi>
                  <mml:mo>,</mml:mo>
                  <mml:mi>t</mml:mi>
                </mml:mrow>
              </mml:msub>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>in which <italic>P</italic><italic><sub>L,t</sub></italic> and <italic>P</italic><italic><sub>PV,t</sub></italic> respectively are the power of load and PV generation at every half-hour time segments.</p>
      </sec>
      <sec id="sec2dot3">
        <title>2.3. ESS Operational Characteristics</title>
        <p>For reducing electricity cost of commercial building, <italic>P</italic><italic><sub>ES</sub></italic> is computed with an objective of minimizing electricity cost as much as possible based on the utilized capacity of ESS, <italic>E</italic><italic><sub>ES</sub></italic>. Dispatch strategy of ESS is dependent on the deployed electricity tariff. For commercial building in Malaysia, 2 types of electricity tariff can be selected, <italic>i.e.</italic> general and TOU tariff. The rate applied for these tariffs is listed in <bold>Table 1</bold>. This section presents an effective ESS dispatch schedule/algorithm that can be applied to obtain maximum profit from ESS deployment in commercial building with solar PV system under general and TOU tariff.</p>
        <p><bold>Table 1</bold><bold>.</bold> Electricity charge rate for non-domestic medium voltage building: General and TOU tariff in Malaysia [<xref ref-type="bibr" rid="B16">16</xref>].</p>
        <table-wrap id="tbl1">
          <label>Table 1</label>
          <table>
            <tbody>
              <tr>
                <td>
                  <bold>Tariff</bold>
                </td>
                <td>
                  <bold>General</bold>
                </td>
                <td>
                  <bold>TOU</bold>
                </td>
              </tr>
              <tr>
                <td>Peak Energy MYR/kWh</td>
                <td>NA</td>
                <td>0.3132</td>
              </tr>
              <tr>
                <td>Off-peak Energy MYR/kWh</td>
                <td>NA</td>
                <td>0.2723</td>
              </tr>
              <tr>
                <td>Energy MYR/kWh</td>
                <td>0.2983</td>
                <td>NA</td>
              </tr>
              <tr>
                <td>Capacity Charge MYR/kW</td>
                <td>29.43</td>
                <td>30.19</td>
              </tr>
              <tr>
                <td>Network Charge MYR/kW</td>
                <td>59.84</td>
                <td>66.87</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>Under the framework of this study, the network is assumed to operate under the Self-Consumption (SELCO) mechanism [<xref ref-type="bibr" rid="B17">17</xref>]. Under this policy, any excess solar PV generation is not allowed to be exported to the grid and is not remunerated, meaning that surplus PV holds a financial value of zero.</p>
        <p>Because exported or curtailed energy yields no economic return, the proposed ESS dispatch strategy is specifically designed to maximize the charging of this excess daytime generation. By prioritizing the capture of surplus PV, the system effectively shifts this zero-cost energy to be discharged during the higher-demand evening periods, thereby maximizing the economic benefit and cost savings of the ESS investment.</p>
        <p>2.3.1. ESS Dispatch Strategy for Commercial Building with General Tariff</p>
        <p>Under general tariff, building owner is charged for energy consumption and maximum demand (MD) only, in which MD is billed based on the highest half-hourly power consumption in kW recorded across all days and hours of the month. Considering these charges, “Load Following” control method is developed in MATLAB to charge ESS during low demand period despite the time of its occurrence and discharge at high demand during peak period as shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>. This approach is focused on reducing maximum demand only as energy consumption is not changed with ESS deployment. ESS in this application will conduct energy shifting, to flatten the demand profile. Using this approach, the energy remaining in the ESS at the beginning of the day is equal to that at the end of the day [<xref ref-type="bibr" rid="B18">18</xref>]. Specifically, the control mechanism will charge the battery if the total demand power is below the charge threshold, <italic>P</italic><italic><sub>cha</sub></italic> and discharge the battery if the total demand power is above the discharge threshold, <italic>P</italic><italic><sub>dis</sub></italic>. These daily thresholds are determined using an iterative algorithm described as follows [<xref ref-type="bibr" rid="B18">18</xref>].</p>
        <p><italic>Step 1</italic>: Set the initial values of <italic>P</italic><italic><sub>dis</sub></italic> and <italic>P</italic><italic><sub>cha</sub></italic> as the maximum and minimum demand power, <italic>P</italic><italic><sub>D</sub></italic> of the day, respectively.</p>
        <disp-formula id="FD3">
          <label>(3)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>d</mml:mi>
                  <mml:mi>i</mml:mi>
                  <mml:mi>s</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mi>max</mml:mi>
              <mml:mrow>
                <mml:mo>(</mml:mo>
                <mml:mrow>
                  <mml:msub>
                    <mml:mi>P</mml:mi>
                    <mml:mrow>
                      <mml:mi>D</mml:mi>
                      <mml:mo>,</mml:mo>
                      <mml:mi>t</mml:mi>
                    </mml:mrow>
                  </mml:msub>
                </mml:mrow>
                <mml:mo>)</mml:mo>
              </mml:mrow>
              <mml:mo>,</mml:mo>
              <mml:mtext>
                 
              </mml:mtext>
              <mml:mtext>
                 
              </mml:mtext>
              <mml:mi>t</mml:mi>
              <mml:mo>=</mml:mo>
              <mml:mn>17</mml:mn>
              <mml:mo>,</mml:mo>
              <mml:mn>18</mml:mn>
              <mml:mo>,</mml:mo>
              <mml:mo>⋯</mml:mo>
              <mml:mo>,</mml:mo>
              <mml:mn>44</mml:mn>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <disp-formula id="FD4">
          <label>(4)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>c</mml:mi>
                  <mml:mi>h</mml:mi>
                  <mml:mi>a</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mi>min</mml:mi>
              <mml:mrow>
                <mml:mo>(</mml:mo>
                <mml:mrow>
                  <mml:msub>
                    <mml:mi>P</mml:mi>
                    <mml:mrow>
                      <mml:mi>D</mml:mi>
                      <mml:mo>,</mml:mo>
                      <mml:mi>t</mml:mi>
                    </mml:mrow>
                  </mml:msub>
                </mml:mrow>
                <mml:mo>)</mml:mo>
              </mml:mrow>
              <mml:mo>,</mml:mo>
              <mml:mtext>
                 
              </mml:mtext>
              <mml:mtext>
                 
              </mml:mtext>
              <mml:mi>t</mml:mi>
              <mml:mo>=</mml:mo>
              <mml:mn>1</mml:mn>
              <mml:mo>,</mml:mo>
              <mml:mn>2</mml:mn>
              <mml:mo>,</mml:mo>
              <mml:mo>⋯</mml:mo>
              <mml:mo>,</mml:mo>
              <mml:mn>48</mml:mn>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <fig id="fig2">
          <label>Figure 2</label>
          <graphic xlink:href="https://html.scirp.org/file/1771416-rId22.jpeg?20261026013334" />
        </fig>
        <p><bold>Figure 2.</bold> ESS dispatch strategy for commercial building with PV under general tariffs.</p>
        <p><italic>Step 2:</italic> Compute the total diurnal charged and discharged energy, <italic>E</italic><italic><sub>dis</sub></italic> and <italic>E</italic><italic><sub>cha</sub></italic> respectively.</p>
        <disp-formula id="FD5">
          <label>(5)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>E</mml:mi>
                <mml:mrow>
                  <mml:mi>d</mml:mi>
                  <mml:mi>i</mml:mi>
                  <mml:mi>s</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mstyle displaystyle="true">
                <mml:msubsup>
                  <mml:mo>∑</mml:mo>
                  <mml:mrow>
                    <mml:mi>t</mml:mi>
                    <mml:mo>=</mml:mo>
                    <mml:mn>17</mml:mn>
                  </mml:mrow>
                  <mml:mrow>
                    <mml:mn>44</mml:mn>
                  </mml:mrow>
                </mml:msubsup>
                <mml:mrow>
                  <mml:mrow>
                    <mml:mo>(</mml:mo>
                    <mml:mrow>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>D</mml:mi>
                          <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:mi>d</mml:mi>
                          <mml:mi>i</mml:mi>
                          <mml:mi>s</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                    </mml:mrow>
                    <mml:mo>)</mml:mo>
                  </mml:mrow>
                </mml:mrow>
              </mml:mstyle>
              <mml:mtext>
                 
              </mml:mtext>
              <mml:mtext>
                 
              </mml:mtext>
              <mml:mtext>
                 
              </mml:mtext>
              <mml:mo>∈</mml:mo>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>D</mml:mi>
                  <mml:mo>,</mml:mo>
                  <mml:mi>t</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>&gt;</mml:mo>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>d</mml:mi>
                  <mml:mi>i</mml:mi>
                  <mml:mi>s</mml:mi>
                </mml:mrow>
              </mml:msub>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <disp-formula id="FD6">
          <label>(6)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>E</mml:mi>
                <mml:mrow>
                  <mml:mi>c</mml:mi>
                  <mml:mi>h</mml:mi>
                  <mml:mi>a</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mstyle displaystyle="true">
                <mml:msubsup>
                  <mml:mo>∑</mml:mo>
                  <mml:mrow>
                    <mml:mi>t</mml:mi>
                    <mml:mo>=</mml:mo>
                    <mml:mn>1</mml:mn>
                  </mml:mrow>
                  <mml:mrow>
                    <mml:mn>48</mml:mn>
                  </mml:mrow>
                </mml:msubsup>
                <mml:mrow>
                  <mml:mrow>
                    <mml:mo>(</mml:mo>
                    <mml:mrow>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>c</mml:mi>
                          <mml:mi>h</mml:mi>
                          <mml:mi>a</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>−</mml:mo>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>D</mml:mi>
                          <mml:mo>,</mml:mo>
                          <mml:mi>t</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                    </mml:mrow>
                    <mml:mo>)</mml:mo>
                  </mml:mrow>
                </mml:mrow>
              </mml:mstyle>
              <mml:mtext>
                 
              </mml:mtext>
              <mml:mtext>
                 
              </mml:mtext>
              <mml:mtext>
                 
              </mml:mtext>
              <mml:mo>∈</mml:mo>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>D</mml:mi>
                  <mml:mo>,</mml:mo>
                  <mml:mi>t</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>&lt;</mml:mo>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>c</mml:mi>
                  <mml:mi>h</mml:mi>
                  <mml:mi>a</mml:mi>
                </mml:mrow>
              </mml:msub>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p><italic>Step 3:</italic>Increase <italic>P</italic><italic><sub>cha</sub></italic> by 0.01 if the difference between the diurnal charged energy and the total capacity of <italic>E</italic><italic><sub>ES</sub></italic> is more than 0.1. Otherwise, decrease <italic>P</italic><italic><sub>dis</sub></italic> by 0.01 if the difference between the diurnal discharged energy and the total capacity of <italic>E</italic><italic><sub>ES</sub></italic> is more than 0.1.</p>
        <disp-formula id="FD7">
          <label>(7)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>c</mml:mi>
                  <mml:mi>h</mml:mi>
                  <mml:mi>a</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mrow>
                <mml:mo>{</mml:mo>
                <mml:mtable columnalign="left">
                  <mml:mtr>
                    <mml:mtd>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>c</mml:mi>
                          <mml:mi>h</mml:mi>
                          <mml:mi>a</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>+</mml:mo>
                      <mml:mn>0.01</mml:mn>
                      <mml:mo>,</mml:mo>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>if</mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mrow>
                        <mml:mo>|</mml:mo>
                        <mml:mrow>
                          <mml:msub>
                            <mml:mi>E</mml:mi>
                            <mml:mrow>
                              <mml:mi>E</mml:mi>
                              <mml:mi>S</mml:mi>
                            </mml:mrow>
                          </mml:msub>
                          <mml:mo>−</mml:mo>
                          <mml:msub>
                            <mml:mi>E</mml:mi>
                            <mml:mrow>
                              <mml:mi>c</mml:mi>
                              <mml:mi>h</mml:mi>
                              <mml:mi>a</mml:mi>
                            </mml:mrow>
                          </mml:msub>
                        </mml:mrow>
                        <mml:mo>|</mml:mo>
                      </mml:mrow>
                      <mml:mo>&gt;</mml:mo>
                      <mml:mn>0.1</mml:mn>
                    </mml:mtd>
                  </mml:mtr>
                  <mml:mtr>
                    <mml:mtd>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>c</mml:mi>
                          <mml:mi>h</mml:mi>
                          <mml:mi>a</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>,</mml:mo>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>otherwise</mml:mtext>
                      <mml:mo>.</mml:mo>
                    </mml:mtd>
                  </mml:mtr>
                </mml:mtable>
              </mml:mrow>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <disp-formula id="FD8">
          <label>(8)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>d</mml:mi>
                  <mml:mi>i</mml:mi>
                  <mml:mi>s</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mrow>
                <mml:mo>{</mml:mo>
                <mml:mtable columnalign="left">
                  <mml:mtr>
                    <mml:mtd>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>d</mml:mi>
                          <mml:mi>i</mml:mi>
                          <mml:mi>s</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>−</mml:mo>
                      <mml:mn>0.01</mml:mn>
                      <mml:mo>,</mml:mo>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>if</mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mrow>
                        <mml:mo>|</mml:mo>
                        <mml:mrow>
                          <mml:msub>
                            <mml:mi>E</mml:mi>
                            <mml:mrow>
                              <mml:mi>E</mml:mi>
                              <mml:mi>S</mml:mi>
                            </mml:mrow>
                          </mml:msub>
                          <mml:mo>−</mml:mo>
                          <mml:msub>
                            <mml:mi>E</mml:mi>
                            <mml:mrow>
                              <mml:mi>c</mml:mi>
                              <mml:mi>h</mml:mi>
                              <mml:mi>a</mml:mi>
                            </mml:mrow>
                          </mml:msub>
                        </mml:mrow>
                        <mml:mo>|</mml:mo>
                      </mml:mrow>
                      <mml:mo>&gt;</mml:mo>
                      <mml:mn>0.1</mml:mn>
                    </mml:mtd>
                  </mml:mtr>
                  <mml:mtr>
                    <mml:mtd>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>d</mml:mi>
                          <mml:mi>i</mml:mi>
                          <mml:mi>s</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>,</mml:mo>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>otherwise</mml:mtext>
                      <mml:mo>.</mml:mo>
                    </mml:mtd>
                  </mml:mtr>
                </mml:mtable>
              </mml:mrow>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p><italic>Step 4</italic>: Repeat Steps 2 and 3 until the difference between the amount of the diurnal charged and discharged energy and the total capacity of <italic>E</italic><italic><sub>ES</sub></italic> is less than 0.1.</p>
        <p>Using the values of <italic>P</italic><italic><sub>dis</sub></italic> and <italic>P</italic><italic><sub>cha</sub></italic> obtained from the iterative method, total active power dispatched by ESS at every half-hourly time segment in a day, <italic>P</italic><italic><sub>ES,t</sub></italic> can be computed as follows:</p>
        <disp-formula id="FD9">
          <label>(9)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>E</mml:mi>
                  <mml:mi>S</mml:mi>
                  <mml:mo>,</mml:mo>
                  <mml:mi>t</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mrow>
                <mml:mo>{</mml:mo>
                <mml:mtable columnalign="left">
                  <mml:mtr>
                    <mml:mtd>
                      <mml:mrow>
                        <mml:mo>(</mml:mo>
                        <mml:mrow>
                          <mml:msub>
                            <mml:mi>P</mml:mi>
                            <mml:mrow>
                              <mml:mi>D</mml:mi>
                              <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:mi>d</mml:mi>
                              <mml:mi>i</mml:mi>
                              <mml:mi>s</mml:mi>
                            </mml:mrow>
                          </mml:msub>
                        </mml:mrow>
                        <mml:mo>)</mml:mo>
                      </mml:mrow>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mo>∈</mml:mo>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>D</mml:mi>
                          <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:mi>d</mml:mi>
                          <mml:mi>i</mml:mi>
                          <mml:mi>s</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                    </mml:mtd>
                  </mml:mtr>
                  <mml:mtr>
                    <mml:mtd>
                      <mml:mrow>
                        <mml:mo>(</mml:mo>
                        <mml:mrow>
                          <mml:msub>
                            <mml:mi>P</mml:mi>
                            <mml:mrow>
                              <mml:mi>D</mml:mi>
                              <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:mi>c</mml:mi>
                              <mml:mi>h</mml:mi>
                              <mml:mi>a</mml:mi>
                            </mml:mrow>
                          </mml:msub>
                        </mml:mrow>
                        <mml:mo>)</mml:mo>
                      </mml:mrow>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mo>∈</mml:mo>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>D</mml:mi>
                          <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:mi>c</mml:mi>
                          <mml:mi>h</mml:mi>
                          <mml:mi>a</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                    </mml:mtd>
                  </mml:mtr>
                  <mml:mtr>
                    <mml:mtd>
                      <mml:mn>0</mml:mn>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mo>∈</mml:mo>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>c</mml:mi>
                          <mml:mi>h</mml:mi>
                          <mml:mi>a</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>&lt;</mml:mo>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>D</mml:mi>
                          <mml:mo>,</mml:mo>
                          <mml:mi>t</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>&lt;</mml:mo>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>d</mml:mi>
                          <mml:mi>i</mml:mi>
                          <mml:mi>s</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                    </mml:mtd>
                  </mml:mtr>
                </mml:mtable>
              </mml:mrow>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>where <italic>P</italic><italic><sub>D,t</sub></italic> is the demand power at half-hourly time segment, <italic>t</italic>. Positive <italic>P</italic><italic><sub>ES,t</sub></italic> represents the power charged while its negative value corresponds to the power discharged by the ESS. The energy variation, <italic>M</italic><italic><sub>ES,t</sub></italic> and state of charge (SOC) of a ESS unit located at the commercial building over the time segment,<italic>t</italic> can be formulated respectively, as follows:</p>
        <disp-formula id="FD10">
          <label>(10)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>M</mml:mi>
                <mml:mrow>
                  <mml:mi>E</mml:mi>
                  <mml:mi>S</mml:mi>
                  <mml:mo>,</mml:mo>
                  <mml:mi>t</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:msub>
                <mml:mi>M</mml:mi>
                <mml:mrow>
                  <mml:mi>E</mml:mi>
                  <mml:mi>S</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:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>E</mml:mi>
                  <mml:mi>S</mml:mi>
                  <mml:mo>,</mml:mo>
                  <mml:mi>t</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mi>Δ</mml:mi>
              <mml:mi>t</mml:mi>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <disp-formula id="FD11">
          <label>(11)</label>
          <mml:math>
            <mml:mrow>
              <mml:mi>S</mml:mi>
              <mml:mi>O</mml:mi>
              <mml:msub>
                <mml:mi>C</mml:mi>
                <mml:mi>t</mml:mi>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mi>S</mml:mi>
              <mml:mi>O</mml:mi>
              <mml:msub>
                <mml:mi>C</mml:mi>
                <mml:mrow>
                  <mml:mi>t</mml:mi>
                  <mml:mo>−</mml:mo>
                  <mml:mn>1</mml:mn>
                </mml:mrow>
              </mml:msub>
              <mml:mo>−</mml:mo>
              <mml:mfrac>
                <mml:mrow>
                  <mml:msub>
                    <mml:mi>P</mml:mi>
                    <mml:mrow>
                      <mml:mi>E</mml:mi>
                      <mml:mi>S</mml:mi>
                      <mml:mo>,</mml:mo>
                      <mml:mi>t</mml:mi>
                    </mml:mrow>
                  </mml:msub>
                  <mml:mi>Δ</mml:mi>
                  <mml:mi>t</mml:mi>
                </mml:mrow>
                <mml:mrow>
                  <mml:msub>
                    <mml:mi>E</mml:mi>
                    <mml:mrow>
                      <mml:mi>E</mml:mi>
                      <mml:mi>S</mml:mi>
                    </mml:mrow>
                  </mml:msub>
                </mml:mrow>
              </mml:mfrac>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>It is worth stating that in the proposed strategy, ESS unit operates at unity power factor. This means that ESS only dispatch real power as the main application addresses in this study is minimizing the electricity cost of the building. Dispatching reactive power may not significantly affect the electricity cost incurred by the building owner. Furthermore, it will increase ESS’s inverter size, thus increase the capital cost of ESS installation.</p>
        <p>2.3.2. ESS Dispatch Strategy for Commercial Building with Time of Use (TOU) Tariff</p>
        <p>Under TOU tariff, electricity charge is divided into three components, <italic>i.e.</italic> energy consumption charge during peak hour, energy consumption charge during off-peak hour and maximum demand charge as listed in <bold>Table 1</bold>. MD under this tariff is billed based solely on the highest half-hourly power consumption in kW recorded during peak period, which is on weekdays from 2 pm to 10 pm. Based on these charges, ESS can provide two potential saving that are through maximum demand reduction and by shifting energy consumption from peak period to off-peak period. This is because the charge of energy consumption during the off-peak period is much lower than peak period. Therefore, ESS is dispatched strategically to minimize MD and maximize the shifted energy from peak to off-peak period. To achieve that, ESS needs to discharge during peak hour (2 pm - 10 pm) and charge during off-peak hour (10 pm - 2 pm) only if there is no excess generation from PV system during midday. Excess generation from PV occurs when the half-hourly PV generation power is more than the building load power. Without ESS deployment, this excess generation will flow back to the grid, which reduces the utilization of PV generation. Therefore, for commercial buildings with high PV penetration levels, ESS is scheduled to charge the excess PV energy first before conducting energy shifting subject to the rated capacity of ESS as shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>. ESS charge power to store the excess PV generation at specific day can be computed as follow:</p>
        <disp-formula id="FD12">
          <label>(12)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>c</mml:mi>
                  <mml:mi>r</mml:mi>
                  <mml:mo>,</mml:mo>
                  <mml:mi>t</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mrow>
                <mml:mo>{</mml:mo>
                <mml:mtable columnalign="left">
                  <mml:mtr>
                    <mml:mtd>
                      <mml:mrow>
                        <mml:mo>|</mml:mo>
                        <mml:mrow>
                          <mml:msub>
                            <mml:mi>P</mml:mi>
                            <mml:mrow>
                              <mml:mi>D</mml:mi>
                              <mml:mo>,</mml:mo>
                              <mml:mi>t</mml:mi>
                            </mml:mrow>
                          </mml:msub>
                        </mml:mrow>
                        <mml:mo>|</mml:mo>
                      </mml:mrow>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mo>∈</mml:mo>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>D</mml:mi>
                          <mml:mo>,</mml:mo>
                          <mml:mi>t</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>&lt;</mml:mo>
                      <mml:mn>0</mml:mn>
                    </mml:mtd>
                  </mml:mtr>
                  <mml:mtr>
                    <mml:mtd>
                      <mml:mn>0</mml:mn>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mo>∈</mml:mo>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>D</mml:mi>
                          <mml:mo>,</mml:mo>
                          <mml:mi>t</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>≥</mml:mo>
                      <mml:mn>0</mml:mn>
                    </mml:mtd>
                  </mml:mtr>
                </mml:mtable>
              </mml:mrow>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <disp-formula id="FD13">
          <label>(13)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>E</mml:mi>
                <mml:mrow>
                  <mml:mi>t</mml:mi>
                  <mml:mi>o</mml:mi>
                  <mml:mi>t</mml:mi>
                  <mml:mtext>_</mml:mtext>
                  <mml:mi>c</mml:mi>
                  <mml:mi>r</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mstyle displaystyle="true">
                <mml:msubsup>
                  <mml:mo>∑</mml:mo>
                  <mml:mrow>
                    <mml:mi>t</mml:mi>
                    <mml:mo>=</mml:mo>
                    <mml:mn>1</mml:mn>
                  </mml:mrow>
                  <mml:mrow>
                    <mml:mn>48</mml:mn>
                  </mml:mrow>
                </mml:msubsup>
                <mml:mrow>
                  <mml:mrow>
                    <mml:mo>(</mml:mo>
                    <mml:mrow>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>c</mml:mi>
                          <mml:mi>r</mml:mi>
                          <mml:mo>,</mml:mo>
                          <mml:mi>t</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                    </mml:mrow>
                    <mml:mo>)</mml:mo>
                  </mml:mrow>
                </mml:mrow>
              </mml:mstyle>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <disp-formula id="FD14">
          <label>(14)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>E</mml:mi>
                <mml:mrow>
                  <mml:mi>c</mml:mi>
                  <mml:mi>r</mml:mi>
                  <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>c</mml:mi>
                  <mml:mi>r</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:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>c</mml:mi>
                  <mml:mi>r</mml:mi>
                  <mml:mo>,</mml:mo>
                  <mml:mi>t</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mi>Δ</mml:mi>
              <mml:mi>t</mml:mi>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <disp-formula id="FD15">
          <label>(15)</label>
          <mml:math display="inline">
            <mml:mrow>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>E</mml:mi>
                  <mml:mi>S</mml:mi>
                  <mml:mi>c</mml:mi>
                  <mml:mi>r</mml:mi>
                  <mml:mo>,</mml:mo>
                  <mml:mi>t</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mrow>
                <mml:mo>{</mml:mo>
                <mml:mtable columnalign="left">
                  <mml:mtr>
                    <mml:mtd>
                      <mml:mrow>
                        <mml:mo>(</mml:mo>
                        <mml:mrow>
                          <mml:msub>
                            <mml:mi>P</mml:mi>
                            <mml:mrow>
                              <mml:mi>c</mml:mi>
                              <mml:mi>r</mml:mi>
                              <mml:mo>,</mml:mo>
                              <mml:mi>t</mml:mi>
                            </mml:mrow>
                          </mml:msub>
                        </mml:mrow>
                        <mml:mo>)</mml:mo>
                      </mml:mrow>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mo>∈</mml:mo>
                      <mml:msub>
                        <mml:mi>E</mml:mi>
                        <mml:mrow>
                          <mml:mi>c</mml:mi>
                          <mml:mi>r</mml:mi>
                          <mml:mo>,</mml:mo>
                          <mml:mi>t</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>&lt;</mml:mo>
                      <mml:msub>
                        <mml:mi>E</mml:mi>
                        <mml:mrow>
                          <mml:mi>E</mml:mi>
                          <mml:mi>S</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                    </mml:mtd>
                  </mml:mtr>
                  <mml:mtr>
                    <mml:mtd>
                      <mml:mrow>
                        <mml:mo>(</mml:mo>
                        <mml:mrow>
                          <mml:msub>
                            <mml:mi>E</mml:mi>
                            <mml:mrow>
                              <mml:mi>E</mml:mi>
                              <mml:mi>S</mml:mi>
                            </mml:mrow>
                          </mml:msub>
                          <mml:mo>−</mml:mo>
                          <mml:msub>
                            <mml:mi>E</mml:mi>
                            <mml:mrow>
                              <mml:mi>c</mml:mi>
                              <mml:mi>r</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:mrow>
                        <mml:mo>)</mml:mo>
                      </mml:mrow>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mo>∈</mml:mo>
                      <mml:msub>
                        <mml:mi>E</mml:mi>
                        <mml:mrow>
                          <mml:mi>c</mml:mi>
                          <mml:mi>r</mml:mi>
                          <mml:mo>,</mml:mo>
                          <mml:mi>t</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>&gt;</mml:mo>
                      <mml:msub>
                        <mml:mi>E</mml:mi>
                        <mml:mrow>
                          <mml:mi>E</mml:mi>
                          <mml:mi>S</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>and</mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:msub>
                        <mml:mi>E</mml:mi>
                        <mml:mrow>
                          <mml:mi>c</mml:mi>
                          <mml:mi>r</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>&lt;</mml:mo>
                      <mml:msub>
                        <mml:mi>E</mml:mi>
                        <mml:mrow>
                          <mml:mi>E</mml:mi>
                          <mml:mi>S</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                    </mml:mtd>
                  </mml:mtr>
                  <mml:mtr>
                    <mml:mtd>
                      <mml:mn>0</mml:mn>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mo>∈</mml:mo>
                      <mml:msub>
                        <mml:mi>E</mml:mi>
                        <mml:mrow>
                          <mml:mi>c</mml:mi>
                          <mml:mi>r</mml:mi>
                          <mml:mo>,</mml:mo>
                          <mml:mi>t</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>&gt;</mml:mo>
                      <mml:msub>
                        <mml:mi>E</mml:mi>
                        <mml:mrow>
                          <mml:mi>E</mml:mi>
                          <mml:mi>S</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>and</mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:msub>
                        <mml:mi>E</mml:mi>
                        <mml:mrow>
                          <mml:mi>c</mml:mi>
                          <mml:mi>r</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>&gt;</mml:mo>
                      <mml:msub>
                        <mml:mi>E</mml:mi>
                        <mml:mrow>
                          <mml:mi>E</mml:mi>
                          <mml:mi>S</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                    </mml:mtd>
                  </mml:mtr>
                </mml:mtable>
              </mml:mrow>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <fig id="fig3">
          <label>Figure 3</label>
          <graphic xlink:href="https://html.scirp.org/file/1771416-rId45.jpeg?20261026013335" />
        </fig>
        <p><bold>Figure 3.</bold> ESS dispatching strategy for commercial building with PV under TOU tariff.</p>
        <p>Next, the diurnal ESS’s charging energy from the excess PV generation, <italic>E</italic><italic><sub>tot_c1</sub></italic> and ESS’s energy reservoir left for charging, <italic>E</italic><italic><sub>cha1</sub></italic> are respectively calculated using (16) and (17).</p>
        <disp-formula id="FD16">
          <label>(16)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>E</mml:mi>
                <mml:mrow>
                  <mml:mi>t</mml:mi>
                  <mml:mi>o</mml:mi>
                  <mml:mi>t</mml:mi>
                  <mml:mtext>_</mml:mtext>
                  <mml:mi>c</mml:mi>
                  <mml:mn>1</mml:mn>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mstyle displaystyle="true">
                <mml:msubsup>
                  <mml:mo>∑</mml:mo>
                  <mml:mrow>
                    <mml:mi>t</mml:mi>
                    <mml:mo>=</mml:mo>
                    <mml:mn>1</mml:mn>
                  </mml:mrow>
                  <mml:mrow>
                    <mml:mn>48</mml:mn>
                  </mml:mrow>
                </mml:msubsup>
                <mml:mrow>
                  <mml:mrow>
                    <mml:mo>(</mml:mo>
                    <mml:mrow>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>E</mml:mi>
                          <mml:mi>S</mml:mi>
                          <mml:mi>c</mml:mi>
                          <mml:mi>r</mml:mi>
                          <mml:mo>,</mml:mo>
                          <mml:mi>t</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                    </mml:mrow>
                    <mml:mo>)</mml:mo>
                  </mml:mrow>
                </mml:mrow>
              </mml:mstyle>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <disp-formula id="FD17">
          <label>(17)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>E</mml:mi>
                <mml:mrow>
                  <mml:mi>c</mml:mi>
                  <mml:mi>h</mml:mi>
                  <mml:mi>a</mml:mi>
                  <mml:mn>1</mml:mn>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:msub>
                <mml:mi>E</mml:mi>
                <mml:mrow>
                  <mml:mi>E</mml:mi>
                  <mml:mi>S</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:mi>o</mml:mi>
                  <mml:mi>t</mml:mi>
                  <mml:mtext>_</mml:mtext>
                  <mml:mi>c</mml:mi>
                  <mml:mn>1</mml:mn>
                </mml:mrow>
              </mml:msub>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>Next, the daily charge threshold, <italic>P</italic><italic><sub>cha</sub></italic> is computed by considering demand power during off-peak period while the discharge threshold, <italic>P</italic><italic><sub>dis</sub></italic> is computed based on the demand power during peak period. These values are determined as follows:</p>
        <p><italic>Step 1</italic>: Set the initial values of <italic>P</italic><italic><sub>dis</sub></italic> and <italic>P</italic><italic><sub>cha</sub></italic> as the maximum demand power during peak-period and minimum demand power during off-peak period, respectively.</p>
        <disp-formula id="FD18">
          <label>(18)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>d</mml:mi>
                  <mml:mi>i</mml:mi>
                  <mml:mi>s</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mi>max</mml:mi>
              <mml:mrow>
                <mml:mo>(</mml:mo>
                <mml:mrow>
                  <mml:msub>
                    <mml:mi>P</mml:mi>
                    <mml:mrow>
                      <mml:mi>D</mml:mi>
                      <mml:mo>,</mml:mo>
                      <mml:mi>t</mml:mi>
                    </mml:mrow>
                  </mml:msub>
                </mml:mrow>
                <mml:mo>)</mml:mo>
              </mml:mrow>
              <mml:mo>,</mml:mo>
              <mml:mtext>
                 
              </mml:mtext>
              <mml:mtext>
                 
              </mml:mtext>
              <mml:mi>t</mml:mi>
              <mml:mo>=</mml:mo>
              <mml:mn>28</mml:mn>
              <mml:mo>,</mml:mo>
              <mml:mn>29</mml:mn>
              <mml:mo>,</mml:mo>
              <mml:mo>⋯</mml:mo>
              <mml:mo>,</mml:mo>
              <mml:mn>44</mml:mn>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <disp-formula id="FD19">
          <label>(19)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>c</mml:mi>
                  <mml:mi>h</mml:mi>
                  <mml:mi>a</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mi>min</mml:mi>
              <mml:mrow>
                <mml:mo>(</mml:mo>
                <mml:mrow>
                  <mml:msub>
                    <mml:mi>P</mml:mi>
                    <mml:mrow>
                      <mml:mi>D</mml:mi>
                      <mml:mo>,</mml:mo>
                      <mml:mi>t</mml:mi>
                    </mml:mrow>
                  </mml:msub>
                </mml:mrow>
                <mml:mo>)</mml:mo>
              </mml:mrow>
              <mml:mo>,</mml:mo>
              <mml:mtext>
                 
              </mml:mtext>
              <mml:mtext>
                 
              </mml:mtext>
              <mml:mi>t</mml:mi>
              <mml:mo>=</mml:mo>
              <mml:mn>1</mml:mn>
              <mml:mo>,</mml:mo>
              <mml:mn>2</mml:mn>
              <mml:mo>,</mml:mo>
              <mml:mo>⋯</mml:mo>
              <mml:mo>,</mml:mo>
              <mml:mn>27</mml:mn>
              <mml:mo>&amp;</mml:mo>
              <mml:mi>t</mml:mi>
              <mml:mo>=</mml:mo>
              <mml:mn>45</mml:mn>
              <mml:mo>,</mml:mo>
              <mml:mo>⋯</mml:mo>
              <mml:mo>,</mml:mo>
              <mml:mn>48</mml:mn>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p><italic>Step 2</italic>: Compute the total diurnal charged and discharged energy,<italic>E</italic><italic><sub>dis</sub></italic> and <italic>E</italic><italic><sub>cha</sub></italic> respectively<italic>.</italic></p>
        <disp-formula id="FD20">
          <label>(20)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>E</mml:mi>
                <mml:mrow>
                  <mml:mi>d</mml:mi>
                  <mml:mi>i</mml:mi>
                  <mml:mi>s</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mstyle displaystyle="true">
                <mml:msubsup>
                  <mml:mo>∑</mml:mo>
                  <mml:mrow>
                    <mml:mi>t</mml:mi>
                    <mml:mo>=</mml:mo>
                    <mml:mn>28</mml:mn>
                  </mml:mrow>
                  <mml:mrow>
                    <mml:mn>44</mml:mn>
                  </mml:mrow>
                </mml:msubsup>
                <mml:mrow>
                  <mml:mrow>
                    <mml:mo>(</mml:mo>
                    <mml:mrow>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>D</mml:mi>
                          <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:mi>d</mml:mi>
                          <mml:mi>i</mml:mi>
                          <mml:mi>s</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                    </mml:mrow>
                    <mml:mo>)</mml:mo>
                  </mml:mrow>
                </mml:mrow>
              </mml:mstyle>
              <mml:mtext>
                 
              </mml:mtext>
              <mml:mo>∈</mml:mo>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>D</mml:mi>
                  <mml:mo>,</mml:mo>
                  <mml:mi>t</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>&gt;</mml:mo>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>d</mml:mi>
                  <mml:mi>i</mml:mi>
                  <mml:mi>s</mml:mi>
                </mml:mrow>
              </mml:msub>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <disp-formula id="FD21">
          <label>(21)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>E</mml:mi>
                <mml:mrow>
                  <mml:mi>c</mml:mi>
                  <mml:mi>h</mml:mi>
                  <mml:mi>a</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mstyle displaystyle="true">
                <mml:msubsup>
                  <mml:mo>∑</mml:mo>
                  <mml:mrow>
                    <mml:mi>t</mml:mi>
                    <mml:mo>=</mml:mo>
                    <mml:mn>1</mml:mn>
                  </mml:mrow>
                  <mml:mrow>
                    <mml:mn>27</mml:mn>
                  </mml:mrow>
                </mml:msubsup>
                <mml:mrow>
                  <mml:mrow>
                    <mml:mo>(</mml:mo>
                    <mml:mrow>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>c</mml:mi>
                          <mml:mi>h</mml:mi>
                          <mml:mi>a</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>−</mml:mo>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>D</mml:mi>
                          <mml:mo>,</mml:mo>
                          <mml:mi>t</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                    </mml:mrow>
                    <mml:mo>)</mml:mo>
                  </mml:mrow>
                </mml:mrow>
              </mml:mstyle>
              <mml:mo>+</mml:mo>
              <mml:mstyle displaystyle="true">
                <mml:msubsup>
                  <mml:mo>∑</mml:mo>
                  <mml:mrow>
                    <mml:mi>t</mml:mi>
                    <mml:mo>=</mml:mo>
                    <mml:mn>45</mml:mn>
                  </mml:mrow>
                  <mml:mrow>
                    <mml:mn>48</mml:mn>
                  </mml:mrow>
                </mml:msubsup>
                <mml:mrow>
                  <mml:mrow>
                    <mml:mo>(</mml:mo>
                    <mml:mrow>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>c</mml:mi>
                          <mml:mi>h</mml:mi>
                          <mml:mi>a</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>−</mml:mo>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>D</mml:mi>
                          <mml:mo>,</mml:mo>
                          <mml:mi>t</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                    </mml:mrow>
                    <mml:mo>)</mml:mo>
                  </mml:mrow>
                </mml:mrow>
              </mml:mstyle>
              <mml:mtext>
                 
              </mml:mtext>
              <mml:mo>∈</mml:mo>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>D</mml:mi>
                  <mml:mo>,</mml:mo>
                  <mml:mi>t</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>&lt;</mml:mo>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>c</mml:mi>
                  <mml:mi>h</mml:mi>
                  <mml:mi>a</mml:mi>
                </mml:mrow>
              </mml:msub>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p><italic>Step 3</italic>: Increase <italic>P</italic><italic><sub>cha</sub></italic> by 0.01 if the difference between ESS’s energy reservoir left for charging, <italic>E</italic><italic><sub>cha1</sub></italic> and the total capacity of <italic>E</italic><italic><sub>ES</sub></italic> is more than 0.1. Otherwise, decrease <italic>P</italic><italic><sub>dis</sub></italic> by 0.01 if the difference between the diurnal discharged energy and the total capacity of <italic>E</italic><italic><sub>ES</sub></italic> is more than 0.1.</p>
        <disp-formula id="FD22">
          <label>(22)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>c</mml:mi>
                  <mml:mi>h</mml:mi>
                  <mml:mi>a</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mrow>
                <mml:mo>{</mml:mo>
                <mml:mtable columnalign="left">
                  <mml:mtr>
                    <mml:mtd>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>c</mml:mi>
                          <mml:mi>h</mml:mi>
                          <mml:mi>a</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>+</mml:mo>
                      <mml:mn>0.01</mml:mn>
                      <mml:mo>,</mml:mo>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>if</mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mrow>
                        <mml:mo>|</mml:mo>
                        <mml:mrow>
                          <mml:msub>
                            <mml:mi>E</mml:mi>
                            <mml:mrow>
                              <mml:mi>c</mml:mi>
                              <mml:mi>h</mml:mi>
                              <mml:mi>a</mml:mi>
                              <mml:mn>1</mml:mn>
                            </mml:mrow>
                          </mml:msub>
                          <mml:mo>−</mml:mo>
                          <mml:msub>
                            <mml:mi>E</mml:mi>
                            <mml:mrow>
                              <mml:mi>c</mml:mi>
                              <mml:mi>h</mml:mi>
                              <mml:mi>a</mml:mi>
                            </mml:mrow>
                          </mml:msub>
                        </mml:mrow>
                        <mml:mo>|</mml:mo>
                      </mml:mrow>
                      <mml:mo>&gt;</mml:mo>
                      <mml:mn>0.1</mml:mn>
                    </mml:mtd>
                  </mml:mtr>
                  <mml:mtr>
                    <mml:mtd>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>c</mml:mi>
                          <mml:mi>h</mml:mi>
                          <mml:mi>a</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>,</mml:mo>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>otherwise</mml:mtext>
                      <mml:mo>.</mml:mo>
                    </mml:mtd>
                  </mml:mtr>
                </mml:mtable>
              </mml:mrow>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <disp-formula id="FD23">
          <label>(23)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>d</mml:mi>
                  <mml:mi>i</mml:mi>
                  <mml:mi>s</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mrow>
                <mml:mo>{</mml:mo>
                <mml:mtable columnalign="left">
                  <mml:mtr>
                    <mml:mtd>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>d</mml:mi>
                          <mml:mi>i</mml:mi>
                          <mml:mi>s</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>−</mml:mo>
                      <mml:mn>0.01</mml:mn>
                      <mml:mo>,</mml:mo>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>if</mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mrow>
                        <mml:mo>|</mml:mo>
                        <mml:mrow>
                          <mml:msub>
                            <mml:mi>E</mml:mi>
                            <mml:mrow>
                              <mml:mi>E</mml:mi>
                              <mml:mi>S</mml:mi>
                            </mml:mrow>
                          </mml:msub>
                          <mml:mo>−</mml:mo>
                          <mml:msub>
                            <mml:mi>E</mml:mi>
                            <mml:mrow>
                              <mml:mi>d</mml:mi>
                              <mml:mi>i</mml:mi>
                              <mml:mi>s</mml:mi>
                            </mml:mrow>
                          </mml:msub>
                        </mml:mrow>
                        <mml:mo>|</mml:mo>
                      </mml:mrow>
                      <mml:mo>&gt;</mml:mo>
                      <mml:mn>0.1</mml:mn>
                    </mml:mtd>
                  </mml:mtr>
                  <mml:mtr>
                    <mml:mtd>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>d</mml:mi>
                          <mml:mi>i</mml:mi>
                          <mml:mi>s</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>,</mml:mo>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>otherwise</mml:mtext>
                      <mml:mo>.</mml:mo>
                    </mml:mtd>
                  </mml:mtr>
                </mml:mtable>
              </mml:mrow>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p><italic>Step 4</italic>: Repeat <italic>Steps</italic> 2 and 3 until the difference between the amount of the diurnal <italic>E</italic><italic><sub>cha1</sub></italic> and discharged energy and the total capacity of <italic>E</italic><italic><sub>ES</sub></italic> is less than 0.1. Using the values of <italic>P</italic><italic><sub>dis</sub></italic> and <italic>P</italic><italic><sub>cha</sub></italic> obtained from the iterative method, total active power dispatched by ESS at every half-hourly time segment in a day, <italic>P</italic><italic><sub>ES,t</sub></italic> for commercial building with TOU tariff can be computed as follows:</p>
        <disp-formula id="FD24">
          <label>(24)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>E</mml:mi>
                  <mml:mi>S</mml:mi>
                  <mml:mi>m</mml:mi>
                  <mml:mi>d</mml:mi>
                  <mml:mo>,</mml:mo>
                  <mml:mi>t</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mrow>
                <mml:mo>{</mml:mo>
                <mml:mtable columnalign="left">
                  <mml:mtr>
                    <mml:mtd>
                      <mml:mrow>
                        <mml:mo>(</mml:mo>
                        <mml:mrow>
                          <mml:msub>
                            <mml:mi>P</mml:mi>
                            <mml:mrow>
                              <mml:mi>D</mml:mi>
                              <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:mi>d</mml:mi>
                              <mml:mi>i</mml:mi>
                              <mml:mi>s</mml:mi>
                            </mml:mrow>
                          </mml:msub>
                        </mml:mrow>
                        <mml:mo>)</mml:mo>
                      </mml:mrow>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mo>∈</mml:mo>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>D</mml:mi>
                          <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:mi>d</mml:mi>
                          <mml:mi>i</mml:mi>
                          <mml:mi>s</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>,</mml:mo>
                      <mml:mi>t</mml:mi>
                      <mml:mo>=</mml:mo>
                      <mml:mn>28</mml:mn>
                      <mml:mo>,</mml:mo>
                      <mml:mn>29</mml:mn>
                      <mml:mo>,</mml:mo>
                      <mml:mo>⋯</mml:mo>
                      <mml:mo>,</mml:mo>
                      <mml:mn>44</mml:mn>
                    </mml:mtd>
                  </mml:mtr>
                  <mml:mtr>
                    <mml:mtd>
                      <mml:mrow>
                        <mml:mo>(</mml:mo>
                        <mml:mrow>
                          <mml:msub>
                            <mml:mi>P</mml:mi>
                            <mml:mrow>
                              <mml:mi>D</mml:mi>
                              <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:mi>c</mml:mi>
                              <mml:mi>h</mml:mi>
                              <mml:mi>a</mml:mi>
                            </mml:mrow>
                          </mml:msub>
                        </mml:mrow>
                        <mml:mo>)</mml:mo>
                      </mml:mrow>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mo>∈</mml:mo>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>D</mml:mi>
                          <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:mi>c</mml:mi>
                          <mml:mi>h</mml:mi>
                          <mml:mi>a</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>,</mml:mo>
                      <mml:mi>t</mml:mi>
                      <mml:mo>=</mml:mo>
                      <mml:mn>1</mml:mn>
                      <mml:mo>,</mml:mo>
                      <mml:mn>2</mml:mn>
                      <mml:mo>,</mml:mo>
                      <mml:mo>⋯</mml:mo>
                      <mml:mo>,</mml:mo>
                      <mml:mn>27</mml:mn>
                      <mml:mo>&amp;</mml:mo>
                      <mml:mi>t</mml:mi>
                      <mml:mo>=</mml:mo>
                      <mml:mn>45</mml:mn>
                      <mml:mo>,</mml:mo>
                      <mml:mo>⋯</mml:mo>
                      <mml:mo>,</mml:mo>
                      <mml:mn>48</mml:mn>
                    </mml:mtd>
                  </mml:mtr>
                  <mml:mtr>
                    <mml:mtd>
                      <mml:mn>0</mml:mn>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mtext>
                         
                      </mml:mtext>
                      <mml:mo>∈</mml:mo>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>c</mml:mi>
                          <mml:mi>h</mml:mi>
                          <mml:mi>a</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>&lt;</mml:mo>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>D</mml:mi>
                          <mml:mo>,</mml:mo>
                          <mml:mi>t</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                      <mml:mo>&lt;</mml:mo>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>d</mml:mi>
                          <mml:mi>i</mml:mi>
                          <mml:mi>s</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                    </mml:mtd>
                  </mml:mtr>
                </mml:mtable>
              </mml:mrow>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <disp-formula id="FD25">
          <label>(25)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>E</mml:mi>
                  <mml:mi>S</mml:mi>
                  <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:mi>E</mml:mi>
                  <mml:mi>S</mml:mi>
                  <mml:mi>c</mml:mi>
                  <mml:mi>r</mml:mi>
                  <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:mi>E</mml:mi>
                  <mml:mi>S</mml:mi>
                  <mml:mi>m</mml:mi>
                  <mml:mi>d</mml:mi>
                  <mml:mo>,</mml:mo>
                  <mml:mi>t</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>,</mml:mo>
              <mml:mtext>
                 
              </mml:mtext>
              <mml:mtext>
                 
              </mml:mtext>
              <mml:mi>t</mml:mi>
              <mml:mo>=</mml:mo>
              <mml:mn>1</mml:mn>
              <mml:mo>,</mml:mo>
              <mml:mn>2</mml:mn>
              <mml:mo>,</mml:mo>
              <mml:mo>⋯</mml:mo>
              <mml:mo>,</mml:mo>
              <mml:mn>48</mml:mn>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>The energy variation, <italic>M</italic><italic><sub>ES,t</sub></italic> and state of charge (SOC) of a ESS unit located at a commercial building over the time segment,<italic>t</italic> can be formulated as in (10) and (11) respectively.</p>
        <p>There are three important elements in designing BESS which are location sizing, and dispatch strategy. This section presents the methodology to identify the strategic lo-cation, dispatch strategy and size of BESS.</p>
      </sec>
      <sec id="sec2dot4">
        <title>2.4. Problem Formulation</title>
        <p>This ESS planning problem is formulated as an optimization problem that has an objective function of maximizing the total NPV obtained from ESS deployment as follows:</p>
        <disp-formula id="FD26">
          <label>(26)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>F</mml:mi>
                <mml:mrow>
                  <mml:mi>o</mml:mi>
                  <mml:mi>b</mml:mi>
                  <mml:mi>j</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mi>S</mml:mi>
              <mml:mi>E</mml:mi>
              <mml:mo>−</mml:mo>
              <mml:msub>
                <mml:mi>C</mml:mi>
                <mml:mrow>
                  <mml:mi>E</mml:mi>
                  <mml:mi>S</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>−</mml:mo>
              <mml:mi>O</mml:mi>
              <mml:mi>M</mml:mi>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>In which, <italic>SE is</italic>the NPV value from the saved electricity cost of the commercial building with ESS. The total investment cost of ESS includes the capital cost, <italic>C</italic><italic><sub>ES</sub></italic> and the NPV value of the operation and maintenance costs, <italic>OM</italic>. All the formulation of the benefit and costs are detailed in this section. The objective function in (26) is maximized subjected to several constraints, which are the rated capacity of ESS unit and allowable SOC limits</p>
        <p>2.4.1. Saved Electricity Cost</p>
        <p>ESS integration in commercial building can reduce the peak demand thus provide electricity cost saving to the building owner. It is found that, for typical commercial building in Malaysia, most of electricity cost are coming from the maximum demand charges. Under the new RP4 electricity tariff, maximum demand charge is consisting of capacity charges and network charges. By discharging energy during peak demand, maximum demand charges can be lowered. Hence, monthly electricity cost of the building, <italic>EC</italic> and <italic>NPV</italic> of electricity cost saving after ESS is installed, <italic>SE</italic> for General Tariff and TOU Tariff can be formulated as follows:</p>
        <disp-formula id="FD27">
          <label>(27)</label>
          <mml:math>
            <mml:mrow>
              <mml:mi>E</mml:mi>
              <mml:msub>
                <mml:mi>C</mml:mi>
                <mml:mrow>
                  <mml:mi>F</mml:mi>
                  <mml:mi>l</mml:mi>
                  <mml:mi>a</mml:mi>
                  <mml:mi>t</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mrow>
                <mml:mo>(</mml:mo>
                <mml:mrow>
                  <mml:msub>
                    <mml:mi>C</mml:mi>
                    <mml:mrow>
                      <mml:mi>M</mml:mi>
                      <mml:mi>D</mml:mi>
                    </mml:mrow>
                  </mml:msub>
                  <mml:mo>×</mml:mo>
                  <mml:mi>M</mml:mi>
                  <mml:mi>D</mml:mi>
                </mml:mrow>
                <mml:mo>)</mml:mo>
              </mml:mrow>
              <mml:mo>+</mml:mo>
              <mml:mrow>
                <mml:mo>(</mml:mo>
                <mml:mrow>
                  <mml:msub>
                    <mml:mi>E</mml:mi>
                    <mml:mrow>
                      <mml:mi>B</mml:mi>
                      <mml:mo>,</mml:mo>
                      <mml:mi>m</mml:mi>
                      <mml:mi>o</mml:mi>
                      <mml:mi>n</mml:mi>
                      <mml:mi>t</mml:mi>
                      <mml:mi>h</mml:mi>
                    </mml:mrow>
                  </mml:msub>
                  <mml:mo>×</mml:mo>
                  <mml:msub>
                    <mml:mi>C</mml:mi>
                    <mml:mrow>
                      <mml:mi>E</mml:mi>
                      <mml:mi>C</mml:mi>
                    </mml:mrow>
                  </mml:msub>
                </mml:mrow>
                <mml:mo>)</mml:mo>
              </mml:mrow>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <disp-formula id="FD28">
          <label>(28)</label>
          <mml:math>
            <mml:mrow>
              <mml:mi>E</mml:mi>
              <mml:msub>
                <mml:mi>C</mml:mi>
                <mml:mrow>
                  <mml:mi>T</mml:mi>
                  <mml:mi>O</mml:mi>
                  <mml:mi>U</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mrow>
                <mml:mo>(</mml:mo>
                <mml:mrow>
                  <mml:msub>
                    <mml:mi>C</mml:mi>
                    <mml:mrow>
                      <mml:mi>M</mml:mi>
                      <mml:mi>D</mml:mi>
                    </mml:mrow>
                  </mml:msub>
                  <mml:mo>×</mml:mo>
                  <mml:mi>M</mml:mi>
                  <mml:mi>D</mml:mi>
                </mml:mrow>
                <mml:mo>)</mml:mo>
              </mml:mrow>
              <mml:mo>+</mml:mo>
              <mml:mrow>
                <mml:mo>(</mml:mo>
                <mml:mrow>
                  <mml:msub>
                    <mml:mi>E</mml:mi>
                    <mml:mrow>
                      <mml:mi>B</mml:mi>
                      <mml:mi>p</mml:mi>
                      <mml:mo>,</mml:mo>
                      <mml:mi>m</mml:mi>
                      <mml:mi>o</mml:mi>
                      <mml:mi>n</mml:mi>
                      <mml:mi>t</mml:mi>
                      <mml:mi>h</mml:mi>
                    </mml:mrow>
                  </mml:msub>
                  <mml:mo>×</mml:mo>
                  <mml:msub>
                    <mml:mi>C</mml:mi>
                    <mml:mrow>
                      <mml:mi>E</mml:mi>
                      <mml:mi>C</mml:mi>
                      <mml:mi>p</mml:mi>
                    </mml:mrow>
                  </mml:msub>
                </mml:mrow>
                <mml:mo>)</mml:mo>
              </mml:mrow>
              <mml:mo>+</mml:mo>
              <mml:mrow>
                <mml:mo>(</mml:mo>
                <mml:mrow>
                  <mml:msub>
                    <mml:mi>E</mml:mi>
                    <mml:mrow>
                      <mml:mi>B</mml:mi>
                      <mml:mi>o</mml:mi>
                      <mml:mi>p</mml:mi>
                      <mml:mo>,</mml:mo>
                      <mml:mi>m</mml:mi>
                      <mml:mi>o</mml:mi>
                      <mml:mi>n</mml:mi>
                      <mml:mi>t</mml:mi>
                      <mml:mi>h</mml:mi>
                    </mml:mrow>
                  </mml:msub>
                  <mml:mo>×</mml:mo>
                  <mml:msub>
                    <mml:mi>C</mml:mi>
                    <mml:mrow>
                      <mml:mi>E</mml:mi>
                      <mml:mi>C</mml:mi>
                      <mml:mi>o</mml:mi>
                      <mml:mi>p</mml:mi>
                    </mml:mrow>
                  </mml:msub>
                </mml:mrow>
                <mml:mo>)</mml:mo>
              </mml:mrow>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <disp-formula id="FD29">
          <label>(29)</label>
          <mml:math>
            <mml:mrow>
              <mml:mi>S</mml:mi>
              <mml:mi>E</mml:mi>
              <mml:mo>=</mml:mo>
              <mml:mstyle displaystyle="true">
                <mml:msubsup>
                  <mml:mo>∑</mml:mo>
                  <mml:mrow>
                    <mml:mi>n</mml:mi>
                    <mml:mo>=</mml:mo>
                    <mml:mn>1</mml:mn>
                  </mml:mrow>
                  <mml:mrow>
                    <mml:mi>N</mml:mi>
                    <mml:mi>y</mml:mi>
                    <mml:mi>r</mml:mi>
                  </mml:mrow>
                </mml:msubsup>
                <mml:mrow>
                  <mml:mfrac>
                    <mml:mrow>
                      <mml:msubsup>
                        <mml:mstyle mathsize="140%" displaystyle="true">
                          <mml:mo>∑</mml:mo>
                        </mml:mstyle>
                        <mml:mrow>
                          <mml:mi>m</mml:mi>
                          <mml:mo>=</mml:mo>
                          <mml:mn>1</mml:mn>
                        </mml:mrow>
                        <mml:mrow>
                          <mml:mn>12</mml:mn>
                        </mml:mrow>
                      </mml:msubsup>
                      <mml:mrow>
                        <mml:mo>(</mml:mo>
                        <mml:mrow>
                          <mml:mi>E</mml:mi>
                          <mml:msub>
                            <mml:mi>C</mml:mi>
                            <mml:mi>m</mml:mi>
                          </mml:msub>
                          <mml:mo>−</mml:mo>
                          <mml:mi>E</mml:mi>
                          <mml:mi>C</mml:mi>
                          <mml:msub>
                            <mml:mi>s</mml:mi>
                            <mml:mi>m</mml:mi>
                          </mml:msub>
                        </mml:mrow>
                        <mml:mo>)</mml:mo>
                      </mml:mrow>
                    </mml:mrow>
                    <mml:mrow>
                      <mml:msup>
                        <mml:mrow>
                          <mml:mrow>
                            <mml:mo>(</mml:mo>
                            <mml:mrow>
                              <mml:mn>1</mml:mn>
                              <mml:mo>+</mml:mo>
                              <mml:mi>I</mml:mi>
                              <mml:msup>
                                <mml:mi>R</mml:mi>
                                <mml:mo>′</mml:mo>
                              </mml:msup>
                            </mml:mrow>
                            <mml:mo>)</mml:mo>
                          </mml:mrow>
                        </mml:mrow>
                        <mml:mi>n</mml:mi>
                      </mml:msup>
                    </mml:mrow>
                  </mml:mfrac>
                </mml:mrow>
              </mml:mstyle>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>In which, <italic>C</italic><italic><sub>MD</sub></italic> is maximum demand charge rate which is the summation of network and capacity charge rate per kW, <italic>E</italic><italic><sub>b</sub></italic> is the total energy consumption, <italic>E</italic><italic><sub>Bp</sub></italic> is the total energy consumption during peak period and <italic>E</italic><italic><sub>Bop</sub></italic> is the total energy consumption during off-peak period of the respective month, <italic>m</italic>. <italic>C</italic><italic><sub>EC</sub></italic> is the general energy consumption charge, <italic>C</italic><italic><sub>ECp</sub></italic> is the energy consumption charge during peak hour, <italic>C</italic><italic><sub>ECop</sub></italic> is the energy consumption charge during off-peak hour, <italic>ECs</italic> is the monthly electricity cost of the building with ESS installed, <italic>IR</italic><italic>’</italic> is the effective interest rate and <italic>Nyr</italic>in the planning horizon.</p>
        <p>2.4.2. Capital and O&amp;M Costs</p>
        <p>The ESS capital cost is a function of two main parts. The first part is related to the storable energy which includes the replacement cost of ESS. Another part depends on the maximum dispatch power provided by ESS based on the proposed dispatch strategy. In addition, specific technical characteristics of ESS technology, which are round-trip efficiency<italic>η</italic>, the maximum depth of discharge <italic>γ</italic> and self-discharge rate <italic>κ</italic>, are taken into consideration to determine the rated energy and power size of ESS. The replacement cost of ESS is not included in this study as the planning horizon considered in this study is the same as the lifetime of ESS. This means that, ESS unit will not replace throughout the assessed planning horizon as it is still capable to provide the specified applications. The NPV values for the capital and O&amp;M cost of ESS over a <italic>N</italic><italic><sub>yr</sub></italic> planning horizon are formulated as in (30)-(31), respectively:</p>
        <disp-formula id="FD30">
          <mml:math display="inline">
            <mml:mrow>
              <mml:msub>
                <mml:mi>C</mml:mi>
                <mml:mrow>
                  <mml:mi>e</mml:mi>
                  <mml:mi>e</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mrow>
                <mml:mo>(</mml:mo>
                <mml:mrow>
                  <mml:mrow>
                    <mml:mrow>
                      <mml:msub>
                        <mml:mi>C</mml:mi>
                        <mml:mi>p</mml:mi>
                      </mml:msub>
                    </mml:mrow>
                    <mml:mo>/</mml:mo>
                    <mml:mrow>
                      <mml:mrow>
                        <mml:mo>(</mml:mo>
                        <mml:mrow>
                          <mml:mrow>
                            <mml:mrow>
                              <mml:msub>
                                <mml:mi>E</mml:mi>
                                <mml:mrow>
                                  <mml:mi>e</mml:mi>
                                  <mml:mi>s</mml:mi>
                                  <mml:mi>r</mml:mi>
                                </mml:mrow>
                              </mml:msub>
                            </mml:mrow>
                            <mml:mo>/</mml:mo>
                            <mml:mrow>
                              <mml:msub>
                                <mml:mi>S</mml:mi>
                                <mml:mrow>
                                  <mml:mi>e</mml:mi>
                                  <mml:mi>s</mml:mi>
                                  <mml:mi>r</mml:mi>
                                </mml:mrow>
                              </mml:msub>
                            </mml:mrow>
                          </mml:mrow>
                        </mml:mrow>
                        <mml:mo>)</mml:mo>
                      </mml:mrow>
                    </mml:mrow>
                  </mml:mrow>
                </mml:mrow>
                <mml:mo>)</mml:mo>
              </mml:mrow>
              <mml:mo>+</mml:mo>
              <mml:msub>
                <mml:mi>C</mml:mi>
                <mml:mi>e</mml:mi>
              </mml:msub>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <disp-formula id="FD31">
          <mml:math display="inline">
            <mml:mrow>
              <mml:msub>
                <mml:mi>C</mml:mi>
                <mml:mrow>
                  <mml:mi>e</mml:mi>
                  <mml:mi>s</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:msub>
                <mml:mi>C</mml:mi>
                <mml:mrow>
                  <mml:mi>e</mml:mi>
                  <mml:mi>e</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>×</mml:mo>
              <mml:msub>
                <mml:mi>E</mml:mi>
                <mml:mrow>
                  <mml:mi>e</mml:mi>
                  <mml:mi>s</mml:mi>
                  <mml:mi>r</mml:mi>
                </mml:mrow>
              </mml:msub>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <disp-formula id="FD32">
          <label>(30)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>C</mml:mi>
                <mml:mrow>
                  <mml:mi>E</mml:mi>
                  <mml:mi>S</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mrow>
                <mml:mo>(</mml:mo>
                <mml:mrow>
                  <mml:msub>
                    <mml:mi>C</mml:mi>
                    <mml:mi>E</mml:mi>
                  </mml:msub>
                  <mml:mo>×</mml:mo>
                  <mml:msub>
                    <mml:mi>E</mml:mi>
                    <mml:mrow>
                      <mml:mi>E</mml:mi>
                      <mml:mi>S</mml:mi>
                      <mml:mi>R</mml:mi>
                    </mml:mrow>
                  </mml:msub>
                </mml:mrow>
                <mml:mo>)</mml:mo>
              </mml:mrow>
              <mml:mo>+</mml:mo>
              <mml:mrow>
                <mml:mo>(</mml:mo>
                <mml:mrow>
                  <mml:msub>
                    <mml:mi>C</mml:mi>
                    <mml:mi>P</mml:mi>
                  </mml:msub>
                  <mml:mo>×</mml:mo>
                  <mml:msub>
                    <mml:mi>P</mml:mi>
                    <mml:mrow>
                      <mml:mi>E</mml:mi>
                      <mml:mi>S</mml:mi>
                      <mml:mi>R</mml:mi>
                    </mml:mrow>
                  </mml:msub>
                </mml:mrow>
                <mml:mo>)</mml:mo>
              </mml:mrow>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <disp-formula id="FD33">
          <label>(31)</label>
          <mml:math>
            <mml:mrow>
              <mml:mi>O</mml:mi>
              <mml:mi>M</mml:mi>
              <mml:mo>=</mml:mo>
              <mml:mstyle displaystyle="true">
                <mml:msubsup>
                  <mml:mo>∑</mml:mo>
                  <mml:mrow>
                    <mml:mi>n</mml:mi>
                    <mml:mo>=</mml:mo>
                    <mml:mn>1</mml:mn>
                  </mml:mrow>
                  <mml:mrow>
                    <mml:mi>N</mml:mi>
                    <mml:mi>y</mml:mi>
                    <mml:mi>r</mml:mi>
                  </mml:mrow>
                </mml:msubsup>
                <mml:mrow>
                  <mml:mfrac>
                    <mml:mrow>
                      <mml:msub>
                        <mml:mi>C</mml:mi>
                        <mml:mi>M</mml:mi>
                      </mml:msub>
                      <mml:mo>×</mml:mo>
                      <mml:msub>
                        <mml:mi>P</mml:mi>
                        <mml:mrow>
                          <mml:mi>E</mml:mi>
                          <mml:mi>S</mml:mi>
                          <mml:mi>R</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                    </mml:mrow>
                    <mml:mrow>
                      <mml:msup>
                        <mml:mrow>
                          <mml:mrow>
                            <mml:mo>(</mml:mo>
                            <mml:mrow>
                              <mml:mn>1</mml:mn>
                              <mml:mo>+</mml:mo>
                              <mml:mi>I</mml:mi>
                              <mml:msup>
                                <mml:mi>R</mml:mi>
                                <mml:mo>′</mml:mo>
                              </mml:msup>
                            </mml:mrow>
                            <mml:mo>)</mml:mo>
                          </mml:mrow>
                        </mml:mrow>
                        <mml:mi>n</mml:mi>
                      </mml:msup>
                    </mml:mrow>
                  </mml:mfrac>
                </mml:mrow>
              </mml:mstyle>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <disp-formula id="FD34">
          <label>(32)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>E</mml:mi>
                <mml:mrow>
                  <mml:mi>E</mml:mi>
                  <mml:mi>S</mml:mi>
                  <mml:mi>R</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mrow>
                <mml:mo>(</mml:mo>
                <mml:mrow>
                  <mml:mn>1</mml:mn>
                  <mml:mo>+</mml:mo>
                  <mml:mi>κ</mml:mi>
                </mml:mrow>
                <mml:mo>)</mml:mo>
              </mml:mrow>
              <mml:mo>×</mml:mo>
              <mml:mrow>
                <mml:mo>(</mml:mo>
                <mml:mrow>
                  <mml:mfrac>
                    <mml:mrow>
                      <mml:msub>
                        <mml:mi>M</mml:mi>
                        <mml:mrow>
                          <mml:mi>E</mml:mi>
                          <mml:mi>S</mml:mi>
                        </mml:mrow>
                      </mml:msub>
                    </mml:mrow>
                    <mml:mi>η</mml:mi>
                  </mml:mfrac>
                  <mml:mo>+</mml:mo>
                  <mml:mrow>
                    <mml:mo>(</mml:mo>
                    <mml:mrow>
                      <mml:mn>1</mml:mn>
                      <mml:mo>−</mml:mo>
                      <mml:mi>γ</mml:mi>
                    </mml:mrow>
                    <mml:mo>)</mml:mo>
                  </mml:mrow>
                  <mml:mo>×</mml:mo>
                  <mml:msub>
                    <mml:mi>M</mml:mi>
                    <mml:mrow>
                      <mml:mi>E</mml:mi>
                      <mml:mi>S</mml:mi>
                    </mml:mrow>
                  </mml:msub>
                </mml:mrow>
                <mml:mo>)</mml:mo>
              </mml:mrow>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <disp-formula id="FD35">
          <label>(33)</label>
          <mml:math>
            <mml:mrow>
              <mml:msub>
                <mml:mi>P</mml:mi>
                <mml:mrow>
                  <mml:mi>E</mml:mi>
                  <mml:mi>S</mml:mi>
                  <mml:mi>R</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mfrac>
                <mml:mrow>
                  <mml:mi>max</mml:mi>
                  <mml:mrow>
                    <mml:mo>(</mml:mo>
                    <mml:mrow>
                      <mml:mrow>
                        <mml:mo>|</mml:mo>
                        <mml:mrow>
                          <mml:msub>
                            <mml:mi>P</mml:mi>
                            <mml:mrow>
                              <mml:mi>E</mml:mi>
                              <mml:mi>S</mml:mi>
                              <mml:mo>,</mml:mo>
                              <mml:mi>m</mml:mi>
                              <mml:mo>,</mml:mo>
                              <mml:mi>t</mml:mi>
                            </mml:mrow>
                          </mml:msub>
                        </mml:mrow>
                        <mml:mo>|</mml:mo>
                      </mml:mrow>
                    </mml:mrow>
                    <mml:mo>)</mml:mo>
                  </mml:mrow>
                </mml:mrow>
                <mml:mi>η</mml:mi>
              </mml:mfrac>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p><italic>C</italic><italic><sub>P</sub></italic><italic>and C</italic><italic><sub>E</sub></italic> are respectively the capital power conversion system (PCS) and energy of ESS; <italic>C</italic><italic><sub>M</sub></italic> is the annual operation and maintenance costs of ESS.</p>
      </sec>
    </sec>
    <sec id="sec3">
      <title>3. Numerical Result</title>
      <sec id="sec3dot1">
        <title>3.1. Case Study</title>
        <p>The proposed methodology was verified on a Universiti Teknikal Malaysia Melaka (UTeM) building. UTeM is categorized as a commercial building that is connected to 33 kV substation. The load data were collected in April, representing peak academic activity (active lectures, laboratory sessions, and full student presence) and the building’s highest energy consumption. Repeating this peak month across the year creates a conservative, ‘worst-case’ estimation. While this approach overestimates the cumulative annual load, it is highly beneficial from a system planning perspective. It ensures that any proposed BESS sizing or energy management strategy is robust enough to reliably meet the building’s maximum demand without falling short during critical active academic periods. <xref ref-type="fig" rid="fig4">Figure 4</xref> shows the load duration curve of UTeM building for a month. During this month, UTeM recorded a maximum demand of 5.901 MW, energy consumption value of 1.47 GWh and an average daily load factor of 0.35. The figure also indicates that in that month, UTeM consumed power exceeding 2 MW during only 30% of the hours.</p>
        <p>Historical data of PV generation for 28 kWp PV modules located at Solar PV System and Smart Grid Laboratory, Faculty of Electrical Technology and Engineering, UTeM is utilized in this study. The generation data is normalized to be used for higher capacity of PV. <xref ref-type="fig" rid="fig5">Figure 5</xref> presents a box plot of UTeM’s normalized PV output power distribution for a month, categorized by different hours of the day. <xref ref-type="fig" rid="fig6">Figure 6</xref> shows the demand profile of UTeM building in a day subjected to different PV penetration levels computed using (2). It is shown that the net demand of the building recorded reverse a power flow (net demand less than zero) when PV penetration level is more than 60% of the building’s energy consumption. Lithium-ion batteries are chosen as the preferred technology for ESS allocation in commercial buildings due to their maturity for BTM applications, high efficiency, and cost-effectiveness.</p>
        <p><bold>Table 2</bold> lists all the costs associated with ESS and economic parameters used in the analysis. The planning horizon is set to be 15 years. All GA parameters are in default values except for the time limit, stall time limit and <italic>tolfun</italic>, which are set to be <italic>inf</italic>, <italic>inf</italic> and 100 respectively. As GA is a heuristic algorithm that may not guarantee the same solution even after running the same problem several times, each case was run ten times with different initial populations. The best solution </p>
        <fig id="fig4">
          <label>Figure 4</label>
          <graphic xlink:href="https://html.scirp.org/file/1771416-rId86.jpeg?20261026013338" />
        </fig>
        <p><bold>Figure 4.</bold> Typical UTeM building load duration curve in a month.</p>
        <fig id="fig5">
          <label>Figure 5</label>
          <graphic xlink:href="https://html.scirp.org/file/1771416-rId87.jpeg?20261026013337" />
        </fig>
        <p><bold>Figure 5.</bold> Box plot of UTeM normalized PV output power distribution for a month at specific hours.</p>
        <fig id="fig6">
          <label>Figure 6</label>
          <graphic xlink:href="https://html.scirp.org/file/1771416-rId88.jpeg?20261026013337" />
        </fig>
        <p><bold>Figure 6</bold><bold>.</bold> UTeM building demand profile on a day subjected to different PV penetration.</p>
        <p><bold>Table 2.</bold> Considered values of economics parameters and ESS specification.</p>
        <table-wrap id="tbl2">
          <label>Table 2</label>
          <table>
            <tbody>
              <tr>
                <td>
                  <bold>Economics/ESS Parameters</bold>
                </td>
                <td>
                  <bold>Value</bold>
                </td>
              </tr>
              <tr>
                <td>Annual O&amp;M costs of ESS, CM ($/kW)</td>
                <td>
                  5 [
                  <xref ref-type="bibr" rid="B19">19</xref>
                  ]
                </td>
              </tr>
              <tr>
                <td>Effective interest rate, IR (%)</td>
                <td>6</td>
              </tr>
              <tr>
                <td>Planning horizon, Nyr (year)</td>
                <td>15</td>
              </tr>
              <tr>
                <td>Replacement period, r (year)</td>
                <td>
                  15 [
                  <xref ref-type="bibr" rid="B19">19</xref>
                  ]
                </td>
              </tr>
              <tr>
                <td>ESS State of Charge Limits</td>
                <td>0.2 - 1.0</td>
              </tr>
              <tr>
                <td>Degradation loss of ESS, κ</td>
                <td>
                  0.1 [
                  <xref ref-type="bibr" rid="B20">20</xref>
                  ]
                </td>
              </tr>
              <tr>
                <td>Round Trip efficiency ESS, η</td>
                <td>
                  0.9 [
                  <xref ref-type="bibr" rid="B19">19</xref>
                  ]
                </td>
              </tr>
              <tr>
                <td>Maximum Depth of Discharge, γ</td>
                <td>
                  0.9 [
                  <xref ref-type="bibr" rid="B19">19</xref>
                  ]
                </td>
              </tr>
              <tr>
                <td>Standard coal consumption rate of the generation plants for peak shaving, Cps (kg/kWh)</td>
                <td>
                  0.48 [
                  <xref ref-type="bibr" rid="B20">20</xref>
                  ]
                </td>
              </tr>
              <tr>
                <td>Standard coal consumption rate of the generation plants for routine period, Cch (kg/kWh)</td>
                <td>
                  0.27 [
                  <xref ref-type="bibr" rid="B20">20</xref>
                  ]
                </td>
              </tr>
              <tr>
                <td>Li-ion Energy Component Cost ($/kWh [MYR/kWh])</td>
                <td>
                  250 (1187.5) [
                  <xref ref-type="bibr" rid="B19">19</xref>
                  ]
                </td>
              </tr>
              <tr>
                <td>Li-ion Power Component Cost ($/kW (MYR/kW])</td>
                <td>
                  230 (1092.5) [
                  <xref ref-type="bibr" rid="B19">19</xref>
                  ]
                </td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>(solution that results in maximum objective function) was then reported in the result section.</p>
      </sec>
      <sec id="sec3dot2">
        <title>3.2. ESS Dispatch Power for Commercial Building with PV Generation</title>
        <p>This section presents the result of ESS dispatch strategy for UTeM building under optimal ESS sizing, different PV penetration levels and electricity tariffs to achieve maximum NPV of ESS deployment. The results from <xref ref-type="fig" rid="fig7">Figures 7-10</xref> validate the paper’s primary contribution by demonstrating how the proposed tariff-based ESS dispatch strategy adapts to varying solar PV penetration levels to minimize </p>
        <fig id="fig7">
          <label>Figure 7</label>
          <graphic xlink:href="https://html.scirp.org/file/1771416-rId89.jpeg?20261026013338" />
        </fig>
        <p><bold>Figure 7.</bold> ESS dispatch power for UTeM building with 0% PV penetration under general and TOU tariff.</p>
        <fig id="fig8">
          <label>Figure 8</label>
          <graphic xlink:href="https://html.scirp.org/file/1771416-rId90.jpeg?20261026013339" />
        </fig>
        <p><bold>Figure 8.</bold> ESS dispatch power for UTeM building with 60% PV penetration under general and TOU tariff.</p>
        <p>electricity costs. For a building with 0% PV penetration, there is a significant difference in the amount of ESS dispatch power between the general and TOU tariffs. This huge disparity is directly due to the optimal sizing obtained from the proposed methodology. The optimal ESS capacity computed for the general tariff is much lower than the capacity required for the TOU tariff.</p>
        <p>Under a general tariff, the dispatch strategy dictates charging the ESS strictly during low-demand periods, such as at half-hourly time segment t = 39 for a building with 0% PV, or t = 23, 24, 26, and 29 for a building with 60% PV, while discharging occurs during high demand. Conversely, under a TOU tariff, the algorithm optimizes the ESS to charge during off-peak hours (t = 1 to 27) and during periods with excess PV generation (e.g., t = 28), ensuring the battery is filled when energy is cheapest or free. During the actual peak billing window </p>
        <fig id="fig9">
          <label>Figure 9</label>
          <graphic xlink:href="https://html.scirp.org/file/1771416-rId91.jpeg?20261026013339" />
        </fig>
        <p><bold>Figure 9</bold><bold>.</bold> Demand power of UTeM building with 0% PV penetration and ESS under general and TOU tariff.</p>
        <fig id="fig10">
          <label>Figure 10</label>
          <graphic xlink:href="https://html.scirp.org/file/1771416-rId92.jpeg?20261026013338" />
        </fig>
        <p><bold>Figure 10.</bold> Demand power of UTeM building with 60% PV penetration and ESS under general and TOU tariff.</p>
        <p>(segments 28 to 44), the ESS discharges to serve the building’s load, dropping the grid demand to almost zero. This reduction directly substantiates the stated 96% reduction in billed MD. While the building’s overall power draw does reach approximately 5.4 MW, this occurs during the off-peak period when the ESS is actively charging from the grid. Because the utility does not penalize off-peak demand under the TOU MD charge, this off-peak spike does not affect the billed maximum demand.</p>
        <p>The resultant diurnal demand profiles illustrate that operating the ESS under a TOU tariff yields significantly lower energy consumption during peak hours compared to the general tariff. Ultimately, the figures confirm that the iterative algorithm effectively tailors charging and discharging thresholds to the specific electricity pricing structure, consistently reducing maximum demand while maximizing the energy-shifting benefits unique to TOU pricing and high PV penetration scenarios.</p>
      </sec>
      <sec id="sec3dot3">
        <title>3.3. Optimal ESS Sizing</title>
        <p>Optimal capacity of ESS with respect to its energy and power components is identified for UTeM building with various PV penetration levels using the proposed sizing strategy. <xref ref-type="fig" rid="fig11">Figure 11</xref> and <xref ref-type="fig" rid="fig12">Figure 12</xref> depict the optimal size of ESS and NPV of ESS investment for 15 years of planning horizon under general and TOU tariff respectively. The optimal size of ESS for UTeM building without PV under General tariff is 0.7 MW/1.3 MWh with the resultant NPV is MYR 4.21 million. Meanwhile, the optimal size of ESS and NPV for UTeM building without PV under TOU tariff are higher than that for general tariff, that are 6 MW/37MWh and MYR 35 million respectively. This is due to the larger optimal ESS size computed for the case with the TOU tariff compared to the general tariff, contributing </p>
        <fig id="fig11">
          <label>Figure 11</label>
          <graphic xlink:href="https://html.scirp.org/file/1771416-rId93.jpeg?20261026013339" />
        </fig>
        <p><bold>Figure 11.</bold> Optimal ESS energy and power size with NPV at different levels of PV penetration under general tariff.</p>
        <fig id="fig12">
          <label>Figure 12</label>
          <graphic xlink:href="https://html.scirp.org/file/1771416-rId94.jpeg?20261026013339" />
        </fig>
        <p><bold>Figure 12.</bold> Optimal ESS energy and power size with NPV at different levels of PV penetration under TOU tariff.</p>
        <p>to more energy shifted from peak period to off-peak period. Consequently, the maximum NPV is achieved when a 6 MW/37 MWh ESS, the largest optimal capacity proposed, is integrated into the UTeM building with 0% PV penetration under TOU tariff. Because this 6 MW power rating is equivalent to 100% of UTeM’s MD, it drives a remarkable 96% reduction in MD. Furthermore, the massive 37 MWh energy reservoir allows the system to shift nearly all peak energy consumption to off-peak periods. This enables the building to operate almost entirely on cheaper stored energy during peak hours, successfully bypassing the expensive TOU peak energy rates entirely.</p>
        <p>Furthermore, the significant outcomes from <xref ref-type="fig" rid="fig11">Figure 11</xref> and <xref ref-type="fig" rid="fig12">Figure 12</xref>, alongside <bold>Table 3</bold>, underscore the economic relationship between solar PV penetration, optimal ESS sizing, and tariff structures. As illustrated in <xref ref-type="fig" rid="fig11">Figures 11</xref>, while optimal ESS energy and power sizes remain relatively small at lower PV penetrations (0% to 20%), they rise sharply as PV penetration increases from 40% to 100%. This increase in required capacity directly correlates with a higher NPV, making high PV penetration scenarios considerably more economically viable over the long term under the general tariff. Conversely, the required optimal ESS capacity under the TOU tariff decreases with higher levels of PV integration. Despite this reduction in system size, the TOU tariff continues to yield substantially greater economic returns compared to the general tariff, achieving an NPV between MYR 28 million and MYR 35 million. This economic advantage is further confirmed by <bold>Table 3</bold>, which reveals that under a general tariff, adding an ESS results in linear electricity cost reductions, reaching its highest reduction of 100% PV integration. In contrast, under the TOU tariff, the introduction of the optimal ESS based on the proposed strategy, drives substantially larger cost decreases for all levels of PV penetration, highlighting its economic viability and efficiency.</p>
        <p><bold>Table 3.</bold> Monthly electricity cost of UTeM building with different levels of PV penetration and electricity tariff with the optimal ESS deployment.</p>
        <table-wrap id="tbl3">
          <label>Table 3</label>
          <table>
            <tbody>
              <tr>
                <td rowspan="2">
                  <bold>Scenario</bold>
                </td>
                <td colspan="3">
                  <bold>General Tariff</bold>
                </td>
                <td colspan="3">
                  <bold>TOU Tariff</bold>
                </td>
              </tr>
              <tr>
                <td>Monthly Electricity Cost (Million MYR)</td>
                <td>Monthly Electricity Cost with ESS (Million MYR)</td>
                <td>Electricity Cost Reduction (%)</td>
                <td>Monthly Electricity Cost (Million MYR)</td>
                <td>Monthly Electricity Cost with ESS (Million MYR)</td>
                <td>Electricity Cost Reduction (%)</td>
              </tr>
              <tr>
                <td>PV 0%</td>
                <td>0.97</td>
                <td>0.91</td>
                <td>5.89</td>
                <td>0.97</td>
                <td>0.43</td>
                <td>55.85</td>
              </tr>
              <tr>
                <td>PV 20%</td>
                <td>0.82</td>
                <td>0.71</td>
                <td>13.30</td>
                <td>0.83</td>
                <td>0.38</td>
                <td>54.24</td>
              </tr>
              <tr>
                <td>PV 40%</td>
                <td>0.75</td>
                <td>0.47</td>
                <td>37.25</td>
                <td>0.74</td>
                <td>0.32</td>
                <td>56.56</td>
              </tr>
              <tr>
                <td>PV 60%</td>
                <td>0.70</td>
                <td>0.39</td>
                <td>44.48</td>
                <td>0.66</td>
                <td>0.26</td>
                <td>60.49</td>
              </tr>
              <tr>
                <td>PV 80%</td>
                <td>0.67</td>
                <td>0.33</td>
                <td>51.13</td>
                <td>0.59</td>
                <td>0.18</td>
                <td>69.53</td>
              </tr>
              <tr>
                <td>PV 100%</td>
                <td>0.66</td>
                <td>0.24</td>
                <td>63.44</td>
                <td>0.52</td>
                <td>0.16</td>
                <td>69.23</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
      </sec>
    </sec>
    <sec id="sec4">
      <title>4. Conclusion</title>
      <p>This study successfully developed and validated a tariff-based Energy Storage System (ESS) dispatch and sizing strategy for commercial buildings integrated with varying levels of solar photovoltaic (PV) generation. By employing an iterative algorithm tailored to specific electricity pricing structures, the proposed approach effectively minimizes electricity costs through maximum demand (MD) reduction and strategic energy shifting from peak to off-peak periods. The comparative analysis utilizing the UTeM building load profile demonstrates that higher PV penetration levels necessitate larger ESS capacities, which correspondingly yield greater long-term profitability, or Net Present Value (NPV). Furthermore, the findings reveal that operating under a Time-of-Use (TOU) tariff consistently outperforms the general tariff, driving larger optimal ESS sizes and significantly higher financial returns. Ultimately, the highest NPV was realized under a TOU tariff with 0% PV integration, where deploying a 6 MW/37 MWh ESS successfully curtailed maximum demand by 96% and reduced overall electricity costs by nearly 56%. Ultimately, this research provides crucial guidelines for building owners and investors, proving that the combination of TOU tariffs and high PV integration creates a highly viable and profitable economic landscape for ESS deployment in commercial facilities.</p>
    </sec>
    <sec id="sec5">
      <title>Acknowledgements</title>
      <p>This study is funded by Ministry of Higher Education (MOHE) of Malaysia through the Fundamental Research Grant Scheme (FRGS), No. FRGS/1/2023/TK07/UTEM/02/4. The authors also would like to thank Universiti Teknikal Malaysia Melaka (UTeM) for all the supports.</p>
    </sec>
    <sec id="sec6">
      <title>Author Contributions</title>
      <p>Junainah Sardi: Methodology, Formal analysis, Investigation, Data curation, Writing—original draft preparation, Writing—review &amp; editing. Mohamad Fani Sulaima: Validation, Supervision, Writing—review &amp; editing. Surina Mat Suboh: Conceptualization, Validation, Writing—review &amp; editing. All authors contributed to the interpretation of the results, critically reviewed the manuscript, approved the final version of the manuscript, and agreed to be accountable for all aspects of the work. </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <title>References</title>
      <ref id="B1">
        <label>1.</label>
        <citation-alternatives>
          <mixed-citation publication-type="web">Sustainable Energy Development Authority (SEDA) Malaysia (2021) Malaysia Renewable Energy Roadmap (MyRER). https://www.seda.gov.my/reportal/myrer/</mixed-citation>
          <element-citation publication-type="web">
            <year>2021</year>
            <article-title>Malaysia Renewable Energy Roadmap (MyRER)</article-title>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B2">
        <label>2.</label>
        <citation-alternatives>
          <mixed-citation publication-type="web">National Energy Balance 2020. Suruhanjaya Tenaga (Energy Commission). https://www.st.gov.my/sites/default/files/2026-02/National_Energy_Balance_2020.pdf</mixed-citation>
          <element-citation publication-type="web">
            <year>2020</year>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B3">
        <label>3.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Akil, M., Dokur, E. and Bayindir, R. (2022) A Coordinated EV Charging Scheduling Containing PV System. <italic>International Journal of Smart Grid</italic>, 6, 65-71.</mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Akil, M.</string-name>
              <string-name>Dokur, E.</string-name>
              <string-name>Bayindir, R.</string-name>
            </person-group>
            <year>2022</year>
            <article-title>A Coordinated EV Charging Scheduling Containing PV System</article-title>
            <source>International Journal of Smart Grid</source>
            <volume>6</volume>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B4">
        <label>4.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Al Shaqsi, A.Z., Sopian, K. and Al-Hinai, A. (2020) Review of Energy Storage Services, Applications, Limitations, and Benefits. <italic>Energy Reports</italic>, 6, 288-306. https://doi.org/10.1016/j.egyr.2020.07.028 <pub-id pub-id-type="doi">10.1016/j.egyr.2020.07.028</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.egyr.2020.07.028">https://doi.org/10.1016/j.egyr.2020.07.028</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Shaqsi, A.Z.</string-name>
              <string-name>Sopian, K.</string-name>
              <string-name>Al-Hinai, A.</string-name>
              <string-name>Services, A</string-name>
            </person-group>
            <year>2020</year>
            <article-title>Review of Energy Storage Services, Applications, Limitations, and Benefits</article-title>
            <source>Energy Reports</source>
            <volume>6</volume>
            <pub-id pub-id-type="doi">10.1016/j.egyr.2020.07.028</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B5">
        <label>5.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Rezaeimozafar, M., Monaghan, R.F.D., Barrett, E. and Duffy, M. (2022) A Review of Behind-the-Meter Energy Storage Systems in Smart Grids. <italic>Renewable and Sustainable Energy Reviews</italic>, 164, Article ID: 112573. https://doi.org/10.1016/j.rser.2022.112573 <pub-id pub-id-type="doi">10.1016/j.rser.2022.112573</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.rser.2022.112573">https://doi.org/10.1016/j.rser.2022.112573</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Rezaeimozafar, M.</string-name>
              <string-name>Monaghan, R.F.D.</string-name>
              <string-name>Barrett, E.</string-name>
              <string-name>Duffy, M.</string-name>
            </person-group>
            <year>2022</year>
            <article-title>A Review of Behind-the-Meter Energy Storage Systems in Smart Grids</article-title>
            <source>Renewable and Sustainable Energy Reviews</source>
            <volume>164</volume>
            <fpage>112573</fpage>
            <elocation-id>ID</elocation-id>
            <pub-id pub-id-type="doi">10.1016/j.rser.2022.112573</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B6">
        <label>6.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Zurfi, A., Albayati, G. and Zhang, J. (2018) Economic Feasibility of Residential Behind-the-Meter Battery Energy Storage Under Energy Time-of-Use and Demand Charge Rates. <italic>International Journal of Smart Grid</italic>, 2, 58-66.</mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Zurfi, A.</string-name>
              <string-name>Albayati, G.</string-name>
              <string-name>Zhang, J.</string-name>
            </person-group>
            <year>2018</year>
            <article-title>Economic Feasibility of Residential Behind-the-Meter Battery Energy Storage Under Energy Time-of-Use and Demand Charge Rates</article-title>
            <source>International Journal of Smart Grid</source>
            <volume>2</volume>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B7">
        <label>7.</label>
        <citation-alternatives>
          <mixed-citation publication-type="confproc">Lazaroiu, G.C. and Roscia, M. (2023) Key Elements to Create Renewable Energy Communities (REC). 2023 12 <italic>th International Conference on Renewable Energy Research and Applications</italic> ( <italic>ICRERA</italic>), Oshawa, 29 August-1 September 2023, 512-516. https://doi.org/10.1109/icrera59003.2023.10269406 <pub-id pub-id-type="doi">10.1109/icrera59003.2023.10269406</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/icrera59003.2023.10269406">https://doi.org/10.1109/icrera59003.2023.10269406</ext-link></mixed-citation>
          <element-citation publication-type="confproc">
            <person-group person-group-type="author">
              <string-name>Lazaroiu, G.C.</string-name>
              <string-name>Roscia, M.</string-name>
            </person-group>
            <year>2023</year>
            <article-title>Key Elements to Create Renewable Energy Communities (REC)</article-title>
            <source>2023 12th International Conference on Renewable Energy Research and Applications (ICRERA)</source>
            <volume>29</volume>
            <pub-id pub-id-type="doi">10.1109/icrera59003.2023.10269406</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B8">
        <label>8.</label>
        <citation-alternatives>
          <mixed-citation publication-type="confproc">Sarr, M., Thiam, M., Niang, B., Ba, O. and Thiaw, L. (2022) BESS Deployment and Virtual Power Plant: Technical and Financial Analysis of the Senelec Network to Assess the Relevance. 2022 10 <italic>th International Conference on Smart Grid</italic> ( <italic>icSmartGrid</italic>), Istanbul, 27-29 June 2022, 118-123. https://doi.org/10.1109/icsmartgrid55722.2022.9848743 <pub-id pub-id-type="doi">10.1109/icsmartgrid55722.2022.9848743</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/icsmartgrid55722.2022.9848743">https://doi.org/10.1109/icsmartgrid55722.2022.9848743</ext-link></mixed-citation>
          <element-citation publication-type="confproc">
            <person-group person-group-type="author">
              <string-name>Sarr, M.</string-name>
              <string-name>Thiam, M.</string-name>
              <string-name>Niang, B.</string-name>
              <string-name>Ba, O.</string-name>
              <string-name>Thiaw, L.</string-name>
            </person-group>
            <year>2022</year>
            <article-title>BESS Deployment and Virtual Power Plant: Technical and Financial Analysis of the Senelec Network to Assess the Relevance</article-title>
            <source>2022 10th International Conference on Smart Grid (icSmartGrid)</source>
            <volume>27</volume>
            <pub-id pub-id-type="doi">10.1109/icsmartgrid55722.2022.9848743</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B9">
        <label>9.</label>
        <citation-alternatives>
          <mixed-citation publication-type="confproc">Cetinkaya, U., Bayindir, R. and Ayik, S. (2021) Ancillary Services Using Battery Energy Systems and Demand Response. 2021 9 <italic>th International Conference on Smart Grid</italic> ( <italic>icSmartGrid</italic>), Setubal, 29 June-1 July 2021, 212-215. https://doi.org/10.1109/icsmartgrid52357.2021.9551253 <pub-id pub-id-type="doi">10.1109/icsmartgrid52357.2021.9551253</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/icsmartgrid52357.2021.9551253">https://doi.org/10.1109/icsmartgrid52357.2021.9551253</ext-link></mixed-citation>
          <element-citation publication-type="confproc">
            <person-group person-group-type="author">
              <string-name>Cetinkaya, U.</string-name>
              <string-name>Bayindir, R.</string-name>
              <string-name>Ayik, S.</string-name>
            </person-group>
            <year>2021</year>
            <article-title>Ancillary Services Using Battery Energy Systems and Demand Response</article-title>
            <source>2021 9th International Conference on Smart Grid (icSmartGrid)</source>
            <volume>29</volume>
            <pub-id pub-id-type="doi">10.1109/icsmartgrid52357.2021.9551253</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B10">
        <label>10.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Beuse, M., Dirksmeier, M., Steffen, B. and Schmidt, T.S. (2020) Profitability of Commercial and Industrial Photovoltaics and Battery Projects in Southeast-Asia. <italic>Applied Energy</italic>, 271, Article ID: 115218. https://doi.org/10.1016/j.apenergy.2020.115218 <pub-id pub-id-type="doi">10.1016/j.apenergy.2020.115218</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.apenergy.2020.115218">https://doi.org/10.1016/j.apenergy.2020.115218</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Beuse, M.</string-name>
              <string-name>Dirksmeier, M.</string-name>
              <string-name>Steffen, B.</string-name>
              <string-name>Schmidt, T.S.</string-name>
            </person-group>
            <year>2020</year>
            <article-title>Profitability of Commercial and Industrial Photovoltaics and Battery Projects in Southeast-Asia</article-title>
            <source>Applied Energy</source>
            <volume>271</volume>
            <fpage>115218</fpage>
            <elocation-id>ID</elocation-id>
            <pub-id pub-id-type="doi">10.1016/j.apenergy.2020.115218</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B11">
        <label>11.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Hossain, J., Saeed, N., Manojkumar, R., Marzband, M., Sedraoui, K. and Al-Turki, Y. (2024) Optimal Peak-Shaving for Dynamic Demand Response in Smart Malaysian Commercial Buildings Utilizing an Efficient PV-BES System. <italic>Sustainable Cities and Society</italic>, 101, Article ID: 105107. https://doi.org/10.1016/j.scs.2023.105107 <pub-id pub-id-type="doi">10.1016/j.scs.2023.105107</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.scs.2023.105107">https://doi.org/10.1016/j.scs.2023.105107</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Hossain, J.</string-name>
              <string-name>Saeed, N.</string-name>
              <string-name>Manojkumar, R.</string-name>
              <string-name>Marzband, M.</string-name>
              <string-name>Sedraoui, K.</string-name>
              <string-name>Al-Turki, Y.</string-name>
            </person-group>
            <year>2024</year>
            <article-title>Optimal Peak-Shaving for Dynamic Demand Response in Smart Malaysian Commercial Buildings Utilizing an Efficient PV-BES System</article-title>
            <source>Sustainable Cities and Society</source>
            <volume>101</volume>
            <fpage>105107</fpage>
            <elocation-id>ID</elocation-id>
            <pub-id pub-id-type="doi">10.1016/j.scs.2023.105107</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B12">
        <label>12.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Kanwhen, O. and Mohamed, A. (2023) Energy Storage Systems for Commercial Buildings in Dense Urban Regions: NYC Case Study. <italic>Energy Reports</italic>, 10, 300-318. https://doi.org/10.1016/j.egyr.2023.06.023 <pub-id pub-id-type="doi">10.1016/j.egyr.2023.06.023</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.egyr.2023.06.023">https://doi.org/10.1016/j.egyr.2023.06.023</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Kanwhen, O.</string-name>
              <string-name>Mohamed, A.</string-name>
            </person-group>
            <year>2023</year>
            <article-title>Energy Storage Systems for Commercial Buildings in Dense Urban Regions: NYC Case Study</article-title>
            <source>Energy Reports</source>
            <volume>10</volume>
            <pub-id pub-id-type="doi">10.1016/j.egyr.2023.06.023</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B13">
        <label>13.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Hasan, A.S.M.J., Enriquez-Contreras, L.F., Yusuf, J. and Ula, S. (2023) A Universal Optimization Framework for Commercial Building Loads Using DERs from Utility Tariff Perspective with Tariff Change Impacts Analysis. <italic>Energy Reports</italic>, 9, 6088-6101. https://doi.org/10.1016/j.egyr.2023.05.036 <pub-id pub-id-type="doi">10.1016/j.egyr.2023.05.036</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.egyr.2023.05.036">https://doi.org/10.1016/j.egyr.2023.05.036</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Hasan, A.S.M.J.</string-name>
              <string-name>Enriquez-Contreras, L.F.</string-name>
              <string-name>Yusuf, J.</string-name>
              <string-name>Ula, S.</string-name>
            </person-group>
            <year>2023</year>
            <article-title>A Universal Optimization Framework for Commercial Building Loads Using DERs from Utility Tariff Perspective with Tariff Change Impacts Analysis</article-title>
            <source>Energy Reports</source>
            <volume>9</volume>
            <pub-id pub-id-type="doi">10.1016/j.egyr.2023.05.036</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B14">
        <label>14.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Hasan, A.S.M., Yusuf, J. and Ula, S. (2021) A Comprehensive Optimization Method for Commercial Building Loads with Renewable Generation and Energy Storage from Utility Rate Structure Perspective. https://doi.org/10.48550/arXiv.2103.09381 <pub-id pub-id-type="doi">10.48550/arXiv.2103.09381</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.48550/arXiv.2103.09381">https://doi.org/10.48550/arXiv.2103.09381</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Hasan, A.S.M.</string-name>
              <string-name>Yusuf, J.</string-name>
              <string-name>Ula, S.</string-name>
            </person-group>
            <year>2021</year>
            <article-title>A Comprehensive Optimization Method for Commercial Building Loads with Renewable Generation and Energy Storage from Utility Rate Structure Perspective</article-title>
            <pub-id pub-id-type="doi">10.48550/arXiv.2103.09381</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B15">
        <label>15.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Ashabi, A., Peiravi, M.M., Nikpendar, P., Salehi Nasab, S. and Jaryani, F. (2022) Optimal Sizing of Battery Energy Storage System in Commercial Buildings Utilizing Techno-Economic Analysis. <italic>International Journal of Engineering</italic>, <italic>Transactions B</italic>: <italic>Applications</italic>, 35, 1662-1673. https://doi.org/10.5829/ije.2022.35.08b.22 <pub-id pub-id-type="doi">10.5829/ije.2022.35.08b.22</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.5829/ije.2022.35.08b.22">https://doi.org/10.5829/ije.2022.35.08b.22</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Ashabi, A.</string-name>
              <string-name>Peiravi, M.M.</string-name>
              <string-name>Nikpendar, P.</string-name>
              <string-name>Nasab, S.</string-name>
              <string-name>Jaryani, F.</string-name>
              <string-name>Engineering, T</string-name>
            </person-group>
            <year>2022</year>
            <article-title>Optimal Sizing of Battery Energy Storage System in Commercial Buildings Utilizing Techno-Economic Analysis</article-title>
            <source>International Journal of Engineering</source>
            <volume>35</volume>
            <pub-id pub-id-type="doi">10.5829/ije.2022.35.08b.22</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B16">
        <label>16.</label>
        <mixed-citation publication-type="web">Tenaga Nasional Berhad. https://www.mytnb.com.my/tariff/index.html?lang=en&amp;v=1.1.69</mixed-citation>
      </ref>
      <ref id="B17">
        <label>17.</label>
        <citation-alternatives>
          <mixed-citation publication-type="web">Energy Commission of Malaysia (Suruhanjaya Tenaga) (2025) Guidelines for Solar Photovoltaic Installation for Self-Consumption in Peninsular Malaysia. https://www.st.gov.my/sustainability/energy-transition-programmes/self-consumption-selco#section-1</mixed-citation>
          <element-citation publication-type="web">
            <year>2025</year>
            <article-title>Guidelines for Solar Photovoltaic Installation for Self-Consumption in Peninsular Malaysia</article-title>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B18">
        <label>18.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Sardi, J., Mithulananthan, N., Islam, M.M. and Gan, C.K. (2021) Framework of Virtual Microgrids Formation Using Community Energy Storage in Residential Networks with Rooftop Photovoltaic Units. <italic>Journal of Energy Storage</italic>, 35, Article ID: 102250. https://doi.org/10.1016/j.est.2021.102250 <pub-id pub-id-type="doi">10.1016/j.est.2021.102250</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.est.2021.102250">https://doi.org/10.1016/j.est.2021.102250</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Sardi, J.</string-name>
              <string-name>Mithulananthan, N.</string-name>
              <string-name>Islam, M.M.</string-name>
              <string-name>Gan, C.K.</string-name>
            </person-group>
            <year>2021</year>
            <article-title>Framework of Virtual Microgrids Formation Using Community Energy Storage in Residential Networks with Rooftop Photovoltaic Units</article-title>
            <source>Journal of Energy Storage</source>
            <volume>35</volume>
            <fpage>102250</fpage>
            <elocation-id>ID</elocation-id>
            <pub-id pub-id-type="doi">10.1016/j.est.2021.102250</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B19">
        <label>19.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Cole, W. and Karmakar, A. (2023) Cost Projections for Utility-Scale Battery Storage: 2023 Update. National Renewable Energy Laboratory. https://docs.nlr.gov/docs/fy23osti/85332.pdf</mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Cole, W.</string-name>
              <string-name>Karmakar, A.</string-name>
            </person-group>
            <year>2023</year>
            <article-title>Cost Projections for Utility-Scale Battery Storage: 2023 Update</article-title>
            <fpage>2023</fpage>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B20">
        <label>20.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Yan, X., Zhang, X., Chen, H., Xu, Y. and Tan, C. (2014) Techno-economic and Social Analysis of Energy Storage for Commercial Buildings. <italic>Energy Conversion and Management</italic>, 78, 125-136. https://doi.org/10.1016/j.enconman.2013.10.014 <pub-id pub-id-type="doi">10.1016/j.enconman.2013.10.014</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.enconman.2013.10.014">https://doi.org/10.1016/j.enconman.2013.10.014</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Yan, X.</string-name>
              <string-name>Zhang, X.</string-name>
              <string-name>Chen, H.</string-name>
              <string-name>Xu, Y.</string-name>
              <string-name>Tan, C.</string-name>
            </person-group>
            <year>2014</year>
            <article-title>Techno-economic and Social Analysis of Energy Storage for Commercial Buildings</article-title>
            <source>Energy Conversion and Management</source>
            <volume>78</volume>
            <pub-id pub-id-type="doi">10.1016/j.enconman.2013.10.014</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
    </ref-list>
  </back>
</article>