Frequency prediction method, device and storage medium of a hydropower station
By acquiring and analyzing the continuous detection frequency of hydropower stations and calculating the prediction frequency, the problems of frequency regulation lag and lack of prediction in the prior art are solved, and the sensitivity and reliability of hydropower station regulation are improved.
Patent Information
- Application Number
- CN202210285582.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-22
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2042-03-22
AI Technical Summary
In the prior art, there is a lag in the frequency regulation of hydropower stations, and there is a lack of prediction of the frequency changes of hydropower stations, which affects the sensitivity and reliability of regulation.
By acquiring the detection frequencies of M time periods, at least two detection frequency prediction values are determined, and the prediction frequency of the hydropower station is calculated based on these prediction values to achieve accurate prediction of the frequency of the hydropower station.
It improves the sensitivity and reliability of the output signal regulation of hydropower stations, and avoids the problem of frequency adjustment lag.
Smart Images

Figure CN114611818B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of power systems, and in particular to a frequency prediction method, device and storage medium for a hydropower station. Background Art
[0002] Hydropower generation relies on hydropower stations to convert water energy into electrical energy to supply power to electrical equipment. During the rainy season, the power generation of hydropower stations continues to increase. On the premise of meeting the power supply needs of users, part of the electricity can be transmitted to the main power grid of the power system for distribution. Detection of frequency changes in hydropower stations is an important part of realizing hydropower station regulation.
[0003] In the prior art, the frequency of the hydropower station is usually adjusted by the change of the current frequency value of the hydropower station generator set. However, there is a lag in the frequency adjustment process according to the current frequency value, which affects the subsequent frequency change of the entire hydropower station. In addition, the prior art lacks the prediction of the frequency change of the hydropower station, and it is impossible to perform the next step of adjusting the output signal of the hydropower station. Summary of the invention
[0004] The embodiments of the present invention provide a frequency prediction method, device, equipment and storage medium for a hydropower station to achieve accurate prediction of the frequency of the hydropower station, avoid the problem of frequency regulation lag, and improve the sensitivity and reliability of the output signal control of the hydropower station.
[0005] In a first aspect, an embodiment of the present invention provides a frequency prediction method for a hydropower station, comprising:
[0006] Acquire M detection frequencies corresponding to M consecutive time periods one by one; the detection frequency corresponding to each time period is the frequency value of the output signal of the hydropower station corresponding to the time period; M is a positive integer;
[0007] Determine at least two detection frequency prediction values according to the M detection frequencies;
[0008] The predicted frequency of the hydropower station is determined according to the predicted value of the detection frequency.
[0009] Optionally, M groups of frequency values corresponding to M consecutive time periods are obtained; a group of frequency values corresponding to each time period includes a start frequency and an end frequency of the output signal of the hydropower station within a first detection time in the time period;
[0010] According to the average values of the start frequency and the end frequency of each time period, M detection frequencies corresponding to the M consecutive time periods are determined.
[0011] Optionally, at least two unequal moving average terms are determined according to the M detection frequencies; the value range of the moving average term Ni is 1 < Ni < M, and both Ni and i are positive integers;
[0012] According to the moving average term, the detection frequencies among the M detection frequencies that participate in calculating the predicted value of the detection frequency are determined as the calculated values of the detection frequencies corresponding to the moving average term;
[0013] According to each moving average term and the calculated value of the detection frequency corresponding to each moving average term, the predicted value of the detection frequency corresponding to each moving average term is determined.
[0014] Optionally, according to the moving average term, a calculation formula for the predicted value of the detection frequency corresponding to the moving average term is determined;
[0015] According to each moving average term, the calculated value of the detection frequency corresponding to each moving average term, and each calculation formula for the predicted value of the detection frequency, the predicted value of the detection frequency corresponding to each moving average term is determined;
[0016] Among them, the calculation formula for the predicted value of the detection frequency corresponding to the moving average term Ni is:
[0017]
[0018] Among them, f′ Ni+1 is the predicted value of the detection frequency corresponding to the moving average term Ni; f j is the detection frequency corresponding to the jth time period among the M detection frequencies, and j is a positive integer.
[0019] Optionally,
[0020] According to the moving average term, the detection frequencies among the M detection frequencies that participate in calculating the standard error of the predicted value of the detection frequency are determined as the calculated values of the frequency errors corresponding to the moving average term;
[0021] According to the calculated value of the frequency error, the predicted value of the detection frequency, and the moving average term, the standard error corresponding to each moving average term is determined;
[0022] The moving average term corresponding to the smallest standard error among the standard errors is used as the calculated value of the moving average term for calculating the predicted frequency;
[0023] According to the calculated value of the moving average term and the calculation formula for the predicted value of the detection frequency corresponding to the calculated value of the moving average term, the calculation formula for the predicted frequency of the hydropower station is determined;
[0024] The prediction frequency of the hydropower station is determined according to the prediction frequency calculation formula.
[0025] Optionally, according to the moving average term, determining an error calculation formula corresponding to the moving average term;
[0026] Determine the standard error corresponding to each of the moving average items according to each of the moving average items, the detection frequency calculation value corresponding to each of the moving average items, and each of the error calculation formulas;
[0027] Among them, the error calculation formula corresponding to the moving average term Ni is:
[0028]
[0029] Wherein, Si is the standard error corresponding to the moving average term Ni; f t is the detection frequency corresponding to the t-th time period among the M detection frequencies, and t is a positive integer.
[0030] Optionally, 5≤Ni≤200.
[0031] In a second aspect, an embodiment of the present invention further provides a frequency prediction device for a hydropower station, comprising:
[0032] A detection frequency acquisition module, used to acquire M detection frequencies corresponding to M consecutive time periods one by one; the detection frequency corresponding to each time period is the frequency value of the output signal of the hydropower station corresponding to the time period; M is a positive integer;
[0033] A detection frequency prediction value determination module, used to determine at least two detection frequency prediction values according to the M detection frequencies;
[0034] The predicted frequency determination module is used to determine the predicted frequency of the hydropower station according to the predicted value of the detection frequency.
[0035] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor;
[0036] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can implement the frequency prediction method for a hydropower station provided in any embodiment of the present invention.
[0037] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the frequency prediction method for a hydropower station provided by any embodiment of the present invention when executed.
[0038] The embodiment of the present invention obtains M detection frequencies in M consecutive time periods, determines at least two detection frequency prediction values according to the M detection frequencies in the M time periods, and determines the predicted frequency of the hydropower station based on the detection frequency prediction values. The technical solution provided by the embodiment of the present invention solves the problem of regulation hysteresis caused by regulating the state of the hydropower station unit using the current hydropower station frequency data, and improves the sensitivity and reliability of the output signal regulation of the hydropower station. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 is a flow chart of a frequency prediction method for a hydropower station provided according to Embodiment 1 of the present invention;
[0041] Figure 2 is a flow chart of a frequency prediction method for a hydropower station provided according to the second embodiment of the present invention;
[0042] Figure 3 is a flow chart of a frequency prediction method for a hydropower station provided according to Embodiment 3 of the present invention;
[0043] Figure 4 is a flow chart of a frequency prediction method for a hydropower station provided according to a fourth embodiment of the present invention;
[0044] Figure 5 A frequency prediction device for a hydropower station is provided according to Embodiment 5 of the present invention;
[0045] Figure 6 A structural schematic diagram of an electronic device is also provided according to a sixth embodiment of the present invention. DETAILED DESCRIPTION
[0046] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0047] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0048] Embodiment 1
[0049] Figure 1 1 is a flow chart of a frequency prediction method for a hydropower station provided according to an embodiment of the present invention. The method can be executed by a frequency prediction device for a hydropower station, and the device can be composed of hardware and / or software. The frequency prediction method for a hydropower station provided by the embodiment of the present invention includes the following steps:
[0050] S110 , obtaining M detection frequencies corresponding one-to-one to M consecutive time periods.
[0051] Among them, the acquisition of the detection frequency of the hydropower station is mainly achieved by detecting the frequency within a period of time. The selected period of time can be specifically divided into M continuous time periods, and the duration of each time period remains consistent. Exemplarily, a period of time can be 10 minutes, and 10 minutes are divided into 10 continuous time periods, and the duration of the time period is 1 minute. A detection frequency can be obtained in each time period, and 10 detection frequencies can be obtained in 10 time periods, or a period of time can be 20 minutes, and 20 minutes are divided into 10 continuous time periods, and the duration of the time period is 2 minutes. Here, there is no specific limitation on the length of a period of time and each time period, and M is a positive integer, which can be further adjusted according to actual needs.
[0052] Furthermore, the detection frequency corresponding to each time period is the frequency value of the output signal of the hydropower station corresponding to the time period. The frequency value of the output signal of the hydropower station can be obtained by the smart meter after obtaining the voltage amplitude and current value at the outlet of the hydropower station, based on the Fourier transform algorithm. That is, the frequency value of the output signal of the hydropower station in this time period corresponds to the detection frequency of this time period. The corresponding relationship between the detection frequency and the output signal of the hydropower station can be drawn into a corresponding chart, and the detection frequency of each time period can be accurately obtained by looking up the table. The specific method of obtaining the detection frequency is not specifically limited here.
[0053] S120. Determine at least two detection frequency prediction values according to the M detection frequencies.
[0054] Among the M detection frequencies, two or more detection frequencies can be selected to determine the detection frequency prediction value. The detection frequency prediction value is determined based on the prediction of the detection frequency. That is, the detection frequency is the frequency actually detected, and the detection frequency prediction value is determined by the actual detected frequency. There is a formula relationship or a chart relationship between the detection frequency prediction value and the detection frequency. At least two detection frequency prediction values are determined using the formula relationship or the chart relationship.
[0055] S130. Determine the predicted frequency of the hydropower station according to the predicted value of the detection frequency.
[0056] Among them, two detection frequency prediction values or multiple detection frequency prediction values are determined using the detection frequency, and the sizes of the two or more detection frequency prediction values are compared to obtain a more accurate detection frequency prediction value. For example, during the detection process, the frequency of the hydropower station will fluctuate in a small range, resulting in slight fluctuations in the detection frequency detected in different time periods, thereby causing the detection frequency prediction value of the hydropower station to change accordingly. After comparing multiple detection frequency prediction values, the detection frequency prediction value with a small fluctuation amplitude is determined as the predicted frequency of the hydropower station. The change in the fluctuation amplitude can be determined by the standard error of the detection frequency prediction value. A formula for the detection frequency prediction value and the standard error of the detection frequency prediction value is established, and the detection frequency prediction value that meets the conditions is determined by the formula calculation method, thereby determining the prediction frequency of the hydropower station.
[0057] The embodiment of the present invention obtains M detection frequencies in M consecutive time periods, determines at least two detection frequency prediction values according to the M detection frequencies in the M time periods, and determines the predicted frequency of the hydropower station based on the detection frequency prediction values. The technical solution provided by the embodiment of the present invention solves the problem of regulation hysteresis caused by regulating the state of the hydropower station unit using the current hydropower station frequency data, and improves the sensitivity and reliability of the output signal regulation of the hydropower station.
[0058] Embodiment 2
[0059] Figure 2 1 is a flow chart of a frequency prediction method for a hydropower station provided according to Embodiment 2 of the present invention. On the basis of the above embodiment, a scheme for determining M detection frequencies is specifically provided. The technical scheme of this embodiment includes:
[0060] S210 , obtaining M groups of frequency values corresponding one-to-one to M consecutive time periods.
[0061] Among them, a group of frequency values corresponding to each time period includes the starting frequency and ending frequency of the output signal of the hydropower station in the first detection time in the time period. Each time period corresponds to a group of frequency values, which includes the first detection time and the non-detection time. The starting frequency and ending frequency of the output signal of the hydropower station are detected in the first detection time, and the frequency of the output signal of the hydropower station is not detected in the non-detection time. Exemplarily, each time period is 1min, and a group of frequency values corresponds to the 1min time period. The first detection time is the first second, and the non-detection time is from the second second to the sixtieth second. In the first detection time, the output signal of the hydropower station corresponds to 50 waveforms in one second, and the starting frequency and ending frequency of the output signal of the hydropower station in the first second are obtained by recording the first and last waveforms. The frequency waveform has a one-to-one correspondence with the starting frequency and ending frequency of the output signal of the hydropower station.
[0062] S220 . Determine M detection frequencies corresponding to the M consecutive time periods one by one according to the average values of the start frequency and the end frequency of each time period.
[0063] The average values of the start frequency and the end frequency in each time period are used to determine the M detection frequencies corresponding to each of the M consecutive time periods. The average frequency corresponding to the start frequency and the end frequency is calculated by adding the values of the start frequency and the end frequency and then divided by 2, and then the detection frequency is determined.
[0064] Exemplarily, a relationship table between each time period and the detection frequency is established, as shown in Table 1.
[0065] Table 1
[0066] <![CDATA[ 时间 T n ]]> <![CDATA[ 1min ]]> <![CDATA[ 2min ]]> <![CDATA[ 3min ]]> <![CDATA[ 4min ]]> <![CDATA[ 5min ]]> <![CDATA[ 6min ]]> <![CDATA[ 7min ]]> <![CDATA[ 8min ]]> <![CDATA[ 9min ]]> <![CDATA[ 10min ]]> <![CDATA[ 检测频率 ]]> <![CDATA[f1]]> <![CDATA[f2]]> <![CDATA[f3]]> <![CDATA[f4]]> <![CDATA[f5]]> <![CDATA[f6]]> <![CDATA[f7]]> <![CDATA[f8]]> <![CDATA[f9]]> <![CDATA[f 10 ]]>
[0067] f1……f 10 They are the detection frequencies corresponding to each time period, which are only presented in a table here, and the specific detection frequency values are not limited.
[0068] S230. Determine at least two detection frequency prediction values according to the M detection frequencies.
[0069] S240: Determine the predicted frequency of the hydropower station according to the predicted value of the detection frequency.
[0070] In an embodiment of the present invention, by obtaining M groups of frequency values corresponding one-to-one to M consecutive time periods, each group of frequency values including the start frequency and the end frequency of the hydropower station output signal, calculating the average frequency of the hydropower station output signal using the start frequency and the end frequency, and then determining M detection frequencies. The technical solution provided by the embodiment of the present invention solves the problem that the detection frequencies in each time period fluctuate due to the frequency fluctuation of the hydropower station during the acquisition of the detection frequencies, and improves the accuracy of obtaining the detection frequencies.
[0071] Embodiment III
[0072] Figure 3 FIG. is a schematic flowchart of a frequency prediction method for a hydropower station according to Embodiment III of the present invention. On the basis of the above embodiments, a solution for determining the predicted value of the detection frequency is specifically provided. The technical solution of this embodiment includes:
[0073] S310. Obtain M detection frequencies corresponding one-to-one to M consecutive time periods.
[0074] S320. Determine at least two unequal moving average terms according to the M detection frequencies.
[0075] Among them, the moving average term refers to the number of detection frequencies selected from the M detection frequencies. The value range of the moving average term Ni is 1 < Ni < M, both Ni and i are positive integers; generally, the value range of the moving average term is greater than 1 and less than M. In an optional embodiment, the value range of Ni is 5 ≤ Ni ≤ 200. It can be understood that the moving average term takes at least two items at the minimum and can select up to M - 1 items at the maximum. Exemplarily, when M is 10, the value range of Ni is 2 - 9. For unequal moving average terms, 4 and 5, or 4, 5, and 6 can be selected. Here, the specific number of moving average terms is not specifically limited.
[0076] S330. Determine the detection frequencies participating in the calculation of the predicted value of the detection frequency among the M detection frequencies as the calculated values of the detection frequencies corresponding to the moving average terms.
[0077] Among them, after the number of moving average terms is determined, it is necessary to further determine the part participating in the calculation of the detection frequency, and determine the calculated value of the detection frequency according to the detection frequencies participating in the calculation of the predicted value of the detection frequency. Selecting different moving average terms corresponds to different detection frequencies participating in the calculation of the predicted value of the detection frequency, and thus corresponds to different calculated values of the detection frequency.
[0078] S340. Determine the predicted values of the detection frequencies corresponding one-to-one to the moving average terms according to the moving average terms and the calculated values of the detection frequencies corresponding to the moving average terms.
[0079] Among them, the moving average item and the detection frequency prediction value corresponding to the moving average item constitute a calculation equation. Different moving average items correspond to different detection frequency prediction values corresponding to the moving average items. Exemplarily, the calculation formula for the detection frequency prediction value corresponding to the moving average item Ni is:
[0080]
[0081] Among them, f′ Ni+1 is the detection frequency prediction value corresponding to the moving average term Ni; j is the detection frequency corresponding to the j-th time period among the M detection frequencies, and j is a positive integer.
[0082] Further, according to the selected moving average items, the detection frequency calculation value corresponding to each moving average item and the detection frequency prediction value calculation formula, the detection frequency prediction value corresponding to each moving average item is determined. Exemplarily, referring to Table 1, when the moving average item Ni is 5, the corresponding detection frequency calculation value is 5, the length of the selected time period is the 6th minute to the 10th minute, then the detection frequency prediction value corresponding to the moving average item is the detection frequency prediction value of the 11th minute, and the detection frequency of 6-10 minutes is added and the ratio of the moving average item is the detection frequency prediction value corresponding to the moving average item Ni=5. When the moving average item Ni is 4, the corresponding detection frequency calculation value is 4, the length of the selected time period is the 7th minute to the 10th minute, then the detection frequency prediction value corresponding to the moving average item is the detection frequency prediction value of the 11th minute. The same detection frequency prediction value can be determined by selecting different moving average items. The above is only an example, and there is no specific limitation on the number of moving average items selected and the selected time period.
[0083] S350: Determine the predicted frequency of the hydropower station according to the predicted value of the detection frequency.
[0084] The embodiment of the present invention selects different moving average items to determine the detection frequency involved in calculating the detection frequency prediction value among M detection frequencies, and calculates the detection frequency prediction value by using the moving average item and the detection frequency corresponding to each moving average item and the detection frequency prediction value calculation formula. The problem of regulation lag caused by using the current hydropower station frequency data to regulate the state of the hydropower station unit is solved, and the sensitivity and reliability of the output signal regulation of the hydropower station are improved.
[0085] Embodiment 4
[0086] Figure 4 This is a flow chart of a frequency prediction method for a hydropower station provided according to Embodiment 4 of the present invention. Based on the above embodiments, a scheme for determining the predicted frequency of a hydropower station is specifically provided. The technical scheme of this embodiment includes:
[0087] S410: Obtain M detection frequencies corresponding to M consecutive time periods one by one.
[0088] S420: Determine at least two unequal moving average items according to the M detection frequencies.
[0089] S430. According to the moving average item, determine the detection frequency involved in calculating the detection frequency prediction value among the M detection frequencies as the detection frequency calculation value corresponding to the moving average item.
[0090] S440 . Determine detection frequency prediction values corresponding to each moving average item one by one according to each moving average item and the detection frequency calculation value corresponding to each moving average item.
[0091] S450. According to the moving average item, determine the detection frequency among the M detection frequencies that participates in calculating the standard error of the detection frequency prediction value as the frequency error calculation value corresponding to the moving average item.
[0092] Among them, when the selected moving average item is determined, the detection frequency that specifically participates in the calculation among the M detection frequencies can be determined accordingly. The detection frequency that participates in the standard error of the detection frequency prediction value is determined based on the moving average item and the detection frequency that participates in the calculation. The detection frequency that participates in the standard error of the detection frequency prediction value can also be understood as the frequency error calculation value corresponding to the moving average item.
[0093] S460: Determine the standard error corresponding to each moving average item according to the frequency error calculation value, the detection frequency prediction value, and the moving average item.
[0094] Among them, there are corresponding formulas between the frequency error calculation value, the detection frequency prediction value, the moving average item and the standard error corresponding to each moving average item. According to the moving average item, the error calculation formula corresponding to the moving average item is determined, and the error calculation formula corresponding to the moving average item Ni is:
[0095]
[0096] Where Si is the standard error corresponding to the moving average term Ni; f t is the detection frequency corresponding to the t-th time period among the M detection frequencies, and t is a positive integer.
[0097] Furthermore, according to each moving average item, the detection frequency calculation value corresponding to each moving average item, and each error calculation formula, the standard error corresponding to each moving average item is determined. When the selected moving average item is different, the corresponding standard error Si is also different.
[0098] For example, when M is 10 and the moving average item is 5, then
[0099]
[0100] When M is 10 and the selected moving average item is 6, then This is just an example description, and there is no limitation on the selection of specific moving average items.
[0101] S470. Use the moving average item corresponding to the smallest standard error among the standard errors as the moving average item calculation value for calculating the prediction frequency.
[0102] Using the standard error calculation formula, calculate the standard errors corresponding to different moving average items, compare the sizes of the calculated standard errors, and use the moving average item corresponding to the smallest standard error as the moving average item calculation value for calculating the forecast frequency. When the standard error corresponding to the moving average item of 5 is smaller than the standard error corresponding to the moving average item of 6, select the moving average item of 5 as the moving average item for calculating the forecast frequency.
[0103] S480. Determine a prediction frequency calculation formula for calculating a hydropower station according to the moving average item calculation value and the detection frequency prediction value calculation formula corresponding to the moving average item calculation value.
[0104] S490. Determine the prediction frequency of the hydropower station according to the prediction frequency calculation formula.
[0105] Among them, the prediction frequency calculation formula of the hydropower station is finally determined according to the moving average item calculation value and the detection frequency calculation formula corresponding to the moving average item calculation value. Exemplarily, if the moving average item calculation value is 5, the corresponding prediction frequency calculation formula is determined, According to the above determined prediction frequency calculation formula, the prediction frequency of the hydropower station is further determined.
[0106] The embodiment of the present invention determines the frequency error calculation value corresponding to the moving average item according to the selected moving average item, and determines the standard error based on the frequency error calculation value, the detection frequency prediction value and the moving average item. The standard errors corresponding to each moving average item are calculated using the error calculation formula corresponding to the moving average item, and after comparing the standard errors corresponding to each moving average item, the moving average item corresponding to the smallest standard error in the standard errors is used as the moving average item calculation value of the predicted frequency. After determining the moving average item calculation value, the predicted frequency calculation formula of the hydropower station is determined, and then the predicted frequency of the hydropower station is determined. The problem of regulation lag caused by using the current hydropower station frequency data to regulate the state of the hydropower station unit is solved, and the sensitivity and reliability of the output signal regulation of the hydropower station are improved.
[0107] Embodiment 5
[0108] Figure 5 is a frequency prediction device for a hydropower station provided according to Embodiment 5 of the present invention. The device can be composed of hardware and / or software. As Figure 5 shown, the device includes: a detected frequency acquisition module 510, a detected frequency prediction value determination module 520, and a predicted frequency determination module 530.
[0109] The detected frequency acquisition module 510 is configured to acquire M detected frequencies corresponding one-to-one to M consecutive time periods; the detected frequency corresponding to each time period is the frequency value of the hydropower station output signal corresponding to that time period; M is a positive integer.
[0110] The detected frequency prediction value determination module 520 is configured to determine at least two detected frequency prediction values according to the M detected frequencies.
[0111] The predicted frequency determination module 530 is configured to determine the predicted frequency of the hydropower station according to the detected frequency prediction values.
[0112] Further, the detected frequency acquisition module 510 is further configured to acquire M groups of frequency values corresponding one-to-one to M consecutive time periods; each group of frequency values corresponding to each time period includes the start frequency and the end frequency of the hydropower station output signal within the first detection time in that time period;
[0113] Determine M detected frequencies corresponding one-to-one to M consecutive time periods according to the average value of the start frequency and the end frequency of each time period.
[0114] The detected frequency prediction value determination module 520 further includes a moving average term determination unit, a detected frequency calculation value determination unit, and a detected frequency prediction value determination unit.
[0115] The moving average term determination unit is configured to determine at least two unequal moving average terms according to the M detected frequencies; the value range of the moving average term Ni is 1 < Ni < M, both Ni and i are positive integers, and 5 ≤ Ni ≤ 200.
[0116] The detected frequency calculation value determination unit is configured to determine the detected frequency participating in the calculation of the detected frequency prediction value among the M detected frequencies as the detected frequency calculation value corresponding to the moving average term.
[0117] The detection frequency prediction value determination unit is used to determine the detection frequency prediction value corresponding to each moving average item one by one according to each moving average item and the detection frequency calculation value corresponding to each moving average item. The detection frequency prediction value determination unit is also used to determine the detection frequency prediction value calculation formula corresponding to the moving average item according to the moving average item, and determine the detection frequency prediction value corresponding to each moving average item one by one according to each moving average item, the detection frequency calculation value corresponding to each moving average item, and each detection frequency prediction value calculation formula, wherein the detection frequency prediction value calculation formula corresponding to the moving average item Ni is:
[0118]
[0119] Among them, f′ Ni+1 is the detection frequency prediction value corresponding to the moving average term Ni; j is the detection frequency corresponding to the j-th time period among the M detection frequencies, and j is a positive integer.
[0120] The prediction frequency determination module 530 also includes a frequency error calculation value determination unit, a standard error determination unit corresponding to the moving average item, a moving average item calculation value determination unit, a hydropower station prediction frequency calculation formula determination unit, and a hydropower station prediction frequency determination unit.
[0121] The frequency error calculation value determination unit is used to determine, according to the moving average item, the detection frequency that participates in calculating the standard error of the detection frequency prediction value among the M detection frequencies as the frequency error calculation value corresponding to the moving average item.
[0122] The standard error determination unit corresponding to the moving average item is used to determine the standard error corresponding to each moving average item according to the frequency error calculation value, the detection frequency prediction value, and the moving average item. The standard error determination unit corresponding to the moving average item is also used to determine the error calculation formula corresponding to the moving average item according to the moving average item, and determine the standard error corresponding to each moving average item one by one according to each moving average item, the detection frequency calculation value corresponding to each moving average item, and each error calculation formula, wherein the error calculation formula corresponding to the moving average item Ni is:
[0123]
[0124] Where Si is the standard error corresponding to the moving average term Ni; f t is the detection frequency corresponding to the t-th time period among the M detection frequencies, and t is a positive integer.
[0125] The moving average item calculation value determination unit is used to use the moving average item corresponding to the smallest standard error among the standard errors as the moving average item calculation value for calculating the predicted frequency.
[0126] The prediction frequency calculation formula determination unit of the hydropower station is used to determine the prediction frequency calculation formula of the hydropower station according to the moving average item calculation value and the detection frequency prediction value calculation formula corresponding to the moving average item calculation value.
[0127] The hydropower station prediction frequency determination unit is used to determine the prediction frequency of the hydropower station according to the prediction frequency calculation formula.
[0128] The embodiment of the present invention obtains M detection frequencies corresponding to each other in M consecutive time periods through a detection frequency acquisition module, determines at least two detection frequency prediction values using the M detection frequencies, and finally determines the predicted frequency of the hydropower station according to the detection frequency prediction values. The frequency prediction device of the hydropower station can execute the frequency prediction method of the hydropower station provided by any embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method.
[0129] Embodiment 6
[0130] Figure 6 According to embodiment six of the present invention, a structural diagram of an electronic device is also provided, the electronic device includes one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the frequency prediction method of the hydropower station provided by any embodiment of the present invention.
[0131] Electronic devices are intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the invention described and / or claimed herein.
[0132] like Figure 6As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0133] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0134] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a frequency prediction method for a hydropower station.
[0135] Embodiment 7
[0136] The present invention is a seventh embodiment that provides a computer-readable storage medium having a computer program stored thereon. The computer program for implementing the method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, partially on the machine as an independent software package and partially on a remote machine, or entirely on a remote machine or server.
[0137] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0138] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0139] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0140] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0141] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0142] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A frequency prediction method for a hydropower station, characterized in that: Including: Obtaining M detection frequencies corresponding one by one to M consecutive time periods; the detection frequency corresponding to each time period is the frequency value of the output signal of the hydropower station corresponding to this time period; M is a positive integer; Determining at least two detection frequency prediction values according to the M detection frequencies; Determining the predicted frequency of the hydropower station according to the detection frequency prediction values; Among them, determining at least two detection frequency prediction values according to the M detection frequencies includes: Determining at least two unequal moving average terms according to the M detection frequencies; the value range of the moving average term Ni is 1 < Ni < M, and both Ni and i are positive integers; Determining the detection frequencies among the M detection frequencies that participate in calculating the detection frequency prediction values as the detection frequency calculation values corresponding to the moving average terms; Determining the detection frequency prediction values corresponding one by one to the moving average terms according to each moving average term and the detection frequency calculation value corresponding to each moving average term; Determining the detection frequency prediction values corresponding one by one to the moving average terms according to each moving average term and the detection frequency calculation value corresponding to each moving average term includes: Determining the detection frequency prediction value calculation formula corresponding to the moving average term according to the moving average term; Determining the detection frequency prediction values corresponding one by one to the moving average terms according to each moving average term, the detection frequency calculation value corresponding to each moving average term, and each detection frequency prediction value calculation formula; Among them, the detection frequency prediction value calculation formula corresponding to the moving average term Ni is: Among them, f′ Ni+1 is the detection frequency prediction value corresponding to the moving average term Ni; j is the detection frequency corresponding to the j-th time period among the M detection frequencies, where j is a positive integer; Determining the predicted frequency of the hydropower station according to the detection frequency prediction values includes: Determining the detection frequencies among the M detection frequencies that participate in calculating the standard error of the detection frequency prediction values as the frequency error calculation values corresponding to the moving average terms; Determining the standard errors corresponding to the moving average terms according to the frequency error calculation values, the detection frequency prediction values, and the moving average terms; Taking the moving average term corresponding to the smallest standard error among the standard errors as the moving average term calculation value for calculating the predicted frequency; Determining the calculation formula for the predicted frequency of the hydropower station according to the moving average term calculation value and the detection frequency prediction value calculation formula corresponding to the moving average term calculation value; Determining the predicted frequency of the hydropower station according to the predicted frequency calculation formula; Determining the standard errors corresponding to the moving average terms according to the frequency error calculation values, the detection frequency prediction values, and the moving average terms includes: Determining the error calculation formula corresponding to the moving average term according to the moving average term; Determining the standard errors corresponding one by one to the moving average terms according to each moving average term, the detection frequency calculation value corresponding to each moving average term, and each error calculation formula; Among them, the error calculation formula corresponding to the moving average term Ni is: Wherein, Si is the standard error corresponding to the moving average term Ni; f t is the detection frequency corresponding to the t-th time period among the M detection frequencies, and t is a positive integer.
2. The frequency prediction method of a hydropower station according to claim 1, characterized in that: Obtain M detection frequencies corresponding one-to-one to M consecutive time periods, including: Obtain M groups of frequency values corresponding one-to-one to M consecutive time periods; a group of frequency values corresponding to each of the time periods includes the start frequency and the end frequency of the output signal of the hydropower station within the first detection time in the time period; Determine M detection frequencies corresponding one-to-one to M consecutive time periods according to the average values of the start frequency and the end frequency of each time period.
3. The frequency prediction method of a hydropower station according to claim 1, characterized in that: 5 ≤ Ni ≤ 200.
4. A frequency prediction device for a hydropower station, characterized in that: Including: A detection frequency acquisition module, configured to obtain M detection frequencies corresponding one-to-one to M consecutive time periods; the detection frequency corresponding to each of the time periods is the frequency value of the output signal of the hydropower station corresponding to the time period; M is a positive integer; A detection frequency prediction value determination module, configured to determine at least two detection frequency prediction values according to the M detection frequencies; A predicted frequency determination module, configured to determine the predicted frequency of the hydropower station according to the detection frequency prediction values; Among them, the detection frequency prediction value determination module is specifically configured to determine at least two unequal moving average terms according to the M detection frequencies; the value range of the moving average term Ni is 1 < Ni < M, and both Ni and i are positive integers; according to the moving average term, determine the detection frequencies among the M detection frequencies that participate in the calculation of the detection frequency prediction value as the detection frequency calculation value corresponding to the moving average term; according to each of the moving average terms and the detection frequency calculation value corresponding to each of the moving average terms, determine the detection frequency prediction value corresponding to each of the moving average terms; according to each of the moving average terms and the detection frequency calculation value corresponding to each of the moving average terms, determine the detection frequency prediction value corresponding to each of the moving average terms, including: determining the detection frequency prediction value calculation formula corresponding to the moving average term according to the moving average term; according to each of the moving average terms, the detection frequency calculation value corresponding to each of the moving average terms, and each of the detection frequency prediction value calculation formulas, determine the detection frequency prediction value corresponding to each of the moving average terms; among them, the detection frequency prediction value calculation formula corresponding to the moving average term Ni is: Among them, f ‘ Ni+1 is the detection frequency prediction value corresponding to the moving average term Ni; j is the detection frequency corresponding to the j-th time period among the M detection frequencies, where j is a positive integer; Among them, f′ Ni+1 is the detection frequency prediction value corresponding to the moving average term Ni; j is the detection frequency corresponding to the j-th time period among the M detection frequencies, where j is a positive integer; The prediction frequency determination module is specifically used to determine, according to the moving average item, the detection frequency of the M detection frequencies that participates in calculating the standard error of the detection frequency prediction value as the frequency error calculation value corresponding to the moving average item; determine the standard error corresponding to each of the moving average items according to the frequency error calculation value, the detection frequency prediction value, and the moving average item; use the moving average item corresponding to the smallest standard error among the standard errors as the moving average item calculation value for calculating the prediction frequency; determine the detection frequency prediction value according to the moving average item calculation value and the detection frequency prediction value calculation formula corresponding to the moving average item calculation value. A prediction frequency calculation formula for calculating the hydropower station is defined; the prediction frequency of the hydropower station is determined according to the prediction frequency calculation formula; the standard error corresponding to each moving average item is determined according to the frequency error calculation value, the detection frequency prediction value, and the moving average item, including: determining the error calculation formula corresponding to the moving average item according to the moving average item; determining the standard error corresponding to each moving average item one by one according to each moving average item, the detection frequency calculation value corresponding to each moving average item, and each error calculation formula; wherein the error calculation formula corresponding to the moving average item Ni is: Wherein, Si is the standard error corresponding to the moving average term Ni; f t is the detection frequency corresponding to the t-th time period among the M detection frequencies, and t is a positive integer.
5. An electronic device, characterized in that: The electronic device comprises: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the frequency prediction method for a hydropower station according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the frequency prediction method for a hydropower station according to any one of claims 1 to 3 when executed.
Citation Information
Patent Citations
Beidou GPS dual-mode electric power time synchronizer
CN105527833A
Frequency adjustment method and device, equipment and storage medium
CN113258565A