Next Article in Journal
A Structure-Reconfigurable Soft-Switching DC-DC Converter for Wide-Range Applications
Next Article in Special Issue
A Reactive Power-Voltage Control Strategy of an AC Microgrid Based on Adaptive Virtual Impedance
Previous Article in Journal
Quantitative Analysis of CO2 Uptake and Mechanical Properties of Air Lime-Based Materials
Previous Article in Special Issue
Optimal Sizing of Battery Energy Storage for a Grid-Connected Microgrid Subjected to Wind Uncertainties
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Profit Maximizing Control of a Microgrid with Renewable Generation and BESS Based on a Battery Cycle Life Model and Energy Price Forecasting

School of Electrical Engineering and Telecommunications, The University of New South Wales, Sydney, NSW 2052, Australia
*
Author to whom correspondence should be addressed.
Energies 2019, 12(15), 2904; https://doi.org/10.3390/en12152904
Submission received: 25 June 2019 / Revised: 19 July 2019 / Accepted: 24 July 2019 / Published: 28 July 2019
(This article belongs to the Special Issue Advanced Control in Microgrid Systems)

Abstract

:
In this paper, an optimal control strategy is presented for grid-connected microgrids with renewable generation and battery energy storage systems (BESSs). In order to optimize the energy cost, the proposed approach utilizes predicted data on renewable power, electricity price, and load demand within a future period, and determines the appropriate actions of BESSs to control the actual power dispatched to the utility grid. We formulate the optimization problem as a Markov decision process and solve it with a dynamic programming algorithm under the receding horizon approach. The main contribution in this paper is a novel cost model of batteries derived from their life cycle model, which correlates the charge/discharge actions of batteries with the cost of battery life loss. Most cost models of batteries are constructed based on identifying charge–discharge cycles of batteries on different operating conditions, and the cycle counting methods used are analytical, so cannot be expressed mathematically and used in an optimization problem. As a result, the cost model proposed in this paper is a recursive and additive function over control steps that will be compatible with dynamic programming and can be included in the objective function. We test the proposed approach with actual data from a wind farm and an energy market operator.

Graphical Abstract

1. Introduction

1.1. Motivations

Due to the growing concern about sustainability and demand on energy, renewable generations are receiving more interests from governments, researchers and investors, which leads to an increase in the number of renewable power systems integrated into the current electrical grids. The penetration of renewable energy, however, is mostly hindered by their variability and intermittency, which motivates the development of microgrids supplied by renewable power systems [1]. Either grid-connected or islanded, these decentralized power systems are believed to be the promising solution to achieve higher penetration of clean energy in the future [2]. Given proper control of storage units and communications with the electricity market, the non-dispatchable renewable power can be smoothed and used on demand, therefore reducing the difficulty of power scheduling in the main grid operation [3]. In many studies that focus on the control of renewable power systems [4,5,6,7,8,9,10,11,12,13,14,15], the battery energy storage system (BESS) is essential for controlling the actual power dispatched to the local customers and the grid. Utilizing forecasting data on renewable power and power demand to arrange BESS actions over different periods, the power constraints in the microgrid and the operating parameters in the main grid can be satisfied. Also, in a deregulated energy market with variable electricity price, the profit of power trading with the utility grid can be maximized with appropriate charge/discharge decisions over different price intervals. For instance, part of the renewable power can be used to meet the local demand, and the remaining can either be charged to the BESS or sold to the market. In addition, operators of the microgrid can purchase some energy from the main grid at a low price and stored for further use during high price intervals.
A significant challenge in these studies is the existence of forecasting errors. To optimize the operation of microgrids, predicted data on renewable power, load demand, and electricity price within a future period ranging from hours to days would be required, and the forecasting errors cannot be avoided. A relatively small level of errors would be acceptable, which can be addressed with some online ancillary services such as fast-response generators or operating reserves, while a large error can be detrimental to both microgrid and the main power grid. Another issue is related to battery cost. In these studies, batteries used are likely to experience more charge and discharge cycles than regular tasks, which can accelerate the degradation of batteries, leading to an increased operating cost of batteries. Therefore, the additional cost resulted from a lower than expected lifetime of batteries should not be neglected, and some functions reflecting the cost of cycling batteries due to charge/discharge actions should be included to achieve the optimal dispatch.

1.2. Literature Review

Many control strategies and optimization methods, including model predictive control (MPC) [5,8,14,15], dynamic programming (DP) [3,4,7,16], sliding mode control (SMC) [17,18], reinforcement learning (RL) [9,10], particle swarm optimization (PSO) [11,19,20,21], and mixed-integer linear programming (MILP) [6,13,15], have been proposed for renewable power control under different conditions. The use of MPC is mainly due to forecasting errors. With real-time forecasting data within a short horizon that updated at every control step, the effect of errors can be reduced, and any mismatch in the supply and the demand can be identified promptly and solved in the following control step. In [5], the wind power smoothing problem is formulated to optimize the maximum ramp rate and the battery state with wind power prediction. This model is further investigated in the case of frequency control due to disturbances in the supply–demand balance [8]. Authors of [14] present a MPC scheme to optimize microgrid operations while meeting changing request and operation constraints. The optimization problem is formulated using MILP that can be solved efficiently to meet the real-time operating constraints. An online power scheduling for microgrids with renewable generations, BESS, heating, and cooling units is presented in [15]. The MPC scheme is used with a feedback correlation to compensate for prediction errors. The energy management problem in microgrids can be perceived as controlling different units over multiple time periods under uncertainty, which can be considered as a Markov decision process (MDP) and solved with DP. In [3], the energy management problem in microgrids with renewable power from six different generation sites is considered. The optimization problem is formulated based on different energy prices and solved with DP. A decentralized energy management strategy in microgrids with thermostatically controlled loads, solar power, distributed generators, and BESSs is proposed in [3], which can determine the optimal controls for BESS and distributed generator to minimize the energy cost while maintaining the desired temperature in local buildings. An optimal dispatch strategy for grid-connected wind power plant with BESS is proposed in [7], in which the DP algorithm used can incorporate the prediction of wind power and electricity price simultaneously to determine the optimal controls for BESS to maximize the profit. Authors of [16] develop a recursive DP algorithm to solve the optimal power flow in a microgrid considering limits on storage devices, network currents, and voltages. In the SMC scheme, a desired trajectory in the system will be defined, and the control objective is to track it. In [17], a decentralized SMC-based strategy to improve the performance of microgrids with renewable generations, BESS, non-linear, and unbalanced loads. The sliding surfaces used are predefined trajectories for active/reactive power to minimize fluctuations, compensate negative sequence, and harmonic currents. They further investigate the issue of stability and power-sharing in hybrid AC/DC microgrids with a similar control scheme in [18]. The population-based algorithm, PSO, is used in some studies to optimize the power scheduling in microgrids. A day-ahead multi-objective optimization dispatch in a microgrid considering costs from batteries and carbon emissions is solved with a PSO algorithm in [11]. The algorithm is also applied in microgrids with hybrid renewable generation units to address the optimal power management problems that are complicated, which is to optimize objectives including the annual cost of the system, loss of load expected, loss of energy expected, system costs of investment, replacement, operation, and maintenance, see, e.g., ([19,20,21]). In addition, there are some learning-based algorithms proposed for microgrids. Authors of [9] formulate the energy management problem in a microgrid as a Markov decision process to minimize the daily cost and address it with deep learning. A Q-learning based operation strategy to maximize the profit of a microgrid with community battery storage system is proposed in [10], which combines both centralized and decentralized approaches to control the system units.
Based on these studies, it can be perceived that the cost of batteries will be a key factor to achieve an optimal dispatch in microgrids with renewable generation units. Over the past decades, battery lifetime and degradation modeling have been investigated extensively, partly due to the increasing interest in the electric vehicle, energy arbitrage, and renewable power applications from researchers and investors [22]. According to [23], these models can be categorized into theoretical models and empirical models. The theoretical models are constructed based on the chemical mechanism in the battery cell, such as the aging of active material, chemical decomposition, and surface film modification [24]. In the case of operation planning, authors of [23] believe that the theoretical models may not be suitable as the chemical reaction processes inside the cells can be difficult to correlate with charge and discharge actions. On the other hand, the empirical models are believed to be appropriate for BESS planning and have been studied previously [22,23,25]. These models are developed based on degradation experiments, in which batteries are cycling at different operating conditions until they reach the end of life. The number of charge–discharge cycles that the battery can experience will be counted, and the effects of stress factors, such as temperature, depth of discharge (DOD), average state of charge (SOC), and operating currents on the rate of life cycle loss can be investigated. It should be pointed out that most of the cost models of BESS in previously reviewed studies are either not considered [3,5,6,7,8,9,10,14,15,16] in the optimization problem, or simple models that without consideration on the cycling model under different stress factors [4,11,13].
With these models, calculating the cost of battery cycling would become identifying the number of cycles and their corresponding stress factors. For all cycles and half-cycles (charge/discharge events), the corresponding operating parameters such as DOD, temperature, and current will be compared with a predefined operating condition measured from empirical experiments to determine their actual consumption on the battery life, and the resulting cost can be identified. However, according to the authors of [22], in the case of scheduling the optimal operation of BESS, the relationship between the number of cycles and battery actions can only be expressed analytically with complicated forms and would be difficult to use with an optimization solver. In other words, the models used to calculate the cost of battery cycling would require some algorithms to search the operating cycles of batteries, which are analytical methods that cannot be described with mathematical equations, therefore would be difficult to include in the objective function of optimization problems. As a result, these models are generally used for assessment rather than planning.

1.3. Contribution

In this paper, we aim to develop a control strategy of BESS in a grid-connected microgrid to optimize the cost with consideration on the cost from the battery cycling model. Based on previous studies, the optimization problem is formulated as a MDP, and a dynamic programming algorithm is utilized to optimize the overall cost in the microgrid over each planning horizon. We also employ the receding horizon approach to minimize the effect of forecasting errors and real-time mismatches; therefore only the first action solved will be used as the actual input to the system in the current stage, and the algorithm will repeat in the next step with updated system states and predicted data.
The main contribution of this paper is a novel cost model of battery based on the empirical battery life cycle models. The proposed cost model is recursive and additive over the control stages and can be included in the objective function of the optimization problem. It is also compatible with the DP algorithm that can be used to solve MDP problems, which does not require additional computations than regular DP algorithms.
The remainder of the paper is structured as follows. Section 2 introduces the overall optimization problem. The control system and the cost model of the battery are described in Section 3. The dynamic programming control algorithm and the simulation results are introduced in Section 4 and Section 5, respectively. The last section concludes the paper.

2. Problem Statement

We consider a grid-connected microgrid consisting of a battery energy storage system (BESS) and a renewable generation unit. A deregulated energy market environment is assumed, and the microgrid can communicate with the utility grid to conduct energy trading by controlling the actions of the BESS. The objective is to minimize the operating cost of BESS and maximize the profit of the microgrid. A configuration of the microgrid can be seen in Figure 1.
The receding horizon approach is utilized, and predicted data on renewable power, electricity price, and power demand over every planning horizon are updated at each control step. The cost of power trading with the energy market, and the cost of battery cycling over a planning horizon are used as the cost function of the problem, and a dynamic programming algorithm is used to solve the optimization problem over each horizon. Only the first action solved in each horizon will be used as the actual input to the system, and the algorithm will repeat in the next step with updated forecasting data and system states.
The energy stored in the BESS is considered as the system state, and the charge/discharge power is the control input. We assume multiple batteries are coordinated and charged/discharged with the same amount of power, which is to avoid the long string structure that can lead to charge imbalance [26] and increase the amount of controllable power.

3. System Model and Costs

3.1. Microgrid Model

We consider our system as a discrete-time system with the sampling rate δ > 0 , and most data used are piecewise constant with constant values over periods [ n δ , ( n + 1 ) δ ) , where n is a non-negative integer.

3.1.1. Predicted Data

It is assumed that three sets of predicted estimates of renewable power, load power demand, and electricity price can be made over every planning horizon, which is supposed to be piecewise constants. We use P r n ( k ) , P l d ( k ) and C e l e ( k ) to represent the renewable power, load power demand, and electricity price predicted over the period [ k δ , ( k + 1 ) δ ) respectively. As the model predictive control approach is utilized, these forecasting data will be updated prior to each control step, and fast predicting technique for a short period would be required, see, e.g., [27,28]. Also, we assume that the electricity price is identical for both selling and buying.

3.1.2. Battery Energy Storage System

The dynamics of the battery [13] used in the microgrid is described by the following equation.
E B ( k + 1 ) = E B ( k ) P B ( k ) Δ δ d | P B ( k ) Δ δ | ,
where E B ( · ) is the energy state of the battery, Δ δ is the factor used to convert power to energy based on the actual time of each control step, P B ( · ) is the charge/discharge power of the BESS, d > 0 is the charging/discharging loss factors of the BESS. Based on the model, P B ( · ) > 0 indicates the discharging action and P B ( · ) < 0 indicates the charging action of BESS. In addition, we assume n batteries integrated into the microgrid, which are controlled and balanced simultaneously with the same amount of charge/discharge power.
The following constraints limit the operation of the battery,
E B m i n E B ( k ) E B m a x
P B m i n P B ( k ) P B m a x
where E B m i n and E B m a x are the lower and upper limits of the battery energy state, which are used to avoid overcharge and over-discharge. P B m a x and P B m i n are the maximum amounts of power that can be charged and discharge from the battery within a control step.

3.1.3. Power Balancing in the Microgrid

Let P G be the power exchanged with the energy market, and the following equation can represent the power balancing task in the microgrid.
P G ( k ) = P r n ( k ) P l d ( k ) + n · P B ( k ) .
It can be perceived that P G > 0 indicates the microgrid is transmitting power to the utility grid, and P G < 0 indicates some power is purchased from the main grid to meet the power demand in the microgrid. Then the energy cost will be C e l e ( k ) · P G ( k ) , where a positive value represents the profit gained by selling and a negative value represents the cost to buy power from the main grid, and minimize the term C e l e ( k ) · P G ( k ) is equivalent to maximizing the profit. Also, in consideration of the ramp rate requirements on the main power grid, P G should satisfy the following constraint:
P G m i n P G ( k ) P G m a x
where 0 < P G m i n < P G m a x are given constants.

3.2. Battery Aging and Cost Models

Our cost model of battery is built on the battery lifetime model used in [22]. One significant feature of the model is to identify the ‘half-cycle’, or the difference between two adjacent local extremes on the curve of the battery energy level. These ‘half-cycles’ contain information on the charge and discharge actions of the battery and can be used to assess its degradation. Another significant factor is the temperature, which has been studied in [23,25]. In our case, we assume a constant operating temperature of the BESS controlled by specific cooling devices.

3.2.1. Cycle Life Model

The basic cycle life model considered in [22] is described as follows:
T c y c l e = N d f a i l w · n d d a y
where N d f a i l is the maximum number of charge–discharge cycles that the battery can experience at a specific DOD before its end of life, n d d a y is the number of daily cycles that the battery experienced at the DOD, and w is the average number of operating days within a year. So T c y c l e denotes the estimated lifetime of the battery in years. Furthermore, N d f a i l can be expressed as a function of the DOD by fitting the typical empirical data provided by the manufacturers, which is:
N d f a i l = f ( d ) = N 100 f a i l d k p
where d is the DOD, N 100 f a i l is the number of cycles at 100% DOD, and k p is a constant. The curves of cycle life versus DOD at different k p values are presented in Figure 2.
Assuming n d cycles of d DOD are experienced by the battery, its cycle life loss L s c y c l e ( % ) can be described as:
L s c y c l e = n d f ( d ) × 100 %
As a result, with the same rate of cycle life loss L s c y c l e , the equivalent 100%-DOD cycle number, indicated as n 100 e q , at d DOD with n d cycles can be derived from the following equation.
n 100 e q N 100 f a i l = L s c y c l e = n d f ( d )
Substituting Equation (7) into (9), the equivalent 100%-DOD cycle can be derived as:
n 100 e q = n d · d k p .
Based on the equation, the DOD and the number of different cycles can be counted and converted to the equivalent value, and if we assume that the battery would experience the similar pattern of operation within a certain period, the corresponding lifetime can be estimated with Equation (6).

3.2.2. Counting Half Cycles

Instead of counting full cycles, authors of [22] assume the battery completes a half-cycle between two adjacent local maximum and minimum of the energy level, which is also the switching point between a charge and a discharge action. Let E m a x be the rated energy capacity of the battery, and E k be the energy level in the battery at the end of k-th half cycle, the corresponding DOD indicated as d k h a l f , can be described as:
d k h a l f = | E k E k 1 E m a x |
Based on Equation (11), the equivalent 100%-DOD cycle number of K half cycles can be calculated as:
n 100 e q = k = 1 K 0.5 · ( d k h a l f ) k p

3.2.3. Cycle Life Cost Model

As the half cycle can be perceived as the individual charge/discharge action in-between local extremes, the term L s c y c l e (%), namely the cycle life loss percentage would be suitable to determine the battery life cost model. Considering a replacement cost R c ($) incurred at the end of the battery life, and a cycle life loss percentage L s c y c l e ( w ) within a period w, the corresponding cost of battery lifetime consumption within the period will be the product of the two terms. In our case, the period W is the actual time of each planning horizon, and the cycle life loss can be determined from battery actions within the horizon. For a single half-cycle with depth d k h a l f , the cost of cycle life loss C l o s s can be derived as:
C l o s s ( d k h a l f ) = n 100 e q N 100 f a i l R c = 0.5 · ( d k h a l f ) k p N 100 f a i l R c .
Therefore, the optimization problem can be formulated to minimize the cycle life cost and the energy cost to meet the power demand by making decisions on BESS actions at different electricity prices.

3.3. Redefine the Cost Model of Battery Cycle Life

In this section, we propose a new model for the cost of cycle life loss that can be utilized in the dynamic programming approach.
The dynamic programming approach is a recursive algorithm based on the Bellman principle of optimality [29]. It starts with the last step of the planning horizon and loops over the two adjacent states within the step. For every former state, an action that can optimize the cost within this control step will be determined, and the corresponding cost will be memorized. The algorithm will then proceed to the second last step of the planning horizon and repeat the same procedure. The previously memorized values, which are now the cost of the latter states in the current control step, will be used to determine the optimal costs within the step. Once the algorithm reaches the first step in the planning horizon, the optimal costs for all initial states over the horizon can be retrieved.
One basic principle of using the approach is that the cost of the problem should be additive [30]. In our case, the cost of energy trading is related to the amount of power exchanged with the main power grid, which will be accumulated over control steps. However, the costs from battery cycle life loss are determined by the local extreme points, which cannot be identified within every control step, as the battery could undergo consecutive charge or discharge actions over multiple steps in practice. In other words, the cost of battery life loss, derivable from Equation (13), cannot be calculated from looping over adjacent states in the DP algorithm. As a result, we propose a method to calculate the cost that can be applied in the DP algorithm.
Referring to Figure 3. Let BC and CD be the actions of BESS on step 2 and 3, and A be the former state of SOC to be decided in step 1. Based on Equation (13), the cost over step 2 and 3, or the ‘cost-to-go’, will be 0.5 R c N 100 f a i l ( | B C | ) k p + 0.5 R c N 100 f a i l ( | C D | ) k p . If A is higher than B, the cost over step 1, 2 and 3 will be 0.5 R c N 100 f a i l ( | A C | ) k p + 0.5 R c N 100 f a i l ( | C D | ) k p , as A B and B C are two subsequent discharge actions with the local minimum C. On the other hand, if A is lower than B, A B will become a charge action, and the cost over the three steps is 0.5 R c N 100 f a i l ( | A B | ) k p + 0.5 R c N 100 f a i l ( | B C | ) k p + 0.5 R c N 100 f a i l ( | C D | ) k p .
Since only the cost within the current step will be evaluated by the dynamic programming algorithm, we propose the following method to calculate the life cycle cost:
Considering a step k within the planning horizon of N steps, k = 0 , 1 , , N 1 . Based on the battery model introduced in Section 3.1, E B ( k ) and E B ( k + 1 ) will be the former and latter state on step k, and we define σ k as the ‘subsequent local extreme’ of step k, which is the following local extreme seen from the state E B ( k ) , and determined by the actions after step k. Then the cost of battery life cycle loss on step k can be calculated as:
C l o s s ( k ) = 0.5 R c N 100 f a i l ( | E B ( k ) σ k E m a x | ) k p 0.5 R c N 100 f a i l ( | E B ( k + 1 ) σ k E m a x | ) k p
Referring to Figure 3, it can be perceived that if A B , σ 1 will be state C. Substituting the values into Equation (14), the cost in this step will be 0.5 R c N 100 f a i l ( | A C | ) k p 0.5 R c N 100 f a i l ( | B C | ) k p , and the cost over the three steps is 0.5 R c N 100 f a i l ( | A C | ) k p 0.5 R c N 100 f a i l ( | B C | ) k p + 0.5 R c N 100 f a i l ( | B C | ) k p + 0.5 R c N 100 f a i l ( | C D | ) k p , which is equal to 0.5 R c N 100 f a i l ( | A C | ) k p + 0.5 R c N 100 f a i l ( | C D | ) k p , the result we discussed previously. Similarly, If A < B , σ 1 will be state B and the cost within the step is 0.5 R c N 100 f a i l ( | A B | ) k p 0.5 R c N 100 f a i l ( | B B | ) k p . The cost over the three steps will become 0.5 R c N 100 f a i l ( | A B | ) k p + 0.5 R c N 100 f a i l ( | B C | ) k p + 0.5 R c N 100 f a i l ( | C D | ) k p , which coincides with the previous result. In the dynamic programming algorithm, an extra array should be created to memorize the ‘subsequent local extreme’ for all states, and a program to update this value should be included as well. We will discuss more on this in the next section.

4. Optimization Technique

4.1. Optimization Problem

Based on the system defined in previous sections, the control inputs are the BESS actions P B ( k ) in n batteries, which determine the cost of battery life cycle cost C l o s s in Equation (14), and the power exchanged from the microgrid with the energy market. To state the optimization problem, we propose the following cost function based on Equations (4) and (14).
k = 0 N 1 n C l o s s ( k ) C e l e ( k ) P G ( k )
Then the optimal control problem can be stated as: given P r n ( k ) , P l d ( k ) , and C e l e ( k ) for all k in every planning horizon, find the control input P B ( k ) such that the constraints (2)–(5) hold and the minimum of (15) is achieved.
To solve this problem, we introduce the Bellman function V ( k , E B ) as follows: For all k = 0 , 1 , , N 1 , E B [ E B m i n , E B m a x ] , P B [ P B m i n , P B m a x ] ,
V ( N , E B ) : = 0 E B [ E B m i n , E B m a x ]
V ( k , E B ) : = V ( ( k + 1 ) , E B ) + min P B ( n C l o s s ( k ) C e l e ( k ) P G ( k ) ) .
The algorithm can be solved recursively by starting from k = N 1 and computing V ( k , E B ) for all E B . With a given initial state E B ( 0 ) , the minimum of (15) can be obtained when k = 0 , and the optimal set of P B over the planning horizon of N steps can be retrieved.

4.2. Updating Local Extremes

As the ‘subsequent local extreme’ σ k , introduced in Section 3.3, is required to compute the cost of life cycle loss C l o s s . Based on the Bellman function introduced previously, we can assign σ k for every V ( k , E B ) , which can be considered as the next local extreme seen from the state E B ( k ) . However, since σ k 1 is required to calculate the values of V ( k 1 , E B ) , we will introduce a method to update σ ( k 1 ) with σ k in a recursive order suitable for the dynamic programming algorithm.
Referring to Figure 4, as the dynamic programming algorithm starts from the last step of the horizon, for all E B ( N 1 ) , the corresponding values of σ N 1 will be equivalent to a state E B ( N ) that generates the minimal cost along the path, since V ( N , E B ) = 0 and σ N does not exist. Then the values of σ N 1 will be memorized for the corresponding E B ( N 1 ) . In the remaining iterations, the values of σ k can be updated with the following method:
At step k 1 , and given E B ( k 1 ) , E B ( k ) , and σ k of E B ( k ) solved previously. There are two conditions. First, if the action between E B ( k 1 ) and E B ( k ) is opposite to the action from E B ( k ) to σ k , the ‘subsequent local extreme’ of V ( k 1 , E B ( k 1 ) ) will be E B ( k ) , namely σ k 1 = E B ( k ) . Second, if both actions are the same type (both charging/discharging), or the action in step k 1 is idling, then the ‘subsequent local extreme’ σ k 1 seen from the state E B ( k 1 ) should update to σ k .
With this updating method, we can determine the ‘subsequent local extreme’ for every former state in every step in the dynamic programming algorithm, and the cost of cycling can be calculated with Equation (14) to determine the minimum of (15).
It can be perceived that the cost model eliminates the need to run a cycle counting algorithm along the planning horizon and decompose it into a recursive and additive function, which allows the cycle-counting-based battery cost models to be included in the objective function of the optimization problem.

5. Simulation

5.1. Set Up

The proposed strategy is tested with computer simulation. Parameters of the battery used in the simulation are summarized in Table 1 and Table 2, which are based on the data provided in [16,23].

5.2. Parameters and Database

The battery used in [23] can experience 3000 cycles at 80% DOD, assuming the value of k p is 1.1, the cycles to failure at 100% DOD is around 2347. The cost of the battery used is 200 $/kWh. In addition, we choose 90% and 10% state-of-charge of BESS as the upper and lower bound for the BESS energy state to avoid overcharging/discharging.
It is assumed that the actual time of each control step is 5 min, as the predictive data on renewable power, electricity price, and load power are average values based on five-minute observations. The planning horizon considered is two-hour, and there will be 24 control steps on each horizon.
We conducted a one-day simulation, and the renewable power data is retrieved from the Woolnorth wind farm in Tasmania, Australia; the electricity price and power demand data are retrieved from the Australian Energy Market Operator. It should be noted that the load demand data is downscaled to the level of a microgrid.
We test two sets of data. The first set has an overall higher demand than the renewable power generated, and the total amount of power generated in the other one is higher than the demand, which can be seen in Figure 5 and Figure 6.
As the data used are actual observations, we include some errors in the electricity price, renewable power, and load power demand based on the short-term forecasting technique presented in [28] that produces a normalized mean absolute error that ranges between 5% and 14%. As a result, we include the normally distributed random errors with zero mean and the standard deviation equal to 5% of the mean value of the actual data. The actual electricity price and the one with errors are illustrated in Figure 7.
Due to the errors in renewable power and load power, the actual power dispatched to the grid will deviate from the results solved by the algorithm, whereas the cost of battery life cycle loss will not be affected by these errors as the state transition in the battery is deterministic. In our simulation, the data sets with errors are used in the algorithm, and the results are assessed with the actual data sets.

5.3. Simulation Results

With an initial state of 80% SOC (10 MWh), and the electricity data in Figure 7, the control inputs of the BESS and the change in the battery SOC solved under the two data sets can be seen in Figure 8 and Figure 9.
The number of ‘half-cycles’ identified from the first data set was 21, with a long half cycle from the initial state to the lower limit and a number of small cycles near the lower limit, whereas the number of ‘half-cycles’ identified from the second data set was five. Most of the charging actions, namely the negative values in BESS actions in both data sets can be observed around step 90 to 100, and step 200 to 210, which are periods that have relatively higher values of electricity prices than others. As the state of charge before these two periods are close to the lower limit, those spikes in the electricity prices would lead to some charging actions solved by the algorithm to achieve higher profit.
The costs calculated based on the simulation results are summarized in Table 3.
The BESS cost is calculated using Equation (13), and the energy trading cost is determined with ( C e l e ( k ) P G ( k ) ) over the simulation period with forecasting errors. Also, we include the results solved with the case of balancing the power differences by exchanging power with the utility grid only, which is the cost without BESS in the table, solved with ( C e l e ( k ) ( P r n ( k ) P l d ( k ) ) ) .
As the objective function in our problem is to minimize the cost function (15), a lower cost indicates a better result. In the case of higher demand, the overall cost 414,700.31 is the cost spent on buying energy from the energy market, and a reduction of 18,408.5, which is around 4.5% of the daily cost, can be achieved. In the lower demand condition, the negative sign in the cost indicates the profit gained from selling the excessive power, and an increase of 22,080.56 can be observed, which is around 5.6% of the daily profit.

5.4. Discussion

Compared with some population-based heuristics optimizers, such as differential evolution (DE) and PSO [19,20,21], DP could be inefficient due to the well-known ‘curse of dimensionality’. Nevertheless, in the case of optimal control considering battery cost from cycling, these population-based optimizers can be costly for a large size of population, as a cycle counting algorithm will be invoked each time the entities/particles calculate the value of cost function. Also, these algorithms would require some adjustments in their parameters and initial positions to obtain the best results, which could be undesirable for real-time applications. In addition, the major drawback of these population-based algorithms is the lack of a solid mathematical foundation to assess the result [31]. In comparison, the DP algorithm can guarantee the global optimum in the planning horizon, which could be more reliable and consistent in real-time operating. Also, our proposed cost model of battery eliminates the need to execute the cycle counting algorithm at the cost of extra storage space, which reduces the computation complexity and can be used as the benchmark to assess those population-based algorithms.
The proposed approach is a high-level control scheme, and the basic idea is to determine the optimal actions of BESS to maximize the profit in the microgrid. Although it is beyond the scope of this paper to investigate the low-level control, we would like to emphasize the importance of power electronics in the distributed generators (DGs)/batteries structure. In the microgrid environment, a large amount of DG units (e.g., solar panels, microturbines), storage units, and non-linear loads will be integrated, and a network of power inverters connected in parallel will be necessary in order to obtain good power sharing [32] and stabilize system frequency [33]. In our case, the distributed BESS is used, and multiple batteries connected in parallel should be coordinated and synchronized, which raises concerns on power sharing and frequency. We propose the high-level power scheduling control to optimize the cost, and a low-level control on the power inverters would be necessary, such as the hierarchical droop control for parallel-connected inverters introduced in [34,35,36,37].

6. Conclusions

In this paper, we proposed a control strategy to maximizing the profit in a microgrid with a renewable power system and a battery energy storage system. The predicted data on renewable power, load power and electricity price are used to determine the suitable control inputs of the system, and we used the receding horizon approach to alleviate the effects of forecasting errors by updating the prediction constantly. We also considered the cost of battery cycling and developed a recursive cost model. A dynamic programming algorithm is used to solve the optimization problem over each planning horizon, and the cost model is compatible with the algorithm. We tested our algorithm with actual data, and simulation results have shown significant improvements in different conditions.

Author Contributions

Conceptualization, W.Z. and A.V.S.; methodology, W.Z.; software, W.Z.; validation, W.Z. and A.V.S.; formal analysis, A.V.S.; investigation, W.Z.; resources, A.V.S.; data curation, W.Z.; writing—original draft preparation, W.Z.; writing—review and editing, A.V.S.; visualization, W.Z.; supervision, A.V.S.; project administration, A.V.S.; funding acquisition, A.V.S.

Funding

This work was supported by the Australian Research Council.

Conflicts of Interest

Authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
BESSBattery energy storage system
MPCModel predictive control
DPDynamic programming
SMCSliding mode control
RLReinforcement learning
PSOParticle swarm optimization
MILPMixed-integer linear programming
MDPMarkov decision process
SOCState of charge
DODDepth of discharge
DEDifferential evolution
DGDistributed generator

References

  1. Luo, F.; Xu, Z.; Meng, K.; Dong, Z.Y. Optimal operation scheduling for microgrid with high penetrations of solar power and thermostatically controlled loads. Sci. Technol. Built Environ. 2016, 22, 666–673. [Google Scholar] [CrossRef]
  2. Provata, E.; Kolokotsa, D.; Papantoniou, S.; Pietrini, M.; Giovannelli, A.; Romiti, G. Development of optimization algorithms for the Leaf Community microgrid. Renew. Energy 2015, 74, 782–795. [Google Scholar] [CrossRef]
  3. Khalid, M.; Ahmadi, A.; Savkin, A.V.; Agelidis, V.G. Minimizing the energy cost for microgrids integrated with renewable energy resources and conventional generation using controlled battery energy storage. Renew. Energy 2016, 97, 646–655. [Google Scholar] [CrossRef]
  4. Zhuo, W.; Savkin, A.V.; Meng, K. Decentralized Optimal Control of a Microgrid with Solar PV, BESS and Thermostatically Controlled Loads. Energies 2019, 12, 2111. [Google Scholar] [CrossRef]
  5. Khalid, M.; Savkin, A.V. A model predictive control approach to the problem of wind power smoothing with controlled battery storage. Renew. Energy 2010, 35, 1520–1526. [Google Scholar] [CrossRef]
  6. Khalid, M.; Aguilera, R.P.; Savkin, A.V.; Agelidis, V.G. A market-oriented wind power dispatch strategy using adaptive price thresholds and battery energy storage. Wind Energy 2018, 21, 242–254. [Google Scholar] [CrossRef]
  7. Khalid, M.; Aguilera, R.P.; Savkin, A.V.; Agelidis, V.G. On maximizing profit of wind-battery supported power station based on wind power and energy price forecasting. Appl. Energy 2018, 211, 764–773. [Google Scholar] [CrossRef]
  8. Khalid, M.; Savkin, A.V. An optimal operation of wind energy storage system for frequency control based on model predictive control. Renew. Energy 2012, 48, 127–132. [Google Scholar] [CrossRef]
  9. Ji, Y.; Wang, J.; Xu, J.; Fang, X.; Zhang, H. Real-Time Energy Management of a Microgrid Using Deep Reinforcement Learning. Energies 2019, 12, 2291. [Google Scholar] [CrossRef]
  10. Bui, V.H.; Hussain, A.; Kim, H.M. Q-Learning-Based Operation Strategy for Community Battery Energy Storage System (CBESS) in Microgrid System. Energies 2019, 12, 1789. [Google Scholar] [CrossRef]
  11. Wu, X.; Cao, W.; Wang, D.; Ding, M. A Multi-Objective Optimization Dispatch Method for Microgrid Energy Management Considering the Power Loss of Converters. Energies 2019, 12, 2160. [Google Scholar] [CrossRef]
  12. Nikolovski, S.; Reza Baghaee, H.; Mlakić, D. ANFIS-based Peak Power Shaving/Curtailment in Microgrids including PV Units and BESSs. Energies 2018, 11, 2953. [Google Scholar] [CrossRef]
  13. Wang, D.; Qiu, J.; Reedman, L.; Meng, K.; Lai, L.L. Two-stage energy management for networked microgrids with high renewable penetration. Appl. Energy 2018, 226, 39–48. [Google Scholar] [CrossRef]
  14. Parisio, A.; Rikos, E.; Glielmo, L. A model predictive control approach to microgrid operation optimization. IEEE Trans. Control Syst. Technol. 2014, 22, 1813–1827. [Google Scholar] [CrossRef]
  15. Gu, W.; Wang, Z.; Wu, Z.; Luo, Z.; Tang, Y.; Wang, J. An online optimal dispatch schedule for CCHP microgrids based on model predictive control. IEEE Trans. Smart Grid 2016, 8, 2332–2342. [Google Scholar] [CrossRef]
  16. Levron, Y.; Guerrero, J.M.; Beck, Y. Optimal power flow in microgrids with energy storage. IEEE Trans. Power Syst. 2013, 28, 3226–3234. [Google Scholar] [CrossRef]
  17. Baghaee, H.R.; Mirsalim, M.; Gharehpetian, G.B.; Talebi, H.A. Decentralized sliding mode control of WG/PV/FC microgrids under unbalanced and nonlinear load conditions for on-and off-grid modes. IEEE Syst. J. 2017, 12, 3108–3119. [Google Scholar] [CrossRef]
  18. Baghaee, H.R.; Mirsalim, M.; Gharehpetian, G.B.; Talebi, H.A. A decentralized power management and sliding mode control strategy for hybrid AC/DC microgrids including renewable energy resources. IEEE Trans. Ind. Inform. 2017. [Google Scholar] [CrossRef]
  19. Baghaee, H.R.; Mirsalim, M.; Gharehpetian, G.B. Multi-objective optimal power management and sizing of a reliable wind/PV microgrid with hydrogen energy storage using MOPSO. J. Intell. Fuzzy Syst. 2017, 32, 1753–1773. [Google Scholar] [CrossRef]
  20. Baghaee, H.; Mirsalim, M.; Gharehpetian, G.; Talebi, H. Reliability/cost-based multi-objective Pareto optimal design of stand-alone wind/PV/FC generation microgrid system. Energy 2016, 115, 1022–1041. [Google Scholar] [CrossRef]
  21. Kaviani, A.K.; Baghaee, H.R.; Riahy, G.H. Optimal sizing of a stand-alone wind/photovoltaic generation unit using particle swarm optimization. Simulation 2009, 85, 89–99. [Google Scholar] [CrossRef]
  22. He, G.; Chen, Q.; Kang, C.; Pinson, P.; Xia, Q. Optimal bidding strategy of battery storage in power markets considering performance-based regulation and battery cycle life. IEEE Trans. Smart Grid 2015, 7, 2359–2367. [Google Scholar] [CrossRef]
  23. Xu, B.; Oudalov, A.; Ulbig, A.; Andersson, G.; Kirschen, D.S. Modeling of lithium-ion battery degradation for cell life assessment. IEEE Trans. Smart Grid 2016, 9, 1131–1140. [Google Scholar] [CrossRef]
  24. Vetter, J.; Novák, P.; Wagner, M.R.; Veit, C.; Möller, K.C.; Besenhard, J.; Winter, M.; Wohlfahrt-Mehrens, M.; Vogler, C.; Hammouche, A. Ageing mechanisms in lithium-ion batteries. J. Power Sources 2005, 147, 269–281. [Google Scholar] [CrossRef]
  25. Xu, B.; Zhao, J.; Zheng, T.; Litvinov, E.; Kirschen, D.S. Factoring the cycle aging cost of batteries participating in electricity markets. IEEE Trans. Power Syst. 2017, 33, 2248–2259. [Google Scholar] [CrossRef]
  26. Morstyn, T.; Savkin, A.V.; Hredzak, B.; Agelidis, V.G. Multi-agent sliding mode control for state of charge balancing between battery energy storage systems distributed in a DC microgrid. IEEE Trans. Smart Grid 2017, 9, 4735–4743. [Google Scholar] [CrossRef]
  27. Sideratos, G.; Hatziargyriou, N.D. An advanced statistical method for wind power forecasting. IEEE Trans. Power Syst. 2007, 22, 258–265. [Google Scholar] [CrossRef]
  28. Khalid, M.; Savkin, A.V. A method for short-term wind power prediction with multiple observation points. IEEE Trans. Power Syst. 2012, 27, 579–586. [Google Scholar] [CrossRef]
  29. Bellman, R. Dynamic Programming; Princeton University Press: Princeton, NJ, USA, 2010. [Google Scholar]
  30. Bertsekas, D.P. Dynamic Programming and Optimal Control; Athena Scientific: Belmont, MA, USA, 1995. [Google Scholar]
  31. Lee, K.Y.; Park, J.B. Application of particle swarm optimization to economic dispatch problem: Advantages and disadvantages. In Proceedings of the 2006 IEEE PES Power Systems Conference and Exposition, Atlanta, GA, USA, 29 October–1 November 2006; IEEE: Piscataway, NJ, USA, 2006; pp. 188–192. [Google Scholar]
  32. Guerrero, J.M.; Chandorkar, M.; Lee, T.L.; Loh, P.C. Advanced control architectures for intelligent microgrids—Part I: Decentralized and hierarchical control. IEEE Trans. Ind. Electron. 2012, 60, 1254–1262. [Google Scholar] [CrossRef]
  33. Guerrero, J.M.; Vasquez, J.C.; Matas, J.; De Vicuña, L.G.; Castilla, M. Hierarchical control of droop-controlled AC and DC microgrids—A general approach toward standardization. IEEE Trans. Ind. Electron. 2010, 58, 158–172. [Google Scholar] [CrossRef]
  34. Baghaee, H.R.; Mirsalim, M.; Gharehpetian, G.B. Real-time verification of new controller to improve small/large-signal stability and fault ride-through capability of multi-DER microgrids. IET Gener. Transm. Distrib. 2016, 10, 3068–3084. [Google Scholar] [CrossRef]
  35. Baghaee, H.R.; Mirsalim, M.; Gharehpetian, G.B. Performance improvement of multi-DER microgrid for small-and large-signal disturbances and nonlinear loads: Novel complementary control loop and fuzzy controller in a hierarchical droop-based control scheme. IEEE Syst. J. 2016, 12, 444–451. [Google Scholar] [CrossRef]
  36. Baghaee, H.R.; Mirsalim, M.; Gharehpetian, G.B.; Talebi, H.A. Eigenvalue, robustness and time delay analysis of hierarchical control scheme in multi-DER microgrid to enhance small/large-signal stability using complementary loop and fuzzy logic controller. J. Circuits Syst. Comput. 2017, 26, 1750099. [Google Scholar] [CrossRef]
  37. Baghaee, H.R.; Mirsalim, M.; Gharehpetian, G.B. Power calculation using RBF neural networks to improve power sharing of hierarchical control scheme in multi-DER microgrids. IEEE J. Emerg. Sel. Top. Power Electron. 2016, 4, 1217–1225. [Google Scholar] [CrossRef]
Figure 1. Configuration of the microgrid.
Figure 1. Configuration of the microgrid.
Energies 12 02904 g001
Figure 2. Maximum number of cycles the battery can experience at different conditions.
Figure 2. Maximum number of cycles the battery can experience at different conditions.
Energies 12 02904 g002
Figure 3. State of charge (SOC) profile used for illustration.
Figure 3. State of charge (SOC) profile used for illustration.
Energies 12 02904 g003
Figure 4. Dynamic programming order.
Figure 4. Dynamic programming order.
Energies 12 02904 g004
Figure 5. Actual renewable power and power demand (higher demand).
Figure 5. Actual renewable power and power demand (higher demand).
Energies 12 02904 g005
Figure 6. Actual renewable power and power demand (lower demand).
Figure 6. Actual renewable power and power demand (lower demand).
Energies 12 02904 g006
Figure 7. Actual and predicted electricity price.
Figure 7. Actual and predicted electricity price.
Energies 12 02904 g007
Figure 8. Battery energy storage system (BESS) actions and SOC (higher demand).
Figure 8. Battery energy storage system (BESS) actions and SOC (higher demand).
Energies 12 02904 g008
Figure 9. BESS actions and SOC (lower demand).
Figure 9. BESS actions and SOC (lower demand).
Energies 12 02904 g009
Table 1. Microgrid parameters.
Table 1. Microgrid parameters.
P B m a x , P B m i n P B m a x , P B m i n E B m i n E B m a x E m a x R c
24 MW60 MW1.25 MWh11.25 MWh12.5 MWh2,500,000 $
Table 2. Battery cost parameters.
Table 2. Battery cost parameters.
N 100 f a i l kp Δ δ dn
23471.11/120.055
Table 3. Costs solved with both data sets.
Table 3. Costs solved with both data sets.
BESS CostEnergy Trading CostOverall CostCost without BESS
Higher demand3849.07410,851.24414,700.31433,108.81
Lower demand2548.24−394,509.25−391,961.01−369,880.45

Share and Cite

MDPI and ACS Style

Zhuo, W.; Savkin, A.V. Profit Maximizing Control of a Microgrid with Renewable Generation and BESS Based on a Battery Cycle Life Model and Energy Price Forecasting. Energies 2019, 12, 2904. https://doi.org/10.3390/en12152904

AMA Style

Zhuo W, Savkin AV. Profit Maximizing Control of a Microgrid with Renewable Generation and BESS Based on a Battery Cycle Life Model and Energy Price Forecasting. Energies. 2019; 12(15):2904. https://doi.org/10.3390/en12152904

Chicago/Turabian Style

Zhuo, Wenhao, and Andrey V. Savkin. 2019. "Profit Maximizing Control of a Microgrid with Renewable Generation and BESS Based on a Battery Cycle Life Model and Energy Price Forecasting" Energies 12, no. 15: 2904. https://doi.org/10.3390/en12152904

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop