Electric energy meter operation error monitoring method and system based on dynamic line loss

文档序号:734177 发布日期:2021-04-20 浏览:24次 中文

阅读说明:本技术 基于动态线损的电能表运行误差监测方法及系统 (Electric energy meter operation error monitoring method and system based on dynamic line loss ) 是由 周玉 邵雪松 蔡奇新 黄奇峰 马云龙 季欣荣 李悦 徐鸣飞 易永仙 于 2020-11-23 设计创作,主要内容包括:本申请涉及电力技术领域,提供基于动态线损的电能表运行误差监测方法及系统,通过获取目标电能表的多个动态参考线损数据,其中,每一个动态参考线损数据用于表示目标电能表对应的一个线损对照段的线损数据;然后基于获取的目标电能表的初始线损数据以及对应的多个动态参考线损数据,计算得到第一线损数据;接下来基于该第一线损数据,对该多个动态参考线损数据进行关键数据提取,得到该多个动态参考线损数据对应的目标线损数据;进而利用多个动态参考线损数据的目标线损数据对初始线损数据的线损对照段进行线损数据调整,从而计算得到目标电能表更为精确的第二线损数据,以提高目标电能表的线损计算精度。(The application relates to the technical field of electric power, and provides an electric energy meter operation error monitoring method and system based on dynamic line loss, wherein a plurality of dynamic reference line loss data of a target electric energy meter are obtained, wherein each dynamic reference line loss data is used for representing line loss data of a line loss comparison section corresponding to the target electric energy meter; then, calculating to obtain first line loss data based on the obtained initial line loss data of the target electric energy meter and the corresponding plurality of dynamic reference line loss data; next, extracting key data of the plurality of dynamic reference line loss data based on the first line loss data to obtain target line loss data corresponding to the plurality of dynamic reference line loss data; and then, line loss data adjustment is carried out on the line loss comparison section of the initial line loss data by utilizing the target line loss data of the plurality of dynamic reference line loss data, so that second line loss data which is more accurate for the target electric energy meter is obtained through calculation, and the line loss calculation precision of the target electric energy meter is improved.)

1. A method for monitoring running errors of an electric energy meter based on dynamic line loss is characterized by comprising the following steps:

acquiring a plurality of dynamic reference line loss data corresponding to a target electric energy meter, wherein each dynamic reference line loss data is used for representing the line loss data of a line loss comparison section corresponding to the target electric energy meter;

calculating to obtain first line loss data based on the obtained initial line loss data of the target electric energy meter and the corresponding plurality of dynamic reference line loss data;

extracting key data from the plurality of dynamic reference line loss data based on the first line loss data to obtain target line loss data corresponding to the plurality of dynamic reference line loss data;

and performing line loss data adjustment on the line loss comparison section of the initial line loss data by using the target line loss data of the plurality of dynamic reference line loss data to obtain second line loss data of the target electric energy meter, wherein the line loss data adjustment is used for adjusting the line loss data of the line loss comparison section.

2. The method of claim 1, wherein the obtaining initial line loss data of the target electric energy meter comprises:

extracting initial line loss data corresponding to the target electric energy meter from a target electric energy acquisition database;

the adjusting the line loss data of the line loss comparison section of the initial line loss data by using the target line loss data of the plurality of dynamic reference line loss data to obtain the second line loss data of the target electric energy meter includes:

acquiring a dynamic reference line loss sequence of each piece of dynamic reference line loss data and a standard reference line loss threshold of the target line loss data;

calculating a first difference parameter and a second difference parameter between the target line loss data and each dynamic reference line loss data according to the average line loss reference threshold of each dynamic reference line loss data, the dynamic reference line loss sequence of each dynamic reference line loss data and the standard reference line loss threshold of the target line loss data;

acquiring a ratio between a target difference parameter calculated by the first difference parameter and the second difference parameter and a preset difference parameter threshold corresponding to the initial line loss data, and generating a reference difference parameter of the target line loss data according to the calculated ratio;

determining a first historical statistical proportion corresponding to the target line loss data in a historical comparison line loss data set and a second historical statistical proportion corresponding to the historical average line loss data in the historical comparison line loss data set, wherein the first historical statistical proportion and the second historical statistical proportion are obtained by adjusting the reference difference parameter;

weighting and superposing the target line loss data and the historical average line loss data according to the first statistical historical proportion and the second historical statistical proportion, and storing a result after weighted superposition to the historical comparison line loss data set to update the historical comparison line loss data set, wherein updating the historical comparison line loss data set comprises setting an update count value in the historical comparison line loss data set as: a sum of a product of the count value of the target line loss data and the first statistical proportion, and a product of the count value of the historical average line loss data and the second historical statistical proportion;

in the target electric energy acquisition database, setting a count value of the acquired line loss data corresponding to the line loss comparison section as an average value of an average count value of the historical comparison line loss data set and a count value of the initial line loss data;

and weighting the count value of the initial line loss data and the count value corresponding to the collected line loss data with short line loss contrast according to a set proportional vector to obtain a count value, wherein the count value is used as the count value corresponding to the second line loss data.

3. The method of claim 2, wherein obtaining the dynamic reference line loss sequence of each piece of dynamic reference line loss data comprises:

obtaining a first average line loss reference threshold and a second average line loss reference threshold of each piece of dynamic reference line loss data, where the first average line loss reference threshold is used to indicate a geometric average line loss value corresponding to each piece of dynamic reference line loss data in a historical time period, the second average line loss reference threshold is used to indicate an arithmetic average value corresponding to each piece of dynamic reference line loss data in the historical time period, and the average line loss reference thresholds include the first average line loss reference threshold and the second average line loss reference threshold;

and acquiring a dynamic reference line loss sequence of each dynamic reference line loss data, which is obtained by combining the first average line loss reference threshold value and the second average line loss reference threshold value of each dynamic reference line loss data.

4. The method according to claim 1, wherein the obtaining a plurality of dynamic reference line loss data corresponding to the target electric energy meter comprises:

acquiring a target line loss comparison set of the target electric energy meter, wherein the target line loss comparison set is used for representing a set of all line loss comparison sections of the target electric energy meter;

and taking all the line loss comparison sections indicated by the target line loss comparison set as a plurality of dynamic reference line loss data corresponding to the target electric energy meter.

5. The method according to any one of claims 1 to 4, wherein the performing key data extraction on the plurality of dynamic reference line loss data based on the first line loss data to obtain target line loss data corresponding to the plurality of dynamic reference line loss data comprises:

generating dynamic line loss ranges corresponding to the plurality of dynamic reference line loss data based on the first line loss data;

iterating the dynamic line loss range according to a preset line loss disaster tolerance threshold value to generate a target extraction line loss range;

and extracting target line loss data which meets the target extraction line loss range from the plurality of dynamic reference line loss data based on the target extraction line loss range.

6. The method of claim 1, wherein the calculating a first line loss data based on the obtained initial line loss data of the target electric energy meter and the corresponding plurality of dynamic reference line loss data comprises:

under the condition that the calculation queue indicated by the created line loss data calculation queue is empty, creating a backup line loss data calculation queue according to a second preset unit data length; when the plurality of dynamic reference line loss data are not added into the created line loss data calculation queue, the corresponding line loss data calculation queue is empty;

under the condition that the calculation queue indicated by the line loss data calculation queue created according to the second preset unit data length is still empty, updating the second preset unit data length based on a preset indentation step length, wherein the preset indentation step length is used for indicating that the second preset unit data length is increased along with the increase of the times of reacquiring the line loss data calculation queue, and the initial value of the second preset unit data length is equal to the value of the first preset unit data length; and

under the condition that the line loss data calculation queue established according to the updated second preset unit data length indicates that the line loss data calculation queue is no longer empty, establishing a line loss data calculation queue according to the updated second preset unit data length, and determining the queue length of the line loss data calculation queue;

determining the number of task threads for parallel line loss calculation based on the created line loss data calculation queue and the queue length of the line loss data calculation queue;

starting a plurality of line loss calculation threads for parallel line loss calculation based on the line loss data calculation queue and the number of task threads for parallel line loss calculation;

adding the plurality of dynamic reference line loss data into the line loss data calculation queue one by one;

according to the multiple line loss calculation threads for parallel line loss calculation, performing parallel line loss calculation on the multiple dynamic reference line loss data in the line loss data calculation queue based on the initial line loss data of the target electric energy meter to generate first line loss data.

7. The method of claim 6, wherein starting a plurality of line loss calculation threads for parallel line loss calculation based on the line loss data calculation queue and the number of task threads for parallel line loss calculation comprises:

enabling a plurality of line loss calculation threads for parallel line loss calculation corresponding to the number of the task threads under the condition that the determined number of the task threads for parallel line loss calculation is not more than the preset maximum number of the task threads; and

and dynamically starting a plurality of line loss calculation threads for parallel line loss calculation corresponding to the preset maximum task thread number based on the processing sequence of each dynamic reference line loss data in the line loss data calculation queue under the condition that the determined task thread number for parallel line loss calculation is greater than the preset maximum task thread number.

8. The method according to claim 7, wherein the dynamically starting a plurality of line loss calculation threads for parallel line loss calculation corresponding to the preset maximum number of task threads based on the processing order of each dynamic reference line loss data in the line loss data calculation queue comprises:

in the process of continuously processing the plurality of dynamic reference line loss data, taking the first preset unit data length as a processing step length to obtain an updated line loss data calculation queue, wherein the updated line loss data calculation queue represents dynamic changes of the line loss data calculation queue in the process of processing the plurality of dynamic reference line loss data; and

in the process of continuously processing the plurality of dynamic reference line loss data, under the condition that the determined number of the task threads used for parallel line loss calculation is greater than the preset maximum number of the task threads, determining the preset maximum number of the task threads as the number of the plurality of line loss calculation threads used for parallel line loss calculation, and starting the plurality of line loss calculation threads used for parallel line loss calculation corresponding to the preset maximum number of the task threads.

9. The method of claim 6, wherein the performing parallel line loss calculation on the plurality of dynamic reference line loss data in the line loss data calculation queue based on initial line loss data of the target power meter according to the plurality of line loss calculation threads for parallel line loss calculation to generate first line loss data comprises:

dynamic reference line loss data which are respectively pulled from the line loss data calculation queue by utilizing the plurality of line loss calculation threads for parallel line loss calculation; and

transmitting the dynamic reference line loss data respectively pulled by each of the plurality of line loss calculation threads for parallel line loss calculation to a plurality of pre-established line loss calculation units;

and respectively carrying out parallel line loss calculation on the dynamic line loss data pulled by each of the line loss calculation threads for parallel line loss calculation and the initial line loss data through the pre-established line loss calculation units, and averaging all the obtained line loss results to obtain first line loss data.

10. The utility model provides an electric energy meter running error monitoring system based on dynamic line loss which characterized in that, the system includes:

the system comprises an acquisition module, a comparison module and a comparison module, wherein the acquisition module is used for acquiring a plurality of dynamic reference line loss data corresponding to a target electric energy meter, and each dynamic reference line loss data is used for representing the line loss data of a line loss comparison section corresponding to the target electric energy meter;

the processing module is used for calculating to obtain first line loss data based on the obtained initial line loss data of the target electric energy meter and the corresponding plurality of dynamic reference line loss data;

the processing module is further configured to perform key data extraction on the plurality of dynamic reference line loss data based on the first line loss data to obtain target line loss data corresponding to the plurality of dynamic reference line loss data;

the processing module is further configured to perform line loss data adjustment on the line loss comparison section of the initial line loss data by using the target line loss data of the plurality of dynamic reference line loss data, so as to obtain second line loss data of the target electric energy meter, where the line loss data adjustment is used for adjusting the line loss data of the line loss comparison section.

Technical Field

The application relates to the technical field of electric power, in particular to a method and a system for monitoring running errors of an electric energy meter based on dynamic line loss.

Background

The line loss refers to energy loss generated by transmission of electric energy through a power transmission line, and the level of the electric energy loss can be objectively evaluated by calculating the line loss, so that the production operation, operation management and other levels of the power system can be comprehensively evaluated.

In some related arts, the calculation of the line loss may be calculated from a count value of the electric energy meter. However, the line loss calculated by the electric energy meter can be generally used as a simple reference, and the accuracy is low.

Disclosure of Invention

The present application aims to provide a method and a system for monitoring an operation error of an electric energy meter based on dynamic line loss, so as to solve at least some of the above technical problems.

In order to achieve the purpose, the technical scheme adopted by the application is as follows:

in a first aspect, the present application provides a method for monitoring an operation error of an electric energy meter based on dynamic line loss, where the method includes:

acquiring a plurality of dynamic reference line loss data corresponding to a target electric energy meter, wherein each dynamic reference line loss data is used for representing the line loss data of a line loss comparison section corresponding to the target electric energy meter;

calculating to obtain first line loss data based on the obtained initial line loss data of the target electric energy meter and the corresponding plurality of dynamic reference line loss data;

extracting key data from the plurality of dynamic reference line loss data based on the first line loss data to obtain target line loss data corresponding to the plurality of dynamic reference line loss data;

and performing line loss data adjustment on the line loss comparison section of the initial line loss data by using the target line loss data of the plurality of dynamic reference line loss data to obtain second line loss data of the target electric energy meter, wherein the line loss data adjustment is used for adjusting the line loss data of the line loss comparison section.

Optionally, as an embodiment, the acquiring initial line loss data of the target electric energy meter includes:

extracting initial line loss data corresponding to the target electric energy meter from a target electric energy acquisition database;

the adjusting the line loss data of the line loss comparison section of the initial line loss data by using the target line loss data of the plurality of dynamic reference line loss data to obtain the second line loss data of the target electric energy meter includes:

acquiring a dynamic reference line loss sequence of each piece of dynamic reference line loss data and a standard reference line loss threshold of the target line loss data;

calculating a first difference parameter and a second difference parameter between the target line loss data and each dynamic reference line loss data according to the average line loss reference threshold of each dynamic reference line loss data, the dynamic reference line loss sequence of each dynamic reference line loss data and the standard reference line loss threshold of the target line loss data;

acquiring a ratio between a target difference parameter calculated by the first difference parameter and the second difference parameter and a preset difference parameter threshold corresponding to the initial line loss data, and generating a reference difference parameter of the target line loss data according to the calculated ratio;

determining a first historical statistical proportion corresponding to the target line loss data in a historical comparison line loss data set and a second historical statistical proportion corresponding to the historical average line loss data in the historical comparison line loss data set, wherein the first historical statistical proportion and the second historical statistical proportion are obtained by adjusting the reference difference parameter;

weighting and superposing the target line loss data and the historical average line loss data according to the first statistical historical proportion and the second historical statistical proportion, and storing a result after weighted superposition to the historical comparison line loss data set to update the historical comparison line loss data set, wherein updating the historical comparison line loss data set comprises setting an update count value in the historical comparison line loss data set as: a sum of a product of the count value of the target line loss data and the first statistical proportion, and a product of the count value of the historical average line loss data and the second historical statistical proportion;

in the target electric energy acquisition database, setting a count value of the acquired line loss data corresponding to the line loss comparison section as an average value of an average count value of the historical comparison line loss data set and a count value of the initial line loss data;

and weighting the count value of the initial line loss data and the count value corresponding to the collected line loss data with short line loss contrast according to a set proportional vector to obtain a count value, wherein the count value is used as the count value corresponding to the second line loss data.

Optionally, as an implementation manner, the obtaining a dynamic reference line loss sequence of each piece of dynamic reference line loss data includes:

obtaining a first average line loss reference threshold and a second average line loss reference threshold of each piece of dynamic reference line loss data, where the first average line loss reference threshold is used to indicate a geometric average line loss value corresponding to each piece of dynamic reference line loss data in a historical time period, the second average line loss reference threshold is used to indicate an arithmetic average value corresponding to each piece of dynamic reference line loss data in the historical time period, and the average line loss reference thresholds include the first average line loss reference threshold and the second average line loss reference threshold;

and acquiring a dynamic reference line loss sequence of each dynamic reference line loss data, which is obtained by combining the first average line loss reference threshold value and the second average line loss reference threshold value of each dynamic reference line loss data.

Optionally, as an implementation manner, the obtaining of multiple pieces of dynamic reference line loss data corresponding to the target electric energy meter includes:

acquiring a target line loss comparison set of the target electric energy meter, wherein the target line loss comparison set is used for representing a set of all line loss comparison sections of the target electric energy meter;

and taking all the line loss comparison sections indicated by the target line loss comparison set as a plurality of dynamic reference line loss data corresponding to the target electric energy meter.

Optionally, as an embodiment, after the taking all the line loss comparison sections indicated by the target line loss comparison set as a plurality of dynamic reference line loss data corresponding to the target electric energy meter, the method further includes:

and storing an average line loss reference threshold of each piece of dynamic reference line loss data, wherein the average line loss reference threshold of each piece of dynamic reference line loss data is used for indicating the line loss average threshold corresponding to each piece of dynamic reference line loss data.

Optionally, as an implementation manner, the extracting key data from the multiple pieces of dynamic reference line loss data based on the first line loss data to obtain target line loss data corresponding to the multiple pieces of dynamic reference line loss data includes:

generating dynamic line loss ranges corresponding to the plurality of dynamic reference line loss data based on the first line loss data;

iterating the dynamic line loss range according to a preset line loss disaster tolerance threshold value to generate a target extraction line loss range;

and extracting target line loss data which meets the target extraction line loss range from the plurality of dynamic reference line loss data based on the target extraction line loss range.

Optionally, as an implementation manner, the calculating, based on the obtained initial line loss data of the target electric energy meter and the corresponding plurality of dynamic reference line loss data, to obtain first line loss data includes:

under the condition that the calculation queue indicated by the created line loss data calculation queue is empty, creating a backup line loss data calculation queue according to a second preset unit data length; when the plurality of dynamic reference line loss data are not added into the created line loss data calculation queue, the corresponding line loss data calculation queue is empty;

under the condition that the calculation queue indicated by the line loss data calculation queue created according to the second preset unit data length is still empty, updating the second preset unit data length based on a preset indentation step length, wherein the preset indentation step length is used for indicating that the second preset unit data length is increased along with the increase of the times of reacquiring the line loss data calculation queue, and the initial value of the second preset unit data length is equal to the value of the first preset unit data length; and

under the condition that the line loss data calculation queue established according to the updated second preset unit data length indicates that the line loss data calculation queue is no longer empty, establishing a line loss data calculation queue according to the updated second preset unit data length, and determining the queue length of the line loss data calculation queue;

determining the number of task threads for parallel line loss calculation based on the created line loss data calculation queue and the queue length of the line loss data calculation queue;

starting a plurality of line loss calculation threads for parallel line loss calculation based on the line loss data calculation queue and the number of task threads for parallel line loss calculation;

adding the plurality of dynamic reference line loss data into the line loss data calculation queue one by one;

according to the multiple line loss calculation threads for parallel line loss calculation, performing parallel line loss calculation on the multiple dynamic reference line loss data in the line loss data calculation queue based on the initial line loss data of the target electric energy meter to generate first line loss data.

Optionally, as an embodiment, the determining, based on the created line loss data calculation queue and a queue length of the line loss data calculation queue, the number of task threads for parallel line loss calculation includes:

and determining the number of the task threads for the parallel line loss calculation according to the corresponding strategies of the number of the task threads for the parallel line loss calculation and the queue lengths of the line loss data calculation queue and the line loss data calculation queue.

Optionally, as an embodiment, the starting, based on the line loss data calculation queue and the number of task threads for parallel line loss calculation, a plurality of line loss calculation threads for parallel line loss calculation includes:

enabling a plurality of line loss calculation threads for parallel line loss calculation corresponding to the number of the task threads under the condition that the determined number of the task threads for parallel line loss calculation is not more than the preset maximum number of the task threads; and

and dynamically starting a plurality of line loss calculation threads for parallel line loss calculation corresponding to the preset maximum task thread number based on the processing sequence of each dynamic reference line loss data in the line loss data calculation queue under the condition that the determined task thread number for parallel line loss calculation is greater than the preset maximum task thread number.

Optionally, as an embodiment, the dynamically starting, based on a processing order of each dynamic reference line loss data in the line loss data calculation queue, a plurality of line loss calculation threads for parallel line loss calculation corresponding to the preset maximum number of task threads includes:

in the process of continuously processing the plurality of dynamic reference line loss data, taking the first preset unit data length as a processing step length to obtain an updated line loss data calculation queue, wherein the updated line loss data calculation queue represents dynamic changes of the line loss data calculation queue in the process of processing the plurality of dynamic reference line loss data; and

in the process of continuously processing the plurality of dynamic reference line loss data, under the condition that the determined number of the task threads used for parallel line loss calculation is greater than the preset maximum number of the task threads, determining the preset maximum number of the task threads as the number of the plurality of line loss calculation threads used for parallel line loss calculation, and starting the plurality of line loss calculation threads used for parallel line loss calculation corresponding to the preset maximum number of the task threads.

Optionally, as an embodiment, the performing, according to the plurality of line loss calculation threads for parallel line loss calculation, parallel line loss calculation on the plurality of dynamic reference line loss data in the line loss data calculation queue based on the initial line loss data of the target electric energy meter to generate first line loss data includes:

dynamic reference line loss data which are respectively pulled from the line loss data calculation queue by utilizing the plurality of line loss calculation threads for parallel line loss calculation; and

transmitting the dynamic reference line loss data respectively pulled by each of the plurality of line loss calculation threads for parallel line loss calculation to a plurality of pre-established line loss calculation units;

and respectively carrying out parallel line loss calculation on the dynamic line loss data pulled by each of the line loss calculation threads for parallel line loss calculation and the initial line loss data through the pre-established line loss calculation units, and averaging all the obtained line loss results to obtain first line loss data.

In a second aspect, the present application provides an electric energy meter operation error monitoring system based on dynamic line loss, the system includes:

the system comprises an acquisition module, a comparison module and a comparison module, wherein the acquisition module is used for acquiring a plurality of dynamic reference line loss data corresponding to a target electric energy meter, and each dynamic reference line loss data is used for representing the line loss data of a line loss comparison section corresponding to the target electric energy meter;

the processing module is used for calculating to obtain first line loss data based on the obtained initial line loss data of the target electric energy meter and the corresponding plurality of dynamic reference line loss data;

the processing module is further configured to perform key data extraction on the plurality of dynamic reference line loss data based on the first line loss data to obtain target line loss data corresponding to the plurality of dynamic reference line loss data;

the processing module is further configured to perform line loss data adjustment on the line loss comparison section of the initial line loss data by using the target line loss data of the plurality of dynamic reference line loss data, so as to obtain second line loss data of the target electric energy meter, where the line loss data adjustment is used for adjusting the line loss data of the line loss comparison section.

According to the monitoring method and system for the electricity consumption stable electric energy operation error data, a plurality of dynamic reference line loss data of a target electric energy meter are obtained, wherein each dynamic reference line loss data is used for representing line loss data of a line loss comparison section corresponding to the target electric energy meter; then, calculating to obtain first line loss data based on the obtained initial line loss data of the target electric energy meter and the corresponding plurality of dynamic reference line loss data; next, extracting key data of the plurality of dynamic reference line loss data based on the first line loss data to obtain target line loss data corresponding to the plurality of dynamic reference line loss data; and then, line loss data adjustment is carried out on the line loss comparison section of the initial line loss data by utilizing the target line loss data of the plurality of dynamic reference line loss data, so that second line loss data which is more accurate for the target electric energy meter is obtained through calculation, and the line loss calculation precision of the target electric energy meter is improved.

In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.

Drawings

In order to more clearly explain the technical solutions of the present application, the drawings needed for the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also derive other related drawings from these drawings without inventive effort.

Fig. 1 is a block diagram of an electronic device provided in the present application.

Fig. 2 is a flowchart of an electric energy meter operation error monitoring method based on dynamic line loss according to the present application.

Fig. 3 is a structural diagram of an electric energy meter operation error monitoring system based on dynamic line loss according to the present application.

Detailed Description

To make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be clearly and completely described below with reference to the accompanying drawings in some embodiments of the present application, and it is obvious that the described embodiments are some, but not all embodiments of the present application. The components of the present application, as generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations.

Thus, the following detailed description of the embodiments of the present application, as presented in the figures, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments obtained by a person of ordinary skill in the art based on a part of the embodiments in the present application without any creative effort belong to the protection scope of the present application.

It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.

It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.

Referring to fig. 1, fig. 1 is a block diagram of an electronic device 100 provided in the present application, where the electronic device 100 includes a memory 101, a processor 102, and a communication interface 103, and the memory 101, the processor 102, and the communication interface 103 are electrically connected to each other directly or indirectly to implement data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.

The memory 101 may be configured to store software programs and modules, for example, program instructions/modules corresponding to the dynamic line loss-based electric energy meter operation error monitoring system provided in the present application, and the processor 102 executes various functional applications and data processing by executing the software programs and modules stored in the memory 101, so as to further execute the steps of the dynamic line loss-based electric energy meter operation error monitoring method provided in the present application. The communication interface 103 may be used for communicating signaling or data with other node devices.

The Memory 101 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Programmable Read-Only Memory (EEPROM), and the like.

The processor 102 may be an integrated circuit chip having signal processing capabilities. The Processor 102 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.

Referring to fig. 2, fig. 2 is a flowchart of a method for monitoring an operating error of an electric energy meter based on dynamic line loss according to the present application, where the method includes the following steps:

and step 110, acquiring a plurality of dynamic reference line loss data corresponding to the target electric energy meter.

In this embodiment, when performing line loss calculation with one of the electric energy meters in the electric power system as a target electric energy meter, a plurality of dynamic reference line loss data corresponding to the target electric energy meter may be obtained according to a plurality of line loss comparison sections configured for the target electric energy meter in advance, where each dynamic reference line loss data is used to represent line loss data of one line loss comparison section corresponding to the target electric energy meter.

It can be understood that each line loss comparison segment corresponding to the target electric energy meter may be one of the segments in the reference power line corresponding to the target electric energy meter, and the line loss level of each line loss comparison segment may be taken as a standard line loss level.

And step 120, calculating to obtain first line loss data based on the obtained initial line loss data of the target electric energy meter and the corresponding plurality of dynamic reference line loss data.

In this embodiment, based on the power collection value of the target electric energy meter, initial line loss data corresponding to the target electric energy meter may be calculated; and calculating first line loss data based on the obtained initial line loss data of the target electric energy meter and the plurality of dynamic reference line loss data corresponding to the target electric energy meter, wherein the first line loss data is line loss data subjected to initial correction aiming at the initial line loss data.

Step 130, based on the first line loss data, performing key data extraction on the plurality of dynamic reference line loss data to obtain target line loss data corresponding to the plurality of dynamic reference line loss data.

In this embodiment, based on the obtained first line loss data, key data extraction may be performed on the multiple pieces of dynamic reference line loss data to obtain target line loss data corresponding to the multiple pieces of dynamic reference line loss data; and the target line loss data is line loss data corresponding to the whole dynamic reference line loss data.

And 140, performing line loss data adjustment on the line loss comparison section of the initial line loss data by using the target line loss data of the plurality of dynamic reference line loss data to obtain second line loss data of the target electric energy meter.

In this embodiment, after the target line loss data is obtained, line loss data adjustment may be performed on a line loss comparison section of the initial line loss data by using the target line loss data corresponding to the plurality of dynamic reference line loss data, so as to obtain more accurate second line loss data of the target electric energy meter, where the line loss data adjustment is used for adjusting the line loss data of the line loss comparison section.

Based on this, in the scheme provided by the application, a plurality of dynamic reference line loss data of the target electric energy meter are obtained, wherein each dynamic reference line loss data is used for representing line loss data of a line loss comparison section corresponding to the target electric energy meter; then, calculating to obtain first line loss data based on the obtained initial line loss data of the target electric energy meter and the corresponding plurality of dynamic reference line loss data; next, extracting key data of the plurality of dynamic reference line loss data based on the first line loss data to obtain target line loss data corresponding to the plurality of dynamic reference line loss data; and then, line loss data adjustment is carried out on the line loss comparison section of the initial line loss data by utilizing the target line loss data of the plurality of dynamic reference line loss data, so that second line loss data which is more accurate for the target electric energy meter is obtained through calculation, and the line loss calculation precision of the target electric energy meter is improved.

In this embodiment, as an implementation manner, when step 110 is executed to obtain a plurality of dynamic reference line loss data corresponding to a target electric energy meter, a target line loss comparison set of the target electric energy meter may be obtained first, where the target line loss comparison set is used to represent a set of all line loss comparison sections of the target electric energy meter; each line loss comparison segment may be a line loss segment pre-configured to the target electric energy meter.

And then, taking all the line loss comparison sections indicated by the target line loss comparison set as a plurality of dynamic reference line loss data corresponding to the target electric energy meter.

It can be understood that, according to the difference of comparison references, a user may configure different line loss comparison sections for the target electric energy meter, so as to adjust a plurality of dynamic reference line loss data corresponding to the target electric energy meter, and further flexibly configure line loss calculation strategies in different states for the target electric energy meter.

In addition, in this embodiment, as an implementation manner, when step 120 is executed to calculate the first line loss data, a backup line loss data calculation queue may be created according to a second preset unit data length when the calculation queue indicated by the created line loss data calculation queue is empty; when the plurality of dynamic reference line loss data are not added to the created line loss data calculation queue, the corresponding line loss data calculation queue is empty.

In this embodiment, the second preset unit data length may be used to indicate the size of the byte space occupied by a single dynamic reference line loss data.

It is to be understood that when the data size of the plurality of dynamic reference line loss data does not match the size of the line loss data calculation queue, the plurality of dynamic reference line loss data may not be added to the line loss data calculation queue created.

And then, under the condition that the calculation queue indicated by the line loss data calculation queue created according to the second preset unit data length is still empty, updating the second preset unit data length based on a preset indentation step length, wherein the preset indentation step length is used for indicating that the second preset unit data length is increased along with the increase of the number of times of reacquiring the line loss data calculation queue, and the initial value of the second preset unit data length is equal to the value of the first preset unit data length.

In this embodiment, the first preset unit data length is a preset unit data length.

And under the condition that the line loss data calculation queue established according to the updated second preset unit data length indicates that the line loss data calculation queue is no longer empty, establishing a line loss data calculation queue according to the second preset unit data length updated last, and determining the queue length of the line loss data calculation queue.

In this embodiment, when the data size of the plurality of dynamic reference line loss data matches the size of the line loss data calculation queue, the plurality of dynamic reference line loss data may be added to the created line loss data calculation queue, and the created line loss data calculation queue is not empty at this time.

In this embodiment, the queue length of the line loss data calculation queue may be obtained by using the last updated second preset unit data length as the number of the plurality of dynamic reference line loss data.

Next, the number of task threads for parallel line loss calculation is determined based on the created line loss data calculation queue and the queue length of the line loss data calculation queue.

And then starting a plurality of line loss calculation threads for parallel line loss calculation based on the line loss data calculation queue and the number of task threads for parallel line loss calculation.

And then, adding the plurality of dynamic reference line loss data into the line loss data calculation queue one by one.

Then, according to the multiple line loss calculation threads for parallel line loss calculation, performing parallel line loss calculation on the multiple dynamic reference line loss data in the line loss data calculation queue based on the initial line loss data of the target electric energy meter to generate first line loss data; in this way, the plurality of dynamic reference line loss data can be processed in parallel, so that the generation speed of the first line loss data is increased.

In this embodiment, as an implementation manner, when determining the number of task threads used for parallel line loss calculation based on the created line loss data calculation queue and the queue length of the line loss data calculation queue, the number of task threads used for parallel line loss calculation may be determined according to a policy that the number of task threads used for parallel line loss calculation corresponds to the queue lengths of the line loss data calculation queue and the line loss data calculation queue.

It is to be understood that the corresponding policy may be a preconfigured policy, and the corresponding policy records the corresponding relationship between the task thread data and the queue type and the queue length.

For example, the line loss data calculation queues in different length ranges may be divided into different queue types according to different queue lengths, and different corresponding relationships are set in each queue type, where each corresponding relationship is used to indicate a corresponding relationship between task thread data and a queue length.

In addition, in this embodiment, when starting a plurality of line loss calculation threads for parallel line loss calculation based on the line loss data calculation queue and the number of task threads for parallel line loss calculation, the following scheme may be adopted:

on one hand, under the condition that the determined number of the task threads for the parallel line loss calculation is not larger than the preset maximum number of the task threads, enabling a plurality of line loss calculation threads for the parallel line loss calculation corresponding to the number of the task threads.

On the other hand, when the determined number of task threads for parallel line loss calculation is greater than the preset maximum number of task threads, dynamically starting a plurality of line loss calculation threads for parallel line loss calculation corresponding to the preset maximum number of task threads based on the processing order of each dynamic reference line loss data in the line loss data calculation queue.

It will be appreciated that the preset maximum number of task threads may be used to indicate the maximum number of task threads that can be enabled.

In addition, when dynamically starting a plurality of line loss calculation threads for parallel line loss calculation corresponding to the preset maximum number of task threads based on the processing order of each dynamic reference line loss data in the line loss data calculation queue, the method may be: in the process of continuously processing the plurality of dynamic reference line loss data, taking the first preset unit data length as a processing step length to obtain an updated line loss data calculation queue, wherein the updated line loss data calculation queue represents dynamic changes of the line loss data calculation queue in the process of processing the plurality of dynamic reference line loss data; and in the process of continuously processing the plurality of dynamic reference line loss data, under the condition that the determined number of the task threads used for parallel line loss calculation is greater than the preset maximum task thread number, determining the preset maximum task thread number as the number of the plurality of line loss calculation threads used for parallel line loss calculation, and starting the plurality of line loss calculation threads used for parallel line loss calculation corresponding to the preset maximum task thread number.

In this embodiment, as an implementation manner, when performing parallel line loss calculation on the plurality of dynamic reference line loss data in the line loss data calculation queue based on the initial line loss data of the target electric energy meter according to the plurality of line loss calculation threads for parallel line loss calculation to generate first line loss data, the plurality of line loss calculation threads for parallel line loss calculation may first use the dynamic reference line loss data respectively pulled from the line loss data calculation queue; transmitting the dynamic reference line loss data respectively pulled by each of the plurality of line loss calculation threads for parallel line loss calculation to a plurality of pre-established line loss calculation units; then, the plurality of pre-created line loss calculation units perform parallel line loss calculation on the dynamic line loss data and the initial line loss data respectively drawn by the plurality of line loss calculation threads for parallel line loss calculation, and average the calculated results of all line losses to obtain first line loss data.

As another embodiment, when the initial line loss data of the target electric energy meter is obtained, the initial line loss data corresponding to the target electric energy meter is further extracted from a target electric energy collection database.

The target electric energy collection database can store various data corresponding to the target electric energy meter, wherein one of the various data includes line loss data of the target electric energy meter.

Based on this, when the line loss data of the line loss comparison section of the initial line loss data is adjusted by using the target line loss data of the plurality of dynamic reference line loss data to obtain the second line loss data of the target electric energy meter, the following scheme may be adopted:

firstly, a dynamic reference line loss sequence of each dynamic reference line loss data and a standard reference line loss threshold of the target line loss data are obtained.

Then, according to the average line loss reference threshold of each piece of dynamic reference line loss data, the dynamic reference line loss sequence of each piece of dynamic reference line loss data, and the standard reference line loss threshold of the target line loss data, a first difference parameter and a second difference parameter between the target line loss data and each piece of dynamic reference line loss data are calculated.

Next, a ratio between a target difference parameter calculated by the first difference parameter and the second difference parameter and a preset difference parameter threshold corresponding to the initial line loss data is obtained, and a reference difference parameter of the target line loss data is generated according to the calculated ratio.

Then, a first historical statistical proportion corresponding to the target line loss data in a historical comparison line loss data set and a second historical statistical proportion corresponding to the historical average line loss data in the historical comparison line loss data set are determined, wherein the first historical statistical proportion and the second historical statistical proportion are obtained by adjusting the reference difference parameter.

Then, performing weighted superposition on the target line loss data and the historical average line loss data according to the first statistical historical proportion and the second historical statistical proportion, and saving a result after weighted superposition to the historical comparison line loss data set to update the historical comparison line loss data set, wherein updating the historical comparison line loss data set includes setting an update count value in the historical comparison line loss data set as: and the sum of the product of the count value of the target line loss data and the first statistical proportion and the product of the count value of the historical average line loss data and the second historical statistical proportion.

Then, in the target electric energy collection database, the count value of the collected line loss data corresponding to the line loss comparison section is set as the average value of the average count value of the historical comparison line loss data set and the count value of the initial line loss data.

And then, a count value obtained by weighting both the count value of the initial line loss data and the count value corresponding to the collected line loss data with short line loss comparison according to a set proportional vector is used as the count value corresponding to the second line loss data.

Therefore, according to the implementation mode provided by the application, the second line loss data corresponding to the target electric energy meter can be accurately calculated, so that the calculation precision of the line loss data corresponding to the target electric energy meter is improved.

In addition, as an embodiment, when obtaining the dynamic reference line loss sequence of each dynamic reference line loss data, a first average line loss reference threshold and a second average line loss reference threshold of each dynamic reference line loss data may be obtained first, where the first average line loss reference threshold is used to indicate a geometric average line loss value corresponding to each dynamic reference line loss data in a historical time period, the second average line loss reference threshold is used to indicate an arithmetic mean value corresponding to each dynamic reference line loss data in the historical time period, and the average line loss reference threshold includes the first average line loss reference threshold and the second average line loss reference threshold.

And then, acquiring a dynamic reference line loss sequence of each dynamic reference line loss data, which is obtained by combining the first average line loss reference threshold and the second average line loss reference threshold of each dynamic reference line loss data.

In order to speed up the subsequent calculation process, after the step of taking all the line loss comparison segments indicated by the target line loss comparison set as a plurality of dynamic reference line loss data corresponding to the target electric energy meter is performed, an average line loss reference threshold value of each dynamic reference line loss data may be further saved, where the average line loss reference threshold value of each dynamic reference line loss data is used to indicate a line loss average threshold value corresponding to each dynamic reference line loss data.

Therefore, in the subsequent calculation process based on the scheme provided by the application, the average line loss reference threshold value of each piece of stored dynamic reference line loss data can be used for calculation, so that the calculation speed is increased.

In one embodiment, when key data is extracted from the plurality of dynamic reference line loss data based on the first line loss data to obtain target line loss data corresponding to the plurality of dynamic reference line loss data, a dynamic line loss range corresponding to the plurality of dynamic reference line loss data may be generated based on the first line loss data.

In this embodiment, the first line loss data may be added and subtracted according to a preset step range, so as to calculate a dynamic line loss range with the value of the first line loss data as a central point and the preset step as a radius.

And then, iterating the dynamic line loss range according to a preset line loss disaster tolerance threshold value to generate a target extraction line loss range.

Next, based on the target extraction line loss range, extracting target line loss data satisfying the target extraction line loss range from the plurality of dynamic reference line loss data.

When a plurality of target line loss data all meet the target extraction line loss range, one target line loss data can be randomly selected as the finally determined target line loss data.

In addition, based on the same inventive concept as the method for monitoring the operation error of the dynamic line loss-based electric energy meter provided in the present application, please refer to fig. 3, and fig. 3 is a structural diagram of a system 300 for monitoring the operation error of the dynamic line loss-based electric energy meter provided in the present application, where the system includes an obtaining module 310 and a processing module 320.

An obtaining module 310, configured to obtain multiple pieces of dynamic reference line loss data corresponding to a target electric energy meter, where each piece of dynamic reference line loss data is used to represent line loss data of a line loss comparison section corresponding to the target electric energy meter;

the processing module 320 is configured to calculate to obtain first line loss data based on the obtained initial line loss data of the target electric energy meter and the corresponding plurality of dynamic reference line loss data;

the processing module 320 is further configured to, based on the first line loss data, perform key data extraction on the multiple pieces of dynamic reference line loss data to obtain target line loss data corresponding to the multiple pieces of dynamic reference line loss data;

the processing module 320 is further configured to perform line loss data adjustment on the line loss comparison segment of the initial line loss data by using the target line loss data of the plurality of dynamic reference line loss data, so as to obtain second line loss data of the target electric energy meter, where the line loss data adjustment is used for adjusting the line loss data of the line loss comparison segment.

Optionally, as an implementation manner, when acquiring the initial line loss data of the target electric energy meter, the processing module 320 is specifically configured to:

extracting initial line loss data corresponding to the target electric energy meter from a target electric energy acquisition database;

when the processing module 320 performs line loss data adjustment on the line loss comparison segment of the initial line loss data by using the target line loss data of the plurality of dynamic reference line loss data to obtain the second line loss data of the target electric energy meter, specifically:

acquiring a dynamic reference line loss sequence of each piece of dynamic reference line loss data and a standard reference line loss threshold of the target line loss data;

calculating a first difference parameter and a second difference parameter between the target line loss data and each dynamic reference line loss data according to the average line loss reference threshold of each dynamic reference line loss data, the dynamic reference line loss sequence of each dynamic reference line loss data and the standard reference line loss threshold of the target line loss data;

acquiring a ratio between a target difference parameter calculated by the first difference parameter and the second difference parameter and a preset difference parameter threshold corresponding to the initial line loss data, and generating a reference difference parameter of the target line loss data according to the calculated ratio;

determining a first historical statistical proportion corresponding to the target line loss data in a historical comparison line loss data set and a second historical statistical proportion corresponding to the historical average line loss data in the historical comparison line loss data set, wherein the first historical statistical proportion and the second historical statistical proportion are obtained by adjusting the reference difference parameter;

weighting and superposing the target line loss data and the historical average line loss data according to the first statistical historical proportion and the second historical statistical proportion, and storing a result after weighted superposition to the historical comparison line loss data set to update the historical comparison line loss data set, wherein updating the historical comparison line loss data set comprises setting an update count value in the historical comparison line loss data set as: a sum of a product of the count value of the target line loss data and the first statistical proportion, and a product of the count value of the historical average line loss data and the second historical statistical proportion;

in the target electric energy acquisition database, setting a count value of the acquired line loss data corresponding to the line loss comparison section as an average value of an average count value of the historical comparison line loss data set and a count value of the initial line loss data;

and weighting the count value of the initial line loss data and the count value corresponding to the collected line loss data with short line loss contrast according to a set proportional vector to obtain a count value, wherein the count value is used as the count value corresponding to the second line loss data.

Optionally, as an implementation manner, when acquiring the dynamic reference line loss sequence of each piece of dynamic reference line loss data, the processing module 320 is specifically configured to:

obtaining a first average line loss reference threshold and a second average line loss reference threshold of each piece of dynamic reference line loss data, where the first average line loss reference threshold is used to indicate a geometric average line loss value corresponding to each piece of dynamic reference line loss data in a historical time period, the second average line loss reference threshold is used to indicate an arithmetic average value corresponding to each piece of dynamic reference line loss data in the historical time period, and the average line loss reference thresholds include the first average line loss reference threshold and the second average line loss reference threshold;

and acquiring a dynamic reference line loss sequence of each dynamic reference line loss data, which is obtained by combining the first average line loss reference threshold value and the second average line loss reference threshold value of each dynamic reference line loss data.

Optionally, as an implementation manner, when acquiring a plurality of dynamic reference line loss data corresponding to a target electric energy meter, the acquiring module 310 is specifically configured to:

acquiring a target line loss comparison set of the target electric energy meter, wherein the target line loss comparison set is used for representing a set of all line loss comparison sections of the target electric energy meter;

and taking all the line loss comparison sections indicated by the target line loss comparison set as a plurality of dynamic reference line loss data corresponding to the target electric energy meter.

Optionally, as an embodiment, after taking all the line loss comparison segments indicated by the target line loss comparison set as a plurality of dynamic reference line loss data corresponding to the target electric energy meter, the processing module 320 is further configured to:

and storing an average line loss reference threshold of each piece of dynamic reference line loss data, wherein the average line loss reference threshold of each piece of dynamic reference line loss data is used for indicating the line loss average threshold corresponding to each piece of dynamic reference line loss data.

Optionally, as an implementation manner, when the processing module 320 performs key data extraction on the multiple pieces of dynamic reference line loss data based on the first line loss data to obtain target line loss data corresponding to the multiple pieces of dynamic reference line loss data, specifically configured to:

generating dynamic line loss ranges corresponding to the plurality of dynamic reference line loss data based on the first line loss data;

iterating the dynamic line loss range according to a preset line loss disaster tolerance threshold value to generate a target extraction line loss range;

and extracting target line loss data which meets the target extraction line loss range from the plurality of dynamic reference line loss data based on the target extraction line loss range.

Optionally, as an implementation manner, when the processing module 320 calculates to obtain the first line loss data based on the obtained initial line loss data of the target electric energy meter and the corresponding plurality of dynamic reference line loss data, specifically configured to:

under the condition that the calculation queue indicated by the created line loss data calculation queue is empty, creating a backup line loss data calculation queue according to a second preset unit data length; when the plurality of dynamic reference line loss data are not added into the created line loss data calculation queue, the corresponding line loss data calculation queue is empty;

under the condition that the calculation queue indicated by the line loss data calculation queue created according to the second preset unit data length is still empty, updating the second preset unit data length based on a preset indentation step length, wherein the preset indentation step length is used for indicating that the second preset unit data length is increased along with the increase of the times of reacquiring the line loss data calculation queue, and the initial value of the second preset unit data length is equal to the value of the first preset unit data length; and

under the condition that the line loss data calculation queue established according to the updated second preset unit data length indicates that the line loss data calculation queue is no longer empty, establishing a line loss data calculation queue according to the updated second preset unit data length, and determining the queue length of the line loss data calculation queue;

determining the number of task threads for parallel line loss calculation based on the created line loss data calculation queue and the queue length of the line loss data calculation queue;

starting a plurality of line loss calculation threads for parallel line loss calculation based on the line loss data calculation queue and the number of task threads for parallel line loss calculation;

adding the plurality of dynamic reference line loss data into the line loss data calculation queue one by one;

according to the multiple line loss calculation threads for parallel line loss calculation, performing parallel line loss calculation on the multiple dynamic reference line loss data in the line loss data calculation queue based on the initial line loss data of the target electric energy meter to generate first line loss data.

Optionally, as an implementation manner, when determining the number of task threads for parallel line loss calculation based on the created line loss data calculation queue and the queue length of the line loss data calculation queue, the processing module 320 is specifically configured to:

and determining the number of the task threads for the parallel line loss calculation according to the corresponding strategies of the number of the task threads for the parallel line loss calculation and the queue lengths of the line loss data calculation queue and the line loss data calculation queue.

Optionally, as an implementation manner, when starting a plurality of line loss calculation threads for parallel line loss calculation based on the line loss data calculation queue and the number of task threads for parallel line loss calculation, the processing module 320 is specifically configured to:

enabling a plurality of line loss calculation threads for parallel line loss calculation corresponding to the number of the task threads under the condition that the determined number of the task threads for parallel line loss calculation is not more than the preset maximum number of the task threads; and

and dynamically starting a plurality of line loss calculation threads for parallel line loss calculation corresponding to the preset maximum task thread number based on the processing sequence of each dynamic reference line loss data in the line loss data calculation queue under the condition that the determined task thread number for parallel line loss calculation is greater than the preset maximum task thread number.

Optionally, as an embodiment, when dynamically starting a plurality of line loss calculation threads for parallel line loss calculation corresponding to the preset maximum number of task threads based on a processing order of each piece of dynamic reference line loss data in the line loss data calculation queue, the processing module 320 is specifically configured to:

in the process of continuously processing the plurality of dynamic reference line loss data, taking the first preset unit data length as a processing step length to obtain an updated line loss data calculation queue, wherein the updated line loss data calculation queue represents dynamic changes of the line loss data calculation queue in the process of processing the plurality of dynamic reference line loss data; and

in the process of continuously processing the plurality of dynamic reference line loss data, under the condition that the determined number of the task threads used for parallel line loss calculation is greater than the preset maximum number of the task threads, determining the preset maximum number of the task threads as the number of the plurality of line loss calculation threads used for parallel line loss calculation, and starting the plurality of line loss calculation threads used for parallel line loss calculation corresponding to the preset maximum number of the task threads.

Optionally, as an embodiment, when performing parallel line loss calculation on the plurality of dynamic reference line loss data in the line loss data calculation queue based on the initial line loss data of the target electric energy meter according to the plurality of line loss calculation threads for parallel line loss calculation to generate first line loss data, the processing module 320 is specifically configured to:

dynamic reference line loss data which are respectively pulled from the line loss data calculation queue by utilizing the plurality of line loss calculation threads for parallel line loss calculation; and

transmitting the dynamic reference line loss data respectively pulled by each of the plurality of line loss calculation threads for parallel line loss calculation to a plurality of pre-established line loss calculation units;

and respectively carrying out parallel line loss calculation on the dynamic line loss data pulled by each of the line loss calculation threads for parallel line loss calculation and the initial line loss data through the pre-established line loss calculation units, and averaging all the obtained line loss results to obtain first line loss data.

In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to some embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s).

It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.

It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

In addition, functional modules in some embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method according to some embodiments of the present application. And the aforementioned storage medium includes: u disk, removable hard disk, read only memory, random access memory, magnetic or optical disk, etc. for storing program codes.

The above description is only a few examples of the present application and is not intended to limit the present application, and those skilled in the art will appreciate that various modifications and variations can be made in the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于人工智能的电能表运行误差监测数据拟合方法及系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!