Method and apparatus for determining peak and off-peak periods of an electrical power system

By clustering net electricity load using differential evolution algorithm and fuzzy K-means algorithm, the peak and off-peak periods of the power system are determined, solving the problem of inaccurate reflection of supply and demand in the new power system, and realizing reasonable adjustment of electricity price and effective consumption of new energy.

CN116632833BActive Publication Date: 2026-11-20ELECTRIC POWER RES INST CHINA SOUTHERN POWER GRID CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310645174.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-31
Publication Date
2026-11-20
Estimated Expiration
2043-05-31

Smart Images

  • Figure CN116632833B_ABST
    Figure CN116632833B_ABST
Patent Text Reader

Abstract

The application provides a peak-valley period determination method and device of a power system, and the method comprises the following steps: obtaining a historical net power consumption load, and determining a target time period according to the historical net power consumption load; obtaining a net power consumption load of each first sub time period of the target time period, and determining a first target sub time period according to the net power consumption load of each first sub time period of the target time period; obtaining a net power consumption load of each second sub time period of the first sub time period, and determining a second target sub time period according to the net power consumption load of each second sub time period of the first sub time period. The problem that the actual new power system supply and demand condition cannot be truly reflected in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to novel power systems, and more specifically, to a method, apparatus, computer-readable storage medium, and electronic device for determining peak and valley periods in a power system. Background Technology

[0002] Against the backdrop of large-scale grid integration of renewable energy, in order to support the construction of a new power system with a high proportion of renewable energy, it is urgent to address the mismatch between the uncertainty of power supply exacerbated by the entry of renewable energy into the market and the volatility of user demand. Price levers play a role in peak shaving and valley filling, effectively solving the supply-demand balance problem. At present, time-of-use pricing is widely implemented in various regions, as well as peak-valley time-of-use pricing in some pilot areas. Currently, there is relatively little research on the deep valley period. Most researchers are limited to the study of peak periods and electricity prices, hoping to force consumers to shift their load demand through higher electricity prices. This reflects the value of electricity in a market where supply is less than demand, but in a market where supply exceeds demand, it is not conducive to the absorption of renewable energy and violates market mechanisms.

[0003] However, the current technology of dividing time periods directly based on the load curve is difficult to reflect the true supply and demand situation, and cannot effectively solve problems such as the duck curve and uncertainties on the power generation side brought about by the entry of new energy into the market.

[0004] Therefore, there is an urgent need for a method to solve the problem that existing technologies cannot accurately reflect the actual supply and demand situation of new power systems. Summary of the Invention

[0005] The main objective of this application is to provide a method, apparatus, computer-readable storage medium, and electronic device for determining peak and valley periods in a power system, so as to at least solve the problem that the prior art cannot accurately reflect the actual supply and demand situation of a new type of power system.

[0006] According to one aspect of this application, a method for determining peak and valley periods in a power system is provided, comprising: acquiring historical net electricity load, and determining a target time period based on the historical net electricity load, wherein the historical net electricity load includes the net electricity load of each of a plurality of historical time periods, the target time period includes deep valley periods and / or peak periods, the deep valley periods being the first n time periods of the historical net electricity load in ascending order, and the peak periods being the first n time periods of the historical net electricity load in descending order; acquiring the net electricity load of each first sub-time period of the target time period, and determining a first target sub-time period based on the net electricity load of each first sub-time period of the target time period, wherein the first target sub-time period includes a first deep valley sub-time period and / or a first peak sub-time period, and the target time period includes the deep valley periods. In the case where the first target sub-time period includes the first deep valley sub-time period, and the first target sub-time period includes the first peak sub-time period when the target time period includes the peak time period; the net electricity load of each second sub-time period of the first sub-time period is obtained, and a second target sub-time period is determined based on the net electricity load of each second sub-time period of the first sub-time period, wherein the first target sub-time period includes the second target sub-time period, the second target sub-time period includes the second deep valley sub-time period and / or the second peak sub-time period, the second target sub-time period includes the second deep valley sub-time period when the first target sub-time period includes the first peak sub-time period, and the second target sub-time period includes the second peak sub-time period when the first target sub-time period includes the first peak sub-time period, and the second target sub-time period is used to adjust the electricity price of the new power system.

[0007] Optionally, obtaining historical net electricity load includes: obtaining the generation load of the new power system, the external power load of the new power system, the wind power generation load of the new power system, the photovoltaic power generation load of the new power system, and the external power transmission load of the new power system; according to the formula: L NL_t =L CL_t -P ip_t -P wi_t -P S_t +P OP_t Determine the historical net electricity load, where L NL_t L represents the historical net electricity load. CL_t P represents the power generation load of the new power system. ip_t P represents the external power load of the new power system. wi_tP represents the wind power generation load of the novel power system. S_t P represents the photovoltaic power generation load of the novel power system. OP_t This refers to the external power generation load of the new power system.

[0008] Optionally, the target time period is determined based on the historical net electricity load, including: according to the formula: M p =argsort(M1,M2,...,M) 12 ), determine the target time period, where M p For the target time period, argsort() is used to sort the elements in the array from smallest to largest or from largest to smallest, M i Let i be the historical net electricity load, where i is any integer value from 1 to 12.

[0009] Optionally, determining the first deep valley sub-time period based on the net electricity load of each first sub-time period of the target time period includes: determining the minimum net electricity load among multiple first sub-time periods as the minimum load; and determining the conditions that are met in the target time period: The first sub-time period is the first deep valley sub-time period, wherein... The net electricity load at the first moment of the first sub-time period within the target time period. The net electricity load at the second moment of the first sub-time period within the target time period. x represents the net electricity load at the third moment of the first sub-time period within the target time period. min The minimum load is γ1, which is a first predetermined coefficient. The first time is the time before the second time, and the third time is the time after the second time.

[0010] Optionally, determining the first peak sub-time period based on the net electricity load of each first sub-time period of the target time period includes: determining the maximum net electricity load among multiple first sub-time periods as the maximum load; and determining the conditions that are met in the target time period: The first sub-time period is the first peak sub-time period, wherein... The net electricity load at the fourth moment of the first sub-time period within the target time period. The net electricity load at the fifth moment of the first sub-time period within the target time period. x represents the net electricity load at the sixth moment of the first sub-time period of the target time period. maxThe maximum load is γ2, which is a second predetermined coefficient. The fourth time is the time before the fifth time, and the sixth time is the time after the fifth time.

[0011] Optionally, determining the second target sub-time period based on the net electricity load of each second sub-time period of the first sub-time period includes: obtaining a matrix composed of the second sub-time periods of the first sub-time period. Among them, S n For the matrix, The second sub-time period is the m-th first sub-time period; the matrix is ​​processed using the differential evolution algorithm to obtain the initial cluster centers of the matrix; based on the initial cluster centers, the matrix is ​​clustered using the fuzzy K-means algorithm to obtain the second target sub-time period.

[0012] Optionally, the matrix is ​​processed using a differential evolution algorithm to obtain the initial cluster centers of the matrix, including: a generation step, generating an initial population based on each column element of the matrix, the initial population including multiple initial individuals; a mutation step, performing a mutation operation on the initial population based on any of the initial individuals and a scaling factor to obtain multiple mutated individuals; a crossover step, performing a crossover operation on the mutated individuals based on the mutated individuals and the initial individuals to obtain crossover individuals; a determination step, determining the maximum value between the fitness function value of the crossover individuals and the fitness function value of the initial individuals as a target value; if the target value is greater than a first threshold, repeating the mutation step, the crossover step, and the determination step at least once until the target value is less than or equal to the first threshold, and determining the individual corresponding to the target value as the initial cluster center.

[0013] Optionally, based on the initial cluster centers, the matrix is ​​clustered using a fuzzy K-means algorithm to obtain the second target sub-time period, including: a calculation step, based on... The criterion function for calculating the membership matrix of the initial cluster centers is given by J. m (U,C) represents the criterion function value of the membership matrix. The fuzzy matrix d(S) represents the second sub-time period of the first sub-time period and the initial cluster center. j C i) is the distance between the second sub-time period of the first sub-time period and the initial cluster center, m is the number of the second sub-time periods of the first sub-time period, and K is the number of the second target sub-time periods; if the criterion function value is greater than or equal to the second threshold, the initial cluster center is updated and the calculation step is repeated at least once until the criterion function value is less than the second threshold, and the data cluster corresponding to the cluster center corresponding to the criterion function is determined to be the second target sub-time period.

[0014] According to another aspect of this application, an apparatus for determining peak and valley periods in a power system is provided, comprising: a first determining unit, configured to acquire historical net electricity load and determine a target time period based on the historical net electricity load, wherein the historical net electricity load includes the net electricity load of each of a plurality of historical time periods, the target time period includes a deep valley period and / or a peak period, the deep valley period being the first n time periods of the historical net electricity load in ascending order, and the peak period being the first n time periods of the historical net electricity load in descending order; a second determining unit, configured to acquire the net electricity load of each first sub-time period of the target time period and determine a first target sub-time period based on the net electricity load of each first sub-time period of the target time period, wherein the first target sub-time period includes a first deep valley sub-time period and / or a first peak sub-time period, wherein when the target time period includes the deep valley period... In the case of a time interval, the first target sub-time period includes the first deep valley sub-time period; in the case where the target time period includes the peak time period, the first target sub-time period includes the first peak sub-time period. The third determining unit is configured to acquire the net electricity load of each second sub-time period of the first sub-time period and perform clustering processing on the net electricity load of each second sub-time period of the first sub-time period to determine the second target sub-time period. The first target sub-time period includes the second target sub-time period, and the second target sub-time period includes the second deep valley sub-time period and / or the second peak sub-time period. In the case where the first target sub-time period includes the first deep valley sub-time period, the second target sub-time period includes the second deep valley sub-time period; in the case where the first target sub-time period includes the first peak sub-time period, the second target sub-time period includes the second peak sub-time period. The second target sub-time period is used to adjust the electricity price of the new power system.

[0015] According to another aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform any of the methods described.

[0016] According to another aspect of this application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to execute any of the methods described by the computer program.

[0017] Applying the technical solution of this application, firstly, historical net electricity load is obtained, and a target time period is determined based on the historical net electricity load; then, the net electricity load of each first sub-time period of the target time period is obtained, and a first target sub-time period is determined based on the net electricity load of each first sub-time period of the target time period; finally, the net electricity load of each second sub-time period of the first sub-time period is obtained, and a second target sub-time period is determined based on the net electricity load of each second sub-time period of the first sub-time period. By selecting the net electricity load of the new power system, and further selecting peak-valley months and peak-valley days, and then processing multiple peak-valley periods of the peak-valley days to determine the final peak-valley periods, the true supply and demand situation can be reflected, thereby determining the peak-valley periods. This solves the problem in the prior art that it cannot truly reflect the actual supply and demand situation of the new power system. Attached Figure Description

[0018] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:

[0019] Figure 1 A hardware structure block diagram of a mobile terminal for performing a method for determining peak and valley periods of a power system, according to an embodiment of this application, is shown.

[0020] Figure 2 A flowchart illustrating a method for determining peak and valley periods in a power system according to an embodiment of this application is shown.

[0021] Figure 3 A detailed flowchart of a method for determining peak and valley periods in a power system according to an embodiment of this application is shown.

[0022] Figure 4 A structural block diagram of a device for determining peak and valley periods of a power system according to an embodiment of this application is shown.

[0023] The above figures include the following reference numerals:

[0024] 102. Processor; 104. Memory; 106. Transmission device; 108. Input / output device. Detailed Implementation

[0025] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0026] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0028] As described in the background section, the existing technology cannot accurately reflect the actual supply and demand situation of the new power system. To solve this technical problem, the embodiments of this application provide a method, apparatus, computer-readable storage medium, and electronic device for determining peak and valley periods of a power system.

[0029] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0030] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a method of determining peak and valley periods in a power system according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0031] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the method for determining peak and valley periods of the power system in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of the aforementioned networks may include wireless networks provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0032] This embodiment provides a method for determining peak and valley periods in a power system that operates on a mobile terminal, computer terminal, or similar computing device. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0033] Figure 2 This is a flowchart of a method for determining peak and valley periods in a power system according to an embodiment of this application. Figure 2 As shown, the method includes the following steps:

[0034] Step S201: Obtain historical net electricity load and determine the target time period based on the historical net electricity load. The historical net electricity load includes the net electricity load of each historical time period. The target time period includes valley periods and / or peak periods. The valley periods are the first n periods in ascending order of the historical net electricity load. The peak periods are the first n periods in descending order of the historical net electricity load.

[0035] Specifically, the target time period can be a low-valley year or a high-peak year in historical net electricity load, or a low-valley month or a high-peak month. For example, increased electricity consumption due to air conditioning use in summer may result in a high-peak month in July; conversely, low electricity consumption due to fewer days in February may result in a low-valley month in February. One or more target time periods can be selected.

[0036] Step S202: Obtain the net electricity load of each first sub-time period of the target time period, and determine the first target sub-time period based on the net electricity load of each first sub-time period of the target time period. The first target sub-time period includes a first deep valley sub-time period and / or a first peak sub-time period. If the target time period includes the deep valley sub-time period, the first target sub-time period includes the first deep valley sub-time period. If the target time period includes the peak sub-time period, the first target sub-time period includes the first peak sub-time period.

[0037] Specifically, the first target sub-time period can be either a trough day or a peak day within the target time period. If the target time period is a trough month, the trough day is determined based on the trough month; if the target time period is a peak month, the peak day is determined based on the peak month. The number of the aforementioned first target sub-time periods can be one or more.

[0038] Step S203: Obtain the net electricity load of each second sub-time period of the first sub-time period, and determine the second target sub-time period based on the net electricity load of each second sub-time period of the first sub-time period. The first target sub-time period includes the second target sub-time period, and the second target sub-time period includes a second deep valley sub-time period and / or a second peak sub-time period. If the first target sub-time period includes the first deep valley sub-time period, the second target sub-time period includes the second deep valley sub-time period. If the first target sub-time period includes the first peak sub-time period, the second target sub-time period includes the second peak sub-time period. The second target sub-time period is used to adjust the electricity price of the new power system.

[0039] Specifically, the second target sub-time period can be either a valley period or a peak period within the first target sub-time period. If the first target sub-time period is a valley day, the valley period is determined based on the valley day; if the first target sub-time period is a peak day, the peak period is determined based on the peak month. The number of second target sub-time periods can be one or more. A clustering algorithm can be used to determine the second target sub-time period based on the net electricity load of each second sub-time period within the first sub-time period. This clustering algorithm can be C-means, hierarchical clustering, or spectral clustering. The second target sub-time period is used to adjust the electricity price of the new power system. This is mainly because if the second target sub-time period is the second valley sub-time period, it indicates that the current electricity load is extremely low. Setting a lower valley price can encourage users to increase electricity consumption, thus achieving "valley filling." If the second target sub-time period is the second peak sub-time period, it indicates that the current electricity load is extremely high. Setting a higher peak price can encourage users to reduce electricity consumption, thus achieving "peak shaving." The above methods can achieve peak shaving and valley filling, and promote the consumption of new energy sources.

[0040] This embodiment first obtains historical net electricity load and determines a target time period based on it. Then, it obtains the net electricity load for each first sub-time period of the target time period and determines a first target sub-time period based on this. Finally, it obtains the net electricity load for each second sub-time period of the first sub-time period and determines a second target sub-time period based on this. By selecting the net electricity load of the new power system, further selecting peak-valley months and peak-valley days, and then processing multiple peak-valley periods on the peak-valley days to determine the final peak-valley periods, the true supply and demand situation can be reflected, thus determining the peak-valley periods. This solves the problem in existing technologies that cannot accurately reflect the actual supply and demand situation of the new power system.

[0041] In specific implementation, step S201 can be achieved through the following steps: Step S2011, obtain the power generation load of the new power system, the external power load of the new power system, the wind power generation load of the new power system, the photovoltaic power generation load of the new power system, and the external power transmission load of the new power system; Step S2012, according to the formula: L NL_t =L CL_t -P ip_t -P wi_t -P S_t +P OP_t Determine the above-mentioned historical net electricity load, where L NL_t For the above-mentioned historical net electricity load, LCL_t P represents the power generation load of the aforementioned new power system. ip_t P represents the external power load of the aforementioned new power system. wi_t P represents the wind power generation load of the aforementioned new power system. S_t P represents the photovoltaic power generation load of the aforementioned new power system. OP_t This refers to the external power generation load of the aforementioned new power system.

[0042] Specifically, this method eliminates the external power load, wind power load, and photovoltaic power load from the generation load of the new power system, and adds the external power transmission load, to obtain the historical net power load of the new power system after deducting the influence of wind and solar new energy sources and inter-provincial power output curves. This method can quickly obtain the historical net power load of the new power system.

[0043] The above step S202 can also be implemented in other ways, for example: step S2013, according to formula: M p =argsort(M1,M2,…,M) 12 ), determine the above target time period, where M p For the target time period mentioned above, argsort() is used to sort the elements in the array from smallest to largest or from largest to smallest, M i The above refers to the historical net electricity load, where i is any integer value from 1 to 12.

[0044] Specifically, the argsort() function can sort data from largest to smallest or from smallest to largest, and those skilled in the art can choose accordingly. This method, through the argsort() sorting function, can determine the order of the target time period and further quickly identify at least one trough month or peak month within it.

[0045] To further eliminate the impact of ramp-up flexibility and data noise in the first deep valley time period, step S202 of this application can be achieved through the following steps: Step S2021, determining the minimum net load of electricity consumption in the multiple first sub-time periods as the minimum load; Step S2022, determining the conditions that are met in the target time period: The aforementioned first sub-time period is the aforementioned first deep valley sub-time period, wherein, This refers to the net electricity load at the first moment of the first sub-time period within the aforementioned target time period. This refers to the net electricity load at the second moment of the first sub-time period within the aforementioned target time period. x represents the net electricity load at the third moment of the first sub-time period of the aforementioned target time period. minThe minimum load is γ1, which is a first predetermined coefficient. The first time is the time before the second time, and the third time is the time after the second time.

[0046] Specifically, this method calculates the average value of the electricity load before and after the first sub-time period, which can further eliminate interference from the ramp-up flexibility of the new power system and reduce the impact of data errors. The first sub-time period that satisfies the above formula is the first valley period, i.e., the valley day. γ1 can be set according to climatic characteristics, and its value range can be 1 to 1.2.

[0047] To further eliminate the impact of ramp-up flexibility and data noise in the first peak sub-period, step S202 can also be implemented in other ways, such as: step S2023, determining the maximum net load of electricity consumption in multiple first sub-periods as the maximum load; step S2024, determining the conditions that are met in the target time period: The aforementioned first sub-time period is the aforementioned first peak sub-time period, wherein, This refers to the net electricity load at the fourth moment of the first sub-time period within the aforementioned target time period. This refers to the net electricity load at the fifth moment of the first sub-time period within the aforementioned target time period. x represents the net electricity load at time six of the first sub-time period of the aforementioned target time period. max The maximum load is γ2, which is the second predetermined coefficient. The fourth time point is the time point before the fifth time point, and the sixth time point is the time point after the fifth time point.

[0048] Specifically, this method calculates the average value of the electricity load before and after the first sub-time period, which can further eliminate interference from the ramp-up flexibility of the new power system and reduce the impact of data errors. The first sub-time period that satisfies the above formula is the first peak time period, i.e., the peak day. γ2 can be set according to climatic characteristics, and its value range can be 0.8-1.

[0049] In some embodiments, step S203 can be specifically implemented through the following steps: Step S2031, obtaining the matrix composed of the second sub-time period of the first sub-time period. Among them, S n For the above matrix, The m-th first sub-time period is the second sub-time period; step S2032, the differential evolution algorithm is used to process the matrix to obtain the initial cluster centers of the matrix; step S2033, based on the initial cluster centers, the fuzzy K-means algorithm is used to cluster the matrix to obtain the second target sub-time period.

[0050] Specifically, after determining the peak or trough day, the peak and trough periods can be adjusted using the methods described above to adapt to current demand-side habits. The second sub-period mentioned above can be either a low-trough period or a peak period. The Differential Evolution Algorithm (DE) is a global optimization algorithm, a population-based heuristic search algorithm where each individual in the population corresponds to a solution vector. The evolutionary process of the DE algorithm is very similar to that of the genetic algorithm, both including mutation, crossover, and selection operations. The fuzzy K-means algorithm is derived from the K-means algorithm. While the K-means algorithm may not always produce the expected results during clustering, the boundaries between categories are clear, and cluster centers are modified based on the current samples for each category. In contrast, the fuzzy K-means algorithm results in fuzzy category boundaries during clustering, requiring all samples to modify the cluster centers for each category. The DE algorithm is used to select initial cluster centers, and then the fuzzy K-means method is used to dynamically divide peak and trough periods based on these cluster centers.

[0051] To further prevent getting trapped in local optima during clustering, in some embodiments, step S2032 can be implemented through the following steps: Step S20321, generation step: generating an initial population based on the elements of each column of the matrix, the initial population including multiple initial individuals; Step S20322, mutation step: performing a mutation operation on the initial population based on any of the initial individuals and the scaling factor to obtain multiple mutated individuals; Step S20323, crossover step: performing a crossover operation on the mutated individuals and the initial individuals to obtain crossover individuals; Step S20324, determination step: determining the maximum value between the fitness function value of the crossover individuals and the fitness function value of the initial individuals as the target value; Step S20325, if the target value is greater than a first threshold, repeating the mutation step, the crossover step, and the determination step at least once until the target value is less than or equal to the first threshold, and determining the individual corresponding to the target value as the initial cluster center.

[0052] Specifically, this method can quickly determine the initial cluster centers and further ensure the effectiveness of the clusters that the time period segment falls into.

[0053] In some embodiments, step S2033 can be implemented through the following steps: Step S20331, calculation step, based on Calculate the criterion function for the membership matrix of the initial cluster centers, where J m (U,C) represents the criterion function value of the membership matrix mentioned above. The fuzzy matrix of the second sub-time period of the first sub-time period and the initial cluster center is d(S). j C i ) is the distance between the second sub-time period of the first sub-time period and the initial cluster center, m is the number of the second sub-time periods of the first sub-time period, and K is the number of the second target sub-time periods; Step S20332, if the criterion function value is greater than or equal to the second threshold, update the initial cluster center and repeat the above calculation steps at least once until the criterion function value is less than the second threshold, and determine the data cluster corresponding to the cluster center corresponding to the criterion function as the second target sub-time period.

[0054] Specifically, this method can further divide the aforementioned second target sub-time period into precise sub-time periods based on the initial cluster centers.

[0055] To enable those skilled in the art to better understand the technical solution of this application, the implementation process of the method for determining peak and valley periods of the power system in this application will be described in detail below with reference to specific embodiments.

[0056] This embodiment relates to a specific method for determining peak and valley periods in a power system, such as... Figure 3 As shown, existing technologies are limited to peak hours and electricity prices. Forcing consumers to shift their load demand through higher electricity prices reflects the value of electricity in a market where supply is less than demand, but is detrimental to the absorption of renewable energy and violates market mechanisms in a market where supply exceeds demand. Therefore, this embodiment identifies the deep valley hours of the new power system, including the following steps:

[0057] Step S1: Collect historical data and relevant forecast data for a certain province last year, and calculate the historical monthly net load curve for that province last year;

[0058] Step S2: Select the deepest valley month based on the total monthly net load, and determine the maximum number of deepest valley days per month to be 3. Collect the peak-to-valley time period division for the deepest valley month, and collect the power load forecast data. According to the formula: M p =argsort(M1,M2,...,M) 12 (This indicates that June, October, and November are designated as the months of deep valleys.)

[0059] Step S3: Based on the net load forecast of the power system in June of this year, determine the minimum daily load for the deep valley month, and then determine the minimum daily load based on the minimum load amount. Where i represents the i-th day of the valley month; j represents the time of day; the threshold γ1 is determined to be 1.15; the number of valley days is determined to be 5; according to... Calculate the valley days and find that (i = 15, 16, 17, 20, 21) days can be selected as valley days;

[0060] Step S4: After determining the selection of the deep valley day, select the deep valley period for the low valley period: Record the time sequence of the deep valley day and the low valley period and its corresponding net load as follows: n represents the day of the deep valley, and m represents the total number of valley periods;

[0061] Step S5: Select initial cluster centers for matrix S. To prevent getting trapped in local optima, the differential evolution algorithm is used to select the initial cluster centers: Assume the population size is N = 30, and randomly select 2 × 30 data points to generate the initial population X(0) = {X1(0), X2(0), ..., X...}. N (0)}, the initial population size can be 5 to 10 times the size during the aforementioned low period; calculate the initial population distance f(X). i (t)), where t represents the iteration number and i represents the nth individual; perform mutation operation, randomly select three different individuals from the initial population, and calculate V. i (t)=X a (t)+F(X b (t)-X c (t) yields mutant individuals with F = 0.9; crossover is then performed. That is, selection is performed between the mutated individual and the original individual; the selection operation is performed, and the function value f(X) is compared. i (t)) and f(U i (t)) determines the best individual to be used as the next generation population; iterates, checking whether the function value of the best individual in the previous step meets the requirements, with the first threshold being 0.01. If it does, the initial cluster centers are output. Otherwise, return to the mutation operation and iterate;

[0062] Step S6: Based on the selected initial cluster centers, use the fuzzy K-means algorithm to divide the time period and optimize the problem: Where d(S) j C i ) represents the distance between the feature vector and the cluster center. This distance can be the Manhattan distance, i.e. Take the fuzzy coefficient a = 2, and use the formula The fuzzy matrix U is calculated, the number of categories K = 2, the fuzzy coefficient a = 2, and the membership matrix U = (u ij ) makes Based on the initial cluster center C N Calculate the new membership matrix; calculate J m (U,C), if J m If (U,C) is less than the second threshold, the clustering process ends; otherwise, the cluster centers C are updated using the new membership matrix. NThe process is iterated until the final cluster centers that meet the requirements are output. The second threshold can be 1×10. -6 ;

[0063] Step S7: Finally, the results of the deep valley period division are shown in Table 1.

[0064] Table 1. Results of Valley Period Division

[0065] deep valley day June 15 June 16 June 17 June 20 June 21 Valley period 6:00-8:00 4:00-7:00 4:00-7:00 5:00-8:00 4:00-7:00

[0066] This application also provides a novel power system peak-valley time period determination device. It should be noted that this device can be used to execute the power system peak-valley time period determination method provided in this application. This device is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0067] The following describes the device for determining peak and valley periods in a power system provided in the embodiments of this application.

[0068] Figure 4 This is a schematic diagram of a device for determining peak and valley periods in a power system according to an embodiment of this application. Figure 4 As shown, the device includes:

[0069] The first determining unit 10 is used to obtain historical net electricity load and determine a target time period based on the historical net electricity load. The historical net electricity load includes the net electricity load of each historical time period among multiple historical time periods. The target time period includes a valley time period and / or a peak time period. The valley time period is the first n time periods in ascending order of the historical net electricity load. The peak time period is the first n time periods in descending order of the historical net electricity load.

[0070] Specifically, the target time period can be either a low-peak month or a high-peak month in historical net electricity load. For example, increased electricity consumption due to air conditioning use in summer may result in a high-peak month in July; conversely, lower electricity consumption in February due to fewer days may result in a low-peak month in February. One or more target time periods can be selected.

[0071] The second determining unit 20 is used to obtain the net electricity load of each first sub-time period of the target time period, and determine the first target sub-time period based on the net electricity load of each first sub-time period of the target time period, wherein the first target sub-time period includes a first deep valley sub-time period and / or a first peak sub-time period. If the target time period includes the deep valley sub-time period, the first target sub-time period includes the first deep valley sub-time period. If the target time period includes the peak sub-time period, the first target sub-time period includes the first peak sub-time period.

[0072] Specifically, the first target sub-time period can be either a trough day or a peak day within the target time period. If the target time period is a trough month, the trough day is determined based on the trough month; if the target time period is a peak month, the peak day is determined based on the peak month. The number of the aforementioned first target sub-time periods can be one or more.

[0073] The third determining unit 30 is used to obtain the net electricity load of each second sub-time period of the first sub-time period, and to perform clustering processing on the net electricity load of each second sub-time period of the first sub-time period to determine the second target sub-time period. The first target sub-time period includes the second target sub-time period, and the second target sub-time period includes the second deep valley sub-time period and / or the second peak sub-time period. If the first target sub-time period includes the first deep valley sub-time period, the second target sub-time period includes the second deep valley sub-time period. If the first target sub-time period includes the first peak sub-time period, the second target sub-time period includes the second peak sub-time period. The second target sub-time period is used to adjust the electricity price of the new power system.

[0074] Specifically, the second target sub-time period can be either a valley period or a peak period within the first target sub-time period. If the first target sub-time period is a valley day, the valley period is determined based on the valley day; if the first target sub-time period is a peak day, the peak period is determined based on the peak month. The number of second target sub-time periods can be one or more. A clustering algorithm can be used to determine the second target sub-time period based on the net electricity load of each second sub-time period within the first sub-time period. This clustering algorithm can be C-means, hierarchical clustering, or spectral clustering. The second target sub-time period is used to adjust the electricity price of the new power system. This is mainly because if the second target sub-time period is the second valley sub-time period, it indicates that the current electricity load is extremely low. Setting a lower valley price can encourage users to increase electricity consumption, thus achieving "valley filling." If the second target sub-time period is the second peak sub-time period, it indicates that the current electricity load is extremely high. Setting a higher peak price can encourage users to reduce electricity consumption, thus achieving "peak shaving." The aforementioned device can achieve peak shaving and valley filling, promoting the consumption of new energy sources.

[0075] In this embodiment, the first determining unit acquires historical net electricity load and determines a target time period based on the historical net electricity load; the second determining unit acquires the net electricity load of each first sub-time period of the target time period and determines a first target sub-time period based on the net electricity load of each first sub-time period of the target time period; the third determining unit acquires the net electricity load of each second sub-time period of the first sub-time period and determines a second target sub-time period based on the net electricity load of each second sub-time period of the first sub-time period. By selecting the net electricity load of the new power system, further selecting peak-valley months and peak-valley days, and then processing multiple peak-valley periods of the peak-valley days to determine the final peak-valley periods, the true supply and demand situation can be reflected, thereby determining the peak-valley periods. This solves the problem in the prior art that it cannot truly reflect the actual supply and demand situation of the new power system.

[0076] In specific implementation, the first determining unit includes a first acquiring module and a first determining module. The first acquiring module is used to acquire the power generation load of the novel power system, the external power load of the novel power system, the wind power generation load of the novel power system, the photovoltaic power generation load of the novel power system, and the external power transmission load of the novel power system. The first determining module is used to determine the power generation load according to formula L. NL_t =L CL_t -P ip_t -P wi_t -P S_t +P OP_t Determine the above-mentioned historical net electricity load, where L NL_tFor the above-mentioned historical net electricity load, L CL_t P represents the power generation load of the aforementioned new power system. ip_t P represents the external power load of the aforementioned new power system. wi_t P represents the wind power generation load of the aforementioned new power system. S_t P represents the photovoltaic power generation load of the aforementioned new power system. OP_t This refers to the external power generation load of the aforementioned new power system.

[0077] Specifically, this device eliminates the external power load, wind power load, and photovoltaic power load from the power generation load of the new power system, and adds the external power transmission load, to obtain the historical net power load of the new power system after deducting the influence of wind and solar new energy sources and inter-provincial power output curves. The above device can quickly obtain the historical net power load of the new power system.

[0078] The second determining unit mentioned above is also used to determine the formula M. p =argsort(M1,M2,...,M) 12 ), determine the above target time period, where M p For the target time period mentioned above, argsort() is used to sort the elements in the array from smallest to largest or from largest to smallest, M i The above refers to the historical net electricity load, where i is any integer value from 1 to 12.

[0079] Specifically, the device can determine the order of the target time period by using the sorting function argsort(), and further quickly identify at least one valley month or peak month within it.

[0080] To further eliminate the impact of ramp-up flexibility and data noise in the first deep valley time period, the second determining unit of this application includes a second determining module and a third determining module. The second determining module is used to determine the minimum net load value in the multiple first sub-time periods as the minimum load value; the third determining module is used to determine the conditions that are met in the target time period. The aforementioned first sub-time period is the aforementioned first deep valley sub-time period, wherein, This refers to the net electricity load at the first moment of the first sub-time period within the aforementioned target time period. This refers to the net electricity load at the second moment of the first sub-time period within the aforementioned target time period. x represents the net electricity load at the third moment of the first sub-time period of the aforementioned target time period. min The minimum load is γ1, which is a first predetermined coefficient. The first time is the time before the second time, and the third time is the time after the second time.

[0081] Specifically, in this device, the average value of the electricity load before and after the first sub-time period is calculated. This can further eliminate interference from the ramp-up flexibility of the new power system and reduce the impact of data errors. The first sub-time period that satisfies the above formula is the first valley period, i.e., the valley day. γ1 can be set according to climatic characteristics, and its value range can be 1 to 1.2.

[0082] To further eliminate the impact of ramp-up flexibility and data noise in the first peak sub-period, the second determining unit includes a fourth determining module and a fifth determining module. The fourth determining module is used to determine the maximum net load value in the multiple first sub-periods as the maximum load. The fifth determining module is used to determine the conditions that are met in the target time period. The aforementioned first sub-time period is the aforementioned first peak sub-time period, wherein, This refers to the net electricity load at the fourth moment of the first sub-time period within the aforementioned target time period. This refers to the net electricity load at the fifth moment of the first sub-time period within the aforementioned target time period. x represents the net electricity load at time six of the first sub-time period of the aforementioned target time period. max The maximum load is γ2, which is the second predetermined coefficient. The fourth time point is the time point before the fifth time point, and the sixth time point is the time point after the fifth time point.

[0083] Specifically, in this device, the average value of the electrical load before and after the first sub-time period is calculated. This can further eliminate interference from the ramp-up flexibility of the new power system and reduce the impact of data errors. The first sub-time period that satisfies the above formula is the first peak time period, i.e., the peak day. γ2 can be set according to climatic characteristics, and its value range can be 0.8-1.

[0084] In some embodiments, the third determining unit includes a second acquisition module, a first processing module, and a second processing module, wherein the second acquisition module is used to acquire a matrix composed of the second sub-time periods of the first sub-time period. Among them, S n For the above matrix, The first processing module is used to process the matrix using a differential evolution algorithm to obtain the initial cluster centers of the matrix. The first processing module is used to cluster the matrix using a fuzzy K-means algorithm based on the initial cluster centers to obtain the second target sub-time period.

[0085] Specifically, in this device, after determining the selection of valley days or peak days, the peak and valley periods can be adjusted using the device to adapt to current demand-side habits. The aforementioned second sub-time period can be a valley period or a peak period. The Differential Evolution Algorithm (DE) is a global optimization algorithm, a population-based heuristic search algorithm where each individual in the population corresponds to a solution vector. The evolutionary process of the DE algorithm is very similar to that of the genetic algorithm, both including mutation, crossover, and selection operations. The fuzzy K-means algorithm is derived from the K-means algorithm. While the K-means algorithm may not always produce the expected results during clustering, the boundaries between categories are clear, and cluster centers are modified based on the current samples for each category. In contrast, the fuzzy K-means algorithm results in fuzzy category boundaries during clustering, requiring all samples to modify each cluster center. The DE algorithm is used to select initial cluster centers, and then the fuzzy K-means method is used to dynamically divide peak and valley periods based on these cluster centers.

[0086] To further prevent getting trapped in local optima during clustering, in some embodiments, the first processing module includes a first processing submodule, a second processing submodule, a third processing submodule, a determination submodule, and a repetition submodule. The first processing submodule generates an initial population based on the elements of each column of the matrix, the initial population comprising multiple initial individuals. The second processing submodule performs a mutation step, mutating the initial population based on any of the initial individuals and a scaling factor to obtain multiple mutated individuals. The third processing submodule performs a crossover step, crossovering the mutated individuals with the initial individuals to obtain crossover individuals. The determination submodule determines the maximum value between the fitness function value of the crossover individuals and the fitness function value of the initial individuals as the target value. The repetition submodule repeats the mutation step, the crossover step, and the determination step at least once if the target value is greater than a first threshold, until the target value is less than or equal to the first threshold, and determines the individual corresponding to the target value as the initial cluster center.

[0087] Specifically, the device can quickly determine the initial cluster centers and further ensure the effectiveness of the clusters that fall into the time period.

[0088] In some embodiments, the second processing module described above includes a calculation submodule and an update submodule, wherein the calculation submodule is used for calculation steps, according to... Calculate the criterion function for the membership matrix of the initial cluster centers, where J m (U,C) represents the criterion function value of the membership matrix mentioned above. The fuzzy matrix of the second sub-time period of the first sub-time period and the initial cluster center is d(S). j C i ) represents the distance between the second sub-time period of the first sub-time period and the initial cluster center, m represents the number of the second sub-time periods of the first sub-time period, K represents the number of the second target sub-time periods, and a represents the fuzziness coefficient of the fuzzy matrix; the update submodule is used to update the initial cluster center and repeat the above calculation steps at least once when the criterion function value is greater than or equal to the second threshold, until the criterion function value is less than the second threshold, and determine the data cluster corresponding to the cluster center corresponding to the criterion function as the second target sub-time period.

[0089] Specifically, the device can further subdivide the aforementioned second target sub-time period into precise segments based on the initial cluster centers.

[0090] The peak-valley time determination device for the aforementioned novel power system includes a processor and a memory. The first determining unit, the second determining unit, and the third determining unit are all stored as program units in the memory. The processor executes the program units stored in the memory to achieve the corresponding functions. All of the above modules are located in the same processor; alternatively, the modules may be located in different processors in any combination.

[0091] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and peak and off-peak periods can be determined by adjusting kernel parameters.

[0092] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0093] This invention provides a computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device containing the computer-readable storage medium to perform a method for determining peak and valley periods of the power system.

[0094] Specifically, the methods for determining peak and valley periods in a power system include:

[0095] Step S201: Obtain historical net electricity load and determine the target time period based on the historical net electricity load. The historical net electricity load includes the net electricity load of each historical time period. The target time period includes valley periods and / or peak periods. The valley periods are the first n periods in ascending order of the historical net electricity load. The peak periods are the first n periods in descending order of the historical net electricity load.

[0096] Specifically, the target time period can be either a low-peak month or a high-peak month in historical net electricity load. For example, increased electricity consumption due to air conditioning use in summer may result in a high-peak month in July; conversely, lower electricity consumption in February due to fewer days may result in a low-peak month in February. One or more target time periods can be selected.

[0097] Step S202: Obtain the net electricity load of each first sub-time period of the target time period, and determine the first target sub-time period based on the net electricity load of each first sub-time period of the target time period. The first target sub-time period includes a first deep valley sub-time period and / or a first peak sub-time period. If the target time period includes the deep valley sub-time period, the first target sub-time period includes the first deep valley sub-time period. If the target time period includes the peak sub-time period, the first target sub-time period includes the first peak sub-time period.

[0098] Specifically, the first target sub-time period can be either a trough day or a peak day within the target time period. If the target time period is a trough month, the trough day is determined based on the trough month; if the target time period is a peak month, the peak day is determined based on the peak month. The number of the aforementioned first target sub-time periods can be one or more.

[0099] Step S203: Obtain the net electricity load of each second sub-time period of the first sub-time period, and determine the second target sub-time period based on the net electricity load of each second sub-time period of the first sub-time period. The first target sub-time period includes the second target sub-time period, and the second target sub-time period includes a second deep valley sub-time period and / or a second peak sub-time period. If the first target sub-time period includes the first deep valley sub-time period, the second target sub-time period includes the second deep valley sub-time period. If the first target sub-time period includes the first peak sub-time period, the second target sub-time period includes the second peak sub-time period. The second target sub-time period is used to adjust the electricity price of the new power system.

[0100] Specifically, the second target sub-time period can be either a valley period or a peak period within the first target sub-time period. If the first target sub-time period is a valley day, the valley period is determined based on the valley day; if the first target sub-time period is a peak day, the peak period is determined based on the peak month. The number of second target sub-time periods can be one or more. A clustering algorithm can be used to determine the second target sub-time period based on the net electricity load of each second sub-time period within the first sub-time period. This clustering algorithm can be C-means, hierarchical clustering, or spectral clustering. The second target sub-time period is used to adjust the electricity price of the new power system. This is mainly because if the second target sub-time period is the second valley sub-time period, it indicates that the current electricity load is extremely low. Setting a lower valley price can encourage users to increase electricity consumption, thus achieving "valley filling." If the second target sub-time period is the second peak sub-time period, it indicates that the current electricity load is extremely high. Setting a higher peak price can encourage users to reduce electricity consumption, thus achieving "peak shaving." The above methods can achieve peak shaving and valley filling, and promote the consumption of new energy sources.

[0101] This invention provides a processor for running a program, wherein the program executes a method for determining peak and valley periods of the power system.

[0102] Specifically, the methods for determining peak and valley periods in a power system include:

[0103] Step S201: Obtain historical net electricity load and determine the target time period based on the historical net electricity load. The historical net electricity load includes the net electricity load of each historical time period. The target time period includes valley periods and / or peak periods. The valley periods are the first n periods in ascending order of the historical net electricity load. The peak periods are the first n periods in descending order of the historical net electricity load.

[0104] Step S202: Obtain the net electricity load of each first sub-time period of the target time period, and determine the first target sub-time period based on the net electricity load of each first sub-time period of the target time period. The first target sub-time period includes a first deep valley sub-time period and / or a first peak sub-time period. If the target time period includes the deep valley sub-time period, the first target sub-time period includes the first deep valley sub-time period. If the target time period includes the peak sub-time period, the first target sub-time period includes the first peak sub-time period.

[0105] Step S203: Obtain the net electricity load of each second sub-time period of the first sub-time period, and determine the second target sub-time period based on the net electricity load of each second sub-time period of the first sub-time period. The first target sub-time period includes the second target sub-time period, and the second target sub-time period includes a second deep valley sub-time period and / or a second peak sub-time period. If the first target sub-time period includes the first deep valley sub-time period, the second target sub-time period includes the second deep valley sub-time period. If the first target sub-time period includes the first peak sub-time period, the second target sub-time period includes the second peak sub-time period. The second target sub-time period is used to adjust the electricity price of the new power system.

[0106] This invention provides a device including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs at least the following steps:

[0107] Step S201: Obtain historical net electricity load and determine the target time period based on the historical net electricity load. The historical net electricity load includes the net electricity load of each historical time period. The target time period includes valley periods and / or peak periods. The valley periods are the first n periods in ascending order of the historical net electricity load. The peak periods are the first n periods in descending order of the historical net electricity load.

[0108] Step S202: Obtain the net electricity load of each first sub-time period of the target time period, and determine the first target sub-time period based on the net electricity load of each first sub-time period of the target time period. The first target sub-time period includes a first deep valley sub-time period and / or a first peak sub-time period. If the target time period includes the deep valley sub-time period, the first target sub-time period includes the first deep valley sub-time period. If the target time period includes the peak sub-time period, the first target sub-time period includes the first peak sub-time period.

[0109] Step S203: Obtain the net electricity load of each second sub-time period of the first sub-time period, and determine the second target sub-time period based on the net electricity load of each second sub-time period of the first sub-time period. The first target sub-time period includes the second target sub-time period, and the second target sub-time period includes a second deep valley sub-time period and / or a second peak sub-time period. If the first target sub-time period includes the first deep valley sub-time period, the second target sub-time period includes the second deep valley sub-time period. If the first target sub-time period includes the first peak sub-time period, the second target sub-time period includes the second peak sub-time period. The second target sub-time period is used to adjust the electricity price of the new power system.

[0110] The devices mentioned in this article can be servers, PCs, tablets, mobile phones, etc.

[0111] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having at least the following method steps:

[0112] Step S201: Obtain historical net electricity load and determine the target time period based on the historical net electricity load. The historical net electricity load includes the net electricity load of each historical time period. The target time period includes valley periods and / or peak periods. The valley periods are the first n periods in ascending order of the historical net electricity load. The peak periods are the first n periods in descending order of the historical net electricity load.

[0113] Step S202: Obtain the net electricity load of each first sub-time period of the target time period, and determine the first target sub-time period based on the net electricity load of each first sub-time period of the target time period. The first target sub-time period includes a first deep valley sub-time period and / or a first peak sub-time period. If the target time period includes the deep valley sub-time period, the first target sub-time period includes the first deep valley sub-time period. If the target time period includes the peak sub-time period, the first target sub-time period includes the first peak sub-time period.

[0114] Step S203: Obtain the net electricity load of each second sub-time period of the first sub-time period, and determine the second target sub-time period based on the net electricity load of each second sub-time period of the first sub-time period. The first target sub-time period includes the second target sub-time period, and the second target sub-time period includes a second deep valley sub-time period and / or a second peak sub-time period. If the first target sub-time period includes the first deep valley sub-time period, the second target sub-time period includes the second deep valley sub-time period. If the first target sub-time period includes the first peak sub-time period, the second target sub-time period includes the second peak sub-time period. The second target sub-time period is used to adjust the electricity price of the new power system.

[0115] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.

[0116] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0117] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0118] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0119] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0120] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0121] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0122] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0123] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0124] As can be seen from the above description, the embodiments of this application achieve the following technical effects:

[0125] 1) The method for determining peak and valley periods in the power system according to this application firstly obtains historical net electricity load and determines a target time period based on the historical net electricity load; then, it obtains the net electricity load of each first sub-time period of the target time period and determines a first target sub-time period based on the net electricity load of each first sub-time period of the target time period; finally, it obtains the net electricity load of each second sub-time period of the first sub-time period and determines a second target sub-time period based on the net electricity load of each second sub-time period of the first sub-time period. By selecting the net electricity load of the new power system, further selecting peak and valley months and peak and valley days, and then processing multiple peak and valley periods of the peak and valley days to determine the final peak and valley periods, the true supply and demand situation can be reflected, thereby determining the peak and valley periods. This solves the problem in the prior art that it cannot truly reflect the actual supply and demand situation of the new power system.

[0126] 2) The novel power system peak-valley time period determination device of this application comprises: a first determining unit acquiring historical net electricity load and determining a target time period based on the historical net electricity load; a second determining unit acquiring the net electricity load of each first sub-time period of the target time period and determining a first target sub-time period based on the net electricity load of each first sub-time period of the target time period; and a third determining unit acquiring the net electricity load of each second sub-time period of the first sub-time period and determining a second target sub-time period based on the net electricity load of each second sub-time period of the first sub-time period. By selecting the net electricity load of the novel power system, further selecting peak-valley months and peak-valley days, and then processing multiple peak-valley periods of the peak-valley days to determine the final peak-valley time period, the true supply and demand situation can be reflected, thereby determining the peak-valley time period. This solves the problem in the prior art that it cannot truly reflect the actual supply and demand situation of the novel power system.

[0127] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for determining peak and valley periods in a power system, characterized in that, include: Obtain historical net electricity load and determine a target time period based on the historical net electricity load. The historical net electricity load includes the net electricity load of each historical time period. The target time period includes valley periods and / or peak periods. The valley periods are the first n periods of the historical net electricity load in ascending order, and the peak periods are the first n periods of the historical net electricity load in descending order. Obtain the net electricity load of each first sub-time period of the target time period, and determine the first target sub-time period based on the net electricity load of each first sub-time period of the target time period. The first target sub-time period includes a first deep valley sub-time period and / or a first peak sub-time period. If the target time period includes the deep valley sub-time period, the first target sub-time period includes the first deep valley sub-time period. If the target time period includes the peak sub-time period, the first target sub-time period includes the first peak sub-time period. The net electricity load of each second sub-time period in the first sub-time period is obtained, and a second target sub-time period is determined based on the net electricity load of each second sub-time period in the first sub-time period. The first target sub-time period includes the second target sub-time period, and the second target sub-time period includes a second deep valley sub-time period and / or a second peak sub-time period. If the first target sub-time period includes the first deep valley sub-time period, the second target sub-time period includes the second deep valley sub-time period; if the first target sub-time period includes the first peak sub-time period, the second target sub-time period includes the second peak sub-time period. The second target sub-time period is used to adjust the electricity price of the new power system. The second target sub-time period is determined based on the net electricity load of each second sub-time period in the first sub-time period, including: Obtain the matrix composed of the second sub-time period and the first sub-time period. ,in, For the matrix, This refers to the second sub-time period of the m-th first sub-time period; The matrix is ​​processed using the differential evolution algorithm to obtain the initial cluster centers of the matrix; Based on the initial cluster centers, the matrix is ​​clustered using the fuzzy K-means algorithm to obtain the second target sub-time period. Based on the initial cluster centers, the matrix is ​​clustered using the fuzzy K-means algorithm to obtain the second target sub-time period, including: Calculation steps, based on Calculate the criterion function of the membership matrix of the initial cluster centers, where, The criterion function value of the membership matrix. The fuzzy matrix is ​​the second sub-time period of the first sub-time period and the initial cluster centers. The distance between the second sub-time period of the first sub-time period and the initial cluster center. The number of second sub-time periods in the first sub-time period. This represents the number of the second target sub-time periods; If the criterion function value is greater than or equal to the second threshold, the initial cluster center is updated and the calculation step is repeated at least once until the criterion function value is less than the second threshold, and the data cluster corresponding to the cluster center corresponding to the criterion function is determined as the second target sub-time period.

2. The method according to claim 1, characterized in that, Obtain historical net electricity load, including: The generation load of the new power system, the external power load of the new power system, the wind power generation load of the new power system, the photovoltaic power generation load of the new power system, and the external power transmission load of the new power system are obtained. According to the formula: Determine the historical net electricity load, wherein, The historical net electricity load, This refers to the power generation load of the new power system. This refers to the external power load of the new power system. The wind power generation load of the new power system is [the amount of power generated]. The photovoltaic power generation load of the novel power system is [not specified]. This refers to the external power generation load of the new power system.

3. The method according to claim 1, characterized in that, Based on the historical net electricity load, the target time period is determined, including: According to the formula Determine the target time period, wherein, For the target time period, Used to sort elements in an array from smallest to largest or from largest to smallest. The historical net electricity load is any integer value from 1 to 12.

4. The method according to claim 1, characterized in that, The first deep valley sub-time period is determined based on the net electricity load of each first sub-time period of the target time period, including: The minimum net electricity load value in multiple first sub-time periods is determined as the minimum load value; Determine if the following conditions are met within the target time period: The first sub-time period is the first deep valley sub-time period, wherein... The net electricity load at the first moment of the first sub-time period within the target time period. The net electricity load at the second moment of the first sub-time period within the target time period. The net electricity load at the third moment of the first sub-time period within the target time period. The minimum load amount, The first predetermined coefficient is the first time point preceding the second time point, and the third time point is the next time point following the second time point.

5. The method according to claim 1, characterized in that, The first peak sub-time period is determined based on the net electricity load of each first sub-time period of the target time period, including: The maximum net electricity load in multiple first sub-time periods is determined as the maximum load. Determine if the following conditions are met within the target time period: The first sub-time period is the first peak sub-time period, wherein... The net electricity load at the fourth moment of the first sub-time period within the target time period. The net electricity load at the fifth moment of the first sub-time period within the target time period. The net electricity load at the sixth moment of the first sub-time period within the target time period. For the maximum load, The second predetermined coefficient is defined as follows: the fourth time is the time preceding the fifth time, and the sixth time is the time following the fifth time.

6. The method according to claim 1, characterized in that, The matrix is ​​processed using a differential evolution algorithm to obtain the initial cluster centers of the matrix, including: The generation step involves generating an initial population based on the elements of each column of the matrix, wherein the initial population includes multiple initial individuals. The mutation step involves performing a mutation operation on the initial population based on any initial individual in the initial population and a scaling factor, resulting in multiple mutated individuals. The crossover step involves performing a crossover operation on the mutated individual based on the mutated individual and the initial individual to obtain a crossover individual; The determination step involves setting the maximum value between the fitness function value of the crossover individual and the fitness function value of the initial individual as the target value. If the target value is greater than the first threshold, repeat the mutation step, the crossover step, and the determination step at least once until the target value is less than or equal to the first threshold, and determine the individual corresponding to the target value as the initial cluster center.

7. A device for determining peak and valley periods in a power system, characterized in that, include: The first determining unit is used to obtain historical net electricity load and determine a target time period based on the historical net electricity load. The historical net electricity load includes the net electricity load of each historical time period among multiple historical time periods. The target time period includes a valley time period and / or a peak time period. The valley time period is the first n time periods in ascending order of the historical net electricity load, and the peak time period is the first n time periods in descending order of the historical net electricity load. The second determining unit is used to obtain the net electricity load of each first sub-time period of the target time period, and determine the first target sub-time period based on the net electricity load of each first sub-time period of the target time period, wherein the first target sub-time period includes a first deep valley sub-time period and / or a first peak sub-time period. If the target time period includes the deep valley time period, the first target sub-time period includes the first deep valley time period. If the target time period includes the peak time period, the first target sub-time period includes the first peak sub-time period. The third determining unit is used to obtain the net electricity load of each second sub-time period of the first sub-time period, and to perform clustering processing on the net electricity load of each second sub-time period of the first sub-time period to determine the second target sub-time period. The first target sub-time period includes the second target sub-time period, and the second target sub-time period includes a second deep valley sub-time period and / or a second peak sub-time period. If the first target sub-time period includes the first deep valley sub-time period, the second target sub-time period includes the second deep valley sub-time period; if the first target sub-time period includes the first peak sub-time period, the second target sub-time period includes the second peak sub-time period. The second target sub-time period is used to adjust the electricity price of the new power system. The third determining unit includes a second acquisition module, a first processing module, and a second processing module, wherein, The second acquisition module is used to acquire a matrix composed of the second sub-time periods of the first sub-time period. ,in, For the matrix, This refers to the second sub-time period of the m-th first sub-time period; The first processing module is used to process the matrix using a differential evolution algorithm to obtain the initial cluster centers of the matrix; The first processing module is used to cluster the matrix using the fuzzy K-means algorithm based on the initial cluster centers to obtain the second target sub-time period. The second processing module includes a calculation submodule and an update submodule, wherein, The calculation submodule is used to calculate the steps, according to... Calculate the criterion function of the membership matrix of the initial cluster centers, where, The criterion function value of the membership matrix. The fuzzy matrix is ​​the second sub-time period of the first sub-time period and the initial cluster centers. The distance between the second sub-time period of the first sub-time period and the initial cluster center. The number of second sub-time periods in the first sub-time period. This represents the number of the second target sub-time period. The fuzzy coefficients of the fuzzy matrix; The update submodule is used to update the initial cluster centers and repeat the calculation steps at least once when the criterion function value is greater than or equal to the second threshold, until the criterion function value is less than the second threshold, and determine the data cluster corresponding to the cluster center corresponding to the criterion function as the second target sub-time period.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform the method according to any one of claims 1 to 6.

9. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 6 through the computer program.

Citation Information

Patent Citations

  • Time-of-use electricity price determining method based on load characteristic classification

    CN103679555A

  • Net load peak-valley period division method and system based on new energy and load

    CN111738773A