Generator unit primary frequency modulation evaluation method and device based on dynamic time warping

By using the Dynamic Time Warping (DTW) method, the lag time and settling time of the primary frequency regulation process of the generator set are calculated, an ideal curve is generated and a DTW matrix is ​​established, the optimal path is searched, and the evaluation score is calculated. This solves the problem of the lack of overall process evaluation in the existing technology and realizes a comprehensive evaluation of the primary frequency regulation process of the generator set.

CN115526534BActive Publication Date: 2026-04-14ELECTRIC POWER RESEARCH INSTITUTE OF STATE GRID SHANDONG ELECTRIC POWER COMPANY +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ELECTRIC POWER RESEARCH INSTITUTE OF STATE GRID SHANDONG ELECTRIC POWER COMPANY
Filing Date
2022-10-21
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

The current technology for evaluating the primary frequency regulation capability of generator sets lacks a holistic process evaluation method, and only requires and assesses key time nodes or obvious indicators, resulting in an incomplete evaluation of the power regulation curve.

Method used

The method based on dynamic time warping (DTW) is adopted to generate an ideal active power response curve by calculating the lag time and settling time of the primary frequency regulation process of the generator set, establishing a DTW calculation matrix, searching for the optimal path, calculating the DTW distance and distance weighting coefficient, and finally calculating the evaluation score of the primary frequency regulation process to comprehensively evaluate the frequency regulation process.

Benefits of technology

This approach enables a comprehensive process evaluation of the primary frequency regulation process of generator sets, reducing the impact of lag time and regulation time errors on the assessment and improving the accuracy and comprehensiveness of the evaluation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115526534B_ABST
    Figure CN115526534B_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of power control, and discloses a generator unit primary frequency modulation evaluation method and device based on dynamic time warping, wherein the method comprises the following steps: calculating the lag time and the regulation time of the active power response in the primary frequency modulation process of the generator unit; generating an ideal active power response curve according to the actual measured lag time and the regulation time; normalizing the actual active power response curve in the primary frequency modulation process of the generator unit; calculating the DTW distance between the actual active power response sequence in the primary frequency modulation process of the generator unit and the ideal active power response sequence; searching for the optimal path in the DTW calculation matrix; calculating the common path length in the DTW calculation matrix; calculating the distance weight coefficient according to the common path length; and multiplying the DTW distance and the distance weight coefficient to obtain the final primary frequency modulation process evaluation score for evaluation. The method solves the problem of the lack of overall process evaluation method for the power regulation curve in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power control technology, and in particular to a method and apparatus for evaluating the primary frequency regulation of generator sets based on dynamic time warping. Background Technology

[0002] The rapid development of high-proportion renewable energy generation has seriously affected the stability of the power system. Primary frequency regulation capability is a crucial indicator for assessing the active power support capacity of generating units when dealing with grid frequency drops.

[0003] GB / T40595-2021, "Technical Specifications and Test Guidelines for Primary Frequency Regulation of Grid-Connected Power Sources," specifies the test methods and requirements for primary frequency regulation of thermal power units, coal-fired power units, oil-fired power units, solar thermal power units, nuclear power units, hydroelectric power units, new energy power plants, and energy storage power plants. Taking thermal power units as an example, the standard stipulates that the lag time of active power under primary frequency regulation should not exceed 2 seconds; the time for active power to reach 75% of the target power under primary frequency regulation should not exceed 15 seconds, the rise time should not exceed 30 seconds, and the adjustment time of active power should not exceed 45 seconds; the overshoot of active power under primary frequency regulation should not exceed 30%, and the number of oscillations should not exceed 2.

[0004] Regarding the assessment of primary frequency regulation capability under real-time operating conditions, each province has stipulated a primary frequency regulation power contribution index in its detailed management rules for power plant grid connection operation. This index is calculated as the ratio of primary frequency regulation power to theoretical power generation for 15 seconds, 30 seconds, and 45 seconds, respectively. The primary frequency regulation power contribution index varies among provinces.

[0005] Both evaluation methods only require and assess key time points or obvious indicators, but in step tests, the power regulation curve lacks an overall process evaluation method. Summary of the Invention

[0006] This invention provides a method and apparatus for evaluating the primary frequency regulation of generator sets based on dynamic time warping, addressing the problem of the lack of a holistic process evaluation method for power regulation curves in existing technologies. To provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not intended as a general commentary, nor is it intended to identify key / important components or describe the scope of protection of these embodiments. Its sole purpose is to present some concepts in a simple form as a prelude to the detailed description that follows.

[0007] According to a first aspect of the present invention, a method for evaluating the primary frequency regulation of a generator set based on dynamic time warping is provided, comprising:

[0008] Calculate the lag time and settling time of the active power response during the primary frequency regulation process of the generator set, and generate an ideal active power response curve based on the lag time and settling time;

[0009] Obtain the actual active power response curve of the generator set during the primary frequency regulation process, and normalize the actual active power response curve.

[0010] The ideal active power response sequence and the actual active power response sequence are obtained based on the ideal active power response curve and the actual active power response curve, respectively. The DTW calculation matrix is ​​established based on the ideal active power response sequence and the actual active power response sequence, and the DTW distance is calculated.

[0011] The optimal path in the DTW calculation matrix is ​​searched, and the length of the common path in the DTW calculation matrix is ​​calculated based on the optimal path. The distance weighting coefficient is further calculated based on the common path length, and the primary frequency regulation process evaluation score is calculated based on the DTW distance and the distance weighting coefficient. The primary frequency regulation process of the generator set is evaluated based on the primary frequency regulation process evaluation score.

[0012] In one embodiment, the step of generating an ideal active power response curve based on the lag time and settling time further includes:

[0013] The formula for generating the ideal active power response curve is:

[0014]

[0015] In the formula, t is the response time, T = t s -t d , t s To adjust the time, t d This refers to the lag time.

[0016] In one embodiment, the steps of calculating the ideal active power response sequence and the actual active power response sequence to establish the DTW calculation matrix and calculating the DTW distance further include:

[0017] When the lengths of both the ideal active power response sequence and the actual active power response sequence are greater than 0, the sequence distance between the ideal active power response sequence and the actual active power response sequence is first calculated, and then the minimum values ​​of the left neighbor, top neighbor, and top-left neighbor of the DTW calculation matrix are calculated. The sum of the sequence distance and the minimum values ​​of the left neighbor, top neighbor, and top-left neighbor of the matrix is ​​used as the DTW distance.

[0018] In one embodiment, the step of searching for the optimal path in the DTW computation matrix in the method further includes:

[0019] Starting from the last cell of the DTW calculation matrix, compare and select the minimum value of the cell's top-left neighbor, left neighbor, and top neighbor in sequence. Repeat the comparison and selection until the top-left corner of the DTW calculation matrix to obtain the optimal path.

[0020] In one embodiment, the step of calculating the common path length in the DTW calculation matrix based on the optimal path further includes:

[0021] In the optimal path, calculate the sum of the line segments of the continuous path extending from the top left corner to the bottom right corner, and use this sum as the length of the common path.

[0022] In one embodiment, the step of calculating the distance weight coefficient based on the common path length in the method further includes:

[0023] The formula for calculating the distance weighting coefficient is as follows:

[0024]

[0025] In the formula, S p For the optimal path sequence, Len(S) p S is the length of the optimal path sequence. c[i] It is a sequence of common path lengths.

[0026] In one embodiment, the step of calculating the primary frequency modulation process evaluation score based on the DTW distance and distance weighting coefficients further includes:

[0027] The product of the DTW distance and the distance weighting coefficient is used as the evaluation score for the first frequency modulation process.

[0028] In one embodiment, the generator set interacts with the D5000 power grid control system via a dispatch data network.

[0029] In one embodiment, the remote terminal unit of the generator set communicates via fiber optic / IEC104 protocol.

[0030] In one embodiment, the power system synchronization phasor measurement device of the generator set communicates via fiber optic / IEEE C37.118.1 protocol.

[0031] In one embodiment, the generator set communicates with the AGC / primary frequency regulation device via a network cable / IEC104 protocol.

[0032] In one embodiment, the active power data at the grid connection point is returned to the D5000 grid control system via a remote terminal unit or a remote terminal unit.

[0033] In one embodiment, before the step of calculating the lag time and settling time of the active power response during the primary frequency regulation process of the generator set, and generating an ideal active power response curve based on the lag time and settling time, the method further includes:

[0034] The provincial dispatch center sends a signal to enter the remote disturbance test mode for frequency modulation, and the field station responds to confirm the remote frequency modulation test mode within a preset time. Then, the provincial dispatch center sends a frequency modulation disturbance frequency signal, and the field station responds to the actual frequency modulation disturbance frequency measurement.

[0035] According to a second aspect of the present invention, a generator set primary frequency regulation evaluation device based on dynamic time warping is provided.

[0036] In one embodiment, the device includes: an ideal curve generation module, an actual curve acquisition module, a DTW matrix calculation module, and a primary frequency modulation evaluation module; wherein,

[0037] The ideal curve generation module is used to calculate the lag time and settling time of the active power response during the primary frequency regulation process of the generator set, and generate an ideal active power response curve based on the lag time and settling time.

[0038] The actual curve acquisition module is used to obtain the actual active power response curve of the generator set during the primary frequency regulation process and normalize the actual active power response curve.

[0039] The DTW matrix calculation module is used to obtain the ideal active power response sequence and the actual active power response sequence based on the ideal active power response curve and the actual active power response curve, respectively. It then establishes the DTW calculation matrix based on the ideal active power response sequence and the actual active power response sequence, and calculates the DTW distance.

[0040] The primary frequency regulation evaluation module is used to search for the optimal path in the DTW calculation matrix, calculate the common path length in the DTW calculation matrix based on the optimal path, further calculate the distance weight coefficient based on the common path length, and calculate the primary frequency regulation process evaluation score based on the DTW distance and the distance weight coefficient, so as to evaluate the primary frequency regulation process of the generator set based on the primary frequency regulation process evaluation score.

[0041] According to a third aspect of the present invention, a computer device is provided.

[0042] In some embodiments, the computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the method as described in the first aspect.

[0043] According to a fourth aspect of the present invention, a computer-readable storage medium is provided.

[0044] In some embodiments, a computer program is stored on a computer-readable storage medium; the computer program is executed by a processor to implement the steps of the method as described in the first aspect.

[0045] The technical solutions provided by the embodiments of the present invention may include the following beneficial effects:

[0046] To address the issue that existing technologies only require and assess key time points or obvious indicators, but lack a comprehensive process evaluation method for the power regulation curve during step tests, this invention, based on a dynamic time warping (DTW) generator primary frequency regulation evaluation method, can comprehensively evaluate the power regulation curve as a whole during step tests. Furthermore, due to lag time and commissioning time errors, the actual active power regulation sequence may exhibit varying degrees of lengthening, shortening, or shifting. To minimize the impact of this factor, this application introduces a distance weighting coefficient, reducing the influence of inflection points in the DTW matrix (increasing the common path in the DTW matrix) and enhancing the final evaluation effect.

[0047] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description

[0048] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0049] Figure 1 This is a flowchart of the generator set primary frequency regulation evaluation method based on dynamic time warping provided in the embodiments of this application;

[0050] Figure 2 This application provides a schematic diagram of primary frequency modulation response evaluation indicators in its embodiments;

[0051] Figure 3 This is a schematic diagram of a single-frequency modulation remote disturbance test communication method provided in an embodiment of this application;

[0052] Figure 4 This is a schematic diagram of the communication protocol for a single-frequency modulation remote disturbance test provided in an embodiment of this application;

[0053] Figure 5 This is a schematic diagram of the dynamic time planning method provided in the embodiments of this application;

[0054] Figure 6 This is a schematic diagram of the dynamic time planning optimal sequence finding method provided in the embodiments of this application;

[0055] Figure 7 This is a schematic diagram of the method for calculating the common length of the optimal sequence in dynamic time planning provided in the embodiments of this application;

[0056] Figure 8 This is a comparison chart of the application effects of the generator set primary frequency regulation evaluation method provided in the embodiments of this application;

[0057] Figure 9 This is a structural diagram of the generator set primary frequency regulation evaluation device based on dynamic time warping provided in the embodiments of this application;

[0058] Figure 10 This is a schematic diagram of the structure of a computer device according to an exemplary embodiment. Detailed Implementation

[0059] The following description and accompanying drawings fully illustrate specific embodiments described herein to enable those skilled in the art to practice them. Some embodiments may include or substitute parts and features of other embodiments. The scope of the embodiments herein encompasses the entire scope of the claims and all available equivalents thereof. Throughout this document, the terms “first,” “second,” etc., are used only to distinguish one element from another without requiring or implying any actual relationship or order between the elements. Indeed, a first element can also be referred to as a second element, and vice versa. Furthermore, the terms “comprising,” “including,” or any other variations thereof are intended to cover non-exclusive inclusion, such that a structure, apparatus, or device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a structure, apparatus, or device. Without further limitation, an element defined by the phrase “comprising one…” does not exclude the presence of other identical elements in the structure, apparatus, or device that includes said element. The various embodiments described herein are presented in a progressive manner, with each embodiment focusing on its differences from other embodiments; similar or identical parts between embodiments can be referred to interchangeably.

[0060] In this document, unless otherwise stated, the term "multiple" means two or more.

[0061] In the embodiments of this application, lag time refers to the time required for the controlled variable to change to 10% of the step amount in a step test from the start of the step amount; settling time is the shortest time in a step test from the start time until the absolute value of the difference between the controlled variable and the final steady-state value never exceeds 5% of the step amount; step amount refers to the difference between the final steady-state value and the initial value of the controlled variable in a step test; overshoot refers to the percentage of the ratio of the maximum value of the controlled variable to the final steady-state value to the step amount in a step test; rise time refers to the time required for the controlled variable to change to 90% of the step amount in a step test from the start of the step amount; and oscillation count refers to the number of oscillations of the controlled variable within the settling time in a step test.

[0062] like Figure 2 As shown, Figure 2 This is a schematic diagram of the evaluation index for primary frequency modulation response. In the diagram, ΔP is the step value, and M... pFor overshoot, t d For the lag time, t up For the rise time, t s To adjust the time.

[0063] Figure 1 A flowchart of the generator set primary frequency regulation evaluation method based on dynamic time warping of the present invention is shown, as follows: Figure 1 As shown:

[0064] S1: Calculate the lag time and settling time of the active power response during the primary frequency regulation process of the generator set, and generate an ideal active power response curve based on the lag time and settling time.

[0065] In practical implementation, the formula for generating the ideal active power response curve is as follows:

[0066]

[0067] In the formula, t is the response time, T = t s -t d , t s To adjust the time, t d This refers to the lag time.

[0068] S2: Obtain the actual active power response curve of the generator set during the primary frequency regulation process, and normalize the actual active power response curve.

[0069] Based on this, the ideal active power response curve and the actual active power response curve were obtained respectively.

[0070] S3: Obtain the ideal active power response sequence and the actual active power response sequence based on the ideal active power response curve and the actual active power response curve, respectively. Establish the DTW calculation matrix based on the ideal active power response sequence and the actual active power response sequence, and calculate the DTW distance.

[0071] Dynamic time warping (DTW), as a novel similarity metric, can find the best matching path between data in two arbitrary long-term series by adjusting the correspondence between time points. Therefore, in this application, the active power response curve is transformed into a sequence problem.

[0072] In practice, when the lengths of both the ideal active power response sequence and the actual active power response sequence are greater than 0, the sequence distance between the ideal active power response sequence and the actual active power response sequence is first calculated, and then the minimum values ​​of the left neighbor, top neighbor, and top-left neighbor of the DTW calculation matrix are calculated. The sum of the sequence distance and the minimum values ​​of the left neighbor, top neighbor, and top-left neighbor of the matrix is ​​used as the DTW distance.

[0073] Specifically, in this application embodiment, the DTW distance is calculated using the following formula:

[0074]

[0075] In the formula, S1 is the ideal active power response sequence, S2 is the actual active power response sequence, i is the length of S1, and j is the length of S2.

[0076] Therefore, based on the above formula, when the lengths of both the ideal active power response sequence and the actual active power response sequence are greater than 0:

[0077] First, calculate the sequence distance between the ideal active power response sequence and the actual active power response sequence, i.e., (S1[i]-S2[j]). 2 ;

[0078] Next, calculate the minimum values ​​of the left neighbor, top neighbor, and top left neighbor of the DTW computation matrix, i.e., min(dp[i][j-1],dp[i-1][j],dp[i-1][j-1]);

[0079] Finally, the DTW distance is the sum of the sequence distance and the minimum values ​​of the left neighbor, top neighbor, and top left neighbor of the matrix.

[0080] S4: Search for the optimal path in the DTW calculation matrix, calculate the common path length in the DTW calculation matrix based on the optimal path, further calculate the distance weight coefficient based on the common path length, and calculate the primary frequency regulation process evaluation score based on the DTW distance and the distance weight coefficient, so as to evaluate the primary frequency regulation process of the generator set based on the primary frequency regulation process evaluation score.

[0081] In practice, when searching for the best path, starting from the last cell of the DTW calculation matrix, the minimum value of the cell's top-left neighbor, left neighbor, and top neighbor is compared and selected sequentially. This comparison and selection is repeated until the top-left corner of the DTW calculation matrix is ​​reached to obtain the best path.

[0082] Specifically, starting from the last cell of the DTW matrix, the minimum value of the cell's top-left neighbor, left neighbor, and top neighbor is compared and used as part of the optimal path. Step S2 is repeated until the top-left corner of the DTW matrix is ​​reached. Finally, the order of the two cells is reversed to obtain the optimal path sequence.

[0083] In practice, when calculating the common path length in the DTW calculation matrix based on the optimal path, the sum of the line segments of the continuous path extending from the top left corner to the bottom right corner in the optimal path is calculated as the common path length.

[0084] In practice, due to lag time and debugging time errors, the actual active power adjustment sequence may experience varying degrees of lengthening, shortening, or shifting. To minimize the impact of this factor, a distance weighting coefficient is introduced to reduce the influence of inflection points in the DTW matrix (increasing the common path in the DTW matrix). Therefore, when calculating the distance weighting coefficient based on the common path length, the distance weighting coefficient is calculated using the following formula:

[0085]

[0086] In the formula, S p For the optimal path sequence, Len(S) p S is the length of the optimal path sequence. c[i] It is a sequence of common path lengths.

[0087] In practice, the product of the DTW distance and the distance weighting coefficient is ultimately used as the evaluation score for the first frequency modulation process.

[0088] After calculating the evaluation score of the primary frequency regulation process, the primary frequency regulation process of the generator set is evaluated based on the score.

[0089] In summary, the embodiments of this application first calculate the lag time of the active power response during the primary frequency regulation process of the generator set; calculate the settling time of the active power response during the primary frequency regulation process of the generator set; generate an ideal active power response curve based on the actual measured lag time and settling time; normalize the actual active power response curve of the primary frequency regulation process of the generator set; calculate the DTW distance between the actual active power response sequence and the ideal active power response sequence during the primary frequency regulation process of the generator set; search for the optimal path in the DTW calculation matrix; calculate the common path length in the DTW calculation matrix; calculate the distance weighting coefficient based on the common path length; and multiply by the DTW distance and the distance weighting coefficient to obtain the final evaluation score of the primary frequency regulation process.

[0090] Please see Figure 3 , Figure 3 This is a schematic diagram of the communication method for remote disturbance testing of primary frequency regulation provided in this application embodiment. In specific implementation, the generator set interacts with the D5000 power grid control system through the dispatch data network. The Remote Terminal Unit (RTU) communicates via fiber optic / IEC104 protocol, and the Power System Synchronization Phasor Measurement Unit (PMU) communicates via fiber optic / IEEE C37.118.1 protocol. Internally, the generator set communicates with the AGC / primary frequency regulation device via network cable / IEC104 protocol. Active power data at the grid connection point is generally returned to the power grid control system via the RTU or PMU.

[0091] In some embodiments of this application, before performing the aforementioned step S1, a communication process for a remote primary frequency regulation disturbance test of the generator set is first performed. Figure 4 This is a schematic diagram of the communication protocol for a single-frequency modulation remote disturbance test provided in an embodiment of this application, as shown below. Figure 4 As shown:

[0092] The primary frequency regulation enters / exits the remote disturbance test mode. This signal is issued by the provincial dispatch center and switches the primary frequency regulation function of the station to the field / test mode. In the test state, the primary frequency regulation function of the station exits actual operation and no longer responds in real time according to changes in the grid frequency. Instead, it takes corresponding actions based on the issued disturbance frequency value. To ensure that the station's actions are not affected by AGC commands during the test, AGC will not issue new control commands to the test station during the test, that is, the master station side blocks AGC commands during the test.

[0093] Confirmation and response for the primary frequency modulation remote test mode; after the provincial dispatch master station sends the signal for entering / exiting the primary frequency modulation remote disturbance test mode to the field station, the field station returns the status signal to the provincial dispatch through the RTU device within the specified time (15s for thermal power plants) to achieve the response. The disturbance frequency can only be sent if the signal status of the master station and the field station are consistent.

[0094] Send a primary frequency modulation (FM) disturbance frequency; this signal is sent by the provincial dispatch center. After receiving the signal, the station adjusts the load accordingly based on the disturbance frequency response to test the station's performance in adjusting the FM load. When exiting the test state, the master station must automatically return the disturbance frequency value to 50Hz.

[0095] The measured response to the frequency disturbance is as follows: This signal is an analog signal, which is the disturbance frequency signal returned by the RTU device of the field station to the provincial dispatch center. It should be consistent with the value sent by the master station.

[0096] Specifically, this application provides an example to illustrate the method of this application in detail.

[0097] Figure 5 This is a schematic diagram of the dynamic time planning method provided in the embodiments of this application, such as... Figure 5 As shown in the figure, sequence S1 is [1, 2, 0, 1, 2, 2, 0, 1, 1, 2, 0, 1, 1, 2, 0, 1], and sequence S2 is [1, 1, 1, 2, 0, 0, 1, 2, 0, 1, 2, 2, 0, 1, 1, 2]. The darker the color in the figure, the smaller the DTW distance; the lighter the color, the larger the DTW distance.

[0098] Figure 6 This is a schematic diagram of the dynamic time planning optimal sequence finding method provided in the embodiments of this application, such as... Figure 6As shown, the last cell of the DTW matrix is ​​Distance

[15]

[15] . (15, 15) is included in the optimal path sequence S. p S p =[(15,15)]. Compare Distance

[14]

[14] , Distance

[14]

[15] , and Distance

[15]

[14] sequentially, and include the cell with the smallest value in the optimal path sequence. At this point, Distance

[14]

[14] and Distance

[14]

[15] are both 1.4, and Distance

[15]

[14] is 2. Therefore, Distance

[14]

[14] is included in the optimal path sequence. At this point, S p =[(15, 15)(14, 14)]. Repeat the above steps until Distance[0][0] is reached, and the result is obtained. Figure 6 The middle broken line path, i.e., S p =[(15, 15)(14, 14)...(0, 0)]. Finally, reverse the order of the optimal path sequence to obtain S. p = [(0, 0)...(14, 14)(15, 15)].

[0099] Figure 7 This is a schematic diagram illustrating the method for calculating the common length of the optimal sequence in dynamic time programming provided in this application embodiment. It represents the sum of the lengths of all line segments along the path continuously extending from the top left corner to the bottom right corner in the optimal path. That is... Figure 6 The sequence from Distance[2][0] to Distance[4][2] has a length of 2; the sequence from Distance[5][2] to Distance[7][4] has a length of 2. Other common paths are processed in the same way. The final common sequence is from Distance

[13]

[13] to Distance

[15]

[15] , with a length of 2. The final common path length sequence S is obtained. c = [2, 2...2].

[0100] When calculating the distance weighting coefficient based on the common path length, the distance weighting coefficient is calculated using the following formula:

[0101]

[0102] In the formula, S p For the optimal path sequence, Len(S) p S is the length of the optimal path sequence. c[i] It is a sequence of common path lengths.

[0103] The product of the DTW distance and the distance weighting coefficient is used as the evaluation score for the first frequency modulation process. Specifically, the evaluation score for the first frequency modulation process is...

[0104] Score=w×Distance[Len(S1)-1][Len(S2)-1].

[0105] In practice, Distance[Len(S1)-1][Len(S2)-1] is the value of the bottom right cell of the DTW matrix.

[0106] Figure 8 This is a comparison chart of the application effects of the generator set primary frequency regulation evaluation method provided in this application embodiment, showing the scores of four typical scenarios in the primary frequency regulation test. In Test 1, the actual active power regulation curve is relatively close to the ideal active power regulation curve, with a score of 0.0614. In Test 2, compared with the ideal active power regulation curve, the actual active power regulation curve has a small overshoot and oscillation, with a score of 0.1596. In Test 3, compared with the ideal active power regulation curve, the actual active power regulation curve has a large overshoot and oscillation, with a score of 0.5602. In Test 4, the adjustment time of the actual active power regulation curve is different from that of the ideal active power regulation curve, with a score of 0.0690.

[0107] The comparison shows that the greater the deviation between the actual active power regulation curve and the ideal active power regulation curve, the higher the score; conversely, the smaller the deviation, the lower the score. The evaluation method can effectively assess the quality of the actual active power regulation curve.

[0108] The comparison shows that the stretching of the actual active power regulation curve caused by the calculation error of the adjustment time has little impact on the evaluation of the actual active power regulation curve.

[0109] It should be understood that although the steps in the flowchart are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order constraint on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the diagram may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0110] Please see Figure 9 One embodiment of this application provides a generator set primary frequency regulation evaluation device based on dynamic time warping, including an ideal curve generation module 10, an actual curve acquisition module 20, a DTW matrix calculation module 30, and a primary frequency regulation evaluation module 40; wherein,

[0111] The ideal curve generation module 10 is used to calculate the lag time and settling time of the active power response during the primary frequency regulation process of the generator set, and to generate an ideal active power response curve based on the lag time and settling time.

[0112] The actual curve acquisition module 20 is used to obtain the actual active power response curve of the generator set during the primary frequency regulation process and normalize the actual active power response curve.

[0113] The DTW matrix calculation module 30 is used to obtain the ideal active power response sequence and the actual active power response sequence based on the ideal active power response curve and the actual active power response curve, respectively, to establish the DTW calculation matrix based on the ideal active power response sequence and the actual active power response sequence, and to calculate the DTW distance.

[0114] The primary frequency regulation evaluation module 40 is used to search for the optimal path in the DTW calculation matrix, calculate the common path length in the DTW calculation matrix based on the optimal path, further calculate the distance weight coefficient based on the common path length, and calculate the primary frequency regulation process evaluation score based on the DTW distance and the distance weight coefficient, so as to evaluate the primary frequency regulation process of the generator set based on the primary frequency regulation process evaluation score.

[0115] For specific limitations regarding the aforementioned generator set primary frequency regulation evaluation device based on dynamic time warping, please refer to the limitations of the generator set primary frequency regulation evaluation method based on dynamic time warping mentioned above, which will not be repeated here. Each module in the aforementioned generator set primary frequency regulation evaluation device based on dynamic time warping can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0116] In another embodiment of this application, a computer device is provided, which may be a server, and its internal structure diagram may be as follows. Figure 10 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database stores static and dynamic information data. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements the steps in the above method embodiments.

[0117] Those skilled in the art will understand that Figure 10 The structure shown is merely a block diagram of a portion of the structure related to the present invention and does not constitute a limitation on the computer device to which the present invention is applied. A specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0118] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the method embodiments described above.

[0119] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. Any references to memory, storage, databases, or other media used in the embodiments provided by this invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0120] This invention is not limited to the structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this invention is limited only by the appended claims.

Claims

1. A method for evaluating the primary frequency regulation of a generator set based on dynamic time warping, characterized in that, include: Calculate the lag time and settling time of the active power response during the primary frequency regulation process of the generator set, and generate an ideal active power response curve based on the lag time and settling time; Obtain the actual active power response curve of the generator set during the primary frequency regulation process, and normalize the actual active power response curve. Based on the ideal active power response curve and the actual active power response curve, the ideal active power response sequence and the actual active power response sequence are obtained respectively. The DTW calculation matrix is ​​established based on the ideal active power response sequence and the actual active power response sequence, and the DTW distance is calculated. The optimal path in the DTW calculation matrix is ​​searched, the length of the common path in the DTW calculation matrix is ​​calculated based on the optimal path, the distance weight coefficient is further calculated based on the common path length, and the primary frequency regulation process evaluation score is calculated based on the DTW distance and the distance weight coefficient, so as to evaluate the primary frequency regulation process of the generator set based on the primary frequency regulation process evaluation score.

2. The generator set primary frequency regulation evaluation method based on dynamic time warping according to claim 1, characterized in that, The step of generating an ideal active power response curve based on the lag time and the settling time further includes: The formula for generating the ideal active power response curve is as follows: In the formula, t is the response time, T = t s -t d , t s To adjust the time, t d This refers to the lag time.

3. The generator set primary frequency regulation evaluation method based on dynamic time warping according to claim 2, characterized in that, The steps of calculating the ideal active power response sequence and the actual active power response sequence to establish the DTW calculation matrix, and calculating the DTW distance, further include: When the lengths of both the ideal active power response sequence and the actual active power response sequence are greater than 0, the sequence distance between the ideal active power response sequence and the actual active power response sequence is first calculated, and then the minimum values ​​of the left neighbor, top neighbor, and top-left neighbor of the DTW calculation matrix are calculated. The sum of the sequence distance and the minimum values ​​of the left neighbor, top neighbor, and top-left neighbor of the matrix is ​​taken as the DTW distance.

4. The generator set primary frequency regulation evaluation method based on dynamic time warping according to claim 3, characterized in that, The step of searching for the optimal path in the DTW computation matrix further includes: Starting from the last cell of the DTW calculation matrix, the minimum value of the cell's top-left neighbor, left neighbor, and top neighbor is compared and selected sequentially. This comparison and selection is repeated until the top-left corner of the DTW calculation matrix is ​​reached to obtain the optimal path.

5. The generator set primary frequency regulation evaluation method based on dynamic time warping according to claim 4, characterized in that, The step of calculating the common path length in the DTW calculation matrix based on the optimal path further includes: The sum of the line segments of the continuous path extending from the top left corner to the bottom right corner in the optimal path is calculated as the length of the common path.

6. The generator set primary frequency regulation evaluation method based on dynamic time warping according to claim 5, characterized in that, The step of calculating the distance weight coefficient based on the common path length further includes: The formula for calculating the distance weighting coefficient is as follows: In the formula, S p For the optimal path sequence, Len(S) p S is the length of the optimal path sequence. c[i] It is a sequence of common path lengths.

7. The generator set primary frequency regulation evaluation method based on dynamic time warping according to claim 6, characterized in that, The step of calculating the evaluation score of the primary frequency modulation process based on the DTW distance and the distance weighting coefficient further includes: The product of the DTW distance and the distance weighting coefficient is used as the evaluation score for the first frequency modulation process.

8. The generator set primary frequency regulation evaluation method based on dynamic time warping according to claim 1, characterized in that, The generator set interacts with the D5000 power grid control system through the dispatch data network.

9. The generator set primary frequency regulation evaluation method based on dynamic time warping according to claim 8, characterized in that, The remote terminal unit of the generator set communicates via fiber optic / IEC104 protocol.

10. The generator set primary frequency regulation evaluation method based on dynamic time warping according to claim 9, characterized in that, The power system synchronization phasor measurement device of the generator set communicates via optical fiber / IEEE C37.118.1 protocol.

11. The generator set primary frequency regulation evaluation method based on dynamic time warping according to claim 10, characterized in that, The generator set communicates with the AGC / primary frequency regulation device via a network cable / IEC104 protocol.

12. The generator set primary frequency regulation evaluation method based on dynamic time warping according to claim 11, characterized in that, The active power data at the grid connection point is returned to the D5000 power grid control system via the remote terminal unit or the remote terminal unit.

13. The generator set primary frequency regulation evaluation method based on dynamic time warping according to any one of claims 1-12, characterized in that, Before the step of calculating the lag time and settling time of the active power response during the primary frequency regulation process of the generator set, and generating an ideal active power response curve based on the lag time and settling time, the method further includes: The provincial dispatch center sends a signal to enter the remote disturbance test mode for frequency modulation, and the field station responds to the confirmation of the remote frequency modulation test mode within a preset time. Then, the provincial dispatch center sends a frequency modulation disturbance frequency signal, and the field station responds to the actual measurement of the frequency modulation disturbance frequency.

14. A generator set primary frequency regulation evaluation device based on dynamic time warping, characterized in that, It includes an ideal curve generation module, an actual curve acquisition module, a DTW matrix calculation module, and a primary frequency modulation evaluation module; among which, The ideal curve generation module is used to calculate the lag time and adjustment time of the active power response during the primary frequency regulation process of the generator set, and generate an ideal active power response curve based on the lag time and adjustment time. The actual curve acquisition module is used to obtain the actual active power response curve of the generator set during the primary frequency regulation process and normalize the actual active power response curve. The DTW matrix calculation module is used to obtain the ideal active power response sequence and the actual active power response sequence based on the ideal active power response curve and the actual active power response curve, respectively, to establish the DTW calculation matrix based on the ideal active power response sequence and the actual active power response sequence, and to calculate the DTW distance. The primary frequency regulation evaluation module is used to search for the optimal path in the DTW calculation matrix, calculate the length of the common path in the DTW calculation matrix based on the optimal path, further calculate the distance weight coefficient based on the common path length, and calculate the primary frequency regulation process evaluation score based on the DTW distance and the distance weight coefficient, so as to evaluate the primary frequency regulation process of the generator set based on the primary frequency regulation process evaluation score.

15. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1-13.

16. A computer-readable storage medium, characterized in that, It stores a computer program thereon; the computer program is executed by a processor to implement the method as described in any one of claims 1-13.

Citation Information

Patent Citations

  • Wind turbine generator harmonic evaluation method and system based on dynamic time warping

    CN112067893A

  • Image similarity evaluation method and system based on local feature alignment

    CN114091550A