2. Multi-Factor Battery Degradation Cost Model
The proposed operational cost model for the power dispatch of a BESS is given by:
where
cb is the capital cost of the battery,
fΔSOH is its state of health variation,
pb,t is the battery dispatch power, Δ
t is the discretization interval, and
Tn is the rated battery time for a complete charge/discharge, calculated as:
where
Vn represents the rated battery voltage,
Cn is the rated battery capacity,
Pn is the rated battery power, and
SOHbms is the current battery state of health provided by the BMS (if available; otherwise,
SOHbms = 100%).
The calculation of state of health variation
fΔSOH includes the most important factors that influence the life of lithium-ion batteries: the battery charging/discharging current (
I) and the minimum and maximum limits of state of charge, which can be portrayed by the depth of discharge (
DOD) during the cycle and by the average state of charge
[
21]. The effect of temperature (
T) is disregarded, considering that the BMS uses its thermal management system to maintain the battery temperatures in a safe region throughout their operational life, reducing the degradation mechanisms. Moreover, as proposed by [
23], it is assumed that the all the factors that impact a Li-ion battery cycle life are approximated independent from each other. Therefore, to obtain the expression of
fΔSOH as a function of the dispatch power, aiming at its usage in linear programming, its calculation is proposed through the arithmetic average of all individual expressions
fΔSOH,x, in which
x = [
DOD,
I]:
where each individual function that represents a change in SOH is simply a reciprocal of the number of lifecycles
NC as a function of
x:
Moreover, it should be pointed out that in Equation (3), fΔSOH,DOD is divided by 2 because the number of cycles NC as a function of DOD is related to discharge cycles followed by recharge, which will not necessarily happen in power dispatch problems.
2.1. Degradation Impact Factors and Dispatch Power
For implementing power dispatch optimization problems, it is essential to identify the relation of each degradation impact factor with the battery power dispatch pb,t:
2.1.1. Influence of the Depth of Discharge (DOD)
The depth of discharge can be calculated by the absolute value of the difference between the current and future SOC:
According to the coulomb counting method, the future SOC of the battery can be estimated by:
Thus, substituting Equation (6) into Equation (5), one can find an expression of
DOD as a function of the power in the battery:
2.1.2. Influence of the Average State of Charge
The average state of charge can be defined as following:
Therefore, substituting future SOC, already calculated in Equation (6), into Equation (8), one can find the average state of charge as a function of the battery dispatch power:
For the first iteration, the current SOC may be obtained by the BMS estimation:
otherwise, the assumption of a current SOC of 50% is considered a good initial value.
2.1.3. Influence of the Charge and Discharge Currents (I)
The charging and discharging currents are considered to have the same effect over the battery degradation and are normalized by the maximum rated current
In that the BESS can provide:
In order to find an expression that is a function of the dispatch power
pb,t, the numerator and the denominator of Equation (11) are multiplied by the battery rated voltage
Vn, resulting in:
Thus, considering that
Ib,t·Vn =
pb,t and that
In·Vn =
Pn, it is possible to write that:
2.2. Lithium-Ion Battery Dataset
According to Equations (3) and (4), in order to identify how the
DOD, , and
affect the degradation of lithium-ion batteries, experimental data are needed. The dataset used in this work was extracted from [
23,
26]. Ecker et al. [
26] provide cycle life measurements for
DOD ranging from 10% to 100% and
ranging from 10% to 95%, while keeping
I = 1C,
T = 35 °C and
= 50% or
DOD = 10%, as illustrated in
Figure 1 and
Figure 2, respectively. Conversely, the dataset by Omar et al. [
23] contains cycle life measurements for a normalized current
ranging from 0 to 1 p.u., as elucidated in
Figure 3. In these figures, the points in red represent the experimental measurements, whereas the fitting curves are obtained as:
using the least squares method in the MATLAB Curve Fitting Tool; the coefficients α, β, and γ for each equation are shown in
Table 1. The function relationships described by Equations (14)–(16) and used for curve fitting were based on [
22].
Although the effect of temperature is disregard from the proposed model, since all the factors that impact a Li-ion battery cycle life are considered to be independent from each other, there is no impediment in accounting it in the model, if necessary. For example,
Figure 4 illustrates the number of cycles as a function of the temperature for the same battery studied in [
23]. From such results, one can note that if the operating temperature is kept between 0 °C and 40 °C, the change in the lifetime is not expressive. As before, the points in red represent the experimental measurements, whereas the fitting curve is obtained as
using the least squares method in the MATLAB Curve Fitting Tool; the coefficients α, β, and γ are also shown in
Table 1.
2.3. Battery Degradation Cost Model: Example
To demonstrate the application of the proposed battery degradation cost model, an example is carried out considering a BESS with the parameters listed in
Table 2. Based on them, it can be found by Equation (2) that the rated battery time
Tn for a complete charge or discharge is equal to 1.2 h. Therefore, taking into account the empirical curves and equations established in this section, it is possible to plot the cost model as a function of the dispatch battery power and the current state of charge, as illustrated in
Figure 5.
2.4. Constraints of the Battery Cost Model
The constraints of the battery cost model described by Equation (1) for a MILP optimization problem are presented in this subsection. Firstly, it is considered that the state of charge of the battery can just vary between a maximum and a minimum value according to:
Conversely, the following equations limit the charge
pcb,t and discharge
pdb,t powers to the rated battery power
Pn. In Equation (19), the multiplication of
Pn by the binary variable
bcb,t ensures that
pcb,t can assume a non-zero value only when the battery is charging. Equation (20) consists of an analogous function, but considering the discharge power
pdb,t and the binary variable
bpb,t. Finally, Equation (21) guarantees that charging and discharging cannot coexist in the same time step.
Since two distinct variables
pcb,t and
pdb,t are used to express the dispatch battery power
pb,t during charging and discharging, Equations (7), (10) and (15) can be respectively rewritten as:
Moreover, as the battery degradation cost function is nonlinear, in order to be used in MILP optimization problems, each individual function that represents a change in SOH should be expressed as a piecewise linear function in the form of:
3. Optimization Problem
To evaluate the proposed battery degradation cost model, the same controller described in [
27] is implemented. The only difference between the controllers is the novel empirical cost model for BESSs developed in this work. In [
27], Makohin et al. designed a microgrid centralized controller (MGCC) that can function as a generic controller for different microgrid configurations. The MGCC is prepared to control microgrids with numerous DERs, such as dispatchable generators, renewable energy sources, energy storage systems, and multiple control loads, in addition to allowing it to operate connected to grid or in islanded mode.
The MGCC has an optimizer based on mixed-integer linear programming, which guarantees the energy cost reduction and reliability in both islanded and connected modes. The controller dispatches resources differently in each mode. Moreover, the main objective of the optimization problem is to minimize the total costs related to the operation of the microgrid. In order to integrate the generation sources and to ensure the lowest leveled cost of energy, each of the microgrid elements has its own cost function. Since the detailed description of the MGCC is beyond the scope of this paper, only a summary of the complete optimization problem is presented in this section.
Objective Function
The optimization problem consists of minimizing the total costs related to the microgrid operation. As presented in Equation (26), besides the battery degradation cost model (
fbatb,t), the operational costs of MGCC includes fuel consumption (
fgerg,t), load curtailment (
fshds,t), maintenance (
fmane,t), buying/selling energy from/to the utility provider (
fgridtE), penalty payments for exceeding the power demand agreed with the distribution system operator (
fgridtD), and an additional term (
frestt).
The cost function
fgerg,t of each dispatchable generator
g is given by:
The term
fshds,t represents the cost of shedding a given load
c. In some cases, it is more advantageous to shed loads than continue to supply them, due to the price of buying energy from the utility provider or the lack of internal generation. This cost is defined as:
Each element
e has a maintenance cost that is proportional to the number of hours the element is on. Hence, the hourly maintenance cost is represented by:
The term
fgridtE, given by Equation (30), can be positive when the microgrid buys energy from the utility provider, or negative when the microgrid sells energy to the upstream grid.
According to Brazilian regulation, some clients pay a fixed value for the contracted demand rate and, if it surpasses this contracted value, there is an additional cost as a penalty. This process is described by:
The additional term (
frestt) exhibited in Equation (32) is added to the objective to achieve power balancing, to prioritize outputs while diminishing power deviation, and to keep a given amount of energy within the storage system. The first two terms in Equation (32) apply a high cost to power deficits and excesses; respectively. The third term applies a small cost to power deviations to prioritize smoother dispatches without competing with any one of the terms in Equation (27).
More information about the MGCC optimization problem, as initial conditions, power balance, operational constraints, and events scheduling, can be found in [
27].
4. Results
The microgrid considered for the evaluation of the proposed multi-factor battery degradation cost model is shown in
Figure 6. As one can note, it is composed of a distribution network, a photovoltaic (PV) system, loads, and the same BESS used as an example in
Section 2.3. In this microgrid, the BESS is used for backup generation, storing energy from photovoltaic generation to cover possible demand peaks during periods of higher load, provided that its operating cost is lower than other available sources. To prove the functioning of the proposed mathematical modeling in a simulated platform, tests are carried out in real time using hardware-in-the-loop. The Typhoon HIL 602+ software and hardware are used for this proposal considering the specifications described in
Table 3.
Figure 7 depicts how the proposed algorithm was implemented in this study. The microgrid was modeled from existing Typhoon HIL components. The optimization problem, variables, constants, and parameters were defined in the “Problem Mod File” in MathProg. The values for the problem parameters are generated at each time step in “Data File Generation”. These two files are input into the GLPK package, which solves the optimization problem. In sequential order, the optimal dispatch algorithm receives input data of energy prices, photovoltaic generation forecast, load forecast, and initial conditions of the microgrid. The “Data File Generation” block receives these parameters, creating a .dat file, and inserts it into the solution block. Simultaneously, the block “Problem File Mod” with the .mod file inserts the problem to be solved. The solution of the optimization problem is sent to the microgrid, and, in this specific algorithm, it acts directly on the BESS dispatch. This process is repeated throughout the simulation period considered, which in the case of this study is 24 h.
The tests are accomplished to analyze the battery dispatch in different scenarios and to verify the behavior of the state of charge in each situation. In summary, three test packages are carried out: in the first, a variation is applied in the contracted demand; in the second, a variation is applied in the initial investment of the BESS; and in the third, a variation is applied in the initial SOC. The load and the PV generation profiles are considered the same in all the tests, as shown in
Figure 8. The simulation time for each scenario is 24 h, with dispatches and measurements realized every five minutes.
4.1. Contracted Demand
These tests are realized to verify the ability of the microgrid in promoting the peak-shaving, that is, in avoiding peaks in the demand out of the contract. For this proposal, the simulation is achieved to force the load demand to exceed the contracted demand, assumed as 100%, 50%, and 10% of the contracted demand of the real microgrid:
• Sub scenario 1: Contracted demand of 200 kW (100%).
• Sub scenario 2: Contracted demand of 100 kW (50%).
• Sub scenario 3: Contracted demand of 20 kW (10%).
In the results of the daily operation of the microgrid, the power associated to the main grid, photovoltaic system, BESS, loads, and contracted demand are presented in a single graph for each sub scenario evaluated, as shown in
Figure 9,
Figure 10 and
Figure 11, respectively. From these simulations, it is possible to check that the battery is activated to avoid excess demand charges. In summary, the battery bank operates in discharge mode to complement the generation when the load demand exceeds the contracted demand and operates in charge mode to absorb the extra power produced by the PV system when it exceeds the load demanded power.
Figure 12 illustrates how the SOC varies over the time under the three contracted demand values listed before. As observed, when the contracted demand is reduced and there are not enough generation sources to supply the load, the battery is dispatched to avoid exceeding demand. As soon as other generation sources such as PV become available, the battery is recharged to be discharged at peak times. It is worth mentioning that if the contracted demand is much less than the load, the battery is dispatched despite the cost and despite the SOC, as the main objective of the optimization algorithm is supplying the load. Conversely, when the contracted demand is well dimensioned, the battery is dispatched only in the intervals of possible exceeding demand.
4.2. Investment Cost
The second test consists of analyzing the battery dispatch for different investment costs and other existing generation sources in the microgrid. This test aims to verify if the high cost of investment is an obstacle to the activation of the BESS and what is the investment value that makes the battery bank a viable storage device in the microgrid. Considering that the actual cost of the BESS is USD 400,000.00, three sub scenarios are herein created to investigate how the investment cost impacts battery dispatch:
• Sub scenario 1: Investment Cost USD 120,000.00.
• Sub scenario 2: Investment Cost USD 200,000.00.
• Sub scenario 3: Investment Cost USD 400,000.00.
Figure 13 illustrates the results of the BESS charge and discharge powers, and
Figure 14 depicts the results of SOC variation by time of day for each value of initial investment cost. In the sub scenario in which the investment cost is the lowest (USD 120,000.00), the battery is already dispatched from the beginning of the microgrid operation, due to its low cost compared to other sources. The average SOC in the daily operation for this scenario is 48.86%.
In the case in which the investment cost is USD 200,000.00, it is observed that the battery is quickly charged as soon as the operation starts. The recharge process is maintained until the SOC rises up close to its maximum value. This scenario presents an average SOC of 57.06% throughout the day. When the investment cost is the higher (USD 400,000.00), the battery is not dispatched immediately after the microgrid starts up. From
Figure 14, it is observed that the first discharge takes place only after 45 min of operation. In this case, the SOC remains higher than the other sub scenarios for most of the time, with an average value of 65.87%.
In
Figure 13, it can be noted that the investment cost significantly interferes in the battery power dispatch, especially in smoother charge and discharge curves for the highest investment cost. In periods when there is an explicit need to charge the battery (excess of photovoltaic generation) and when it is advantageous to discharge it (the price of energy from the grid is higher), the battery is dispatched in all sub scenarios. However, it is observed that for the highest investment cost, the SOC remains closer to its initial value throughout the day, reinforcing that the higher the investment cost, the lower the power dispatched by the battery.
Moreover, it is worth emphasizing that the battery operation during the day follows the load curve shown in
Figure 8. As expected, for most of the period in operation, the BESS does not apply abrupt changes in the SOC. It is also observed that when the battery is charged by the PV generation, the investment cost does not significantly interfere in the battery charging process, since such energy needs to be stored; however, when the investment cost is lower, the battery is activated several times, regardless of the time of day. By contrast, with the highest initial investment cost, the battery is activated only to supply exceeding demand.
4.3. Initial SOC
This test consists of starting the microgrid operation with different initial SOCs. The objective is to verify how much the modeling seeks to balance the SOC value to reduce the battery degradation, whether charging or discharging the battery. The scenarios for this test range from 20% to 80% in relation to the initial SOC with the following sub scenarios:
• Sub scenario 1: initial SOC of 20%.
• Sub scenario 2: initial SOC of 50%.
• Sub scenario 3: initial SOC of 80%.
Figure 15 shows the results of SOC variation by time of day for each initial SOC value during the microgrid operation. When the initial SOC is adjusted to 20%, the battery is not subjected to large cycles of charge before the photovoltaic generation become enough to take it to a high state of charge. During the peak hours, when the photovoltaic generation is unavailable, in order to avoid fines for exceeding demand, the battery is thus discharged to approximately half of the SOC.
When the operation starts with the SOC at 50%, in the first few hours, the battery is charged and the SOC rises to almost 100%, being gradually discharged until the PV generation becomes enough to take it again to a high state of charge. After that, the battery is discharged at peak hours up to an SOC of 50%.
Finally, when the operation starts with the SOC at 80%, there is a gradual discharge of the battery during the first hours, so that the SOC decreases to a level of 50% at 12 pm. After that, the battery is charged with the excess of PV generation to be again discharged at peak hours, in order to complement the extra demand. At the end of the daily operation, the SOC is approximately 50%. It is noticeable that, regardless of the initial SOC of the BESS, during daily operation, while meeting the needs of the load, the SOC converges to a common point, close to the SOC of lowest battery degradation.
Therefore, in view of the analysis of the proposed modeling and the test results, one can conclude that the ideal conditions for battery operation are properly considered to avoid accelerating battery degradation with usage. In summary, the best way to use a Li-ion battery within a microgrid context is working with low power levels of charge and discharge and maintaining the SOC at intermediate values during battery operation.
5. Discussion
The results shown in
Section 4 demonstrates the suitable functioning of the proposed model, which makes the microgrid controller avoid the operation of the BESS at low and high SOC values and with large charging/discharging rates, thus not accentuating the wear-out process of the lithium-ion battery. Compared to other state-of the-art solutions, the proposed model is simpler, but properly addresses the most important degradation factors that are typically taken into consideration, as summarized
Table 4. In addition, the proposed approach is based on MILP optimization, a consolidated method in the industry and used in a wide range of research areas. Comparatively, the BESS operational cost model developed in [
14] was implemented in a microgrid energy dispatch problem using model predictive control (MPC). Other battery cost function, presented in [
15], uses hybrid MPC formulation solved by mixed-integer quadratic programming (MIQP), but requires more computational resources. By contrast, refs. [
18,
24] propose two distinct stochastic dynamic programming (SDP) approaches to optimally operate an energy storage system. Such methods are able to take into account forecast uncertainty, but they are computationally challenging due to the large number of scenarios that have to be considered. The models also require knowledge of the probability distribution of uncertain variables.
6. Conclusions
This paper has proposed an empirical operational cost model for lithium-ion batteries to be applied in power dispatch problems of microgrids. Unlike most of the models previously implemented in microgrids, the proposal considers the degradation of the battery lifetime with use in a simple way, based on the variation in its state of health. Basically, the proposed cost model is a function of battery dispatch power and current SOC, and it uses the information from experimental data relating the number of charge and discharge cycles with the most important factors in the degradation of its lifespan. From real-time simulations of an actual microgrid using a centralized controller that has an optimizer based on mixed-integer linear programming, it is concluded that the proposed battery cost function properly represents the influence of SOC and charge/discharge rate in the lifespan of lithium-ion batteries. In order to evaluate the effectiveness of the proposed cost model, three different scenarios were considered in the hardware emulation. In the first case, the contracted demand was adjusted from 10% to 100% of its real value. The obtained results allow concluding that the time interval in which the battery is dispatched is inversely proportional to the contracted demand. A second scenario investigated the impact of the investment cost, which was adjusted to 30%, 50%, and 100% of the actual price. As a result, the average SOC settled at 48.86%, 57.06%, and 65.87%, respectively, demonstrating that the higher the investment cost, the shorter the time interval in which the battery is dispatched. In the third and last scenario, variations in the initial SOC were investigated. The obtained results show that regardless of the initial value, the final SOC converges to a value close to 50%, which ensures the lowest battery degradation. In light of this, it is concluded that the battery energy storage system behaves as expected to supply the load: charging and discharging according to the operating cost of other microgrid elements and their initial values, and to keep the SOC at adequate levels to reduce battery degradation with use. Future work may include simulation tests or experimental validations considering different configurations of microgrids to better explore the benefits of using the proposed multi-factor battery degradation cost model. Moreover, the method applied in this paper could also be easily extended to other battery technologies.