Line loss calculation method and system of self-adaptive sliding window based on line connection

By establishing a metering device at the contact point of the medium voltage distribution line and analyzing the line topology structure, the adaptive sliding window method is used to calculate the line loss, which solves the problem of inaccurate real-time online high-frequency calculation in the traditional method, and accurately monitors and manages the line loss of the power grid, improving the economic and reliability of the power grid operation.

CN119574968APending Publication Date: 2025-03-07GUIZHOU POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411770536.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

The prior art is difficult to monitor and calculate the line loss in real time after the medium voltage distribution line is connected, and traditional methods have problems such as collecting data tails and small power, resulting in inaccurate online high-frequency calculations in real time.

Method used

The line loss calculation method of the adaptive sliding window based on line connection is adopted, and the measurement device is established through the line contact point, data is collected and line topology is analyzed, the line loss of the adaptive sliding window is calculated, and the calculation results are applied and optimized, and the time window is dynamically adjusted to adapt to the influence of the tail-stopping power.

Benefits of technology

It realizes accurate monitoring and management of power grid line loss, improves the accuracy and sensitivity of line loss calculation, reduces errors caused by reading accuracy limitations, and enhances the economical and reliability of power grid operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119574968A_ABST
    Figure CN119574968A_ABST
Patent Text Reader

Abstract

The invention discloses a line loss calculation method of a self-adaptive sliding window based on line connection. The method comprises the following steps: establishing a line contact point metering device and acquiring data; calculating self-adaptive sliding window line loss according to the collected data; and applying and optimizing an adaptive sliding window line loss calculation result. The method has the beneficial effects that line abnormity can be found in time through real-time line loss calculation, so that quick response is realized, and economic loss is reduced; according to the method, independent line loss calculation is carried out on each line, the sensitivity of line loss calculation is improved, and the line loss analysis method is more flexible by combining the input and output electric quantities of all lines and the contact points between the input and output electric quantities; through the dynamic adjustment of the self-adaptive sliding window, the continuous monitoring of the line loss is realized, and the continuity and real-time performance of the line loss management are improved. The accurate monitoring and management of the line loss of the power grid are realized, and the operation efficiency and economy of the power grid are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power system line loss calculation, and in particular to a line loss calculation method and system based on a line connection adaptive sliding window. Background Art

[0002] With the rapid economic development and the acceleration of urbanization, higher requirements are placed on the reliability and stability of power supply. In power grid management, the metering and line loss calculation of line connection points are key links to ensure the economic operation of the power grid and the reliability of power supply. However, the existing technology has many shortcomings in this field. First, the traditional line loss calculation method adopts the line packaging method to calculate the line losses of interconnected lines together. This method increases the line loss calculation unit and reduces the sensitivity of line loss calculation. In this mode, it is difficult to detect customer power theft or metering device anomalies in the line, resulting in economic losses to the power grid and affecting the fairness of electricity use. In addition, line loss is an important indicator for measuring the economic operation of the line and the main basis for power grid planning. Due to the inaccuracy of the calculation method, the availability of line loss data is not high, which has an adverse impact on the management and investment decisions of power supply companies and causes waste of resources.

[0003] Although metering devices for medium and low distribution lines have become popular, due to unreasonable ratio configuration, large fluctuations in customer load, low line load and other issues, traditional line loss calculations are performed at fixed time intervals, and there are problems such as meter collection rounding and meter codes being too small, resulting in abnormal line loss calculations. This calculation method not only affects fault analysis and maintenance, but also causes unnecessary waste of manpower and economic investment. In order to increase the reliability of line loss calculations, some units have increased the calculation time, but this practice delays the timeliness of discovering line or equipment abnormalities, causing passive effects on emergency repairs and electricity theft prevention, and is not applicable to lines with a large number of seasonal load customers. In the context of carbon metering and carbon monitoring, the accuracy of real-time data converted from electricity to carbon factors cannot be guaranteed, and may even cause errors. Summary of the invention

[0004] In view of the problems existing in the prior art, the present invention is proposed.

[0005] Therefore, the problem to be solved by the present invention is how to monitor and calculate the branch line loss in real time online after the medium voltage distribution line is connected, and solve the problem of inaccurate real-time online high-frequency calculation of branch line loss due to rounding of collected data and small electricity.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0007] In a first aspect, an embodiment of the present invention provides a line loss calculation method based on an adaptive sliding window of line connection, which includes the establishment of a line connection point metering device and data collection; calculating the adaptive sliding window line loss based on the collected data; and applying and optimizing the adaptive sliding window line loss calculation results.

[0008] As a preferred solution of the line loss calculation method based on the adaptive sliding window of line connection described in the present invention, the establishment and data collection of the metering device at the line connection point includes collecting the metering device data of the line connection point and each branch line, including the power reading, inflow and outflow direction and corresponding multiplier of each metering point, analyzing the line topology, determining the connection relationship between the lines, and clarifying the power flow direction between the metering points.

[0009] As a preferred solution of the line loss calculation method based on the line connection adaptive sliding window of the present invention, wherein: the adaptive sliding window line loss is calculated according to the collected data, including the real-time line loss calculation of the sub-line;

[0010] Real-time line loss calculation for each line is based on line topology and power flow direction, and independent line loss calculation is performed for each line;

[0011] When there are i lines (i≥1) and j customers (j≥1), the calculation formula of line loss rate needs to consider the input and output power of all lines and the contact points between them. The assessment table power of each line is WA i ;

[0012] The power consumption of the jth customer on the i-th line is WA ij ; The energy meter power WA at the contact point between the i-th line and the k-th line ik ,So,

[0013] Total input power S in Including the assessment table electricity of all lines and the electricity flowing into the contact point, that is:

[0014]

[0015] Total output power S out Includes electricity consumption by all customers on all lines, i.e.:

[0016]

[0017] The line loss △W is:

[0018] △W=S in -S out

[0019] The line loss rate L is:

[0020]

[0021] Between some lines without direct contact, WA ik =0;

[0022] The number of customers j varies on different lines, so when calculating the total output power, it is necessary to calculate the sum of customer power consumption for each line.

[0023] As a preferred solution of the line loss calculation method based on the line connection adaptive sliding window of the present invention, wherein: the adaptive sliding window line loss is calculated according to the collected data, and the impact analysis of rounding off electricity is also included;

[0024] The impact analysis of tail electricity is to calculate the tail electricity generated by each metering point due to the limitation of reading accuracy, and set the tolerance of the impact of tail electricity on line loss calculation;

[0025] When there are i lines (i≥1) and j customers (j≥1), the comprehensive multiple of the electric energy meter at the contact point between the i-th line and the k-th line is ML ik ;

[0026] For each line, calculate the customer's electricity meter round-off power △W 1i And the rounded-off quantity of the meter code △W 2i , where M ij is the comprehensive multiple of the jth customer's electric energy meter on the i-th line,

[0027]

[0028] The number of customers j varies on different lines. Therefore, when calculating the rounded-off electricity, it is necessary to calculate the sum of the comprehensive multiples of the customer's electricity meter for each line.

[0029] As a preferred solution of the line loss calculation method based on the line connection adaptive sliding window of the present invention, wherein: the adaptive sliding window line loss is calculated according to the collected data, and also includes adaptive sliding window determination;

[0030] Adaptive sliding window determination is to dynamically determine the time window for line loss calculation based on the set tolerance for the impact of tail-end electricity. By comparing the relationship between the accumulated electricity and the tail-end electricity within several collection cycles from the current time point forward, the minimum time window that meets the preset tolerance is found.

[0031] The starting point of the adaptive sliding window is the earliest collection point that meets the conditions, and the end point is the current time point;

[0032] When there are i lines (i≥1) and j customers (j≥1), the power consumption of the i-th line is WAO i , the comprehensive multiple of the i-th line assessment table is MAi ,

[0033] For each line, calculate the power supply △W within the line loss calculation window i , ensure that the impact rate of tail electricity on line loss is no more than 0.2%, n and m are the nth and mth collection points of the energy meter, n and m are positive integers, and n>m,

[0034]

[0035] and,

[0036] For each line, calculate the line loss rate L i ,

[0037]

[0038] Between some lines without direct contact, WA ik =0;

[0039] When calculating the line loss at point n, the value interval is reasonably calculated based on the above conditions. If the value of the electric energy meter is extended forward by X collection intervals at least, the time window is X data collection cycles, and the slip time is the collection interval.

[0040] As a preferred solution of the line loss calculation method based on the line connection adaptive sliding window of the present invention, wherein: applying and optimizing the line loss calculation result of the adaptive sliding window includes applying the line loss calculation result of the adaptive sliding window including using the line loss rate L calculation formula to calculate the line loss rate L within the determined adaptive sliding window. i Calculation can achieve more accurate real-time line loss monitoring.

[0041] As a preferred solution of the line loss calculation method based on the line connection adaptive sliding window described in the present invention, wherein: applying and optimizing the adaptive sliding window line loss calculation results, including optimizing the adaptive sliding window line loss calculation results, including when new collected data is generated, the time window will slide forward, and readjust the window size according to the impact of rounded-off electricity, so as to realize continuous line loss calculation.

[0042] In a second aspect, an embodiment of the present invention provides a line loss calculation system based on an adaptive sliding window of line connection, which includes a data acquisition and storage module, an adaptive sliding window line loss calculation module and an adaptive sliding window determination and optimization module;

[0043] The data acquisition and storage module is used to collect metering device data of line connection points and branch lines, including the power reading, inflow and outflow direction and corresponding magnification of each metering point. The module analyzes the line topology, determines the connection relationship between lines, clarifies the power flow direction between each metering point, and processes these data in real time and stores them on the cloud computing platform for further line loss calculation and analysis.

[0044] The adaptive sliding window line loss calculation module calculates the line loss of each line independently based on the line topology and power flow direction, and calculates the total input power and total output power based on the input and output power of all lines and the contact points between them, and derives the line loss amount and line loss rate accordingly;

[0045] The adaptive sliding window determination and optimization module dynamically determines the time window for line loss calculation according to the set tolerance for the impact of tail-end electricity, and finds the minimum time window that meets the preset tolerance by comparing the relationship between the accumulated electricity and the tail-end electricity within several collection cycles from the current time point forward, and determines the starting and ending points of the window accordingly.

[0046] In a third aspect, an embodiment of the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein: when the computer program instructions are executed by the processor, the steps of the line loss calculation method based on the adaptive sliding window of line connection as described in the first aspect of the present invention are implemented.

[0047] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program instructions are executed by a processor, the steps of the line loss calculation method based on the adaptive sliding window of line connection as described in the first aspect of the present invention are implemented.

[0048] The beneficial effects of the present invention are as follows: by accurately collecting data from each metering point, the power flow and power distribution can be analyzed more accurately; by real-time line loss calculation, line anomalies can be discovered in time, thereby responding quickly and reducing economic losses; by performing independent line loss calculations on each line, the sensitivity of line loss calculations is improved, and the input and output power of all lines and the contact points between them are combined to make the line loss analysis method more flexible; by dynamic adjustment of the adaptive sliding window, continuous monitoring of line loss is achieved, and the continuity and real-time nature of line loss management are improved; by considering the impact of rounded power on line loss calculation and setting tolerance, the error caused by reading accuracy limitations can be reduced, and the accuracy of line loss calculation can be improved. The present invention realizes accurate monitoring and management of power grid line losses through accurate data collection, real-time line loss calculation, and the application and optimization of adaptive sliding windows, thereby improving the operating efficiency and economy of the power grid. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions of 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.

[0050] Figure 1 A flow chart of a line loss calculation method based on an adaptive sliding window of line connection;

[0051] Figure 2 A computer device diagram for a line loss calculation method based on an adaptive sliding window of line connection;

[0052] Figure 3 Schematic diagram of the metering connection of three lines based on the line loss calculation method of the adaptive sliding window of line connection. DETAILED DESCRIPTION

[0053] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.

[0054] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0055] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0056] Example 1

[0057] Reference Figure 1-2 , which is the first embodiment of the present invention, provides a line loss calculation method based on an adaptive sliding window of line connection, comprising:

[0058] S1: Establishment and data collection of metering devices at line contact points;

[0059] Furthermore, the establishment and data collection of metering devices at line connection points include collecting metering device data at line connection points and each branch line, including the power readings, inflow and outflow directions and corresponding multipliers of each metering point, analyzing the line topology, determining the connection relationship between lines, and clarifying the power flow direction between each metering point.

[0060] It should be noted that the metering device at the line connection installation point clarifies the scope of data collection, which includes not only each branch line, but more importantly, the metering data of the line connection point. The collection of connection point data solves the problem that the traditional line loss calculation method cannot accurately handle the power exchange between lines; the recording of "inflow and outflow direction" ensures the accuracy of power flow and avoids calculation errors caused by confusion of positive and negative signs; "multiplier" refers to the multiplier of the current transformer and voltage transformer, which is used to convert the collected secondary side data into the actual value of the primary side.

[0061] It should also be noted that the data collected at the line contact points include power readings, inflow and outflow directions, and multiples. These data are the basis for line loss calculations and can accurately reflect the operating status of the power system. By collecting metering device data at line contact points and branch lines, analyzing line topology and power flow, the connection relationship between lines can be determined more accurately, fully reflecting the power exchange between lines, solving the problem of large calculation errors caused by ignoring contact point data in traditional line loss calculations, and laying the foundation for more accurate line loss calculations.

[0062] S2: Calculating the adaptive sliding window line loss according to the collected data;

[0063] Further, the adaptive sliding window line loss is calculated based on the collected data, including the real-time line loss calculation of the sub-lines;

[0064] The real-time line loss calculation of the sub-lines is based on the line topology and power flow direction, and an independent line loss calculation is performed on each line;

[0065] When there are i lines (i≥1) and j customers (j≥1), the calculation formula of line loss rate needs to consider the input and output power of all lines and the contact points between them. The assessment table power of each line is WA i ; The power consumption of the jth customer on the i-th line is WA ij ; The energy meter power WA at the contact point between the i-th line and the k-th line ik ,So,

[0066] Total input power S in Including the assessment table electricity of all lines and the electricity flowing into the contact point, that is:

[0067]

[0068] Total output power S out Includes electricity consumption by all customers on all lines, i.e.:

[0069]

[0070] The line loss △W is:

[0071] △W=S in -S out

[0072] The line loss rate L is:

[0073]

[0074] Between some lines without direct contact, WA ik =0;

[0075] The number of customers j varies on different lines, so when calculating the total output power, it is necessary to calculate the sum of customer power consumption for each line.

[0076] Furthermore, the adaptive sliding window line loss is calculated based on the collected data, and the impact analysis of the rounded-off electricity is also included;

[0077] The analysis of the impact of tail-off electricity is to calculate the tail-off electricity generated by each metering point due to the limitation of reading accuracy, and set the tolerance of the impact of tail-off electricity on line loss calculation;

[0078] When there are i lines (i≥1) and j customers (j≥1), the comprehensive multiple of the electric energy meter at the contact point between the i-th line and the k-th line is ML ik ;

[0079] For each line, calculate the customer's electricity meter round-off power △W 1i And the rounded-off quantity of the meter code △W 2i , where M ij is the comprehensive multiple of the jth customer's electric energy meter on the i-th line,

[0080]

[0081] The number of customers j varies on different lines. Therefore, when calculating the rounded-off electricity, it is necessary to calculate the sum of the comprehensive multiples of the customer's electricity meter for each line.

[0082] It should be noted that the adaptive sliding window line loss calculation is able to dynamically adjust the calculation window according to the actual rounding power impact, thereby improving the accuracy of line loss calculation and solving the rounding error problem that may be caused by the traditional fixed window. By dynamically adjusting the window size, the line loss calculation is closer to the actual power loss, thereby improving the accuracy of line loss management.

[0083] It should also be noted that the tail quantity refers to the amount of electricity that cannot be measured due to the limitation of the reading accuracy of the electricity meter. The analysis of the impact of tail quantity is to be able to identify and quantify the impact of the tail quantity caused by the limitation of the reading accuracy on the line loss calculation. By calculating the tail quantity, its impact on the line loss calculation can be quantified.

[0084] Further, calculating the adaptive sliding window line loss according to the collected data also includes adaptive sliding window determination;

[0085] The adaptive sliding window determination is to dynamically determine the time window for line loss calculation according to the set tolerance for the impact of tail-end electricity, and find the minimum time window that meets the preset tolerance by comparing the relationship between the accumulated electricity within a number of collection cycles from the current time point forward and the tail-end electricity;

[0086] The starting point of the adaptive sliding window is the earliest collection point that meets the conditions, and the ending point is the current time point;

[0087] When there are i lines (i≥1) and j customers (j≥1), the power consumption of the i-th line is WAO i , the comprehensive multiple of the i-th line assessment table is MA i ;

[0088] For each line, calculate the power supply △W within the line loss calculation window i , ensure that the impact rate of tail electricity on line loss is no more than 0.2%, n and m are the nth and mth collection points of the energy meter, n and m are positive integers, and n>m,

[0089]

[0090] and,

[0091] For each line, calculate the line loss rate L i ,

[0092]

[0093] Between some lines without direct contact, WA ik =0;

[0094] When calculating the line loss at point n, the value interval is reasonably calculated based on the above conditions. If the value of the electric energy meter is extended forward by X acquisition intervals, the time window is X data acquisition cycles, and the slip time is the acquisition interval.

[0095] It should be noted that the power of each line is WA i , the flow from the line to the customer is positive, with a "+" after the identification symbol, and the reverse direction is negative, with a "-" after the identification symbol; the power consumption of the jth customer on the i-th line is WAij , the flow from the line to the customer is positive, with "+" added after the identification symbol, and the reverse is negative, with "-" added after the identification symbol; the energy meter power WA at the contact point between the i-th line and the k-th line ik , the inflow line is positive, add "+" after the identification symbol, the reverse direction is negative, add "-" after the identification symbol.

[0096] It should also be noted that by setting tolerance, comparing the accumulated electricity with the tail-cut electricity, determining the size of the sliding window, and ensuring the impact threshold of the tail-cut electricity, it is crucial to improving the economy and reliability of the power system.

[0097] It should also be noted that by comparing the actual rounded-off electricity with the set threshold, the size of the calculation window is dynamically adjusted to achieve high-frequency calculation of line loss and improve the sensitivity and accuracy of line loss calculation.

[0098] S3: Application and optimization of adaptive sliding window line loss calculation results

[0099] Further, applying and optimizing the adaptive sliding window line loss calculation results, including applying the adaptive sliding window line loss calculation results including using the line loss rate L calculation formula, performing line loss rate L in the determined adaptive sliding window i Calculation can achieve more accurate real-time line loss monitoring.

[0100] Furthermore, the adaptive sliding window line loss calculation results are applied and optimized, including optimizing the adaptive sliding window line loss calculation results, including that when new collected data is generated, the time window will slide forward, and the window size will be readjusted according to the impact of rounded electricity, so as to realize continuous line loss calculation.

[0101] It should be noted that the optimization of adaptive sliding window line loss calculation is to achieve continuous line loss calculation. As new data is generated, the time window slides forward and readjusts to adapt to changes in the power system. This dynamic adjustment mechanism makes line loss monitoring more real-time and continuous, which helps to timely discover and deal with power loss problems, thereby improving the operating efficiency and economic benefits of the power grid.

[0102] Furthermore, the present embodiment also provides a line loss calculation system based on an adaptive sliding window of line connection, including a data acquisition and storage module, an adaptive sliding window line loss calculation module and an adaptive sliding window determination and optimization module;

[0103] The data acquisition and storage module is used to collect metering device data of the line connection point and each branch line, including the power reading, inflow and outflow direction and corresponding magnification of each metering point. The module analyzes the line topology, determines the connection relationship between the lines, clarifies the power flow direction between each metering point, and processes these data in real time and stores them in the cloud computing platform for further line loss calculation and analysis;

[0104] The adaptive sliding window line loss calculation module performs independent line loss calculation for each line based on line topology and power flow direction, and calculates the total input power and total output power by combining the input and output power of all lines and the contact points between them, and accordingly obtains the line loss amount and line loss rate;

[0105] The adaptive sliding window determination and optimization module dynamically determines the time window for line loss calculation according to the set tolerance for the impact of tail-end electricity, and finds the minimum time window that meets the preset tolerance by comparing the relationship between the accumulated electricity and the tail-end electricity within several collection cycles from the current time point forward, and determines the starting point and end point of the window accordingly.

[0106] This embodiment also provides a computer device, which is applicable to the line loss calculation method based on the adaptive sliding window of line connection, including a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions to implement the line loss calculation method based on the adaptive sliding window of line connection proposed in the above embodiment.

[0107] The computer device may be a terminal, and the computer device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

[0108] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the method for calculating line loss based on the adaptive sliding window of line connection proposed in the above embodiment is implemented.

[0109] In summary, the present invention discloses a line loss calculation method based on an adaptive sliding window of line connection. By measuring data with a metering device at a line connection point, real-time online monitoring of line loss can be accurately realized, thereby avoiding the poor sensitivity of line loss calculation caused by line bundling, power theft, metering device abnormalities, high actual line loss and other difficult-to-find problems, effectively solving the problems of low precision and poor real-time performance existing in traditional line loss calculation methods, and realizing more accurate and real-time line loss monitoring. By introducing a sliding dynamic time window calculation into the line loss calculation, the line loss calculation frequency and the collection frequency can be synchronized, and the problem of the rounding of collected data, the influence of too short a time and too small a table code on the line loss calculation can be solved. At the same time, the problem of poor sensitivity of line loss monitoring due to too long a line loss calculation time window, resulting in abnormal misjudgment or inability to judge can be avoided, thereby improving the power supply reliability, high efficiency and metering accuracy, effectively reducing the influence of the rounded-off electricity on the line loss calculation accuracy, and further realizing more accurate real-time line loss monitoring.

[0110] Example 2

[0111] Reference Figure 3 This is the second embodiment of the present invention, which provides a line loss calculation method based on an adaptive sliding window of line connection. Taking three line connections and six customers' electricity consumption as an example, it explains the line loss calculation method after line connection and the metering connection situation.

[0112] Set up three lines A, B and C respectively. WA0, WB0 and WC0 are the electricity consumption of the assessment tables on lines A, B and C in a certain period of time. The direction is from the line to the customer, and "+" is added after the identification symbol, and the reverse direction is negative, and "-" is added after the identification symbol; WA1~WA6 are the electricity consumption of the 6 customers on the line. The flow from the line to the customer is positive, and "+" is added after the identification symbol, and the reverse direction is negative, and "-" is added after the identification symbol; WL1 and WL2 are the electricity meters at the contact points of line A, line C and line B. The flow into line A is positive, and "+" is added after the identification symbol, and the reverse direction is negative, and "-" is added after the identification symbol.

[0113] Total input power of line A S in for:

[0114] S in =WA0 + +WL1 + +WL2 + +WA1 - +WA2 - +WA3 - +WA4 - +WA5 -

[0115] +WA6 -

[0116] Total output power of line A S out for:

[0117] S out =WA0 - +WL1 - +WL2 - +WA1 + +WA2 + +WA3 + +WA4 + +WA5 +

[0118] +WA6 +

[0119] The route loss of line A is:

[0120] △WA=S in -S out

[0121] The line loss rate LA is:

[0122]

[0123] Considering that the customer has no power supply and can only draw power from the grid, lines B and C only supply power to the line, and line A has no reverse power. WA1 1 , WA1 2 、WA10 3 ...WA1 n are the n meter codes continuously collected by the electric energy WA1, M1 is the customer WA1 comprehensive multiple of the electric energy meter, the electric energy meter is a two-decimal electric energy meter, the rounded-off power of the 6 customer electric energy meters on line A is △W1=0.1×(M1+M2+M3+M4+M5+M6), and the rounded-off power of the meter code supplied to line A is △W2=0.1×(MA0+ML1+ML2). If the impact rate of the meter code rounding on the line loss is not greater than 0.2%, that is, 1 / 10 of the line loss control line, then the power supply △W in the window of line A line loss calculation meets the following two conditions: △W1 / △W≤0.2% and △W2 / △W≤0.2%, that is,

[0124] (WA0 n -WA0 m )×M A1 +(ML1 n -ML1 m )×M L1 +(ML2 n -ML2 m )×M L2 ≥△W1

[0125] (WA0 n -WA0 m )×MA1 +(ML1 n -ML1 m )×M L1 +(ML2 n -ML2 m )×M L2 ≥△W2

[0126] M A1 is the comprehensive multiple of the assessment table WA0, M L1 is the comprehensive multiple of the electric energy meter at contact point ML1, M L2 It is the comprehensive multiple of the electric energy meter at the contact point ML2, n and m are the nth and mth collection points of the electric energy meter, n and m are positive integers, n>m.

[0127] When calculating the line loss at point n, the value interval can be reasonably calculated according to the above conditions. If the value of the electric energy meter is extended forward by at least 6 collection intervals, the time window is 6 data collection cycles, and the slip time is the collection interval. Therefore, this method solves the problem of inaccurate line loss calculation in a fixed time window, and also solves the technical problem of long real-time line loss calculation cycle in a fixed time interval. It provides technical support and data basis for timely detection of line metering device failures, electricity theft and other problems, and at the same time provides data support for real-time online updating of the electricity-to-carbon conversion factor.

[0128] Example 3

[0129] Reference Figure 3 , which is the third embodiment of the present invention, and this embodiment provides a line loss calculation method based on an adaptive sliding window of line connection. In order to verify the beneficial effects of the present invention, an experiment is designed, which simulates a medium-voltage distribution network, including three lines (A, B, C), and sets multiple contact points and customer power points.

[0130] First, a line contact point metering device was established, and the power readings, inflow and outflow directions, and corresponding multiples of each line and contact point were collected. By analyzing the line topology, the contact relationship between the lines was determined, and the power flow direction between each metering point was clarified. Then, based on the collected data, the adaptive sliding window line loss calculation method was applied to calculate the line loss of each line independently.

[0131] In the experiment, special attention was paid to the impact of tail-end electricity, and the tolerance of tail-end electricity on line loss calculation was set. The tail-end electricity generated by the reading accuracy limitation of each metering point was calculated and compared with the line loss calculation results to ensure that the impact rate of tail-end electricity on line loss was no more than 0.2%. In addition, the time window for line loss calculation was dynamically determined, and the relationship between the accumulated electricity and the tail-end electricity within several collection cycles from the current time point forward was compared to find the minimum time window that meets the preset tolerance.

[0132] In the experiment, different power consumption scenarios were simulated, including peak and off-peak hours, as well as different contact points and customer power consumption patterns. Through these simulations, the adaptability and accuracy of the adaptive sliding window line loss calculation method under different conditions can be verified.

[0133] Table 1 Experimental data for calculating line loss at line connection points

[0134]

[0135] By analyzing the above table data, it is obvious that the beneficial effect of the adaptive sliding window line loss calculation method based on the line contact point metering device can be seen. First, this method can accurately calculate the line loss amount and line loss rate of different lines during peak and valley periods, which is crucial for energy consumption management and optimization of the power grid.

[0136] Compared with the existing technology, a significant advantage of this method is its consideration of the impact of tail-end electricity. In traditional line loss calculations, tail-end electricity is often ignored, resulting in inaccurate calculation results. However, experimental data show that by setting the tolerance for the impact of tail-end electricity and dynamically adjusting the time window, the accuracy of line loss calculation has been significantly improved. For example, during the peak period of line A, the impact rate of tail-end electricity is only 0.15%, which is far below the preset tolerance of 0.2%. This shows that the calculation method can effectively control the impact of tail-end electricity on line loss calculation.

[0137] In addition, the dynamic adjustment mechanism of the adaptive sliding window makes the line loss calculation more flexible and real-time. In the operation of the power grid, this real-time performance is crucial for timely detection and handling of power loss problems. For example, during the off-peak period of line B, the line loss rate dropped to 4.44%, which may indicate that the power grid operator needs to maintain or optimize the line.

[0138] In summary, the adaptive sliding window line loss calculation method based on the line contact point metering device not only improves the accuracy of line loss calculation, but also enhances the real-time monitoring capability of the power grid, which is of great significance for optimizing power resource allocation and reducing operating costs.

[0139] Example 4

[0140] This is the fourth embodiment of the present invention. In order to verify a line loss calculation method of an adaptive sliding window based on line connection, and to verify the beneficial effects of the present invention, 5 10kV distribution lines of the distribution network of an economic development zone of a certain city are selected as test objects. The total length of the lines is about 22 kilometers, including 32 metering points (5 assessment metering points and 6 connection points).

[0141] The selected lines are characterized by a high proportion of distributed energy access, including 15 photovoltaic power stations (total installed capacity of 2.8MW), 2 distributed wind power (total installed capacity of 1.2MW) and 3 energy storage stations (total capacity of 1.5MWh). The test period is from January 1, 2024 to January 31, 2024, and the data collection interval is 5 minutes.

[0142] The experimental process is as follows:

[0143] Metering device layout: All metering points are equipped with 0.2S-level smart energy meters, which support two-way metering and time-sharing metering functions. Additional power quality monitoring devices are configured for distributed energy access points to monitor parameters such as power factor and harmonic content in real time.

[0144] Data collection system construction: Adopt 5G private network communication, build edge computing nodes, and achieve millisecond-level data collection response. Deploy distributed database clusters to ensure data storage reliability. Configure data quality monitoring modules to realize automatic identification and correction of data anomalies.

[0145] Tail-end power analysis and tolerance setting: Based on line operation characteristics, differentiated tolerances are set for different types of users:

[0146] Lines with mainly industrial loads: tolerance 3.5%;

[0147] PV access dense areas: tolerance 4.2%;

[0148] Commercial load concentration area: tolerance 3.8%;

[0149] Around energy storage facilities: tolerance level 4.5%.

[0150] Adaptive window optimization: The initial window is set to 12 acquisition cycles (1 hour). The system dynamically adjusts the window size according to the output characteristics of distributed energy and the law of load fluctuation. When it is detected that the photovoltaic power generation fluctuates violently, the window is automatically reduced to improve the response speed; the window is appropriately extended during the night load stable period to improve the calculation accuracy.

[0151] The following table is the test data record.

[0152] Table 1

[0153]

[0154] The test data analysis shows that the method of the present invention has significant advantages in complex scenarios considering distributed energy access:

[0155] Improved adaptability: The line loss rate of the method of the present invention is 3.11%, which is 1.19 percentage points lower than the 4.30% of the traditional method, and has stronger adaptability to the two-way flow of electricity caused by distributed energy. During the period of photovoltaic output fluctuation (10:00-14:00), the maximum instantaneous line loss fluctuation measured was 0.8%, while the traditional method reached 2.1%.

[0156] Dynamic optimization of tolerance: The method of the present invention realizes adaptive adjustment of tolerance, and the average tolerance is maintained at 3.5%, which is significantly lower than the 4.8% of the traditional method. During the peak period of photovoltaic reverse transmission, the system automatically increases the tolerance of the relevant area to 4.2%, avoiding overly frequent window adjustments.

[0157] Calculation accuracy: The calculation accuracy of the method of the present invention reaches 96.8%, which is 8.3 percentage points higher than the traditional fixed window method. Especially during the charging and discharging switching of the energy storage device, the calculation error is controlled within 2.5%, while the error of the traditional method reaches 7.2%.

[0158] Real-time performance: Through edge computing optimization, the computing delay of the method of the present invention is reduced to less than 15 seconds, meeting the monitoring requirements of the smart distribution network. The system can respond to changes in the output of distributed energy in a timely manner, providing a reliable basis for the dispatching of the distribution network.

[0159] In summary, a line loss calculation method based on an adaptive sliding window of line connection significantly improves the line loss calculation accuracy and response speed of the distribution network through an adaptive sliding window line loss calculation method, while reducing the line loss rate, optimizing the tolerance setting, and enhancing the real-time performance and power quality management capabilities of the system.

[0160] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A line loss calculation method based on an adaptive sliding window of line connection, characterized in that: include, Establishment and data collection of metering devices at line contact points; Calculating adaptive sliding window line loss according to the collected data; Apply and optimize the adaptive sliding window line loss calculation results.

2. The line loss calculation method based on the adaptive sliding window of line connection according to claim 1, characterized in that: The establishment and data collection of the metering device at the line contact point includes collecting the metering device data of the line contact point and each branch line, including the power reading, inflow and outflow direction and corresponding multiplier of each metering point, analyzing the line topology, determining the connection relationship between the lines, and clarifying the power flow direction between each metering point.

3. The line loss calculation method based on line connection adaptive sliding window according to claim 2, characterized in that: The calculating of the adaptive sliding window line loss according to the collected data includes calculating the real-time line loss of the sub-lines; The real-time line loss calculation of the sub-lines is based on the line topology and power flow direction, and an independent line loss calculation is performed on each line; When there are i lines (i≥1) and j customers (j≥1), the calculation formula of line loss rate needs to consider the input and output power of all lines and the contact points between them. The assessment table power of each line is WA i ; The power consumption of the jth customer on the i-th line is WA ij ; The energy meter power WA at the contact point between the i-th line and the k-th line ik ,So, Total input power S in Including the assessment table electricity of all lines and the electricity flowing into the contact point, that is: Total output power S out Includes electricity consumption by all customers on all lines, i.e.: The line loss △W is: △W=S in -S out The line loss rate L is: Between some lines without direct contact, WA ik =0; The number of customers j varies on different lines, so when calculating the total output power, it is necessary to calculate the sum of customer power consumption for each line.

4. The line loss calculation method based on line connection adaptive sliding window according to claim 3, characterized in that: The calculating of the adaptive sliding window line loss according to the collected data also includes analysis of the impact of rounding off the tail quantity; The analysis of the impact of tail-off electricity is to calculate the tail-off electricity generated by each metering point due to the limitation of reading accuracy, and set the tolerance of the impact of tail-off electricity on line loss calculation; When there are i lines (i≥1) and j customers (j≥1), the comprehensive multiple of the electric energy meter at the contact point between the i-th line and the k-th line is ML ik ; For each line, calculate the customer's electricity meter round-off power △W 1i And the rounded-off quantity of the meter code △W 2i , where M ij is the comprehensive multiple of the jth customer's electric energy meter on the i-th line, The number of customers j varies on different lines. Therefore, when calculating the rounded-off electricity, it is necessary to calculate the sum of the comprehensive multiples of the customer's electricity meter for each line.

5. The line loss calculation method based on line connection adaptive sliding window according to claim 4, characterized in that: The calculating of the adaptive sliding window line loss according to the collected data also includes adaptive sliding window determination; The adaptive sliding window determination is to dynamically determine the time window for line loss calculation according to the set tolerance for the impact of tail-end electricity, and find the minimum time window that meets the preset tolerance by comparing the relationship between the accumulated electricity within a number of collection cycles from the current time point forward and the tail-end electricity; The starting point of the adaptive sliding window is the earliest collection point that meets the conditions, and the ending point is the current time point; When there are i lines (i≥1) and j customers (j≥1), the power consumption of the i-th line is WAO i , the comprehensive multiple of the i-th line assessment table is MA i ; For each line, calculate the power supply △W within the line loss calculation window i , ensure that the impact rate of tail electricity on line loss is no more than 0.2%, n and m are the nth and mth collection points of the energy meter, n and m are positive integers, and n>m, and, For each line, calculate the line loss rate L i , Between some lines without direct contact, WA ik =0; When calculating the line loss at point n, the value interval is reasonably calculated based on the above conditions. If the value of the electric energy meter is extended forward by X collection intervals at least, the time window is X data collection cycles, and the slip time is the collection interval.

6. The line loss calculation method based on line connection adaptive sliding window according to claim 5, characterized in that: The application and optimization of the adaptive sliding window line loss calculation result includes applying the adaptive sliding window line loss calculation result including using the line loss rate L calculation formula to calculate the line loss rate L within the determined adaptive sliding window. i Calculation can achieve more accurate real-time line loss monitoring.

7. The line loss calculation method based on line connection adaptive sliding window according to claim 6, characterized in that: The application and optimization of the adaptive sliding window line loss calculation results include optimizing the adaptive sliding window line loss calculation results, including that when new collected data is generated, the time window will slide forward and the window size will be readjusted according to the impact of rounded electricity to achieve continuous line loss calculation.

8. A line loss calculation system based on an adaptive sliding window for line connection, based on the line loss calculation method based on an adaptive sliding window for line connection according to any one of claims 1 to 7, characterized in that: It also includes a data acquisition and storage module, an adaptive sliding window line loss calculation module, and an adaptive sliding window determination and optimization module; The data acquisition and storage module is used to collect metering device data of the line connection point and each branch line, including the power reading, inflow and outflow direction and corresponding magnification of each metering point. The module analyzes the line topology, determines the connection relationship between the lines, clarifies the power flow direction between each metering point, and processes these data in real time and stores them in the cloud computing platform for further line loss calculation and analysis; The adaptive sliding window line loss calculation module performs independent line loss calculation for each line based on line topology and power flow direction, and calculates the total input power and total output power by combining the input and output power of all lines and the contact points between them, and accordingly obtains the line loss amount and line loss rate; The adaptive sliding window determination and optimization module dynamically determines the time window for line loss calculation according to the set tolerance for the impact of tail-end electricity, and finds the minimum time window that meets the preset tolerance by comparing the relationship between the accumulated electricity and the tail-end electricity within several collection cycles from the current time point forward, and determines the starting point and end point of the window accordingly.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the line loss calculation method based on the adaptive sliding window of line connection according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the line loss calculation method based on the adaptive sliding window of line connection according to any one of claims 1 to 7 are implemented.