Step time-of-use electricity price optimization method and terminal
By combining clustering algorithm and Ramsey pricing with moving boundary technology, a stepped time-of-use electricity price optimization model is established, which solves the problem of difficulty in adapting the electricity price mechanism to changes in the electricity market and achieves balanced distribution of electricity loads and energy-saving peak shaving.
Patent Information
- Application Number
- CN202410716965.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-04
AI Technical Summary
The existing electricity price mechanism is difficult to adapt to the opening of the electricity market and the diversification of residents' electricity consumption behaviors. Especially in the design of tiered time-of-use electricity prices, the time division lacks objectivity and scientificity and cannot truly reflect the actual load level.
The clustering algorithm is used to determine the number of electricity price brackets and the amount of electricity. Combined with Ramsey pricing and moving boundary technology, a ladder time-of-use electricity price optimization model is established. By minimizing the peak load and peak-valley difference as the goal, the objective function is set to optimize the time period division and electricity price. set up.
It improves the objectivity and applicability of the number of electricity price brackets, enhances the accuracy of time period division, achieves balanced distribution of power loads and guidance of energy-saving peak regulation, and ensures the smooth implementation of the peak-cutting and valley-filling strategy.
Smart Images

Figure CN118710348A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electricity price optimization, and in particular to an optimization method and terminal for step-by-step time-of-use electricity prices. Background Art
[0002] With the deepening of the market-oriented reform of the power industry, the continuous growth of residential electricity demand and the changes in load characteristics, the traditional residential electricity price policy has gradually shown its limitations. Although certain results have been achieved in stabilizing electricity prices and promoting energy conservation and emission reduction, the existing electricity price mechanism has been difficult to adapt to new development needs in the face of the increasing openness of the power market and the diversification of residents' electricity consumption behaviors. Therefore, adjusting the electricity price policy, especially the introduction of a time-of-use electricity price combined with a ladder electricity price mechanism, has become a key way to solve the current problem.
[0003] In the study of residential electricity price schemes, tiered electricity prices and tiered time-of-use electricity prices are the two main research directions. Tiered electricity prices encourage residents to save electricity by setting different electricity price levels, but determining the electricity segmentation point has always been a technical problem. At present, there are many technologies that attempt to analyze and determine the tiered segmented electricity from an economic and statistical perspective, but the incomplete consideration of factors during modeling often leads to errors in the fitting results.
[0004] In the design of time-of-use electricity prices, existing technologies have attempted to analyze the differentiated price elasticity of users through utility functions to obtain the optimal level of each level of time-of-use electricity prices. However, the division of time periods is not combined with the actual load data of residents, resulting in a lack of objective basis for time period setting and an inability to truly reflect the actual load level of the local area. In addition, the determination of peak and valley periods mostly relies on learning from the experience of other regions, which lacks scientificity and pertinence. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a method and terminal for optimizing step time-of-use electricity prices, which can effectively reflect the time value of power resources and achieve energy-saving and peak-shaving guidance while ensuring the objectivity of electricity price optimization.
[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0007] A method for optimizing a ladder time-of-use electricity price comprises the following steps:
[0008] S1. Determine the number of electricity price levels and the amount of electricity corresponding to each level through a clustering algorithm;
[0009] S2. Pricing the electricity price for each level according to Ramsey pricing;
[0010] S3, initializing the boundary in combination with the load sequence containing the load values of each time period in a typical day, updating the boundary using the moving boundary method, and dividing the time period according to the relationship between the updated boundary and the load value in the load sequence;
[0011] S4. Constraints are set in combination with the time period and the electricity price of each level, and an objective function is set with the goal of minimizing peak load and peak-to-valley difference. A step time-of-use electricity price optimization model is established in combination with the constraints and the objective function, and a step time-of-use electricity price scheme is obtained by solving the step time-of-use electricity price optimization model.
[0012] In order to solve the above technical problems, another technical solution adopted by the present invention is:
[0013] A terminal for optimizing stepped time-of-use electricity prices comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, each step of the above-mentioned method for optimizing stepped time-of-use electricity prices is implemented.
[0014] The beneficial effects of the present invention are as follows: first, by determining the number of electricity price levels and the amount of electricity corresponding to each level through a clustering algorithm, the limits of the amount of electricity in each level can be made more in line with the actual situation, thereby improving its objectivity and applicability; further, pricing is performed for the electricity price of each level according to Ramsey pricing, and the moving boundary technology is used in the time-sharing electricity price optimization, which can effectively improve the accuracy of time period division; and the objective function is set with the goal of minimizing peak load and peak-to-valley difference, and constraints are set in combination with the time period and the electricity price of each level, so as to establish a stepped time-sharing electricity price optimization model, which can effectively ensure the smooth implementation of the peak shaving and valley filling strategy without affecting the electricity demand of residents' daily life, thereby guiding residents to use electricity reasonably and achieving balanced distribution of power load. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a flow chart of a method for optimizing a stepped time-of-use electricity price according to an embodiment of the present invention;
[0016] Figure 2 A schematic diagram of an optimization terminal for a stepped time-of-use electricity price according to an embodiment of the present invention;
[0017] Figure 3 is a clustering flow chart of an embodiment of the present invention;
[0018] Figure 4 This is a graph showing the sum of squared errors under different K values in an embodiment of the present invention;
[0019] Figure 5 A time period division result diagram of a calculation example of an embodiment of the present invention;
[0020] Description of labels:
[0021] 1. An optimization terminal for tiered time-of-use electricity prices; 2. Memory; 3. Processor. DETAILED DESCRIPTION
[0022] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.
[0023] Please refer to Figure 1 The embodiment of the present invention provides a method for optimizing a ladder time-of-use electricity price, comprising the steps of:
[0024] S1. Determine the number of electricity price levels and the amount of electricity corresponding to each level through a clustering algorithm;
[0025] S2. Pricing the electricity price for each level according to Ramsey pricing;
[0026] S3, initializing the boundary in combination with the load sequence containing the load values of each time period in a typical day, updating the boundary using the moving boundary method, and dividing the time period according to the relationship between the updated boundary and the load value in the load sequence;
[0027] S4. Constraints are set in combination with the time period and the electricity price of each level, and an objective function is set with the goal of minimizing peak load and peak-to-valley difference. A step time-of-use electricity price optimization model is established in combination with the constraints and the objective function, and a step time-of-use electricity price scheme is obtained by solving the step time-of-use electricity price optimization model.
[0028] From the above description, it can be seen that the beneficial effects of the present invention are: first, by determining the number of electricity price levels and the amount of electricity corresponding to each level through a clustering algorithm, the limits of the amount of electricity in each level can be made more in line with the actual situation, thereby improving its objectivity and applicability; further, pricing is performed for the electricity prices of each level according to Ramsey pricing, and the moving boundary technology is used in the time-sharing electricity price optimization, which can effectively improve the accuracy of time period division; and the objective function is set with the goal of minimizing peak load and peak-to-valley difference, and constraints are set in combination with the time period and the electricity prices of each level to establish a stepped time-sharing electricity price optimization model, which can effectively ensure the smooth implementation of the peak shaving and valley filling strategy without affecting the electricity demand of residents in their daily lives, thereby guiding residents to use electricity reasonably and achieving a balanced distribution of power load.
[0029] Further, step S1 includes:
[0030] S11, obtaining a sample set of power data, calculating the number of clusters by using the elbow method, randomly selecting a sample in the sample set as the first cluster center, and taking the remaining samples farthest from the first cluster center as new second cluster centers, until the sum of the number of the first cluster centers and the second cluster centers reaches the number of clusters;
[0031] S12, calculating the distances of the remaining samples to the first cluster center or the second cluster center in sequence, and classifying the remaining samples into the cluster corresponding to the cluster center with the shortest distance;
[0032] S13, recalculate the center point of each cluster;
[0033] S14. Repeat step S12 and step S13 until the center point of each cluster no longer changes, then output the clustering results, determine the number of electricity price levels according to the number of clusters in the clustering results, and determine the electricity quantity boundary value corresponding to each level according to the cluster boundary of the clustering results.
[0034] From the above description, we can see that the cluster centers of the cluster number are selected one by one, and the sample points that are farther away from other cluster centers have a greater possibility of being selected as cluster centers. Finally, the cluster center points are reselected. In this way, the rationality of the selection of each cluster and its cluster center is improved.
[0035] Further, step S2 includes:
[0036] Set a preset electricity price for the first tier of electricity prices;
[0037] According to Ramsey pricing, electricity prices for the second tier and above are:
[0038]
[0039] In the formula, p i represents the average electricity price of the i-th tier, M c represents the long-term marginal cost, η i represents the intensity of demand response in the i-th tier, and R represents the Ramsey index.
[0040] From the above description, it can be seen that the use of Ramsey pricing theory in the process of electricity price pricing not only effectively protects the social welfare of residential users, but also minimizes the negative impact on the allocation of electricity resources, thereby achieving fair, efficient and sustainable development of the electricity market.
[0041] Further, step S3 includes:
[0042] S31, input a first load sequence of a typical day, sort the first load sequence from low to high to obtain a second load sequence, the load sequence including load values per hour;
[0043] S32, initializing a first boundary and a second boundary according to the second load sequence, wherein the first boundary is smaller than the second boundary;
[0044] S33, iterating and updating the first boundary and the second boundary by moving the boundary until the iteration result meets the preset condition;
[0045] S34. Compare the load value of each hour in the second load sequence with the first boundary and the second boundary of the updated iteration. If the load value is less than or equal to the first boundary, the hour corresponding to the load value is a valley period. If the load value is greater than the first boundary and less than the second boundary, the hour corresponding to the load value is a normal period. If the load value is greater than the second boundary, the hour corresponding to the load value is a peak period.
[0046] From the above description, it can be seen that by changing the positions of the first boundary and the second boundary to solve the optimal peak-valley time period division method, the intra-class and inter-class distances between different peak-valley time periods are fully considered, thereby improving the accuracy of time period division.
[0047] Further, step S4 includes:
[0048] The objective function is established with the goal of minimizing the peak load and minimizing the peak-to-valley difference:
[0049]
[0050]
[0051]
[0052] In the formula, M1 represents minimizing the daily load peak, M2 represents minimizing the daily load peak-to-valley difference, and L i,max , L i,min , L' i,max , L' i,min They represent the maximum and minimum daily load values of the i-th electricity consumption segment market before the electricity price adjustment and the maximum and minimum daily load values after the adjustment respectively;
[0053] The constraints of electricity price, time period and quantity are set, and a step-by-step time-of-use electricity price optimization model is established in combination with the objective function and the constraints.
[0054] From the above description, it can be seen that reducing the peak load and increasing the valley load will lead to a decrease in the peak-valley difference, that is, any combination of the two aspects can ensure the realization of the other. Therefore, minimizing the peak load and minimizing the peak-valley difference are selected as the objective function, and at the same time, the deviation caused by the large difference between the two values is avoided.
[0055] Please refer to Figure 2 Another embodiment of the present invention provides an optimization terminal for a stepped time-of-use electricity price, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the various steps of the above-mentioned method for optimizing a stepped time-of-use electricity price when executing the computer program.
[0056] The above-mentioned method and terminal for optimizing the step-by-step time-of-use electricity price of the present invention are suitable for effectively reflecting the time value of power resources and guiding energy conservation and peak load regulation while ensuring the objectivity of electricity price optimization. The following is an explanation through specific implementation methods:
[0057] Embodiment 1
[0058] Please refer to Figure 1 , a method for optimizing a ladder time-of-use electricity price, comprising the steps of:
[0059] S1. Determine the number of electricity price levels and the amount of electricity corresponding to each level through a clustering algorithm.
[0060] The clustering algorithm used in this embodiment is the K-means++ clustering algorithm. Among them, the k-means algorithm, as a typical unsupervised machine learning data classification method, can face a set of data sets with unknown data distribution, by randomly selecting K sample points as cluster centers, calculating the Euclidean distances from the remaining sample points to each cluster center, and when the total sum of squared distances of samples in each cluster reaches a minimum, the data set is divided into k different clusters, so that the similarity of samples in the same cluster is high, and the similarity of samples between different clusters is low. However, the initial cluster center selection of this algorithm is random, and the convergence situation is seriously dependent on the selection of cluster centers. When the initial position of the cluster center is not selected properly, it is easy to form a local optimal solution instead of a global optimal solution.
[0061] Based on this, this embodiment adopts the k-means++ algorithm, which optimizes the selection method of cluster centers. By selecting k cluster centers one by one, and the sample points farther away from other cluster centers are more likely to be selected as cluster centers, please refer to Figure 3 , the specific steps are as follows:
[0062] S11. Obtain a sample set of electricity data, calculate the number of clusters by using the elbow method, randomly select a sample in the sample set as the first cluster center, and use the remaining samples farthest from the first cluster center as new second cluster centers, until the sum of the number of the first cluster centers and the second cluster centers reaches the number of clusters.
[0063] Among them, based on the actual monthly electricity consumption data of residents, the number of clusters can be calculated by using the k-means++ algorithm and calculating the sum of the squared errors (SSE) through the elbow method. The optimal k value in this embodiment is 3. Please refer to Figure 4 , that is, adopting a three-tier electricity price model.
[0064] Specifically, a sample is randomly selected from the n sample sets as the cluster center c1, and the remaining sample points x are calculated in sequence. i The distance d(x i,c1), then the probability of the remaining sample points being selected as the next cluster center is:
[0065]
[0066] The next cluster center is selected by the roulette algorithm. This step is repeated, and after k cluster centers are selected, the process proceeds to step S12.
[0067] S12, calculating the distances of the remaining samples to the first cluster center or the second cluster center in turn, and classifying the remaining samples into the cluster corresponding to the cluster center with the shortest distance. Specifically, calculating the distances of the remaining samples to each cluster center in turn, and classifying the samples into the cluster with the shortest distance.
[0068] S13. Recalculate the center point of each cluster.
[0069] S14. Repeat step S12 and step S13 until the center point of each cluster no longer changes, then output the clustering results, determine the number of electricity price levels according to the number of clusters in the clustering results, and determine the electricity quantity boundary value corresponding to each level according to the cluster boundary of the clustering results.
[0070] Through cluster analysis of historical electricity consumption data, residential users with similar electricity consumption are divided into a cluster, and finally multiple user clusters are formed. In a specific period, similar electricity consumption levels can often reveal similar electricity consumption behavior characteristics, which further reflect various potential influencing factors. The multiple clusters obtained through cluster analysis can serve as a natural basis for the division of ladder electricity. Specifically, the number of clusters directly determines the number of segments of ladder electricity, and the boundary between two adjacent clusters is the reference value of the ladder segment boundary electricity limit. This division method is both data-driven and objective, and can reflect the actual differences in users' electricity consumption behaviors.
[0071] S2. Set prices for electricity at each level based on Ramsey pricing.
[0072] In theory, the price of conventional commodities should be set to make a certain profit while making up for the cost so that the enterprise can operate normally. However, since the residential electricity price has the attributes of a public utility product, the current residential electricity price is much lower than the power supply cost. In order to maximize the efficiency of electric energy utilization under the condition of meeting the cost compensation constraint, this embodiment determines the average electricity price level of each tier of residents based on the Ramsey pricing theory. Ramsey pricing sets different prices for different income groups. The basic principle is to set higher prices for users with lower demand price elasticity and lower prices for users with lower demand price elasticity. The purpose is to ensure that the enterprise's revenue and expenditure are balanced and to maximize social welfare.
[0073] Since household income is positively correlated with the number of electricity consumption segments, the higher the household income, the more electricity it consumes and the less sensitive it is to prices. Therefore, this theory is applied to the design of residential electricity prices, which is manifested in the implementation of a step-by-step increase in electricity prices for the low-to-high electricity consumption market segments. The rules for setting each level of electricity prices are as follows: the first level is the basic electricity consumption, which aims to meet the basic living electricity needs of low-income groups; the second level is the normal and reasonable electricity consumption, which aims to meet the normal living electricity needs of all residents; the third level and above are for the luxury electricity consumption of higher-income groups. The increase in each level should meet certain constraints, that is, the first level of electricity prices should remain consistent with the current electricity prices or increase slightly; the second level of electricity prices should gradually transition to the power supply cost based on the residents' affordability to reduce the leakage effect; and the third level and above electricity prices should be significantly increased to reduce residents' unintentional waste of electricity, improve the efficiency of electricity utilization, and further alleviate the cross-subsidy pressure on residents from industry and commerce.
[0074] In this embodiment, a preset electricity price is set for the first tier of electricity prices; the second tier and above electricity prices should achieve optimal allocation of electric energy resources under the condition of meeting the cost compensation constraint, that is, the second tier and above electricity prices are priced according to Ramsey pricing, and the relationship formula between different tiers of data is provided:
[0075]
[0076]
[0077] Where M c represents the long-term marginal cost; η i , η j Indicates the intensity of demand response in the i-th and j-th gears, which is generally a constant; p i 、p j represents the electricity price for the i-th tier user, q i represents the total electricity consumption of the i-th level, and C represents the power supply cost.
[0078] The power demand function of each gear can be expressed as:
[0079] ln(q i ) = η i ln(p i )+ln(k i )
[0080] In the formula, k i It is the exponent of the segmented demand function of the i-th level of electricity consumption, which is generally a constant.
[0081] The Ramsey index R = λ / (1+λ) is introduced, where λ is the Lagrangian factor and the demand response η of each level is i As a constant, the formula is rearranged to obtain the average electricity price level of the i-th tier:
[0082]
[0083] In the formula, i=2, 3,…, n, where n is the total number of tiers in the tiered electricity price.
[0084] According to Ramsey's second-best pricing, which aims to ensure the financial balance of the enterprise, that is, the producer surplus should be equal to the fixed cost, it can be seen that R satisfies:
[0085]
[0086] Where F represents the fixed cost of the power company.
[0087] S3. Initialize the boundary based on the load sequence containing the load values of each time period in a typical day, use the moving boundary method to update the boundary, and divide the time period according to the relationship between the updated boundary and the load value in the load sequence.
[0088] In this embodiment, an improved moving boundary technique is used to divide the time periods by minimizing the Davidson-Botting Index (DBI). This method fully considers the intra-class and inter-class distances between different peak and valley time periods and establishes a peak and valley time period division model. fv,m 、V pf,n The optimal peak-valley time division method is solved by the position. The specific steps are as follows:
[0089] S31. Input a first load sequence of typical purposes, sort the first load sequence from low to high, and obtain a second load sequence, wherein the load sequence includes load values per hour.
[0090] Specifically, the typical daily load sequence L = {l1, l2, ..., l 24}, sort L from low to high, and get a new sequence L′={l′1, l′2, …l′ 24}.
[0091] S32. Initialize a first boundary and a second boundary according to the second load sequence, wherein the first boundary is smaller than the second boundary.
[0092] Specifically, set the initial value of the decision variable, such as V fv,m = l′1,V pf,n =l′2, where m=T, n=2T, and m∈[T, 24-2T], n∈[2T, 24-T], calculate the objective function value.
[0093] S33, iteratively updating the first boundary and the second boundary by moving the boundary until n=24-T, and terminating the iteration.
[0094] In this way, the minimum objective function value and its corresponding m and n values are compared.
[0095] S34. Compare the load value of each hour in the second load sequence with the first boundary and the second boundary of the updated iteration. If the load value is less than or equal to the first boundary, the hour corresponding to the load value is a valley period. If the load value is greater than the first boundary and less than the second boundary, the hour corresponding to the load value is a normal period. If the load value is greater than the second boundary, the hour corresponding to the load value is a peak period.
[0096] Specifically, when l′ t ≤V fv,m , l′ t is the load during the valley period; when V fv,m ≤l′ t ≤V pf,n , l′ t It is the load during normal period; otherwise it is the load during peak period.
[0097] In this embodiment, after the implementation of the peak-valley time-of-use electricity price, the difference in electricity prices in different time periods will guide residents to change their electricity usage and redistribute the load. A user demand response model is established by constructing an electricity price elasticity matrix. The price elasticity of the peak-valley time-of-use electricity price refers to the percentage of change in electricity volume caused by the percentage of electricity price changes in different time periods, including self-elasticity and cross-elasticity. The effect of electricity price changes in the same time period on electricity volume changes is self-elasticity, and the effect of electricity price changes in other time periods on electricity volume changes in this time period is cross-elasticity.
[0098] Given that residents of different income groups have significant differences in consumption habits and affordability, which are also key factors affecting price demand elasticity, the overall residential electricity demand is divided into different market segments by adopting a step-by-step electricity consumption method. By analyzing the intensity of demand response of residents in each sub-group market segment to peak and valley time-of-use electricity prices in terms of electricity consumption, the elasticity coefficient expression for the i-th tier is as follows:
[0099] Self-elastic coefficient:
[0100] Cross elastic coefficient:
[0101] Where l and n are peak, flat and valley time periods respectively.
[0102] Taking the peak, flat and valley time periods as an example, the electricity price elasticity matrix of the i-th electricity consumption segment market can be expressed as:
[0103]
[0104] In the formula, e i,pp 、e i,ff 、ei,vv They represent the self-elasticity coefficients of the peak, flat and valley periods in the i-th electricity consumption segment market, which are negative values. The rest are cross-elasticity coefficients, which are positive values.
[0105] The electricity consumption in a certain period is not only related to the change of electricity price in this period, but also related to the change of electricity price in other periods. In order to reflect the relationship between electricity price and electricity consumption, the change of residential electricity consumption in the i-th gear after the implementation of time-of-use electricity price can be expressed as:
[0106]
[0107] In the formula, p i,p 、p i,f 、p i,v represents the peak, flat and valley electricity prices of the i-th tier, q i,p ,q i,f ,q i,v Respectively represent the electricity consumption in each period.
[0108] S4. Constraints are set in combination with the time period and the electricity price of each level, and an objective function is set with the goal of minimizing peak load and peak-to-valley difference. A step time-of-use electricity price optimization model is established in combination with the constraints and the objective function, and a step time-of-use electricity price scheme is obtained by solving the step time-of-use electricity price optimization model.
[0109] Specifically, the tiered electricity price system encourages users to save electricity and use electricity reasonably, but lacks interaction with the load status of the power grid. The core goal of introducing time-of-use electricity prices is to improve the shape of the daily load curve to reduce the peak-to-valley difference, thereby increasing the residential electricity load rate. To achieve this goal, it is necessary to reduce the load during the peak period of the daily load curve and increase the load during the valley period, while reducing the difference between the peak and valley periods and ensuring that the order of the peak and valley loads is not reversed. Analysis shows that reducing the load during the peak period and increasing the load during the valley period will inevitably lead to a reduction in the peak-to-valley difference, that is, any combination of the two aspects can ensure the realization of the other aspect. Therefore, this embodiment selects minimizing peak load and minimizing peak-to-valley difference as the objective function. At the same time, in order to avoid deviations caused by excessive numerical differences between the two, the load peak value and the peak-to-valley difference under the original electricity price are used as reference values and are normalized:
[0110] S41. Establish an objective function with the goal of minimizing peak load and peak-to-valley difference:
[0111]
[0112]
[0113] In the formula, M1 represents minimizing the daily load peak, M2 represents minimizing the daily load peak-to-valley difference, and L i,max , L i,min , L′ i,max , L′i,min They respectively represent the maximum and minimum daily load values of the i-th electricity consumption segment market before the electricity price adjustment and the maximum and minimum daily load values after the adjustment.
[0114] The above dual objective function is transformed into a single objective function by the weight coefficient method. In view of the equal importance of the two, the final optimization objective expression is determined by evenly distributing the weights:
[0115]
[0116] S42, setting constraints on electricity price, time period and electricity quantity, and establishing a stepped time-of-use electricity price optimization model in combination with the objective function and the constraints.
[0117] 1. Electricity price constraints:
[0118] On the one hand, in order to ensure the interests of users, the peak, flat and valley electricity prices of each level should meet the constraints of the average electricity price level of that level:
[0119]
[0120] On the other hand, the peak, flat and valley electricity prices of the i-th tier should not be higher than the corresponding period electricity prices of the i+1 tier, and the valley electricity price should not be lower than a certain lower limit p*, that is:
[0121]
[0122] 2. Time constraints:
[0123] To ensure that the peak, flat and valley periods are not inverted, the load in each period should meet the following requirements: l′ i,v ≤l′ i,f ≤l′ i,p
[0124] 3. Power Constraints:
[0125] After the implementation of the tiered time-of-use electricity price, in order to keep the user coverage of each market segment of the original tier stable, the average total electricity consumption of each household should not exceed the corresponding tiered electricity consumption:
[0126]
[0127] In the formula, Δl′ i,p , Δl′ i,f , Δl′ i,v are the average loads of each peak, flat and valley period, T p 、T f 、T v is the duration of each period, N i is the number of users in each level, Q i It is the upper limit of each level of power.
[0128] At the same time, according to the electricity price elasticity matrix, the relationship between electricity demand and price can be expressed as:
[0129]
[0130] In the formula, They are the electricity consumption during the peak and valley periods of the original electricity price respectively.
[0131] Then, a numerical example is used to verify the effectiveness of this embodiment:
[0132] Taking the implementation of the current residential tiered electricity price in Fujian as an example, the latest residential electricity price policy in the region implements three-tier electricity prices on a monthly basis, with the upper limit of each tier being 230kWh and 420kWh, and the electricity prices for each tier being: 0.4983 yuan / kWh, 0.5483 yuan / kWh, and 0.7983 yuan / kWh. The simulation analysis is conducted using the annual monthly electricity consumption and load data of urban communities and rural households in a certain city in the region in a certain year, and the upper and lower limits of monthly electricity consumption are set to 60kWh and 600kWh to eliminate outliers. The sample data is processed and analyzed, combined with the demand response status of various provinces and cities in China and academic research experience, to estimate the electricity-price elasticity matrix of each sub-group market segment, and the specific data are shown in Table 1.
[0133] Table 1 Elasticity matrix of residential market segments
[0134]
[0135] In addition, it is assumed that the marginal cost of electricity supply to users in different market segments (M C ) remains unchanged in the short term, that is, the marginal cost is a fixed value of about 0.3932 yuan. And based on the consideration of the affordability of residential users in the region and the cost compensation needs of the power grid company, the lower limit of the off-peak electricity price is set at 0.282 yuan / kWh.
[0136] MATLAB software is used for data simulation. In the optimization of the tiered electricity price, the electricity quantity is set to three gradients, and the k-means++ algorithm is used to optimize and calculate the electricity quantity of each level through MATLAB. The boundary value of each level is not strictly an integer value or a narrow interval value. Considering the applicability of the electricity price scheme, an integer value is taken within the interval as the boundary electricity quantity of each level. The elastic coefficient η of each level is fitted from the data sample i , k i Substituting the demand function of each level into the Ramsey pricing index calculation formula, we get R = 0.2426. i Substituting , R into the electricity price calculation formula, we can get the average electricity price of each level. All the results are shown in Table 2.
[0137] Table 2 Optimization results of step-by-step electricity consumption and electricity price
[0138]
[0139] In the table, user distribution = number of users whose monthly total electricity consumption is distributed in each gear / total users.
[0140] The initial time periods for the time-of-use electricity price for residents in the area are: peak period 8:00 to 22:00, valley period 22:00 to 8:00 the next day. This division method does not fully take into account the actual electricity usage habits of residents, has a certain degree of subjectivity and is inconsistent with the actual situation. The low penetration rate cannot effectively guide the change of electricity usage to reduce the peak-valley difference. Therefore, in this embodiment, the typical daily load curve of residents in a certain city in this area in a certain year is selected to re-divide the time periods using the improved moving boundary technology, and the time period constraint factor is added to fully consider the distance within and between classes, which effectively improves the division accuracy.
[0141] The division results are as follows Figure 5 As shown: Peak hours: 10:00-12:00, 17:00-21:00; Normal hours: 7:00-10:00, 12:00-17:00, 21:00-23:00; Off-peak hours: 23:00-6:00 the next day.
[0142] On the basis of the original data and the above analysis results, the parameters of each constraint condition are obtained, and the particle swarm algorithm is used to solve the optimization model. The initial load value and electricity price of each sub-group market segment are input to obtain the optimization results of the ladder time-of-use electricity price, as shown in Table 3.
[0143] Table 3 Optimization results of ladder time-of-use electricity prices
[0144]
[0145] In order to evaluate the implementation effect of the ladder time-of-use electricity price, the maximum load, minimum load, load peak-to-valley difference (ΔL i,max , ΔL i,min ,Δ(L i,max -L i,min ))The growth rates of the three are taken as evaluation indicators, and the electricity price system is compared with the original electricity price. The comparison results are shown in Table 4.
[0146] Table 4 Analysis of changes in residents' load
[0147]
[0148] The load change index value shows a trend of first rising and then falling with the number of steps. The reason is that the design of each step of the electricity price takes into account the electricity consumption characteristics and behavioral responses of different user groups. First, the electricity price of the first step is aimed at meeting the daily necessary electricity demand, so its load elasticity is low and the user's load adjustment space is limited. In the second step, the basic living needs of users have been met, and they have more ability to allocate electricity consumption independently and are more sensitive to changes in electricity prices. Therefore, they will consciously adjust their electricity consumption behavior to adapt to the peak and valley electricity price strategy. The high-income luxury electricity user group targeted by the third step has a relatively small proportion of electricity consumption (only 7.47% of the total electricity consumption) and is less sensitive to electricity prices. Therefore, its load adjustment has little impact on the overall load, resulting in a trend of first rising and then falling in the load change index. It can be seen that the optimized ladder time-of-use electricity price system effectively realizes the load curve adjustment functions such as "reducing peak load" and "cutting peaks and filling valleys", and completes the function of load transfer.
[0149] Embodiment 2
[0150] Please refer to Figure 2 A terminal 1 for optimizing a stepped time-of-use electricity price comprises a memory 2, a processor 3 and a computer program stored in the memory 2 and executable on the processor 3. When the processor 3 executes the computer program, each step of an optimization method for a stepped time-of-use electricity price of the first embodiment is implemented.
[0151] In summary, the present invention provides a method and terminal for optimizing step time-of-use electricity prices, which optimize step and time-of-use electricity prices respectively. In the optimization of step electricity prices, a step electricity quantity optimization model is constructed based on the k-means++ algorithm to make the boundaries of each level of electricity more realistic, and further use the Ramsey pricing theory to determine the price of each level. In the optimization of time-of-use electricity prices, an improved moving boundary technology is used to fully consider the distances between and within classes to improve the accuracy of time period division, and based on the demand response of the electricity price elasticity matrix, a step time-of-use electricity price optimization model is established with the goal of minimizing peak load and peak-to-valley difference.
[0152] Through case analysis, it is concluded that the k-means++ algorithm is based on the actual electricity consumption data of users, which fully reflects its objectivity and applicability. The application of Ramsey pricing theory in the field of electricity prices not only effectively guarantees the social welfare of residential users, but also minimizes the negative impact on the allocation of electricity resources, thereby achieving fairness, efficiency and sustainable development of the electricity market. The ladder time-of-use electricity price optimization model with the goal of minimizing peak load and minimizing peak-to-valley difference can effectively ensure the smooth implementation of the peak-shaving and valley-filling strategy without affecting the daily electricity demand of residents, thereby guiding residents to use electricity rationally and achieving balanced distribution of electricity load.
[0153] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for optimizing a ladder time-of-use electricity price, characterized in that: Includes steps: S1. Determine the number of electricity price levels and the amount of electricity corresponding to each level through a clustering algorithm; S2. Pricing the electricity price for each level according to Ramsey pricing; S3, initializing the boundary in combination with the load sequence containing the load values of each time period in a typical day, updating the boundary using the moving boundary method, and dividing the time period according to the relationship between the updated boundary and the load value in the load sequence; S4. Constraints are set in combination with the time period and the electricity price of each level, and an objective function is set with the goal of minimizing peak load and peak-to-valley difference. A step time-of-use electricity price optimization model is established in combination with the constraints and the objective function, and a step time-of-use electricity price scheme is obtained by solving the step time-of-use electricity price optimization model.
2. The optimization method of a ladder time-of-use electricity price according to claim 1 is characterized in that: Step S1 includes: S11, obtaining a sample set of power data, calculating the number of clusters by using the elbow method, randomly selecting a sample in the sample set as the first cluster center, and taking the remaining samples farthest from the first cluster center as new second cluster centers, until the sum of the number of the first cluster centers and the second cluster centers reaches the number of clusters; S12, calculating the distances of the remaining samples to the first cluster center or the second cluster center in sequence, and classifying the remaining samples into the cluster corresponding to the cluster center with the shortest distance; S13, recalculate the center point of each cluster; S14. Repeat step S12 and step S13 until the center point of each cluster no longer changes, then output the clustering results, determine the number of electricity price levels according to the number of clusters in the clustering results, and determine the electricity quantity boundary value corresponding to each level according to the cluster boundary of the clustering results.
3. The optimization method of a ladder time-of-use electricity price according to claim 1 is characterized in that: Step S2 includes: Set a preset electricity price for the first tier of electricity prices; According to Ramsey pricing, electricity prices for the second tier and above are: In the formula, p i represents the average electricity price of the i-th tier, M c represents the long-term marginal cost, η i represents the intensity of demand response in the i-th tier, and R represents the Ramsey index.
4. The optimization method of a ladder time-of-use electricity price according to claim 1, characterized in that: Step S3 includes: S31, input a first load sequence of a typical day, sort the first load sequence from low to high to obtain a second load sequence, the load sequence including load values per hour; S32, initializing a first boundary and a second boundary according to the second load sequence, wherein the first boundary is smaller than the second boundary; S33, iterating and updating the first boundary and the second boundary by moving the boundary until the iteration result meets the preset condition; S34. Compare the load value of each hour in the second load sequence with the first boundary and the second boundary of the updated iteration. If the load value is less than or equal to the first boundary, the hour corresponding to the load value is a valley period. If the load value is greater than the first boundary and less than the second boundary, the hour corresponding to the load value is a normal period. If the load value is greater than the second boundary, the hour corresponding to the load value is a peak period.
5. The optimization method of a ladder time-of-use electricity price according to claim 1, characterized in that: Step S4 includes: The objective function is established with the goal of minimizing the peak load and minimizing the peak-to-valley difference: In the formula, M1 represents minimizing the daily load peak, M2 represents minimizing the daily load peak-to-valley difference, and L i,max , L i,min , L' i,max , L' i,min They represent the maximum and minimum daily load values of the i-th electricity consumption segment market before the electricity price adjustment and the maximum and minimum daily load values after the adjustment respectively; The constraints of electricity price, time period and quantity are set, and a step-by-step time-of-use electricity price optimization model is established in combination with the objective function and the constraints.
6. An optimization terminal for ladder time-of-use electricity prices, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the following steps are implemented: S1. Determine the number of electricity price levels and the amount of electricity corresponding to each level through a clustering algorithm; S2. Pricing the electricity price for each level according to Ramsey pricing; S3, initializing the boundary in combination with the load sequence containing the load values of each time period in a typical day, updating the boundary using the moving boundary method, and dividing the time period according to the relationship between the updated boundary and the load value in the load sequence; S4. Constraints are set in combination with the time period and the electricity price of each level, and an objective function is set with the goal of minimizing peak load and peak-to-valley difference. A step time-of-use electricity price optimization model is established in combination with the constraints and the objective function, and a step time-of-use electricity price scheme is obtained by solving the step time-of-use electricity price optimization model.
7. The optimization terminal for step-by-step time-of-use electricity prices according to claim 6, characterized in that: Step S1 includes: S11, obtaining a sample set of power data, calculating the number of clusters by using the elbow method, randomly selecting a sample in the sample set as the first cluster center, and taking the remaining samples farthest from the first cluster center as new second cluster centers, until the sum of the number of the first cluster centers and the second cluster centers reaches the number of clusters; S12, calculating the distances of the remaining samples to the first cluster center or the second cluster center in sequence, and classifying the remaining samples into the cluster corresponding to the cluster center with the shortest distance; S13, recalculate the center point of each cluster; S14. Repeat step S12 and step S13 until the center point of each cluster no longer changes, then output the clustering results, determine the number of electricity price levels according to the number of clusters in the clustering results, and determine the electricity quantity boundary value corresponding to each level according to the cluster boundary of the clustering results.
8. The optimization terminal for step-by-step time-of-use electricity prices according to claim 6, characterized in that: Step S2 includes: Set a preset electricity price for the first tier of electricity prices; According to Ramsey pricing, electricity prices for the second tier and above are: In the formula, p i represents the average electricity price of the i-th tier, M c represents the long-term marginal cost, η i represents the intensity of demand response in the i-th tier, and R represents the Ramsey index.
9. The optimization terminal for step-by-step time-of-use electricity prices according to claim 6, characterized in that: Step S3 includes: S31, input a first load sequence of a typical day, sort the first load sequence from low to high to obtain a second load sequence, the load sequence including load values per hour; S32, initializing a first boundary and a second boundary according to the second load sequence, wherein the first boundary is smaller than the second boundary; S33, iterating and updating the first boundary and the second boundary by moving the boundary until the iteration result meets the preset condition; S34. Compare the load value of each hour in the second load sequence with the first boundary and the second boundary of the updated iteration. If the load value is less than or equal to the first boundary, the hour corresponding to the load value is a valley period. If the load value is greater than the first boundary and less than the second boundary, the hour corresponding to the load value is a normal period. If the load value is greater than the second boundary, the hour corresponding to the load value is a peak period.
10. The optimization terminal for step-by-step time-of-use electricity prices according to claim 6, characterized in that: Step S4 includes: The objective function is established with the goal of minimizing the peak load and minimizing the peak-to-valley difference: In the formula, M1 represents minimizing the daily load peak, M2 represents minimizing the daily load peak-to-valley difference, and L i,max , L i,min , L' i,max , L' i,min They represent the maximum and minimum daily load values of the i-th electricity consumption segment market before the electricity price adjustment and the maximum and minimum daily load values after the adjustment respectively; The constraints of electricity price, time period and quantity are set, and a step-by-step time-of-use electricity price optimization model is established in combination with the objective function and the constraints.
Citation Information
Patent Citations
Resident step tariff calculation system based on device operation efficiency and electricity consumption coincidence rate
CN107203900A
Optimized formulating method for seasonal time-of-use electricity price
CN107944630A
Method for multi-dimensional identification of flexible load demand response effect
US20210056647A1
Cited By
Medium and low voltage flexible network construction equipment stationing optimization method, equipment and medium
CN121192717A
Method, device and medium for optimizing distribution of low and medium voltage flexible network equipment
CN121192717B
