Abstract
Under the application scenario of smoothing photovoltaic (PV) power fluctuation, a novel typical daily power curve mining method is developed for a battery energy storage system (BESS) that utilizes the power probability distribution and Bloch spherical quantum genetic algorithm. The charging/discharging of BESS is analyzed by applying fuzzy- means clustering techniques. In the mining approach, at any sample time, those distribution intervals containing concentrated power points are individually located by using probability distribution information and Bloch spherical quantum genetic algorithm. Character power for the specified interval can also be determined using Bloch spherical quantum genetic algorithm. Next, a roulette principal is employed, to determine one value from the character power data as a typical value of the mined power curve at the sample time. By connecting the typical power at each sample time, the typical daily power curve for BESS is achieved. Based on typical power curve, decision-maker can master the important operating parameters of BESS and analyze optimal capacity allocation. By error evaluation indexes between the mined typical daily power curve and power curve under different weather patterns, the simulation results verify that the mined power curve can address the operating power of the BESS under different weather patterns.
1. Introduction
Photovoltaic (PV) power generation technology has grown tremendously in recent years [1]. PV conversion technology is discontinuous and fluctuating, due to the variety of solar radiation. It has caused severe challenges for the reliable and safe operation of power grids, especially at high levels of penetration [2, 3]. It is well known that the power fluctuation can be mitigated through deployment of energy storage systems, alongside PV power generation.
Electric energy can be stored electromagnetically, kinetically, or as potential energy, such as supercapacitors, flywheels, batteries, compressed air energy storage, and hydropumped storage based on different storage methods [4]. Among various energy storage options, the battery energy storage system (BESS) is widely applied for easy implementation via charging/discharging of electric energy. BESS is an attractive technology to solve problems concerning the high penetration of PV stations. Based on prior studies, a number of approaches to optimizing the capacity of BESS are reported from several aspects, such as better utilization of PV [5] and reduction of generation costs [6]. The technical and economic model of the PV-battery [7] and lifecycle-based cost modeling for batteries [8] are also investigated. In the field of operation control, a power management mechanism for grid PV with BESS is designed [9]. An optimization scheme for an energy dispatch schedule is presented in [10–12]. These studies mainly focused on the suitable capacity allocation, the minimum economic cost, and optimizing operation control for PV-battery system. The research shows that there is little research on mining the typical daily power curve of BESS. Since a large-scale BESS is highly expensive, it is valuable that the typical operation power curve of BESS be mined from the massive operation power data in BESS. As we know, electric load curve can provide useful information. Using the typical daily power curve extracted under different operational conditions, valuable knowledge can be obtained from analyzing the charging/discharging of BESS, including maximum charging/discharging power, maximum power fluctuation rate, and the charging/discharging capacity in one day. Typical daily power curve can not only help understand the operational features of the PV-battery system to optimize performance of BESS, but also provide useful data to easily calculate the optimal capacity allocation of BESS for photovoltaic power station to save economic cost.
The mining technology of the typical load curve is often concerned with electric load. Methods to address this problem consist of statistical methods and artificial intelligence based techniques. Artificial intelligence methods include fuzzy logic approaches [13], neural networks [14], expert systems [15], and pattern-recognition techniques [16–18]. Statistical methods include linear regression, exponential smoothing [19], stochastic time series [20], and state space models [21].
At present, there is little research on load curve for BESS with renewable generation systems. In this work, we study the mining typical daily power curve of BESS under the application scenario of smoothing PV power fluctuations. After analyzing the characteristics of BESS power, we present a novel mining method of typical daily power curve for BESS, considering the probability distribution of power among scattered historical power time series. For any sample time, a Bloch spherical quantum genetic algorithm is adopted, to locate distribution interval ranges containing denser power points from the vertical time series of power data (the power data at the same time across different days). Character power mapping of every distribution interval is obtained by the Bloch spherical quantum genetic algorithm. Next, a roulette principal is employed, to determine one power value from a group of character power data as the typical power data for this sample time. Finally, connecting the typical power values at every sample time, a typical daily power curve for BESS is generated and error evaluation indexes are also compared.
The remainder of this paper is organized as follows. The characteristics of operation for BESS under different weather patterns are presented in Section 2. In Section 3, the mining algorithm of the typical daily power curve is developed based on probability distribution and Bloch spherical quantum genetic algorithm. In Section 4, the proposed strategy is applied to a case study system with real PV station data. Finally, conclusions are given in Section 5.
2. Operation Characteristics of Charging/Discharging Power in BESS
As solar irradiation intensity varies with different weather, the PV power also presents different fluctuation and further causes a variety of charging/discharging power in BESS. In order to discover the operating characteristics of BESS, a clustering method is employed to classify the historical data.
2.1. The Fuzzy- Means Clustering Techniques for PV Power Data
Clustering is a useful method to classify a set of data into groups with similar attributes. Fuzzy- means (FCM) is one of the most popular clustering techniques. In this work, a FCM is employed to cluster the PV power data. We use the objective function of the FCM method [22] to minimize the distance between data points and center of clusters:
is the object function, is input data to be clustered, is the total number of input data, is the total number of clusters, is the matrix of cluster centers, is membership degree of the th input data to center of the th cluster, and is the user-defined parameter termed “amount the index” of fuzziness. The procedure of FCM for PV power is briefed as follows: classify the weather pattern into six types: sunny, cloudy, overcast, rain/snow, cloudy to sunny, and sunny to cloudy; that is, . Selecting the irradiance fluctuation rate, maximum irradiance ratio, and temperature as clustering characters, the input data is expressed as
For the th day, is the irradiance fluctuation rate before 12 hours, is the irradiance fluctuation rate after 12 hours, is average temperature, and is the maximum irradiance ratio.
The maximum irradiance ratio is the ratio between the actual solar irradiance received of PV panel and maximum irradiance in external horizontal plane at the same sample time. It is calculated as
The irradiance fluctuation rate is the irradiance fluctuation on the PV panel in th day. The formula is
is the actual surface irradiance in the horizontal plane, is maximum irradiance in external horizontal plane, and is the sample time.
FCM is an iterative algorithm. First, the initial membership value must meet requirement (5). Secondly, according to (6), the vector of cluster center for iteration k can be computed:
The membership value is updated by (7) for each iteration.
The iteration continues until terminal condition (8), where is an approximately small value.
2.2. Operation Characteristic of BESS
The PV actual output power of the solar station was applied with 30 MW capacity in China using the FCM method to classify the data. The sampling time was one minute. According to the requirement of the fluctuation rate of active power for the PV station, the charging/discharging power in BESS under the different weather patterns was obtained by utilizing a smoothing strategy based on slope control [23]. The curves of PV power, the power of BESS, and the power after smoothing under six weather patterns are shown in Figure 1.

It can be seen from Figure 1 that BESS power has different features among various weather patterns. On sunny days, the fluctuation of PV power is smaller, and the BESS almost does not discharge and charge power. With the change of the weather, clouds and radiation are fluctuation and the requirement for stored power in BESS to smooth PV power becomes larger. The BESS power is mainly in the range of [−0.2 MW 0.2 MW] on sunny days. During rain or snow, the BESS power is concentrated in the range of [−2.5 MW 2.5 MW]. During other weather patterns, the requirements for stored energy in BESS become heavier and the BESS power is mainly various in the range of [−8 MW 8 MW].
In order to discover operation aspects detailed in BESS under the different weather patterns, probability statistical information including the distribution histogram and fitting curve of probability density for BESS power is shown in Figure 2. Since the output power in the PV station is zero during the night or times with lower solar irradiance, only power data within 6:00–19:00 is counted. It can be seen from Figure 2 that the fitting curves of probability density stretch away from zero under worse weather patterns. This trend illustrates that the power requirements for stored energy become heavier due to the larger fluctuations of PV power in worse weather.

3. Mining Method of Typical Daily Power Curve for BESS
3.1. The Mining Algorithm for Typical Power Curve
Since the fluctuation of PV power varies for different weather, there are scattered data of BESS power at the same sample times across different days. In order to mine typical daily power curves of BESS under smoothing PV power fluctuation, we develop the mining algorithm as follows:(1)For time instant, a typical power value mined among historical power data should approximately describe the charging/discharging feature of BESS during different days.(2)Integrating typical power values at every sampling time instant, a typical daily power curve of BESS can be accomplished as follows: , where is the number of sample points for one day.
A key issue is to determine the typical power value at time k. Since the power data of BESS is very dispersed at time across different days, it is difficult to automatically extract suitable typical power for time from large amounts of data. In this work, a novel idea considering data frequency information is proposed to mine data. A mining algorithm is put forward to extract the typical power value for time by utilizing the probability distribution information of power data in the vertical time series and Bloch spherical quantum genetic algorithm. The vertical time series are constructed with historical power data at the same time during different days. First, a Bloch spherical quantum genetic algorithm is adopted to search the distribution interval range containing the densest power points for time k from the vertical time series. Because there exist many power points in searched distribution range, a Bloch spherical quantum genetic algorithm is continually employed to locate one power value from many power points as character power mapping to this interval. Although this extracted character power value occurs at higher frequencies for time k, it is still inaccurate or incomplete to only utilize this character power as suitable typical power for time k. Thus in our work, for the remaining data, we iterate this process until every distribution interval containing more power points and character power is found using the terminal condition: there is no distribution intervals range where the statistical probability of power points belonging to the interval is higher than the set threshold . At this time, we have found distribution intervals, meaning that there exist character power values for sample time . We use these character power data to construct a character power vector, and record the frequency probability of distribution-interval-mapped character power at time . We then employ the roulette principle based on the probability to determine one character power as typical power from the character power vector for sample time . The roulette principle has an advantage of maintaining diversity of the typical power.
3.2. The Step of Mining Algorithm of Typical Power Curve
Applying the above principle and using the mining typical power value at time as an example, the detailed step for extracting the load curve for a BESS from its operational data is as follows.
Step 1. Read BESS power data during m days, and construct power matrix , with the element of representing the BESS power historical data during days. There are n sample points for one day.
Step 2. Extract power vector at time during m days: .
For example, assuming that time is equal to 9:00 in the morning, we sample the power data at 9:00 am across ten days to construct vertical time series data.
Step 3. Search the distribution interval containing the most concentrated power points using the Bloch spherical quantum genetic algorithm.
The process can be briefly discussed as follows.
If the lower limit of the interval is and the range of interval is , then the distribution interval is , where is a constant according to experience.where denotes an element of , .
Thus, the first distribution interval containing the most concentrated power points is obtained as .
Step 4. Calculate the frequency probability of the distribution interval.
Extract all power values in the distribution interval , to construct the interval power vector , , where denotes the power value in . This can be diagramed as encircling data set in Figure 3(a).

(a)

(b)
We calculate the frequency probability of distribution interval aswhere is the size of the interval power vector .
Step 5. Search the character power mapping in the previously specified interval by Bloch spherical quantum genetic algorithm.
We define as the minima among the elements of and as the maxima among the elements of . Since character power represents typical power value within the distribution, the power value, which has the nearest Euclid distance to other elements of in the range , can be considered as character power. The Bloch spherical quantum genetic algorithm is used in the range to obtain the character power. Optimizing the object function is defined as
Step 6. Remove the interval power vector from power vector and create new power data . Iterate Steps 3 and 4 to get the next optimal distribution interval and the interval power vector . This can be diagramed as the encircling set in Figure 3(b). Calculate the frequency probability .
Step 7. If is smaller than the threshold , then go to Step 8. Else, iterate Step 6 to calculate the character power and find the overall character power, until the frequency probability is smaller than the threshold. Following this, go to Step 8. Threshold can be determined according to the dispersive degree of the power point. If the power point is scattered, a small value is assigned to the threshold . When the power value is concentrated, the threshold can be of a large value.
Step 8. Take all character power mapping with a frequency probability larger than threshold to construct the typical character power vector at time . Applying the principle of roulette based on the probability of character power, only one element, , is selected as the typical power in BESS at time . Roulette has an advantage of maintaining the most diverse selected typical power. The probability of character power is calculated as
Therefore, the typical daily power curve is , after connecting the overall typical power at all sample times in one day.
Taken as an example, assume that there are ten data sets among historical data at time: six data sets whose values of discharging power are 0.3 MW, one data set whose value of discharging power is 0.31 MW, two data sets whose values of discharging power are 0.6 MW, and one data set whose value of discharging power is 0.1 MW. For the data, a Bloch spherical quantum genetic algorithm first searches the vertical time series data and automatically finds the interval distribution containing the most power points [0.3 MW 0.32 MW]. Next, a Bloch spherical quantum genetic algorithm can also locate 0.3 MW, not 0.31 MW, as the character power mapping of the distribution interval. This process is then iterated, with distribution ranges [0.6 MW 0.62 MW] and [0.1 MW 0.12 MW] found, and character powers 0.6 MW and 0.1 MW are determined. We choose character powers 0.3 MW, 0.6 MW, and 0.1 MW to generate character power vector [0.3 0.6 0.1]. Finally, the roulette principle is employed to determine the typical power value of BESS at time k. Character power value 0.3 MW has high probability to become the typical power at time. The roulette principle gives an effective approach to maintaining the diversity of the typical power.
The flow chart of the proposed mining algorithm of the typical daily power curve is illustrated in Figure 4.

3.3. Optimizing Process Based on the Bloch Spherical Quantum Genetic Algorithm
Genetic algorithms can solve the optimization problem for gradient-less information. Traditional genetic algorithms adopt binary encoding and may cause the problem of local optimum due to a single gene state. In order to effectively optimize performance, the Bloch spherical quantum genetic algorithm based on the Bloch spherical search is employed, to optimize the object function so as to determine the lower limit of the distribution interval containing the most concentrated power points and the character power mapping of the above interval.
3.3.1. The Basic Principle of the Bloch Spherical Quantum Genetic Algorithm
Genetic algorithm can solve the problem of optimization without gradient information. But traditional genetic algorithms generally adopt binary coding, which makes the gene state single and easy to get into local optimal problems.
Unlike the classical binary bit, which can only be set equal to 0 or 1, the qubit resides in a vector space parametrized by the continuous variables and . The Bloch spherical quantum genetic algorithm utilizes Bloch spherical coordinates to encode and has an advantage on the continuous optimization problem. In order to enhance optimization efficiency and performance, we employed the method of Bloch spherical quantum genetic algorithm [24] to search the lower limit of the distribution interval and the corresponding character power .
Using the lower limit of the distribution interval , for example, the encoded code is shown inwhere ( is the population quantity). From (15), it is known that its individuals are encoded directly by qubits described on the Bloch sphere with two parameters and . The Bloch spherical quantum genetic algorithm uses quantum rotation gates on the Bloch sphere to update two parameters and to accomplish the best matching of two adjustments to implement the selection and crossover of the population. In order to increase individual diversity and prevent premature convergence, the quantum nongate is used to perform the mutation.
3.3.2. The Optimizing Implementation of the Lower Limit of the Distribution Interval and Character Power Mapping of the Interval
Using the lower limit of the distribution interval , for example, the optimal solution by the Bloch spherical quantum genetic algorithm can be described in the following.(1)Set initial parameters: the population quantity is , and the maximal number of iterations is . Set the accumulation number . Use Bloch spherical coordinates to encode the lower limit , and two parameters and are set randomly, so as to generate initial population .(2)Transform solution space: the individual is processed using inverse normalization according to the range between maxima and minima of .(3)Utilizing (10), evaluate the fitness of each individual, and record the optimal fitness of individual and mapping parameters and ; get the current optimum solution and current optimum chromosome .(4)Store into the global optimum solution and into the global optimum solution .(5)Set , and update parameters using quantum rotation gates to accomplish the selection and crossover of the population. The mutation is implemented by the quantum nongate. Therefore, a new population is generated as .(6)Iterate Steps and , calculating the current optimum solution for and the current optimum chromosome .(7)If , then . Else, .(8)Go back to ; continue until . Finally, is exported as the optimal solution .
In a similar way, the optimizing procedure for the character power mapping of the above distribution interval is implemented by Bloch spherical quantum genetic algorithm. Equation (13) is used to evaluate the fitness of the individual during the process of searching for optimal solution for character power . The individual population in inverse normalization is processed according to the range between the maxima and minima of .
4. Simulation Results and Analysis
In our simulation, actual power at a PV station with capacity power 30 MW in China is selected to test the effectiveness of the proposed method. Sampling time is one minute.
4.1. Typical Daily Power Curve
Under the application scenario of smoothing PV power fluctuations with BESS, a smoothing strategy based on slope control [23] is utilized to obtain the operating power in BESS. Its principle can be briefed in the following:
Define the rate of power change to be calculated aswhere is PV power at time t, is the smoothing power at the previous sample time, and is the sample time.
The smoothing power is determined using the following rules:
(a) If , then .
(b) If , then .
(c) If , then .
The above-specified parameter values and for the rise/drop rate limits were determined as follows:where is the capacity power of PV station and is the appointed limit value of power fluctuation rate during time T, which is generally 10 minutes.
Hence, the charging or discharging power in the BESS can be calculated as follows:
In our simulation, = 30 MW, = 10 min, , and min. Using actual power at a PV station, the charging/discharging power in BESS can be obtained by (15). Furthermore, implementing the proposed mining algorithm in the paper, the typical daily power curve of BESS can be mined as shown in Figure 5. The distribution histogram and fitting curve of the BESS typical daily power curve are given in Figure 6.


The typical power curve of energy storage system explores operation data and is the refinement and generalization of actual power, which can reflect the charge and discharge characteristics of energy storage system. Mining knowledge from the typical power curve will help to better utilize BESS. Based on typical power curve, decision-maker can master the operating conditions of system and increase the overall cognition of output power of energy storage. According to the curve data in Figure 5, the operation parameters can be extracted as Table 1. The maximum charging power, maximum discharging power, maximum power fluctuation rate, and charging capacity and discharging capacity in BESS during one day could be found in Table 1. It is valuable to optimize control of BESS performance to reduce the economic cost of BESS through analyzing those important operation parameters.
By using the typical power curve, it can also help determine the optimal capacity allocation of BESS. In order to get suitable capacity allocation of BESS, long time span data for one year is commonly needed to calculate the capacity allocation of BESS. Using the extracted typical power curve to calculate optimal capacity allocation of BESS, it can effectively compress the data and cut down the amount of calculation.
The calculation of optimal capacity allocation is as follows:where Cap is the capacity allocation of BESS, is the power value of the typical power curve at time I, is the sample interval, and are the sample times that the BESS continuously charge and discharge.
Substituting the power value of the typical power curve into the above calculation formula can be used to obtain the optimal capacity allocation of BESS. The optimal capacity allocation achieved, based on typical power curve, is 2.71 MW·h. Thus, the result of the capacity allocation of BESS for the above PV station is 6.81 MW/2.71 MW·h, according to the mined typical power curve.
4.2. Error Evaluation
In order to verify the effectiveness of the mined typical power curve, an error evaluation is presented between the typical power curve and power curves in different weather patterns. A vertical error index and probability distribution error are designed.
4.2.1. Vertical Error
We define the vertical error aswhere represents the vertical error between the typical power curve and power curve in the weather pattern , is the th power in the typical power curve, is the th power in the weather pattern , and is the number of power points.
The vertical error measures the dispersion degree between the typical power curve and the power curves in different weather. It is an error evaluation index for the typical power curve from the time domain.
The mined typical power curve and power curves under the six weather patterns are shown in Figure 8. Table 2 shows the vertical errors between the typical power curve and the power curve in BESS for the case of six weather patterns.
It can be seen that, from Table 2 and Figure 7, the typical power curve implies the characteristics of power under different weather. The vertical errors between the typical power curve and the power curve are relatively larger under two weather conditions (sunny and rain/snow) than the other four weather patterns. This is due to the fact that, on sunny and rain/snow days, the power fluctuation of the PV station is small, resulting in a low requirement for stored power in BESS. Thus the amplitude of the BESS power curve is small and smooth, compared with the other four weather patterns. This results in heavy dispersion from the typical power curve.


4.2.2. Probability Distribution Error
We define the evaluating index aswhere represents the error of fitting curve of the probability density between the typical power curve and BESS power curve in the weather pattern . We define as the th value in the fitting curve for typical power curve. Also, is the th value in the fitting curve for the weather pattern , is the number of power points, and is the width of bin in the histogram.
The fitting curves of the probability density for both the typical daily power curve and power curves under the six weather patterns are shown in Figure 8. Table 3 presents the probability distribution error of the fitting curves between the typical power curve and others.
Table 3 shows that there are small probability distribution errors for the fitting curve between the typical daily power curve and power curves under the six weather patterns. The fitting curve of the typical daily power curve represents a similar trend to others. In comparison with the other five weather patterns, the probability distribution error is relatively larger between the typical daily power curve and the power curve on the sunny day. In our view, the typical power curve is extracted from synthesizing the power information under the case of six weather patterns. The fitting curve of the probability density on a sunny day mainly centralizes near zero and is different from other curves. It results in relatively large probability distribution errors between the typical power curve and sunny power curve.
5. Conclusions
In this work, a new method of mining the typical daily power curve for BESS is proposed under the application scenario of smoothing PV power fluctuations. Since the BESS is a potential technology for solving the problem of high penetration in PV power stations and BESS is expensive, it is valuable that a typical daily power curve is extracted, to discover the operating feature in BESS. The operational characteristics of charging/discharging power in BESS under different weather patterns are analyzed by applying fuzzy- means clustering techniques. Due to dispersed power data, a novel mining algorithm is proposed that utilizes the probability distribution information of data in the vertical time series and Bloch spherical quantum genetic search algorithm to extract the typical power value for sample times. For every sample time, based on the probability distribution of power in the vertical time series, a group of the distribution intervals containing more power points are searched by the Bloch spherical quantum genetic algorithm. The character power mapping of every distribution interval is also determined from the scattered data using the Bloch spherical quantum genetic algorithm. In order to maintain the diversity of power, the typical power value at every sample time is further generated by applying the principle of roulette according to the probability of character power. Finally, a typical daily power curve for BESS is achieved by connecting the overall typical power value at each sample time. According to the error-evaluating index, the mined typical power curve contains features of the operating power of BESS under different weather patterns and shows the useful charging/discharging power information effectively. It will be helpful for the decision-maker to increase the overall cognition of operating conditions of energy storage and further optimize control performance and capacity allocation to reduce the economic cost of BESS.
Nomenclature
PV: | Photovoltaic |
BESS: | Battery energy storage system |
FCM: | Fuzzy- means |
: | Input data to be clustered |
: | The matrix of cluster centers |
: | The total number of clusters |
: | Membership degree of the th input data to center of the th cluster |
: | The irradiance fluctuation rate before 12 hours of the th day |
: | The irradiance fluctuation rate after 12 hours of the th day |
: | Average temperature of the th day |
: | The maximum irradiance ratio of the th day |
: | Actual solar irradiance received of PV panel of the th day |
: | Maximum irradiance in external horizontal plane of the th day |
: | Cluster center of the th cluster |
: | Sample time |
: | The typical power value at time |
: | Power matrix |
: | Number of days of historical data |
: | Sample points for one day |
: | Power vector that is made up of powers at sample time |
: | The distribution interval containing the most concentrated power points |
: | The lower limit of the interval |
: | The range of interval |
: | The lower limit of the distribution interval containing the most concentrated power points |
: | The interval power vector |
: | The power value in |
: | The frequency probability of distribution interval |
: | The size of the interval power vector |
: | Character power mapping in first interval |
: | Power vector obtained by removing from |
: | Next optimal distribution interval |
: | The second interval power vector |
: | The frequency probability of second interval |
: | The threshold of frequency probability |
: | The lower limit of the th distribution interval containing the most concentrated power points |
: | The frequency probability of th interval |
: | Character power mapping in th interval |
: | Typical character power vector |
: | The encoded code of parameter by Bloch spherical quantum genetic algorithm |
: | The population quantity |
: | Parameter variable of Bloch sphere |
: | Parameter variable of Bloch sphere |
: | The maximal number of iterations |
: | Initial population |
: | Current optimum solution |
: | Current optimum chromosome. |
Conflicts of Interest
The authors declare no conflicts of interest.
Acknowledgments
The authors would like to acknowledge the funding support from National Nature Science Fund Project (51677067), Science and Technology Project of SGCC (DG71-14-046), and Beijing New-Star Plan of Science and Technology (Z141101001814094).