A method, device, equipment and storage medium for determining line loss

CN122882876APending Publication Date: 2026-10-09BEIJING REMARKABLES UNITED TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610853199.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-12
Publication Date
2026-10-09

AI Technical Summary

Technical Problem

[0004]在实际工作中,配电网具有点多面广、网架结构复杂、负荷波动性强等特点,因此,台区拓扑数据纷乱错杂,可能存在拓扑失真的情况,设备档案参数可能存在更新不及时的问题

Benefits of technology

本申请基于获取的目标时间长度内的配网运行数据,对配网运行数据按照预设的时间间隔进行采样,得到若干个时刻的配网运行数据,配网运行数据包括第一电气数据和第二电气数据,第一电气数据用于表征变压器上级线路关口位置的电气数据,第二电气数据用于表征变压器的电气数据;针对每个时刻,根据第一电气数据和第二电气数据,在预设的若干个变压器的运行档位中,确定该时刻对应的运行档位;对各时刻对应的运行档位进行处理,得到目标时间长度内的代表运行档位;根据第一电气数据和第二电气数据,确定目标时间长度内的线损;或者,根据第一电气数据、第二电气数据以及代表运行档位,确定线损。通过本申请提供的方案,在确定线损时,无需依赖完整的网络拓扑结构,也无需精确的设备档案参数,即可确定更准确的线损结果,显著降低了对数据完整性和系统结构的依赖。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122882876A_ABST
    Figure CN122882876A_ABST
Patent Text Reader

Abstract

The application discloses a method, device, equipment and storage medium for determining line loss, which can acquire distribution network operation data in a target time length, sample the distribution network operation data according to a preset time interval to obtain distribution network operation data at several time points, the distribution network operation data comprises first electrical data and second electrical data, for each time point, according to the first electrical data and the second electrical data, a corresponding operation gear of the time point is determined from a plurality of preset operation gears of transformers, the operation gears corresponding to the time points are processed to obtain a representative operation gear, and the line loss is determined according to the first electrical data, the second electrical data or the first electrical data, the second electrical data and the representative operation gear. When the line loss is determined, the application does not need to rely on topology data and equipment file parameters, and more accurate line loss results can be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application generally relates to the field of power technology. More specifically, this application relates to a method, apparatus, device, and storage medium for determining line losses. Background Technology

[0002] Line loss is an inevitable loss that occurs during the transmission and distribution of electricity. It directly measures the technical management level and economic operating efficiency of a power grid company.

[0003] Line loss is divided into theoretical line loss (also known as technical line loss) and management line loss. Currently, the power flow method is commonly used to calculate theoretical line loss. The theoretical line loss is calculated from the data. It is mainly based on the physical parameters, topology and real-time operation data of the power grid. Through rigorous mathematical models (such as forward substitution method, equivalent resistance method, etc.), the minimum loss of the power grid under ideal conditions is calculated.

[0004] In practice, distribution networks are characterized by numerous points of contact, wide distribution, complex network structures, and strong load fluctuations. Therefore, the topology data of distribution areas is often chaotic and complex, potentially leading to topology distortion, and equipment file parameters may not be updated in a timely manner. The power flow method places high demands on the accuracy and timeliness of topology data and equipment file parameters; topology distortion or inaccurate equipment file parameters will severely affect the accuracy of line loss calculations.

[0005] Therefore, how to obtain more accurate line loss results while reducing reliance on topology data and equipment profile parameters has become an urgent problem to be solved. Summary of the Invention

[0006] This application provides a method, apparatus, device, and storage medium for determining line loss, in order to partially solve the aforementioned problems existing in the prior art.

[0007] The embodiments of this application adopt the following technical solutions:

[0008] In a first aspect, this application provides a method for determining line loss, the method comprising: acquiring distribution network operation data within a target time period; sampling the distribution network operation data at preset time intervals to obtain distribution network operation data at several time points, the distribution network operation data including first electrical data and second electrical data, the first electrical data being used to characterize the electrical data of the upstream line junction of the transformer, and the second electrical data being used to characterize the electrical data of the transformer; for each time point, determining the corresponding operating gear from among preset several operating gears of the transformer based on the first electrical data and the second electrical data; processing the operating gear corresponding to each time point to obtain a representative operating gear within the target time period; determining the line loss within the target time period based on the first electrical data and the second electrical data; or, determining the line loss based on the first electrical data, the second electrical data, and the representative operating gear.

[0009] Optionally, based on the first electrical data and the second electrical data, the operating gear corresponding to the current moment is determined from a preset number of operating gears of the transformer. Specifically, this includes: for each preset operating gear, determining the electrical data corresponding to the operating gear based on the second electrical data; and selecting the operating gear as the operating gear corresponding to the current moment from among the operating gears based on the first electrical data and the electrical data corresponding to each operating gear.

[0010] Optionally, based on the first electrical data and the electrical data corresponding to each operating gear, a operating gear is selected as the operating gear corresponding to that moment from among the operating gears. Specifically, this includes: determining the difference between the first electrical data and the electrical data corresponding to each operating gear; sorting each operating gear according to the determined difference; and selecting the operating gear as the operating gear corresponding to that moment from among the operating gears according to the sorting result.

[0011] Optionally, the electrical data includes phase A voltage, phase B voltage, and phase C voltage; based on the first electrical data and the electrical data corresponding to each operating gear, a operating gear is selected as the operating gear corresponding to that moment from each operating gear, specifically including: for each operating gear, determining the phase A voltage difference, phase B voltage difference, and phase C voltage difference between the first electrical data and the electrical data corresponding to that operating gear; based on the phase A voltage difference, phase B voltage difference, and phase C voltage difference of each operating gear, selecting the operating gear as the operating gear corresponding to that moment from each operating gear.

[0012] Optionally, the operating gear corresponding to each moment is processed to obtain the representative operating gear within the target time length. Specifically, this includes: sliding the sliding time window according to the chronological order of each moment, based on a preset sliding time window containing a specified number of moments and a sliding time step, so that the sliding time window traverses all moments within the target time length; obtaining a specified number of moments captured by the sliding time window at each sliding position; for each sliding position, based on the operating gear corresponding to each moment at that sliding position, if there is an operating gear corresponding to a specified moment that is different from the operating gear corresponding to any other moment at that sliding position, then processing the operating gear corresponding to the specified moment; and determining the representative operating gear based on the processed operating gear corresponding to the specified moment at each sliding position.

[0013] Optionally, the operating gear corresponding to each time point is processed to obtain the representative operating gear within the target time length. Specifically, this includes: counting the number of time points corresponding to each operating gear based on the operating gear corresponding to each time point; and selecting the operating gear as the representative operating gear based on the statistical results.

[0014] Optionally, the electrical data includes voltage and current; determining the line loss within the target time period based on the first electrical data and the second electrical data specifically includes: processing the second electrical data to obtain third electrical data; and determining the line loss based on the voltage and current in the third electrical data and the voltage in the first electrical data.

[0015] Optionally, the electrical data includes voltage and current; determining the line loss based on the first electrical data, the second electrical data, and the representative operating gear specifically includes: processing the second electrical data to obtain fourth electrical data based on the representative operating gear; determining the no-load loss and load loss of the transformer within the target time period; and determining the line loss based on the voltage and current in the fourth electrical data, the voltage in the first electrical data, the no-load loss, and the load loss.

[0016] In a second aspect, this application provides an apparatus for determining line loss, the apparatus comprising: an acquisition module for acquiring distribution network operation data within a target time period; a sampling module for sampling the distribution network operation data at preset time intervals to obtain distribution network operation data at several time points, the distribution network operation data including first electrical data and second electrical data, the first electrical data being used to characterize the electrical data of the upstream line junction of the transformer, and the second electrical data being used to characterize the electrical data of the transformer; a gear selection module for determining, for each time point, the corresponding operating gear among a preset number of operating gears of the transformer based on the first electrical data and the second electrical data; a processing module for processing the operating gear corresponding to each time point to obtain a representative operating gear within the target time period; and a line loss determination module for determining the line loss within the target time period based on the first electrical data and the second electrical data; or, determining the line loss based on the first electrical data, the second electrical data, and the representative operating gear.

[0017] In a third aspect, this application provides a computer-readable storage medium, characterized in that the storage medium stores a computer program, which, when executed by a processor, implements the above-described method for determining line loss.

[0018] In a fourth aspect, this application provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor executes the program to implement the above-described method for determining line loss.

[0019] The above-described technical solutions adopted in the embodiments of this application can achieve the following beneficial effects: This application, based on distribution network operation data acquired within a target time period, samples the distribution network operation data at preset time intervals to obtain distribution network operation data at several moments. The distribution network operation data includes first electrical data and second electrical data. The first electrical data characterizes the electrical data of the upstream line junction of the transformer, and the second electrical data characterizes the electrical data of the transformer. For each moment, based on the first and second electrical data, the corresponding operating position of the transformer is determined from a preset set of operating positions. The operating positions corresponding to each moment are processed to obtain a representative operating position within the target time period. Line loss within the target time period is determined based on the first and second electrical data; alternatively, line loss is determined based on the first electrical data, the second electrical data, and the representative operating position. The solution provided by this application allows for more accurate line loss determination without relying on a complete network topology or precise equipment profile parameters, significantly reducing dependence on data integrity and system structure. Attached Figure Description

[0020] The above and other objects, features, and advantages of exemplary embodiments of this application will become readily understood by reading the following detailed description with reference to the accompanying drawings. In the drawings, several embodiments of this application are illustrated by way of example and not limitation, and the same or corresponding reference numerals denote the same or corresponding parts, wherein: Figure 1 A flowchart illustrating a method for determining line loss provided in this application embodiment; Figure 2 A schematic diagram of a device for determining line loss provided in an embodiment of this application; Figure 3 A schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0021] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0022] In existing technologies, common methods for calculating theoretical line losses of distribution lines (forward-backward power flow method or equivalent resistance method) are based on the line topology information as the basic network structure. They combine the equipment file parameters and real-time operating data on the line, and calculate the segmented power flow distribution and loss of the line through power flow iteration. Finally, they summarize the loss data of each component on the line to obtain the overall loss result of the 10kV distribution line.

[0023] However, on the one hand, power flow algorithms have high requirements for the accuracy and timeliness of line topology and equipment file parameters. Topology distortion or equipment file parameter distortion will seriously affect the accuracy of line loss results. On the other hand, its convergence speed is linear. When dealing with large-scale power distribution systems or systems with poor operating conditions, it consumes a lot of server computing power and requires a long calculation time. In addition, its core idea relies on a unidirectional calculation process of "back-substitution" from the end node to the root node and "forward-pushing" from the root node to the end node. It requires the network to be a strict radial (tree) structure and cannot have loops (ring networks), and cannot support multi-power supply line calculations.

[0024] Therefore, how to reduce reliance on topology data and device profile parameters, minimize server computing power consumption, and be applicable to various network topologies to obtain more accurate line loss results has become an urgent problem to be solved.

[0025] In view of this, embodiments of this application provide a method for determining line loss. First, distribution network operation data within a target time period is sampled at preset time intervals to obtain distribution network operation data at several time points. Then, the operating level of the transformer corresponding to each time point is determined, and the operating levels at each time point are processed to obtain a representative operating level within the target time period. Finally, the line loss within the target time period is determined based on first electrical data and second electrical data; or, the line loss is determined based on the first electrical data, the second electrical data, and the representative operating level. The solution provided by this application does not rely on a complete network topology when determining line loss, is applicable to various network topologies, does not require precise equipment profile parameters, and reduces server computing power consumption while determining more accurate line loss results, significantly reducing dependence on data integrity and system structure.

[0026] This application utilizes the line master table and voltage drop data of each public and private transformer to accurately calculate the theoretical line loss results after eliminating interference from topology and equipment file parameters. This helps various units strengthen the management of distribution network line loss, understand the operation status of the power company's distribution network, clarify the composition of line loss, explore the space for loss reduction, and rationally formulate line loss plan targets and loss reduction schemes.

[0027] The following explains the terms used in this application related to determining line loss.

[0028] Line loss: The loss of electrical energy generated during the transmission and transformation of electrical energy in power lines and distribution equipment. It includes the loss of the line itself as well as the loss of transformers under no-load conditions, load losses and other equipment losses. It is usually expressed as the amount of power lost or the line loss rate as a quantitative indicator and is an important basis for distribution network operation and metering assessment.

[0029] Distribution network operation data: A comprehensive data set reflecting the overall operating status of the distribution network, including static ledger information and dynamic monitoring data. Specifically, it covers information on lines, voltage regulating equipment, metering devices, electricity meters, user-related files, as well as electrical parameters, transformer operating taps, loss parameters, and metering data at the connection points. It is used for distribution network status analysis, line loss calculation, and anomaly assessment.

[0030] Electrical data: Various electrical parameter data collected in real time during the operation of the power distribution system, mainly including time-series monitoring data such as voltage, current, active power, reactive power, power factor, apparent power, and forward and reverse electrical energy. It is the basic data source for calculating losses and judging operating conditions.

[0031] Transformer upstream gate: Located at the connection point between the high-voltage side of the transformer and the upstream power grid, it is a dedicated metering boundary node used for electricity settlement, line loss assessment and property rights division. This node is equipped with metering devices that can collect metering data such as voltage, current, energy and power on the gate side.

[0032] Operating position: The current position of the tap changer of the distribution transformer. Different operating positions correspond to different actual turns ratios on the high and low voltage sides of the transformer. Adjusting the tap position is mainly used to adapt to grid voltage fluctuations and achieve voltage regulation.

[0033] No-load loss: often referred to as iron loss, is the inherent energy loss of a transformer when it is in a energized no-load operating state, caused by the hysteresis and eddy current effect of the iron core. This loss is mainly affected by the operating voltage and the transformer turns ratio, and basically does not change with the load size.

[0034] Load loss: often referred to as copper loss, is the electrical energy loss caused by the heating of the winding resistance when the load current flows through the transformer winding; this loss is proportional to the square of the load current, and the larger the load, the higher the load loss.

[0035] The specific embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0036] Figure 1 A flowchart of a method for determining line loss provided in this application embodiment may specifically include the following steps: S110: Acquire distribution network operation data within the target time period; S120: Sample the distribution network operation data at preset time intervals to obtain distribution network operation data at several moments; S130: For each moment, determine the corresponding operating position from among several preset transformer operating positions based on the first electrical data and the second electrical data; S140: Process the operating positions corresponding to each moment to obtain the representative operating position within the target time period; S150: Determine the line loss within the target time period based on the first electrical data and the second electrical data; or, determine the line loss based on the first electrical data, the second electrical data, and the representative operating position.

[0037] In step S110, the distribution network operation data includes first electrical data and second electrical data. The first electrical data is used to characterize the electrical data of the upstream line junction position of the transformer, and the second electrical data is used to characterize the electrical data of the transformer. In some embodiments of this application, the distribution network operation data may include distribution network ledger information and electrical monitoring curves. The distribution network ledger information includes one or more of the following: line information, voltage regulating equipment information, metering point information, line-transformer relationship, electricity meter information, and user information. The electrical monitoring curves include one or more of the following: forward and reverse power indication curves at the measurement point, active power curve, reactive power curve, power factor curve, voltage curve, and current curve.

[0038] The first electrical data refers to the electrical data at the upstream line junction of the transformer, including voltage and current data at that junction. The second electrical data refers to the transformer's electrical data. Since transformers can be divided into high-voltage supply / high-voltage metering transformers and high-voltage supply / low-voltage metering transformers, for high-voltage supply / high-voltage metering transformers, the second electrical data can be the electrical data of the high-voltage side, typically including voltage, especially phase voltage and current, on the high-voltage side. For high-voltage supply / low-voltage metering transformers, the second electrical data can be the electrical data of the low-voltage side, typically including voltage, especially phase voltage and current, on the low-voltage side.

[0039] In this application, the target time length can be a fixed time length, such as a full day with a 24-hour cycle, or it can be the time length between one moment and another determined according to actual needs.

[0040] In some embodiments of this application, the obtained distribution network operation data can be processed between steps S110 and S120, so as to determine the line loss based on the processed distribution network operation data.

[0041] Specifically, data cleaning can be performed on the distribution network operation data to screen out dedicated lines or lines with reverse power supply. These lines are not suitable for determining line loss in this application for certain reasons, and therefore, these lines can be eliminated.

[0042] For example, based on electrical monitoring curves, such as forward and reverse energy indication curves, active power curves, reactive power curves, and power factor curves, lines with reverse energy can be eliminated.

[0043] For example, electrical monitoring curves, such as voltage curves and current curves, can be used to eliminate lines where the number of valid points of the fitted voltage and current curve data is less than 80%. The fitting of voltage and current can adopt existing technical solutions, which will not be elaborated here.

[0044] In some embodiments of this application, the obtained distribution network operation data may be missing or abnormal. Therefore, this application can also fit the data.

[0045] Specifically, this application can complete or fit electrical data. For example, regarding the power factor, there may be some transformers in practice that lack a power factor. To complete the power factor, a correction mechanism can be used to calculate and fit it using active power and reactive power. The fitting of the power factor can be shown in formula (1).

[0046] (1) in, P is the power factor, P is the active power, and Q is the reactive power.

[0047] For example, regarding voltage, the voltage curve can be diagnosed based on the 3σ criterion or box plot method. If the diagnosis result of a certain point on the voltage curve is an outlier, the voltage of the adjacent points on the voltage curve can be fitted. Generally, the nearest neighbor mean or linear interpolation can be used for data fitting. Similarly, if there are missing voltage data at some points on the voltage curve, the nearest neighbor mean or linear interpolation can also be used for data fitting. For example, if there is an anomaly or missing voltage at time t on the voltage curve, the voltage at time t-1 and time t-2 can be fitted. If there are anomalies or missing voltages at both time t and time t+1, the voltage at time t-1 and time t+2 can be fitted.

[0048] Since this application is based on the transformer substation voltage drop method and uses the voltage drop method to calculate the conductor loss of the line, for high-voltage supply and high-voltage metering transformers, the line loss is calculated by determining the voltage and current operating data curves on the high-voltage side. For high-voltage supply and low-voltage metering transformers, the current operating tap information of the high-voltage supply and low-voltage metering transformers on the line is determined through the transformer tap identification algorithm. Based on the transformer operating tap and turns ratio data, the operating data curves of the high-voltage side voltage and current are inversely derived, and the line loss is calculated by combining copper loss and iron loss. Therefore, it is necessary to first determine the high-voltage side voltage.

[0049] For a high-voltage power supply transformer, the second electrical data is the phase voltage on the high-voltage side, namely the A-phase voltage, B-phase voltage, and C-phase voltage. When acquiring voltage data, the B-phase voltage is generally missing. Therefore, the B-phase voltage needs to be determined first. Generally, the A-phase voltage and the C-phase voltage can be averaged to obtain the B-phase voltage. Secondly, the third electrical data can be obtained by processing the second electrical data. The third electrical data is the line voltage on the high-voltage side, which can convert the phase voltage into the line voltage. In practice, in order to achieve high-voltage electrical isolation and ensure the safety of personnel and equipment, instrument transformers, including voltage transformers (PT) and current transformers (CT), are generally installed on the high-voltage side to convert high voltage or large current into standard low voltage or small current according to a ratio. Therefore, the line voltage on the high-voltage side of the high-voltage power supply transformer can be determined by formula (2).

[0050] (2) in, , , These represent the line voltages on the high-voltage side of the high-voltage transformer at time t. , , These represent the phase voltages on the high-voltage side of the high-voltage transformer at time t.

[0051] For high-voltage supply and low-voltage metering transformers, this application uses a transformer tap identification algorithm to determine the current operating tap information of the high-voltage supply and low-voltage metering transformer on the line, and reverse-engineers the high-voltage side voltage based on the transformer operating tap and turns ratio data.

[0052] In step S120, the acquired distribution network operation data can be sampled. That is, the voltage at the transformer upstream line junction and the voltage on the low-voltage side of the high-voltage supply low-voltage metering transformer are sampled to obtain the voltage at the transformer upstream line junction and the voltage on the low-voltage side at multiple moments within the target time period.

[0053] Following the previous example, the target time length can be a full day, i.e., 24 hours. Therefore, when sampling the voltage, sampling can be performed every 15 minutes, resulting in 96 sampling points, where t can range from 1 to 96. In this application, the preset time interval and target time length can be set according to the actual situation; this example only uses a target time length of 24 hours and a time interval of 15 minutes as an example.

[0054] In step S130, multiple operating positions of the transformer can be preset, each corresponding to a turns ratio. In the case of a transformer using a Yyn0 connection, the voltage ratio between the high-voltage side and the low-voltage side is equal to the winding turns ratio. Generally, the rated turns ratio of the transformer is the default position. The preset settings for the operating positions in this application can be considered according to actual conditions.

[0055] In some embodiments of this application, five operating levels can be set, corresponding to five levels of voltage regulation capability of the rated voltage. The operating levels, turns ratio and voltage data can be found in Table 1.

[0056]

[0057] Table 1 shows the gear ratio for operating gear 1. With a voltage regulation capability corresponding to rated voltage +5%, the transformer ratio is set to operating at gear 2. With a voltage regulation capability corresponding to rated voltage +2.5%, and a transformation ratio of 3 operating gears. With a voltage regulation capability corresponding to rated voltage +0%, and a transformer ratio of 4 operating gears. With a voltage regulation capability corresponding to -2.5% of the rated voltage, and a 5-speed operating ratio. Voltage regulation capability corresponding to -5% of rated voltage.

[0058] In some embodiments of this application, for time t, for each operating gear, the electrical data corresponding to the operating gear can be determined based on the second electrical data. Based on the first electrical data and the electrical data corresponding to each operating gear, the operating gear can be selected as the operating gear corresponding to that time.

[0059] Specifically, since the second electrical data is the voltage on the low-voltage side, the voltage on the high-voltage side of the transformer in each operating position can be determined. Then, based on the voltage at the transformer's upstream line junction and the voltage on the high-voltage side in each operating position, the operating position is selected from the five operating positions as the operating position at time t.

[0060] In some embodiments of this application, the difference between the first electrical data and the electrical data corresponding to each operating position can be determined; based on the determined difference, each operating position is sorted; according to the sorting result, the operating position is selected as the operating position corresponding to that moment. That is, for each operating position, the difference between the voltage at the upstream line junction of the transformer and the voltage on the high-voltage side below that operating position can be determined as the voltage difference corresponding to that operating position. Based on the voltage difference corresponding to each operating position, each operating position is sorted, and the operating position is selected according to the sorting result. Continuing with the above example, the voltage difference corresponding to each of the 5 operating positions can be determined, and then sorted in ascending order, selecting the operating position at the beginning of the sequence. In this application, when selecting the operating position based on the voltage difference, the preferred solution is to select the operating position with the smallest voltage difference.

[0061] In some other embodiments of this application, the electrical data includes phase A voltage, phase B voltage, and phase C voltage. For each operating position, the phase A voltage difference, phase B voltage difference, and phase C voltage difference between the first electrical data and the electrical data corresponding to that operating position are determined. Based on the phase A voltage difference, phase B voltage difference, and phase C voltage difference for each operating position, the operating position is selected as the operating position corresponding to that moment. For ease of description, the following is expressed using formulas.

[0062] First, the phase voltage on the high-voltage side can be determined based on the phase voltage on the low-voltage side using formula (3).

[0063] (3) in, , , These represent the A-phase voltage, B-phase voltage, and C-phase voltage of the high-voltage side of the transformer with high power supply and low metering at time t, respectively, in the i-th operating position. Let be the transformer turns ratio corresponding to the i-th operating gear. , , These represent the phase voltages on the low-voltage side of the high-voltage supply low-voltage metering transformer at time t.

[0064] Then, the voltage difference between phase A, phase B and phase C can be determined by formula (4) based on the phase voltage on the high-voltage side and the phase voltage at the junction of the upper line of the transformer.

[0065] (4) in, , , These are the voltage differences for phase A, phase B, and phase C, respectively. , , These are the A-phase voltage, B-phase voltage, and C-phase voltage at the junction of the transformer's upstream line.

[0066] Finally, based on the voltage differences of phase A, phase B, and phase C for each operating gear, the operating gear can be selected in different ways. In some embodiments of this application, an equal-weighted allocation method can be used to determine the comprehensive deviation metric. The operating gear at time t is obtained by gear identification based on the minimum deviation criterion. As shown in formulas (5) and (6).

[0067] (5) (6) In this application, besides using the equal-weighted allocation method, other methods can also be employed, such as weighted summation based on the voltage differences of phases A, B, and C according to preset A-phase voltage weights, B-phase voltage weights, and C-phase voltage weights to obtain a comprehensive deviation metric. In other embodiments of this application, besides determining the operating level based on the comprehensive deviation metric, other methods can also be used, such as sorting the A-phase voltage differences, B-phase voltage differences, and C-phase voltage differences for each operating level, and determining the operating level at time t based on the sorting results.

[0068] The above-mentioned method of determining the operating gear at time t based on phase voltage can also be used in this application to determine the operating gear at time t based on line voltage. Since there is a multiple conversion relationship between phase voltage and line voltage, it can also be determined according to formulas (3) to (6).

[0069] In step S140, when processing the corresponding operating gear at each time point to obtain the representative operating gear within the target time length, a sliding time window can be set to verify the corresponding operating gear at each time point, and the representative operating gear is obtained based on the verified operating gear at each time point.

[0070] Specifically, based on a preset sliding time window containing a specified number of moments and a sliding time step, the sliding time window is slid in chronological order to traverse all moments within the target time length; a specified number of moments are captured at each sliding position; for each sliding position, based on the operating gear corresponding to each moment at that sliding position, if the operating gear corresponding to a specified moment differs from the operating gear corresponding to any other moment at that sliding position, the operating gear corresponding to the specified moment is processed; based on the processed operating gear corresponding to the specified moment at each sliding position, a representative operating gear is determined.

[0071] Following the previous example, based on formula (6), a preliminary gear sequence consisting of 96 operating gears at different times can be obtained. For the initial gear sequence, a sliding time window consistency check mechanism can be introduced to eliminate isolated misjudgments caused by short-term disturbances. The sliding time window must contain at least three time points. The number of time points included in the sliding time window and the sliding step size can be set according to the actual situation, as long as it can traverse all time points within the target time length. Taking a sliding time window containing seven time points as an example, at a certain sliding position, the sliding time window can be represented as [t-3, t+3]. If the operating gear is different from the other six times, then time t is determined to be the specified time. Other methods for determining time t as the specified time may include... The conditions are different from any other time in the initial gear sequence. The specific judgment conditions can be set according to the actual situation.

[0072] Once time t is determined to be the specified time, the operating gear at time t can be processed. For example, the operating gear at time t can be corrected using the neighborhood mode substitution method. The corrected operating gear at time t is... As shown in formula (7).

[0073] (7) The initial gear sequence is scanned repeatedly according to the sliding step size until the operating gears at each time point in the initial gear sequence are stable, thus obtaining a high-confidence, time-smooth final gear sequence. .

[0074] Alternatively, this application may use other methods to process the operating gear at time t, for example, taking the operating gear closest to it as the operating gear at time t.

[0075] In some embodiments of this application, it is also possible to directly determine the representative gear in the gear sequence without processing the gear at a specified time in the gear sequence.

[0076] When processing the operating gear corresponding to each time point to obtain the representative operating gear, this application can count the number of times corresponding to each operating gear point based on the operating gear points corresponding to each time point; based on the statistical results, the operating gear point is selected as the representative operating gear point among all operating gear points.

[0077] Specifically, statistical analysis can be performed on the final gear sequence, and the gear with the highest frequency of occurrence can be taken as the representative operating gear of the transformer on that day. As shown in formula (8).

[0078] (8) That is, among the operating gears corresponding to each time point, the operating gear that appears most frequently is selected as the representative operating gear.

[0079] Of course, this application can also determine the representative operating gear based on the operating gear corresponding to each time point in other ways, as long as the determined representative operating gear best matches the overall operating gear situation of the transformer within the target time period.

[0080] In step S150, for the high-voltage power supply and metering transformer, the line loss within the target time period can be determined based on the first electrical data and the second electrical data. That is, the line loss within the target time period can be determined based on the electrical data of the upstream line junction location of the transformer and the electrical data of the high-voltage side of the high-voltage power supply and metering transformer.

[0081] Specifically, electrical data may include voltage and current. Second electrical data can be processed to obtain third electrical data. Line loss is determined based on the voltage and current in the third electrical data and the voltage in the first electrical data. The third electrical data includes the line voltage obtained by converting the phase voltage of the high-voltage supply and measurement transformer, as well as the current. Based on this, the line voltage on the high-voltage side of the high-voltage supply and measurement transformer can be determined. For the current, the current readings of phases A and C of the high-voltage supply and measurement transformer can be added and divided by 3 to calculate the current reading of phase B of the transformer, and then multiplied by the current transformer (CT) to calculate the high-voltage side current. The voltage difference between the first and third electrical data can then be determined, thereby determining the line loss.

[0082] In addition, before determining the line loss, the power factor of the transformer can be obtained. Under normal circumstances, the power factor ranges from 0.8 to 1. Therefore, for a power factor less than 0.8, the average power factor at adjacent times can be used as a substitute. For a power factor greater than 1, the value can be reduced to meet the requirements of normal power factor values.

[0083] In specific calculations, the line loss power at a certain moment can be calculated phase by phase first, then the line loss electricity over the target time period can be calculated phase by phase, and finally the line loss electricity of the three phases can be summed to obtain the line loss over the target time period. Taking phase A as an example, the line loss power at time t is calculated. As shown in formula (9).

[0084] (9) Where M represents the number of transformers. Let be the line voltage at the junction of the transformer's upstream line at time t. Let be the line current of the j-th transformer at time t. Let be the power factor of the j-th transformer at time t.

[0085] Using the previous example, the line power loss of phase A within 24 hours As shown in formula (10).

[0086] (10) Where N is the number of time points.

[0087] Therefore, the power loss of the line within 24 hours As shown in formula (11).

[0088] (11) For high-power-low-meter transformers, since transformer losses need to be included when determining line losses, the second electrical data can be processed based on the representative operating level to obtain the fourth electrical data; the no-load loss and load loss of the transformer within the target time period can be determined; and the line loss can be determined based on the voltage and current in the fourth electrical data, the voltage in the first electrical data, the no-load loss, and the load loss.

[0089] Specifically, since the second electrical data is electrical data of the low-voltage side of the transformer, it may include phase A voltage, phase B voltage, phase C voltage, and line voltage, as well as current. Therefore, the second electrical data can be processed to obtain the fourth electrical data, which is electrical data of the high-voltage side of the transformer. The fourth electrical data may also include phase A voltage, phase B voltage, phase C voltage, or line voltage, and may also include current. The content of obtaining the high-voltage side electrical data from the low-voltage side electrical data of the transformer can be referred to the above content of this application.

[0090] When determining line loss, the voltage difference can be determined based on the voltage in the fourth electrical data and the voltage in the first electrical data. The line loss is then determined based on this voltage difference, along with current, no-load loss, and load loss. In other words, the voltage difference between the voltage at the upstream line junction of the transformer and the voltage on the high-voltage side of the transformer can be determined, and the line loss is then calculated based on this voltage difference.

[0091] Specifically, the voltage on the high-voltage side of the transformer can be referenced above. For determining the current, the low-voltage side current can be calculated by multiplying the current reading by the current transformer current transformer (CT). The high-voltage side current is then calculated by dividing the low-voltage side current by the turns ratio corresponding to the current transformer operating tap. In the specific calculation, the line loss power at a certain moment can be calculated phase by phase, then the line loss electricity over the target time period can be calculated phase by phase, and finally, the line loss electricity of the three phases can be summed to obtain the line loss over the target time period. Taking phase A as an example, the line loss power at time t is calculated. Please refer to formula (9). Line power loss of phase A within 24 hours. Formula (10) can be used as a reference. Therefore, the line power loss within 24 hours is... As shown in formula (12).

[0092] (12) in, For load loss, For load losses, this application can use existing technical solutions to determine the no-load loss and load loss of the transformer within a target time period.

[0093] This application, based on the voltage induction principle of transformers, uses transformer turns ratio and low-voltage side voltage data, along with an online tap identification algorithm for distribution transformers, to inversely deduce the high-voltage side voltage of the high-voltage supply and low-voltage metering distribution transformers. While ensuring consistency in the voltage levels of the voltage data, it calculates the voltage drop at each node of the line using the voltage drop principle, thereby deriving the line loss. This application does not rely on a complete network topology, nor precise equipment parameters and power flow iterations, significantly reducing dependence on data integrity and system structure. Through coupled analysis of measured voltage and theoretical voltage drop, computational efficiency and stability are improved.

[0094] Based on the method for determining line loss shown in the above embodiments, this application also provides a schematic diagram of the structure of a device for determining line loss, as shown below. Figure 2 As shown.

[0095] Figure 2This is a schematic diagram of a device for determining line loss according to an embodiment of this application. The device includes: an acquisition module 210 for acquiring distribution network operation data within a target time period; a sampling module 220 for sampling the distribution network operation data at preset time intervals to obtain distribution network operation data at several times, wherein the distribution network operation data includes first electrical data and second electrical data, the first electrical data being used to characterize the electrical data of the upstream line junction of the transformer, and the second electrical data being used to characterize the electrical data of the transformer; a gear position determination module 230 for determining the corresponding operating gear position of the transformer at each time based on the first electrical data and the second electrical data from a preset number of operating gear positions of the transformer; a processing module 240 for processing the operating gear positions corresponding to each time to obtain a representative operating gear position within the target time period; and a line loss determination module 250 for determining the line loss within the target time period based on the first electrical data and the second electrical data; or, determining the line loss based on the first electrical data, the second electrical data, and the representative operating gear position.

[0096] Optionally, the gear determination module 230 is specifically used to: for each preset operating gear, determine the electrical data corresponding to the operating gear based on the second electrical data; and select the operating gear as the operating gear corresponding to that moment from among the operating gears based on the first electrical data and the electrical data corresponding to each operating gear.

[0097] Optionally, the gear determination module 230 is specifically used to: determine the difference between the first electrical data and the electrical data corresponding to each operating gear; sort the operating gears according to the determined difference; and select the operating gear as the operating gear corresponding to that moment from among the operating gears according to the sorting result.

[0098] Optionally, the electrical data includes phase A voltage, phase B voltage, and phase C voltage; the gear selection module 230 is specifically used to, for each operating gear, determine the phase A voltage difference, phase B voltage difference, and phase C voltage difference between the first electrical data and the electrical data corresponding to that operating gear; and select the operating gear as the operating gear corresponding to that moment from among the operating gears based on the phase A voltage difference, phase B voltage difference, and phase C voltage difference of each operating gear.

[0099] The processing module 240 is specifically used to: slide the sliding time window according to the preset sliding time window containing a specified number of moments and the sliding time step, so that the sliding time window traverses all moments within the target time length; obtain a specified number of moments captured by the sliding time window at each sliding position; for each sliding position, according to the running gear corresponding to each moment at that sliding position, if there is a running gear corresponding to a specified moment that is different from the running gear corresponding to any other moment at that sliding position, then process the running gear corresponding to the specified moment; and determine the representative running gear based on the running gear corresponding to the specified moment at each sliding position after processing.

[0100] The processing module 240 is specifically used to: count the number of times corresponding to each operating gear according to the operating gear at each time; and select the operating gear as the representative operating gear from among the operating gears based on the statistical results.

[0101] Optionally, the electrical data includes voltage and current; the line loss determination module 250 is specifically used to process the second electrical data to obtain third electrical data; and to determine the line loss based on the voltage and current in the third electrical data and the voltage in the first electrical data.

[0102] Optionally, the electrical data includes voltage and current; the line loss determination module 250 is specifically used to process the second electrical data according to the representative operating gear to obtain fourth electrical data; determine the no-load loss and load loss of the transformer within the target time length; and determine the line loss based on the voltage and current in the fourth electrical data, the voltage in the first electrical data, the no-load loss, and the load loss.

[0103] This application also provides a computer-readable storage medium storing a computer program that can be used to execute the method for determining line loss provided in the above embodiments.

[0104] This application also provides a computer program product, which includes a computer program or computer-executable instructions, and is stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, causing the computer device to perform the method for determining line loss provided in this application.

[0105] Based on the method for determining line loss shown in the above embodiments, this application also proposes... Figure 3 The diagram shows a schematic structure of the electronic device 300. Figure 3At the hardware level, the electronic device 300 includes a processor 310 and a memory 320, and may also include an internal bus, network interface, memory, and other hardware required for the service. The processor 310 reads the corresponding computer program from the memory 320 into memory and then runs it to implement the method for determining line loss described in the above embodiments.

[0106] Of course, in addition to software implementation, this application does not exclude other implementation methods, such as logic devices or a combination of hardware and software, etc. In other words, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0107] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program and "integrate" a digital system onto a PLD themselves, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should understand that by simply performing some logic programming on the method flow using one of these hardware description languages ​​and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.

[0108] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.

[0109] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or any combination of these devices.

[0110] For ease of description, the above devices are described in terms of function, divided into various units. Of course, in implementing this specification, the functions of each unit can be implemented in one or more software and / or hardware components.

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

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

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

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

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

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

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

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

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

[0120] This application can be described in the general context of computer-executable instructions, such as program modules, that are executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This specification can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0121] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

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

Claims

1. A method for determining line loss, characterized in that, The method includes: Obtain distribution network operation data within a target time period; The distribution network operation data is sampled at preset time intervals to obtain distribution network operation data at several times. The distribution network operation data includes first electrical data and second electrical data. The first electrical data is used to characterize the electrical data of the upstream line junction of the transformer, and the second electrical data is used to characterize the electrical data of the transformer. For each moment, based on the first electrical data and the second electrical data, the operating gear corresponding to that moment is determined from among a preset number of operating gears of the transformer; The corresponding operating gear at each time point is processed to obtain the representative operating gear within the target time length; The line loss within the target time period is determined based on the first electrical data and the second electrical data; or, the line loss is determined based on the first electrical data, the second electrical data, and the representative operating gear.

2. The method according to claim 1, characterized in that, Based on the first electrical data and the second electrical data, the operating gear corresponding to this moment is determined from a preset number of operating gears of the transformer, specifically including: For each preset operating gear, the electrical data corresponding to that operating gear is determined based on the second electrical data; Based on the first electrical data and the electrical data corresponding to each operating gear, select the operating gear as the operating gear corresponding to that moment from among the operating gears.

3. The method according to claim 2, characterized in that, Based on the first electrical data and the electrical data corresponding to each operating gear, the operating gear is selected as the operating gear for that moment, specifically including: Determine the difference between the first electrical data and the electrical data corresponding to each operating gear; Based on the determined differences, sort the operating gears. Based on the sorting results, select the appropriate operating gear from among the various operating gears for that specific moment.

4. The method according to claim 2, characterized in that, The electrical data includes phase A voltage, phase B voltage, and phase C voltage; Based on the first electrical data and the electrical data corresponding to each operating gear, the operating gear is selected as the operating gear for that moment, specifically including: For each operating gear, the voltage differences between phase A, phase B, and phase C of the first electrical data and the electrical data corresponding to that operating gear are determined respectively; Based on the voltage difference between phase A, phase B, and phase C for each operating position, select the operating position corresponding to that moment from among the operating positions.

5. The method according to claim 1, characterized in that, The corresponding operating gear at each time point is processed to obtain the representative operating gear within the target time length, specifically including: Based on a preset sliding time window containing a specified number of moments and a sliding time step, the sliding time window is slid in chronological order of the moments so that the sliding time window traverses all moments within the target time length. Obtain a specified number of moments captured by the sliding time window at each sliding position; For each sliding position, based on the operating gear corresponding to each moment at that sliding position, if there is an operating gear corresponding to a specified moment that is different from the operating gear corresponding to any other moment at that sliding position, then the operating gear corresponding to the specified moment is processed. The representative operating gear is determined based on the operating gear corresponding to a specified time at each processed sliding position.

6. The method according to claim 1 or 5, characterized in that, The corresponding operating gear at each time point is processed to obtain the representative operating gear within the target time length, specifically including: Based on the operating gear corresponding to each time point, count the number of times corresponding to each operating gear. Based on the statistical results, the operating gear was selected as the representative operating gear among all operating gears.

7. The method according to claim 1, characterized in that, The electrical data includes voltage and current; Based on the first electrical data and the second electrical data, the line loss within the target time period is determined, specifically including: The second electrical data is processed to obtain the third electrical data; The line loss is determined based on the voltage and current in the third electrical data and the voltage in the first electrical data.

8. The method according to claim 1, characterized in that, The electrical data includes voltage and current; The line loss is determined based on the first electrical data, the second electrical data, and the representative operating gear, specifically including: Based on the representative operating gear, the second electrical data is processed to obtain the fourth electrical data; Determine the no-load loss and load loss of the transformer during the target time period; The line loss is determined based on the voltage and current in the fourth electrical data, the voltage in the first electrical data, the no-load loss, and the load loss.

9. A device for determining line loss, characterized in that, The device includes: The acquisition module is used to acquire distribution network operation data within a target time period; The sampling module is used to sample the distribution network operation data at preset time intervals to obtain distribution network operation data at several times. The distribution network operation data includes first electrical data and second electrical data. The first electrical data is used to characterize the electrical data of the upstream line junction of the transformer, and the second electrical data is used to characterize the electrical data of the transformer. The gear selection module is used to determine the operating gear corresponding to each moment based on the first electrical data and the second electrical data from a set of preset operating gears of the transformer. The processing module is used to process the operating gear corresponding to each time point to obtain the representative operating gear within the target time length; The line loss determination module is used to determine the line loss within the target time period based on the first electrical data and the second electrical data; or, to determine the line loss based on the first electrical data, the second electrical data, and the representative operating gear.

10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the method described in any one of claims 1-8.

11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method described in any one of claims 1-8.