Abstract

Traditional methods for flexible capacity allocation do not take into account the actual operation status of resources, and this can lead to redundancy of allocation results in a high renewable penetration power system. Using collaborative optimization during the flexibility resource planning stage can significantly improve the overall economics and flexibility. Therefore, a bilevel operation-planning joint optimization model for flexible capacity allocation is proposed in this paper. The aim is to optimize the annual total cost and flexibility of the system. The upper planning level introduces the economic costs, flexibility resource capacity, and flexibility index which are used as the evaluation index of system flexibility, while in the lower operation level, a morphological clustering algorithm based on the multiscale and entropy weight method is proposed for obtaining typical scenarios of flexibility demand. On this basis, the lower level simulates production to estimate daily operating costs. In addition, the model is solved iteratively using the nondominated sorting genetic algorithm-II (NSGA-II) and the linear programming method to obtain the Pareto solutions. Case studies are carried out based on a practical town area, and the results verify the validity and rationality of the proposed bilevel capacity allocation model.

1. Introduction

Due to the random volatility of high penetration with intermittent or weather-dependent renewable energy, traditional energy sources [1] can no longer meet the flexibility needs and keep the supply-demand balance of the power system. Therefore, it is necessary to carry out research on the flexibility and optimized allocation of flexible resources.

Several academics have already undertaken research on the concept and assessment of flexibility of the high renewable penetration power system. The International Energy Agency (IEA) defines flexibility as “the ability of a power system to reliably and cost-effectively manage the variability and uncertainty of demand and supply across all relevant timescales” [2]. The authors in reference [3] proposed a framework based on machine learning to assess the flexibility of power systems. The authors in reference [4] evaluated the flexibility of the system by means of flexibility supply/demand probability convolution. In reference [5], a flexibility metric is introduced into a unit commitment model to quantitatively assess network flexibility. The abovementioned studies have provided useful explorations of flexibility assessment in power systems; however, there is a lack of the application of flexibility assessment in flexible capacity allocation, where flexible capacity refers to the capacity of multiple flexibility resources in the system.

Recently, research has been conducted on the allocation of flexible resources for the high renewable penetration power system. Transformation measures of the thermal power plant on improving the flexible regulation capability of the system were explored in references [6, 7]; the abovementioned studies only consider the impact of flexibility of a single resource. The authors in reference [8] implemented a single-level model for generation and transmission expansion planning, primarily focused on minimizing the cost of the system. However, this approach is characterized by its simplicity and limited versatility. In reference [9], a single-level allocation model was developed for flexible resources on the source-load side, taking into account the demand in peaking scenarios. However, this model does not include the operational state of resources and allocates them based on a single scenario, potentially resulting in cost-ineffective allocation results. Therefore, the bilevel optimization model considering both planning and operation is a necessity.

Few papers carried out research on the bilevel allocation model for flexible resources. The authors in reference [10] proposed an optimal allocation model of community-integrated energy systems, but it did not quantify the demand and supply of the flexibility. In [11, 12], a multitimescale energy storage system (ESS) planning model based on bilevel decision-making is proposed, and it did not take into account the advantages of joint optimization of various flexibility resource types and only accomplished allocation within a single scenario, thereby restricting the versatility of the model. Furthermore, few research has been uncovered that achieves multiobjective optimization of economics and flexibility. In recent years, there have been significant advances in the study of algorithms used to solve multiobjective optimization problems; the authors in reference [13] provided the decomposition-based multiobjective optimization evolutionary algorithms (MOEA/D). The NSGA-II in reference [14] presented three major improvements to the NSGA algorithm, including nondominated sorting, crowding distance, and elite preserving strategy, to enhance the computational efficiency of the algorithm.

The previous sections discussed a literature review of the resource allocation method, including allocation scenarios, models, and solution algorithms. It is found important to consider both planning and operations to achieve flexible capacity allocation in typical scenarios. Accordingly, the main contributions of this paper are summarized as follows:(1)An operation-planning joint optimization model for flexible resources that considers both investment decisions and optimal operation is established, significantly increasing the overall economics and flexibility of the system and avoiding redundancy in resource allocation.(2)A morphological clustering algorithm based on the multiscale and entropy weight method is proposed for obtaining typical days which consider the morphological characteristic of the curves. This algorithm aims to identify typical days that can serve as typical scenarios for flexibility resource allocation.(3)The Pareto principle is utilized to combine the economics and flexibility into the objective function and effectively solve the problem without setting the weight coefficients of economics and flexibility.

The remainder of this paper is organized as follows. In Section 2, a morphological clustering algorithm based on the multiscale and entropy weight method is proposed for the selection of typical scenarios of flexibility demand. A bi-level operation-planning joint optimization model for flexible resources is established in Section 3 and realizes the flexible capacity allocation by recursive iteration between the upper and lower levels. Section 4 validates the abovementioned model with the actual data. Section 5 summarizes the conclusions.

2. Typical Scenarios of the Flexibility Demand Based on the Morphological Clustering Algorithm

The curves of the net load of the high renewable penetration power system are multitemporal and fluctuating. The morphological similarity between curves can be depicted through the difference-measure matrix and the entropy weight approach. Therefore, the morphological clustering algorithm is used to cluster the net load curves.

The principle and function of the morphological clustering algorithm are to cluster the net load curves into several typical scenarios for flexibility resource allocation according to the characteristic of morphologic. The algorithm in this paper consists of four modules based on morphological distances, namely, data preprocessing, feature matrix calculation, difference metric matrix calculation, and the K-means approach [15, 16] to identify the center of clustering.

2.1. Data Preprocessing

Curve smoothing and the deletion of spurious data are both included in the data preprocessing. Taking the net load data of a province for n days as a sample, the values with large deviations are modified.

Due to the volatility of renewable energy, the polynomial interpolation method is used to smooth the curve of the original data. This method can more adequately describe the overall trend of the curve and overcome the influence of fluctuations on clustering.

After data preprocessing, the initial data matrix can be obtained for further data processing as follows:where is the output data at time on day , with i = , .

2.2. Other Recommended Morphological Characteristic Matrices

In this paper, the four different distances are used to better describe the morphological characteristics of the curve. The feature matrix is obtained to describe the morphological characteristics of the n-day daily output curve.

According to the original data matrix X, the curve of the net load is divided into m-1 segments and calculated the difference value of each segment separately to get the adjacent difference matrix as follows:where .

Then, we calculated the six-segment difference matrix .where .

Similarly, the three-segment difference matrix and the head-to-tail difference distance matrix can be calculated.

For the difference matrix ( = 1, 2, 3, 4), we set the number of quantile points to 3 [17] and the confidence probability values are 0.1, 0.5, and 0.9, respectively. Let the characteristic matrix extracted from the morphological characteristics of the curve be , where the elements are as follows:

reflects the intensity of change of adjacent sampling points. reflects the fluctuation characteristics of six segments throughout the day. is the matrix that characterizes the segmentation trend. reflects the difference in output at the beginning and at the end of the day.

2.3. Difference-Measure Matrix

In this paper, the morphological differences of the curves at different scales are described by the metric matrices , , , and corresponding to , , , and respectively, and the elements of which are shown as follows:

Taking as an example, represent the difference of eigenvalues in the period l of day and day and then sums the difference values of n periods throughout the day.

Then, we defined the difference-measure matrix as follows:where , , , and are the weights to be determined in the next section.

2.4. Weight Assignment Based on the Entropy Weight Method

The entropy weight approach is commonly used to objectively assign weights to indicators based on the data [18, 19].

First, determine the entropy. The value of entropy represents the difference between various indicators. The higher the entropy value, the smaller the corresponding degree of difference and the weight [20]. The entropy of the indicator k is determined by the following two formulas:where n = 1, 2, 3, 4. is the actual data of the evaluation object n under the indicator m; is the contribution degree of the evaluation object n under the indicator m.

Second, is expressed as follows, with  = 1, 2, 3, 4:

3. Bi-level Operation-Planning Joint Optimization Model

A bi-level operation-planning joint optimization model is proposed in this paper to optimize the capacity allocation of various flexible resources. In this section, a detailed description is provided for the framework of the model, including the upper-level investment decision model, the lower-level optimization operation model, and the solution algorithm.

3.1. The Framework of the Bi-level Operation-Planning Joint Optimization Model

The bi-level optimization of flexible resources considers both the planning and the operation. The traditional allocation method is prone to problems, such as high dimensionality and redundancy of capacity. As a result, the flexible resources may not be optimally utilized and the overall economics of the system may be compromised.

The flexibility resource optimization model established in this paper decomposes the objective problem into the following two subproblems: flexibility resource investment decision and operation simulation.

Based on the typical scenarios of the flexibility demand, the upper level determines the annual total cost and the flexibility index as the objective. The obtained allocation schemes can then be used as inputs for the lower-level subproblem that considers the operational simulation and optimizes the operational costs and the flexibility index of the typical day. It provides the results of operation for the upper level. The model is able to find a set of Pareto optimal solution sets through a limited number of iterations.

The framework of the bilevel model is shown in Figure 1. A bi-level model facilitates the use of different solution algorithms for the upper and lower levels. In this way, it improves computational efficiency and obtains the flexibility resource allocation scheme that meets the overall objective of economy and flexibility.

3.2. Investment Decision Problems in the Upper Level

The upper level is a multiobjective optimization problem that meets the optimal annual total cost and flexibility of the system. The capacity of each type of flexibility resource is determined as the decision variable, and its solution of capacity allocation is used as the input condition of the lower-level sub-problem.

3.2.1. Objective Function

The objective function of the upper level consists of the annual investment cost, annual operation cost, and compensation cost of the interruptable load. The weights of each type of flexibility resource as well as the probability of each typical daily scenario are also considered.where is the total cost, is the investment cost, is the annual operating cost of the system, and is the compensation cost of the interruptable load. , , , , , and are the investment costs of thermal power, thermal unit flexibility modification, hydropower, energy storage, pumped storage, and interruptable load, respectively. , , , , , and are the weight coefficients of each resource category based on the principal component analysis [21], summing to 1. is the discount rate, taken as 0.08, and is the investment planning period of each resource. and are the daily operating cost and the compensation cost of typical scenario . is the number of typical days in a year with scenario number . is a flexibility index defined in equation (14), which serves as a quantitative measure to evaluate the level of flexibility during system operation.

The cost of each type of flexible resource is calculated as follows:where , , , , , , and are the unit investment costs for coal, gas, thermal unit flexibility retrofit, hydro, storage, pumped storage, and interruptable load, respectively. , , , , , , and are the planned capacities of coal, gas, thermal unit flexibility retrofit, hydro, storage, pumped storage, and interruptable load, respectively.

3.2.2. Constraints

In addition to the maximum and minimum limits of the capacity constraints for flexible resources, there are interruptable load constraints and power demand constraints; they are as follows:where is taken as 5%.where and indicate the new flexible resources and existing power supply capacity, respectively. is the power supply loss rate, which is generally taken as 10%. In this paper, is , which is the flexibility transformation capacity of thermal power units.

3.3. Optimization of Operational Problems in the Lower Level

The lower-level optimization operation model optimizes in a day-ahead scheduling for a given flexible resource capacity in the upper level. The optimization variables are the daily output of each type of flexible resource, which is a continuous variable.

3.3.1. Objective Function

The objective function of the lower-level model includes the operating cost of a typical day and the compensation cost of the interruptable load. The details are as follows:where is the number of periods divided in a day. is the duration of each time slot. In this paper,  = 1 h; daily operation cost, , includes the generation cost of thermal power, operation, and maintenance cost of energy storage. There is no fuel consumption cost for hydroelectric power units and pumped-storage operation. is the operation and maintenance cost of energy storage per unit of electricity, and indicates the actual power output of energy storage at time . is the cost of the interruptable load, is the unit compensation cost, and is the amount of the interruptable load at a certain time .

3.3.2. Constraints

The constraints in the lower level are mainly operation constraints and investment-decision constraints including power balance constraints of the system, charging and discharging of ESS, conventional unit, and output of wind and PV.

The power balance constraint is expressed in the following equation:

The charging and discharging constraints of ESS are expressed in equations (20) and (21). The charging and discharging power limit of ESS cannot exceed the installed capacity. Meanwhile, the charging and discharging process should meet the energy balance of ESS.

The ramp-up and start-stop constraints for conventional thermal units and hydropower are represented in the following equations restricting that the thermal output does not exceed the installed capacity and it also meets the ramp-up rate limit.

Pumped-storage units are required to meet the water balance of pumped-storage power plants as well as power generation and pumping power constraints.

The percentage constraint of the interruptable load can be expressed by the following equation, where β is taken as 5% according to the actual situation of the plan.

The system power supply adequacy constraint can be expressed by the following equation, where is the load of the system at time t and is the power supply adequacy.

3.4. Calculation of the Flexibility Index

The flexibility index is used to determine whether the flexible resources meet the flexibility demand. In the system, wind power and PV are uncontrollable units, while thermal power and the interruptable load are controllable units. In the calculation of flexibility demand, uncontrollable units and loads are considered; in the calculation of flexibility supply, the flexibility supply capacity provided by controllable units and interruptable loads is considered. In this section, the flexibility index is calculated for a typical daily operation scenario.

The flexibility demand is calculated by the following equation:and when , there is a need for upward flexibility.and when , there is a demand for downward flexibility.

Flexibility supply is calculated based on the following equations:

The upward adjustment flexibility index is defined as follows:

When , it indicates that and a certain margin of flexible resources exists.

The downward flexibility index is defined as follows:

When , the flexible resources do not meet the grid demand and wind and PV curtailment is needed to ensure the balance of supply and demand of flexible resources.

To facilitate the calculation, the upward and downward flexibility indices are combined into a system flexibility index.

This index and the daily operating cost and flexibility compensation cost are passed to the upper level for iterative calculations.

3.5. Solution Method

Taking into consideration that the control variables of the upper-level model are discrete and the variables of the lower-level model are continuous, the upper-level planning sub-problem is solved by the NSGA-II [22]. It is a non-dominated ranking genetic algorithm using an elite strategy that can find a set of Pareto-optimal solutions within a limited number of iterations. The lower-level planning uses a linear programming algorithm for the day-ahead scheduling to obtain the optimal operational solution for a typical day.

In this study, the population size of the algorithm is set as 10 and the number of generations is set as 100. The crossover rate and the mutation rate is 0.9 and 0.1, respectively. The steps of the solving algorithm of the model are shown in Figure 2.

In the upper-level model, there are mutually constraining relationships between economics and flexibility. On one hand, the operational flexibility is essential for the system to effectively handle the unpredictable fluctuations in the net load curve. If only considers the economic cost, there may be a potential for underestimating the capacity of the flexibility resource. On the other hand, the allocation of resources aimed at meeting the flexibility of the system may result in high investment costs. It is necessary to calculate weight coefficients for the traditional method of combining multiple objectives into a single objective function. The NSGA-II adopted in this paper has three major advantages, including nondominated sorting, crowding distance, and elite preserving strategy, which can effectively solve the problem without setting the weight coefficients of economics and flexibility.

4. Case Study

4.1. Input Data

The effectiveness of the proposed method is verified by applying a practical power system in the southern province of China. In this section, based on the bilevel operation-planning joint optimization model proposed above, the case study is on a planning horizon of 15 years and is to optimize the flexible capacity allocation in a province. Combining the actual resource situation, investment cost, and demand of various flexible resources, the unit investment and operation cost of flexible resources are shown in Table 1, and the planning upper and lower limits of each resource in the planning years are shown in Table 2. Also, the weights of gas-fired and coal-fired units, thermal units’ flexibility transformation, hydropower, energy storage, pumped storage, and interruptable load are set as 0.1, 0.15, 0.25, 0.15, 0.1, 0.2, and 0.05, respectively.

4.2. Typical Day Selection

Since the renewable energy output fluctuates greatly and has a greater impact on the differential distance clustering, the curve smoothing process is first performed on the output data of wind and PV using the polynomial difference method to attenuate large fluctuations and further reflect the overall trend of the curve. Taking the output of wind power, PV, and load data of a practical town area for net load calculation, sampling the data at the same time interval for each day, the final data can be obtained.

Since there is an order of magnitude difference between the measurements of different scales, thus leading to an inaccurate description of the overall morphological features, so the entropy weight method is introduced to determine the objective weights resulting in , , , and , and the final clustering results are shown in Figure 3. The red line in the figure is the typical day, and the black is the curve of net load with similar morphological characteristics. The number of the first sample is 214, the second is 24, the third is 51, and the fourth is 76.

The number of clusters is set as 4, and the net load curves of 365 days in a year are divided into 4 categories by clustering. The four selected typical days are shown in Figure 4, which is a typical day selected as day 107, day 116, day 230, and day 349 in the original data.

4.3. Analysis of Optimized Flexible Capacity Allocation Results

The set of Pareto-optimal solutions obtained by the proposed algorithm is shown in Figure 5. Each point represents an allocation case of the flexible resources. According to the nondominated nature of the Pareto principle, there is no superiority or inferiority among each flexible capacity allocation solution.

The distribution of Pareto solutions shows the correlation between the economic and flexibility metrics and provides various cases. The capacity of the flexibility resource corresponding to each capacity allocation case is shown in Table 3.

Among the cases considered, case 1 focuses more on flexibility, while case 4 is less flexible due to an excessive focus on low cost. Case 2 and case 3 have similar flexibility, but case 3 is more economical. Therefore, case 3 is the best option. Comparison of the results shows very little change in the capacity of gas units and ESS, mainly due to the limited planning of gas units and the higher investment costs of ESS.

Flexibility rises as the investment in renewable energy high penetration power systems increase. Case 1 and case 2 benefit from the investment in more flexible resources to improve flexibility of the system. It is obvious that the annual operating cost causes the difference between the annual combined costs of the four cases as shown in Figure 6. Compared to case 1, which displays lower flexibility and higher operating costs, case 3 and case 4 demonstrate a higher level of flexibility and a reduction in operating costs.

4.4. Power Balance Analysis

The power balance of the lower-level model is analyzed. Case 3 is selected as the flexible capacity allocation option. The results are shown in Figure 7, where the output of each flexibility resource in the system meets the objective of optimal economics and flexibility. Considering that the hydropower output is affected by the water quantity, simulations are conducted for two typical days in dry and wet seasons. It can be found that the hydropower output increases significantly in the wet season.

From Figure 8, it can be seen that with the known resource allocation scheme, both the upward flexibility index and the downward flexibility index satisfy the conditions, indicating that the configuration meets the grid demand and there is a certain margin of flexible resources.

Through recursive iteration between the upper and lower layer, the collaboration between multi-objective planning and optimization operations can be achieved so that the planning scheme solved by the model in this paper becomes more realistic.

4.5. Algorithm Performance Results

Considering that the decision variable in the upper level is the capacity of the flexibility resource, the comparison between the algorithms MOEA/D and NSGA-II is conducted using the ZDT3 function, which has a discrete Pareto front. The objective function of ZDT3 is as follows:

The population size of algorithms is set as 100, and the number of generations is set as 250. The crossover rate and the mutation rate of the NSGA-II is 0.9 and 0.1, respectively. Each comparison experiment runs 5 times, and the results of the experiment with the smallest selected D matrix are shown in Figure 9. The D matrix evaluates the overall performance of a population by calculating the distance between the population and the optimal Pareto front [23].

Figure 9 compares the distribution of Pareto optimal solutions for the NSGA-II and MOEA/D algorithms. The solution of NSGA-II is almost completely consistent with the Pareto front. It is obvious that in the ZDT3 problem, a larger set of solutions generated by NSGA-II outperforms that obtained by MOEA/D.

Comparing the solution time of the algorithm to solve the same ZDT3 as shown in Table 4, the solution time of MOEA/D is shorter than NSGA-II. While from the D-matrix, it can be seen that the distances obtained by MOEA/D are relatively larger than those by NSGA-II. It means that the uniformity of solution distribution of NSGA-II is better than that of MOEA/D. Consequently, better results of the ZDT3 can be obtained by NSGA-II than MOEA/D.

5. Conclusions

A bi-level operation-planning joint optimization model based on morphological clustering for the selection of typical options is proposed in this paper. The aim is to improve the ability of power system to maintain the economics and flexibility of the system.

The multitimescale fluctuation of high renewable penetration power systems poses challenges on the flexible operation of the system. To tackle the challenge and improve the efficiency of capacity allocation, a morphological clustering algorithm based on the multiscale and entropy weight method is proposed. The traditional Euclidean distance is replaced by the curvilinear morphological distance for the selection of typical scenarios of flexibility demand.

The test results of the case study verify the validity and rationality of the bilevel operation-planning joint optimization model for flexible capacity allocation. The model is able to achieve the collaborative optimization and the overall economics and flexibility through a finite number of recursive iterations. The obtained flexible capacity allocation scheme can meet the flexibility needs and keep the supply-demand balance of the power system.

This paper only takes into account the flexible resources of the source-load storage. In order to further improve the flexibility of high renewable penetration power system, the complex model in this paper can be extended to include other flexibility sources such as the transmission network.

Data Availability

The data used to support the findings of this study have not been made available because of privacy.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This work was funded by the Shanghai Sailing Program (no. 21YF1414700).