Minimization of Global Adjustment Charges for Large Electricity Customers Using Energy Storage—Canadian Market Case Study

: Recently, the interest in utilizing energy storage systems (ESSs), particularly batteries, has increased. ESSs are employed for several enhancement tasks in power systems on both the operation and planning scales. On the operation side, ESSs play a main role in offering several ancillary services. In the context of planning, ESSs are used for asset upgrade deferral among other grid applications. This work employs a battery energy storage system (BESS) to minimize the electricity bill charges associated with global adjustment for large consumers in the jurisdiction of Ontario, Canada. An optimization formulation for sizing and scheduling the BESS, to minimize the utility charges and gain proﬁts from other revenue streams, such as energy price arbitrage (EPA), was developed and implemented. The results show the economic feasibility of the developed algorithm to minimize the annual bills of real customers and gain proﬁts. A sensitivity analysis was also carried out to show the potential of the proposed method in providing signiﬁcant beneﬁts and gains for customers.


Introduction
Energy storage systems (ESSs) represent a promising technology for incorporation with existing power systems. Lately, interest in using ESS has been rekindled, especially considering the perfect services that ESSs can offer. Applications of ESSs in power systems are usually motivated by technical and/or economic benefits ( [1,2]).
For economic purposes, ESSs can be used by the utility and end-user customers to gain benefits. On the utility side, the literature shows several algorithms for optimizing the deployment of ESS for the deferral of feeder capacity upgrades [1][2][3][4][5][6]. One of the early studies to investigate the potential of storage systems in the deferral of distribution grid upgrades was published in 1998 [3]. In [4], the optimal size of distribution feeders with a battery and a photovoltaic system was determined. Sandia National Laboratories analyzed the impact of modular storage systems on deferring asset upgrade projects for electric utilities at the transmission and distribution levels [5]. Zhang et al. proposed an algorithm for utility distribution planning benefiting from the deferral potentials of storage systems [6].
On the other hand, energy storage is used by end-users to minimize utility charges, e.g., demand charges (DCs), in some jurisdictions. Energy price arbitrage (EPA) is an interesting way to gain profit by owning energy storage. EPA refers to energy trading, when allowable, within an electricity market, by purchasing energy from the grid (charging ESS) at a low price and selling it back to the grid (discharging ESS) at times of significantly higher grid prices. Therefore, battery systems may take advantage of the spot price volatility from off-peak time to peak time to gain profit. The literature Different from publications available in the literature, this paper proposes a methodology to figure out the optimal system size and scheduling profile of BESS to minimize the utility charges (specifically GAC and DC) for class-A customers in Ontario. The research work is motivated by and specific to the class-A tariff structure and the jurisdiction regulations of the IESO in Ontario. Such tariff and regulations together add significant financial benefits to the classical peak shaving service Class-A customers are defined by (the IESO) as "Customers with peak demand greater than 1 MW but less than or equal to 5 MW". Moreover, "Customers who participate in the Industrial Conservation Initiative (ICI), pay global adjustment (GA) based on their percentage contribution to the top five peak Ontario demand hours over a twelve-month period. Customers participating in this initiative are referred to as Class A" [23].
Different from publications available in the literature, this paper proposes a methodology to figure out the optimal system size and scheduling profile of BESS to minimize the utility charges (specifically GAC and DC) for class-A customers in Ontario. The research work is motivated by and specific to the class-A tariff structure and the jurisdiction regulations of the IESO in Ontario. Such tariff and regulations together add significant financial benefits to the classical peak shaving service energy storage can offer to large commercial and industrial facilities. Furthermore, the proposed formulation considers profit maximization through stacking more revenue streams, such as energy arbitrage and participation in IESO demand response programs. In addition, the proposed BESS provides backup power supply services to the class-A facilities during grid outages which increases the overall supply resiliency. The model is developed, coded, and tested based on actual load profile data of existing class-A facilities and the corresponding IESO energy market data. The results show the effectiveness of the developed optimization algorithm in minimizing the energy bills of the customer. Findings of this research work also maximize the overall profits of the system such that a viable investment opportunity can be pursued. In other words, value stacking and revenue maximization of the BESS increases the return on investment (ROI) of the project above the threshold that attracts investors into the business. The contributions of this work can be summarized as follows. Firstly, a novel solution is presented to minimize the annual energy bill for large electricity customers in Ontario. Secondly, a methodology is developed to obtain the optimal size of BESS units that minimizes total energy costs, including the global adjustment cost, for class-A customers. Various revenue streams are stacked to maximize the total gain. The proposed technique is flexible and can be applied to different class-A facilities with different load profiles and operation schemes. Thirdly, the proposed straightforward optimization model has a commercial opportunity to attract a great deal of attention from many class-A customers in Ontario, the IESO, and independent third-party energy market investors. Finally, the proposed methodology can be extended to other markets and jurisdictions wherever the total energy cost can be controlled through a behind-the-meter distributed energy resource like a BESS.
It should be emphasized that the work reported in the literature does not include any methodology of optimally sizing and dispatching a battery system for the purpose of reducing energy cost at large facilities. The present paper introduces a first attempt on attaining the optimal size and dispatch profile of a behind-the-meter battery which yields maximum profit for a large commercial or industrial facility. The technique has been tailored to fit the IESO market regulations in Ontario, but could be extended to other jurisdictions whose rules allow a certain level of energy cost control via distributed energy resources. Similar to the case in Ontario, it is anticipated that other markets will have an ROI level which encourages investments by facility owners, utilities, and independent energy investors.

Profit-Maximizing Several Revenue Streams for a BESS
In this part of the paper, the developed mathematical formulation that optimally size and schedule the battery, such that decreasing the customer energy charges, mainly considering the global adjustment and demand charges, is presented.

Major Objectives
The developed mathematical formulation aims to maximize the battery revenue from several streams while minimizing the overall utility charges for the large customer who will adopt the battery solution. The problem is formulated on annual basis.

•
Objective function: The following objective function in (1) minimizes the utility charges and the battery cost while maximizing the battery revenue. Full description of each of these cost and revenue terms are provided in the following set of Equations (2)- (7).
• Battery investment cost per year: The term of the battery investment cost on annual basis ACC B is formulated in (2). This annual cost term counts for both the energy capacity of the battery and the power capacity of the interfacing converter unit as in (2). The annual battery cost takes into consideration the interest rate and the investment period in order to yield a present value of the cost.
• The total customer energy cost per year (AEC): The energy cost of the customer who adopts the battery solution is estimated based on the net exchange power at the point of common coupling between the customer and the distribution grid, and is formulated in (3) on annual basis. The cost function accounts for the hourly load profile and hourly spot price. •

Cost of global adjustment per year (AGAC):
The global adjustment cost is a unique utility charges for the province of Ontario, Canada. It has been formulated in (4). It is evaluated on monthly basis such that representing the individual contribution of the customer into the five coincident peaks of the whole province. This cost depends on the monthly announced charges by the Independent Electricity System Operator (IESO) [24][25][26]: The cost of demand charges per year (ADCC): The annualized cost of demand charges is formulated in (5). Based on monthly calculation the demand charge cost is estimated accounting for the peak demand load for this month: • Energy arbitrage revenue per year (ARV EA ): This energy arbitrage revenue is counting for the profit gained from the fluctuation of the energy price from hour to hour, where the battery can charge during the low-price hours and discharging during the high-price hours. This revenue is calculated on annual basis as shown in (6): Appl. Sci. 2020, 10, 8585 5 of 20 • Demand response revenue per year (ARV DR ): The demand response revenue is formulated in (7). This revenue is gained based on two bases as shown in (7). First, the annual demand response contract. Second, the hourly demand response revenue which is calculated based on the corresponding energy price market. The formulation assumes participation in the winter demand response program of the IESO. During summer, the BESS is anticipated to operate mainly for GA peak shaving which more lucrative and comes at a higher priority.

The Set of Constraint
Based on the multi terms objective function in (1) and the terms described in (2)-(7), a set of constrains are mathematically developed to consider the technical and the economical constraints of the system.

•
Hourly power of battery: This constrain is formulated to count for the charging and discharging modes of the battery. In the charging mode, the battery power is assumed to have a negative value, while in the discharging mode the battery power has a positive value. The net battery power is assumed to be the sum of the charging and discharging power such that the battery is only operating in one of these two modes.
• Battery power at discharging mode: During the discharging mode the battery power is restricted based on (9). The integer variable u t , is employed to distinguish between the charging and discharging modes of the battery such that the value of this integer will be one for the discharge mode and zero for charging mode.: • Battery power at charging mode: Akin to (9), the charging power is limited to the battery capacity during charging mode as in (10), the integer u t has a zero value during the charging mode: • Peak demand factor (PDF): This factor describes the share of this customer into the aggregate loading of the province during the five coincidental peaks as in (11). The PDF is the key variable that determines the GA charges during the following adjustment period.

•
The battery intertemporal constrain: This battery intertemporal constraint describes the relation between the battery power and energy from time to time as in (12) and (13).
The life cycle limit: The actual battery cycle life is calculated based on the charging and discharging profile, and has been limited to be less than or equal to the battery manufacturer cycle life as in (14): • Power balance constrain: The power balance for the individual large customer bus is formulated as in (15).
• The battery deployment during the considered set of peak hours: As the global adjustment is the biggest utility cost for large customers in Ontario, Equation (16) is formulated to enforce the battery discharging to cover the customer load during the set of considered peak hours (Ω PH ). This set of peak hours are estimated based on the historical data to avoid the uncertainty of forecasting of the five coincident peaks of this year. The coefficient KD represents the percentage of the customer demand load which will be supplied by the battery during the peak hours: • Limits to the battery capital cost: In constrain (17), the battery capital cost is limited to the annual budget available for battery purchasing. It is important to mention that the maximum budget depends on many factors. However, our application is very specifically tuned to eliminate the GAC, so the budget based on the historical data of the paid bills for a class-A customer. We can estimate the average budget that will make this investment economically feasible. In other words, this investment budget should be returned to the customer in the form of GAC savings within the planning horizon: • C-rate (ratio between PB and EB ): This constrain defines the limit of the battery power to energy ratio which is defined as C-rate. According to the purpose of the battery deployment and applications, the upper and lower limits are defined as in (18).

Depth of discharge (DOD):
In order to keep the linearity of the formulation, a five-segment linearized curve [15] is used to specify the relation between the battery depth of discharge (DOD) and its cycle life (NC) as in (19). In Equation (20), an integer IU is used for each segment and ensures that only one segment of the curve will be used as shown in Figure 2.
 C-rate (ratio between and ): This constrain defines the limit of the battery power to energy ratio which is defined as C-rate. According to the purpose of the battery deployment and applications, the upper and lower limits are defined as in (18).

Depth of discharge (DOD):
In order to keep the linearity of the formulation, a five-segment linearized curve [15] is used to specify the relation between the battery depth of discharge (DOD) and its cycle life (NC) as in (19). In Equation (20), an integer is used for each segment and ensures that only one segment of the curve will be used as shown in Figure 2.

Solution Algorithm
For the purpose of validation, a greedy algorithm 1 is developed to demonstrate the solution procedure for sizing and scheduling the BESS as follows. Furthermore, the developed mathematical formulation of Section 3 is coded and implemented as a mixed integer nonlinear problem and solved using a commercial optimization solver. Algorithm 1 Battery storage scheduling for energy arbitrage maximization.

1.
Read all the model parameters including {R SP t , P D t , PD PS , r, Ny, for ph ∈ Ω PH 4. Calculate where ph ∈ Ω PH 5.
Calculate P B in and E B in

29.
Return back the output objective function

Results
A practical data for a large customer (Class-A) is employed to check the performance of the developed model. The energy market price including, global adjustment cost, demand charges, hourly energy price are adopted from the available data of IESO in Ontario, Canada [24][25][26]. It is important to mention here that the uncertainty in the load demand and market prices is fully considered in the data processing step. This analysis is based on the long-term planning forecasted data of IESO, which is available in [26]. This study has considered the average forecasted data for the prices and the global demand load profile over the study horizon (5 years). For the class-A customer data, we have used the available historical data to forecast the average customer load over the study horizon (5 years).
The proposed mixed integer nonlinear mathematical formulation was coded in the AMPL optimization platform [27] and solved using the KNITO commercial solver. Figure 3 shows the daily peak demand power for a class-A customer in Ontario during 2016 and Figure 4 shows a typical hourly maximum demand for 24 hours. As per the IESO regulations the analysis period should start from 1st May of current year to 31st April of the next year.
Appl. Sci. 2020, 10, x FOR PEER REVIEW 10 of 21  In Figure 5 the one line diagram of the considered class-A customer is presented. As per IESO regulations the BESS is connected behind the customer meter. The main parameters for the base case are assumed as follows. The maximum allowable budget for the BESS is considered to be $2 million. The horizon (the planning timeline for the study) is assumed to be 5 years. As per the market price, the battery energy and power cost coefficient are considered to be $344/kWh and $125/kW,  In Figure 5 the one line diagram of the considered class-A customer is presented. As per IESO regulations the BESS is connected behind the customer meter. The main parameters for the base case are assumed as follows. The maximum allowable budget for the BESS is considered to be $2 million. The horizon (the planning timeline for the study) is assumed to be 5 years. As per the market price, the battery energy and power cost coefficient are considered to be $344/kWh and $125/kW, respectively. As the proposed analysis is annual, the annual interest rate is set to be 6%. The limit of In Figure 5 the one line diagram of the considered class-A customer is presented. As per IESO regulations the BESS is connected behind the customer meter. The main parameters for the base case are assumed as follows. The maximum allowable budget for the BESS is considered to be $2 million. The horizon (the planning timeline for the study) is assumed to be 5 years. As per the market price, the battery energy and power cost coefficient are considered to be $344/kWh and $125/kW, respectively. As the proposed analysis is annual, the annual interest rate is set to be 6%. The limit of the C-rate is assumed to guarantee a two-hour discharging during the enforced deployment of the peak hours. Finally, the loading factor (KD) is considered to be 100%. The assumptions for obtaining the base case results are summarized in Table 1.

Base Case Results
This subsection presents the base case results of the total annual bill for a class-A customer in Ontario before and after applying the proposed deployment algorithm. The base case results show that the optimal sizes for the battery are 1.826 MW and 3.7916 MWh.
The comparison between the customer bill on annual basis is provided before and after the battery deployment as in Table 2. The comparison considers the annual component values of the bill without the battery and showing how these components will be reduced after the battery deployment. The optimal ROI is calculated after the battery deployment and has a value of 18.43% which ensure the viability of the proposed battery deployment method. It is believed that this ROI is attractive for independent energy-sector investors as well as class-A facility owners to finance battery projects which make use of the proposed model.

Base Case Results
This subsection presents the base case results of the total annual bill for a class-A customer in Ontario before and after applying the proposed deployment algorithm. The base case results show that the optimal sizes for the battery are 1.826 MW and 3.7916 MWh.
The comparison between the customer bill on annual basis is provided before and after the battery deployment as in Table 2. The comparison considers the annual component values of the bill without the battery and showing how these components will be reduced after the battery deployment. The optimal ROI is calculated after the battery deployment and has a value of 18.43% which ensure the viability of the proposed battery deployment method. It is believed that this ROI is attractive for independent energy-sector investors as well as class-A facility owners to finance battery projects which make use of the proposed model.

Comparison with the Results of the Developed Greedy Algorithm
This subsection validates the results obtained by KNITRO solver with these obtained from the greedy algorithm. In Figure 6 below, a comparison between the results of the annual revenues of EA and DR, battery size, C-rate, annual commodity cost, annual DC cost, and annual capital cost between the greedy algorithms and optimization solver is shown. The comparison illustrates the good performance of the proposed solution algorithm.

Comparison with the Results of the Developed Greedy Algorithm
This subsection validates the results obtained by KNITRO solver with these obtained from the greedy algorithm. In Figure 6 below, a comparison between the results of the annual revenues of EA and DR, battery size, C-rate, annual commodity cost, annual DC cost, and annual capital cost between the greedy algorithms and optimization solver is shown. The comparison illustrates the good performance of the proposed solution algorithm.

Comparison with an Existing Sizing Problem for Energy Storage
For validation purposes, the proposed mathematical formulation has been compared with an existing BESS sizing algorithm for demand charge reduction [15]. Since the model of [15] only counts for DC, the energy charge and demand charge terms have been considered in the objective function of the proposed formulation, while the rest of the charges like GAC and revenues (DR and EPA) are not considered in order to maintain a consistent comparison. The sizing algorithm of [15] has been coded and tested on the data set of the considered Ontario class-A customer presented in Figure 7. The two methods are tested based on the base case assumption given in Table 1. The demand charge cost is adopted from [15] to be $13/KW. The obtained results have been compared and tabulated as follows in Table 3. The comparison shows that the results are very close, demonstrating that the proposed method is accurate. It is important to note that the major benefit of the proposed method is counting for multi-revenue streams; energy arbitrage and demand response, as well as the savings

Comparison with an Existing Sizing Problem for Energy Storage
For validation purposes, the proposed mathematical formulation has been compared with an existing BESS sizing algorithm for demand charge reduction [15]. Since the model of [15] only counts for DC, the energy charge and demand charge terms have been considered in the objective function of the proposed formulation, while the rest of the charges like GAC and revenues (DR and EPA) are not considered in order to maintain a consistent comparison. The sizing algorithm of [15] has been coded and tested on the data set of the considered Ontario class-A customer presented in Figure 7. The two methods are tested based on the base case assumption given in Table 1. The demand charge cost is adopted from [15] to be $13/KW. The obtained results have been compared and tabulated as follows in Table 3. The comparison shows that the results are very close, demonstrating that the proposed method is accurate. It is important to note that the major benefit of the proposed method is counting for multi-revenue streams; energy arbitrage and demand response, as well as the savings from utility charges; demand charges and global adjustment charges, as reported in the previous subsection.

Sensitivity Case-Maximum Available Budget for Battery Purchasing
A sensitivity case study depends on different values of the available purchasing budget ( ) are developed. This sensitivity analysis considers four cases, which include percentage values of the available purchasing budget based on the base case, as follows: 80%, 70%, 60%, and 50%. In Figure 8 optimal battery sizes of the four considered cases are illustrated.
The comparison results between the annual accumulated costs of each considered case are presented in Figure 9. The results demonstrate that restricting the battery purchasing budget will limit the battery size leading to increase the global adjustment cost.

Sensitivity Case-Maximum Available Budget for Battery Purchasing
A sensitivity case study depends on different values of the available purchasing budget (IC B ) are developed. This sensitivity analysis considers four cases, which include percentage values of the available purchasing budget based on the base case, as follows: 80%, 70%, 60%, and 50%. In Figure 8 optimal battery sizes of the four considered cases are illustrated. Appl. Sci. 2020, 10, x FOR PEER REVIEW 14 of 21  The comparison results between the annual accumulated costs of each considered case are presented in Figure 9. The results demonstrate that restricting the battery purchasing budget will limit the battery size leading to increase the global adjustment cost.
The annual revenues of the BESS are presented in Figure 10. The results show that the achieved revenues of the battery from EPA and DR keep decreasing with a reduction in the allowable BESS budget. Appl. Sci. 2020, 10, x FOR PEER REVIEW 15 of 21 Figure 9. Results of available purchasing budget sensitivity case study in terms of the cost components.
The annual revenues of the BESS are presented in Figure 10. The results show that the achieved revenues of the battery from EPA and DR keep decreasing with a reduction in the allowable BESS budget.

Sensitivity to C-Rate Results
Based on constrain (18), several values for the C-rate ranges are considered as: "0.4-0.6", "0.6-0.8", "0.8-1.0", "0.3-0.4", and "0.2-0.3", which corresponding to these cases , CASE I, CASE II, CASE III, and CASE IV, respectively. The battery sizes correspond to the aforementioned cases are illustrated in Figure 11.  The annual revenues of the BESS are presented in Figure 10. The results show that the achieved revenues of the battery from EPA and DR keep decreasing with a reduction in the allowable BESS budget.

Sensitivity to C-Rate Results
Based on constrain (18), several values for the C-rate ranges are considered as: "0.4-0.6", "0.6-0.8", "0.8-1.0", "0.3-0.4", and "0.2-0.3", which corresponding to these cases, CASE I, CASE II, CASE III, and CASE IV, respectively. The battery sizes correspond to the aforementioned cases are illustrated in Figure 11. Values for the ROI and C-rate of the battery are illustrated below in Figure 12. Note that ROI (Return On Investment) is a ratio between net profit and the cost of investment. The results show that an optimal ROI of the base case has a value of 18.43% and its C-rate has a value of 0.48. As can be shown, the two cases I and II with high C-rate have an economically negligible ROI. Cases III and IV show that a lower C-rate leads to a larger energy capacity of the BESS. A higher energy capacity for the BESS is concomitant with a higher capital cost and definitively higher revenues; however, the surge of revenue does not match the growth of the capital cost of the BESS.  Values for the ROI and C-rate of the battery are illustrated below in Figure 12. Note that ROI (Return On Investment) is a ratio between net profit and the cost of investment. The results show that an optimal ROI of the base case has a value of 18.43% and its C-rate has a value of 0.48. As can be shown, the two cases I and II with high C-rate have an economically negligible ROI. Cases III and IV show that a lower C-rate leads to a larger energy capacity of the BESS. A higher energy capacity for the BESS is concomitant with a higher capital cost and definitively higher revenues; however, the surge of revenue does not match the growth of the capital cost of the BESS.
The comparison results between the annual accumulated costs of each considered case are presented in Figure 13. The results show that higher C-rate could save the battery capital cost. But it will affect the battery size leading to higher PDF value and higher Global Adjustment cost a relatively high C-rate may save the capital investment costs of BESS; however, it will lead to a higher GAC as the PDF of this customer keeps increasing. In other words, the lower the size of the incorporated BESS on the customer microgrid (with a higher C-rate), the higher the contribution of this class-A customer to the peak demand hours of the whole province of Ontario. The comparison results between the annual accumulated costs of each considered case are presented in Figure 13. The results show that higher C-rate could save the battery capital cost. But it will affect the battery size leading to higher PDF value and higher Global Adjustment cost a relatively high C-rate may save the capital investment costs of BESS; however, it will lead to a higher GAC as the PDF of this customer keeps increasing. In other words, the lower the size of the incorporated BESS on the customer microgrid (with a higher C-rate), the higher the contribution of this class-A customer to the peak demand hours of the whole province of Ontario. Figure 13. Results of the C-rate sensitivity case study in terms of the cost components.
The annual revenues of the BESS from EPA and DR are presented in Figure 14. The results show that relatively low C-rate values (with higher energy capacity and so higher capital cost) will allow the BESS to achieve higher revenues. The comparison results between the annual accumulated costs of each considered case are presented in Figure 13. The results show that higher C-rate could save the battery capital cost. But it will affect the battery size leading to higher PDF value and higher Global Adjustment cost a relatively high C-rate may save the capital investment costs of BESS; however, it will lead to a higher GAC as the PDF of this customer keeps increasing. In other words, the lower the size of the incorporated BESS on the customer microgrid (with a higher C-rate), the higher the contribution of this class-A customer to the peak demand hours of the whole province of Ontario. The annual revenues of the BESS from EPA and DR are presented in Figure 14. The results show that relatively low C-rate values (with higher energy capacity and so higher capital cost) will allow the BESS to achieve higher revenues. The annual revenues of the BESS from EPA and DR are presented in Figure 14. The results show that relatively low C-rate values (with higher energy capacity and so higher capital cost) will allow the BESS to achieve higher revenues.

Figure 14.
Results of the C-rate sensitivity case study in terms of the revenue components.

Conclusions
This paper presents a methodology to optimally size and dispatch a battery energy storage unit for electricity cost minimization for large consumers in Ontario, Canada. The algorithm proposed in this paper particularly minimizes the charges associated with the global adjustment costs for class-A customers. Moreover, other utility charges, such as demand charges, are considered and explicitly minimized by the algorithm. Moreover, energy price arbitrage and participation in the IESO demand response programs are considered as revenue streams. A single comprehensive mathematical formulation is developed to encompass all these revenue streams in one optimization problem abiding by the regulations of the jurisdiction. For quality and performance assurance, the proposed method is applied to real class-A customer data and the corresponding market spot prices in Ontario. The contributions of this work are twofold. Firstly, the developed methodology attains the optimal size of BESS units to minimize total energy costs, including GAC for class-A customers in Ontario. Various revenue streams are stacked to maximize the total gain. The proposed technique can be applied to different class-A facilities with different load profiles and operational features. Secondly, the straightforward optimization model and its results open the doors wide for a viable investment opportunity with obvious technical and financial merits. The results demonstrate that a class-A customer employing a BESS with the optimal battery size and dispatch schedule, can achieve significant savings in energy bills. The results show the efficacy of the developed method in attaining a favorable investment ROI in a short-term financing plane.
Furthermore, the proposed algorithm takes into consideration the jurisdiction regulations, which can be flexibly modified and updated to match the regulations of other jurisdictions. Various sensitivity analyses were conducted to explore the impact of some solution parameters on the results. Another sensitivity analysis based on C-rate changes was also performed. For future work, benefits to the grid reliability, resiliency, stability and profitability may be important to consider.

Conclusions
This paper presents a methodology to optimally size and dispatch a battery energy storage unit for electricity cost minimization for large consumers in Ontario, Canada. The algorithm proposed in this paper particularly minimizes the charges associated with the global adjustment costs for class-A customers. Moreover, other utility charges, such as demand charges, are considered and explicitly minimized by the algorithm. Moreover, energy price arbitrage and participation in the IESO demand response programs are considered as revenue streams. A single comprehensive mathematical formulation is developed to encompass all these revenue streams in one optimization problem abiding by the regulations of the jurisdiction. For quality and performance assurance, the proposed method is applied to real class-A customer data and the corresponding market spot prices in Ontario. The contributions of this work are twofold. Firstly, the developed methodology attains the optimal size of BESS units to minimize total energy costs, including GAC for class-A customers in Ontario. Various revenue streams are stacked to maximize the total gain. The proposed technique can be applied to different class-A facilities with different load profiles and operational features. Secondly, the straightforward optimization model and its results open the doors wide for a viable investment opportunity with obvious technical and financial merits. The results demonstrate that a class-A customer employing a BESS with the optimal battery size and dispatch schedule, can achieve significant savings in energy bills. The results show the efficacy of the developed method in attaining a favorable investment ROI in a short-term financing plane.
Furthermore, the proposed algorithm takes into consideration the jurisdiction regulations, which can be flexibly modified and updated to match the regulations of other jurisdictions. Various sensitivity analyses were conducted to explore the impact of some solution parameters on the results. Another sensitivity analysis based on C-rate changes was also performed. For future work, benefits to the grid reliability, resiliency, stability and profitability may be important to consider.