CN112684398B - Electric energy meter operation error monitoring method and system based on dynamic line loss - Google Patents

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

Info

Publication number
CN112684398B
CN112684398B CN202011318453.0A CN202011318453A CN112684398B CN 112684398 B CN112684398 B CN 112684398B CN 202011318453 A CN202011318453 A CN 202011318453A CN 112684398 B CN112684398 B CN 112684398B
Authority
CN
China
Prior art keywords
line loss
loss data
data
calculation
dynamic reference
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011318453.0A
Other languages
Chinese (zh)
Other versions
CN112684398A (en
Inventor
周玉
邵雪松
蔡奇新
黄奇峰
马云龙
季欣荣
李悦
徐鸣飞
易永仙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Jiangsu Electric Power Co ltd Marketing Service Center
State Grid Jiangsu Electric Power Co Ltd
Original Assignee
State Grid Jiangsu Electric Power Co ltd Marketing Service Center
State Grid Jiangsu Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Jiangsu Electric Power Co ltd Marketing Service Center, State Grid Jiangsu Electric Power Co Ltd filed Critical State Grid Jiangsu Electric Power Co ltd Marketing Service Center
Priority to CN202011318453.0A priority Critical patent/CN112684398B/en
Publication of CN112684398A publication Critical patent/CN112684398A/en
Application granted granted Critical
Publication of CN112684398B publication Critical patent/CN112684398B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

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 the method comprises the steps of obtaining a plurality of dynamic reference line loss data of a target electric energy meter, 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 a plurality of corresponding dynamic reference line loss data; then, based on the first line loss data, extracting key data from the plurality of dynamic reference line loss data to obtain target line loss data corresponding to the plurality of dynamic reference line loss data; and then, the 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 of the target electric energy meter, which is more accurate, is obtained through calculation, and the line loss calculation precision of the target electric energy meter is improved.

Description

Electric energy meter operation error monitoring method and system based on dynamic line loss
Technical Field
The application relates to the technical field of electric power, in particular to an electric energy meter operation error monitoring method and system based on dynamic line loss.
Background
The line loss is 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 electric power system are comprehensively evaluated.
In some related art, the line loss calculation may be performed by 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 application aims to provide an electric energy meter operation error monitoring method and system based on dynamic line loss, so as to solve at least part of the technical problems.
In order to achieve the above purpose, the technical scheme adopted in 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 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 dynamic reference line loss data;
Based on the first line loss data, extracting key data from the plurality of dynamic reference 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 utilizing 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 implementation manner, the acquiring initial line loss data of the target electric energy meter includes:
extracting initial line loss data corresponding to a target electric energy meter from a target electric energy acquisition database;
the step of 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, includes:
acquiring a dynamic reference line loss sequence of each dynamic reference line loss data and a standard reference line loss threshold value of the target line loss data;
according to the average line loss reference threshold value 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 value 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;
Acquiring a target difference parameter calculated by the first difference parameter and the second difference parameter, a ratio between preset difference parameter thresholds 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 statistical proportion of the target line loss data corresponding to a historical comparison line loss data set and a second statistical proportion of the historical average line loss data corresponding to the historical comparison line loss data set, wherein the first statistical proportion and the second statistical proportion are obtained by adjusting the reference difference parameters;
the target line loss data and the historical average line loss data are subjected to weighted superposition according to the first statistical historical proportion and the second statistical historical proportion, and the weighted superposition result is stored in 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 to be: a sum of a product of the count value of the target line loss data and the first statistical history proportion, and a product of the count value of the history average line loss data and the second statistical history proportion;
In the target electric energy acquisition database, setting the count value of the acquired line loss data corresponding to the line loss comparison section 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 weighting the count value of the initial line loss data and the count value corresponding to the acquired line loss data with short line loss comparison according to a set proportion vector to obtain a count value serving as the count value corresponding to the second line loss data.
Optionally, as an implementation manner, the acquiring the dynamic reference line loss sequence of each dynamic reference line loss data includes:
acquiring a first average line loss reference threshold value and a second average line loss reference threshold value of each piece of dynamic reference line loss data, wherein the first average line loss reference threshold value is used for indicating 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 value is used for indicating 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 threshold value comprises the first average line loss reference threshold value and the second average line loss reference threshold value;
And acquiring a dynamic reference line loss sequence of each dynamic reference line loss data, wherein the dynamic reference line loss sequence is obtained by combining a first average line loss reference threshold value and a second average line loss reference threshold value of each dynamic reference line loss data.
Optionally, as an implementation manner, the obtaining the plurality 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 implementation manner, after the taking all the line loss control segments indicated by the target line loss control 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 value of each piece of dynamic reference line loss data, wherein the average line loss reference threshold value of each piece of dynamic reference line loss data is used for indicating the line loss average threshold value corresponding to each piece of dynamic reference line loss data.
Optionally, as an implementation manner, the 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 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 extracted line loss range;
and extracting target line loss data meeting 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 multiple dynamic reference line loss data, obtains 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;
Updating the second preset unit data length based on a preset retraction step under the condition that a line loss data calculation queue created according to the second preset unit data length indicates that the calculation queue is still empty, wherein the preset retraction step is used for indicating that the second preset unit data length is increased along with the increase of the number of times of re-acquiring 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 which is created according to the updated second preset unit data length indicates that the line loss data calculation queue is not empty any more, creating a line loss data calculation queue according to the last 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 task thread number for parallel line loss calculation;
Adding the dynamic reference line loss data into the line loss data calculation queue one by one;
and 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 so as to generate first line loss data.
Optionally, as an implementation manner, the 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 includes:
and determining the number of task threads for parallel line loss calculation according to the corresponding strategies of the number of task threads for parallel line loss calculation and the line loss data calculation queues and the queue lengths of the line loss data calculation queues.
Optionally, as an implementation manner, the starting a plurality of line loss calculation threads for parallel line loss calculation based on the line loss data calculation queue and the task thread number for parallel line loss calculation includes:
enabling a plurality of line loss calculation threads for parallel line loss calculation corresponding to the task thread number under the condition that the determined task thread number for parallel line loss calculation is not greater than the preset maximum task thread number; 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 larger than the preset maximum task thread number.
Optionally, as an implementation manner, the 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 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, determining the preset maximum task thread number as the number of the plurality of line loss calculation threads for parallel line loss calculation under the condition that the determined task thread number for parallel line loss calculation is larger than the preset maximum task thread number, and starting the plurality of line loss calculation threads for parallel line loss calculation corresponding to the preset maximum task thread number.
Optionally, as an implementation manner, the performing, according to the multiple line loss calculation threads for parallel line loss calculation, parallel line loss calculation on the multiple dynamic reference line loss data in the line loss data calculation queue based on initial line loss data of the target electric energy meter to generate first line loss data includes:
dynamic reference line loss data 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 line loss calculation thread for parallel line loss calculation to a plurality of pre-created line loss calculation units;
and respectively carrying out parallel line loss calculation on the dynamic line loss data and the initial line loss data which are respectively pulled by the line loss calculation threads for parallel line loss calculation through the line loss calculation units, and averaging all the 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 comprising:
the acquisition module is used for 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 line loss data of a line loss comparison section corresponding to the target electric energy meter;
The processing module is used for calculating first line loss data based on the acquired initial line loss data of the target electric energy meter and the corresponding dynamic reference line loss data;
the processing module is further configured to extract key data from the plurality of dynamic reference line loss data based on the first line loss data, so as 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 a line loss comparison segment of the initial line loss data by using 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.
According to the method and the system for monitoring the steady electric energy running error data of the electric energy consumption, the 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 the line loss data of one 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 a plurality of corresponding dynamic reference line loss data; then, based on the first line loss data, extracting key data from the plurality of dynamic reference line loss data to obtain target line loss data corresponding to the plurality of dynamic reference line loss data; and then, the 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 of the target electric energy meter, which is more accurate, is obtained through calculation, and the line loss calculation precision of the target electric energy meter is improved.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
For a clearer description of the technical solutions of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and should therefore not be considered limiting in scope, and that other related drawings can be obtained from these drawings without the inventive effort for a person skilled in the art.
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.
Fig. 3 is a block diagram of the electric energy meter operation error monitoring system based on dynamic line loss.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, 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 apparent that the described embodiments are some embodiments of the present application, but not all embodiments. 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 provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which are derived by a person skilled in the art from the embodiments given herein without creative efforts, are within the scope of protection of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
It is noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may 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 directly or indirectly to each other to realize 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 used for storing software programs and modules, such as 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 the software programs and modules stored in the memory 101, thereby executing various functional applications and data processing, and further executing 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 communication of signaling or data with other node devices.
The Memory 101 may be, but is not limited to, a random access Memory (Random Access Memory, RAM), a Read Only Memory (ROM), a programmable Read Only Memory (Programmable Read-Only Memory, PROM), an erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), an electrically erasable programmable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
The processor 102 may be an integrated circuit chip with signal processing capabilities. The processor 102 may be a general purpose processor including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
Referring to fig. 2, fig. 2 is a flowchart of an electric energy meter operation error monitoring method based on dynamic line loss, which includes the following steps:
step 110, obtaining a plurality of dynamic reference line loss data corresponding to the target electric energy meter.
In this embodiment, when one electric energy meter of the electric power system is used as a target electric energy meter to perform line loss calculation, 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 of the 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 section corresponding to the target electric energy meter may be one section of the reference power line corresponding to the target electric energy meter, and the line loss level of each line loss comparison section may be used as a standard line loss level.
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 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 after initial correction is carried out on the initial line loss data.
And 130, 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.
In this embodiment, based on the obtained first line loss data, key data extraction may be performed on the plurality of dynamic reference line loss data, so as to obtain target line loss data corresponding to the plurality of dynamic reference line loss data; the target line loss data are line loss data corresponding to the whole of the plurality of 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 utilizing 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 the line loss control 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 control section.
Based on the above, 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 the line loss data of one 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 a plurality of corresponding dynamic reference line loss data; then, based on the first line loss data, extracting key data from the plurality of dynamic reference line loss data to obtain target line loss data corresponding to the plurality of dynamic reference line loss data; and then, the 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 of the target electric energy meter, which is more accurate, 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 performed 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 segments of the target electric energy meter; each line loss comparison section can be a line loss section 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 different comparison references, a user can 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 under different states for the target electric energy meter.
In addition, in this embodiment, as an implementation manner, when step 120 is performed to calculate the first line loss data, if the calculation queue indicated by the created line loss data calculation queue is empty, a backup line loss data calculation queue may be created according to the second preset unit data length; 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 byte space size occupied by the single dynamic reference line loss data.
It is understood that the plurality of dynamic reference line loss data may not be added to the created line loss data calculation queue 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.
And updating the second preset unit data length based on a preset retraction step when the calculation queue indicated by the line loss data calculation queue created according to the second preset unit data length is still empty, wherein the preset retraction step 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 which is created according to the updated second preset unit data length indicates that the line loss data calculation queue is not empty any more, creating a line loss data calculation queue according to the last updated second preset unit data length, and determining the queue length of the line loss data calculation queue.
In this embodiment, when the data sizes of the plurality of dynamic reference line loss data are matched with the sizes of the line loss data calculation queues, the plurality of dynamic reference line loss data may be added to the created line loss data calculation queues, and the created line loss data calculation queues are not empty.
In this embodiment, the queue length of the line loss data calculation queue may be obtained by using the number of the plurality of dynamic reference line loss data corresponding to the last updated second preset unit data length.
Next, the number of task threads for parallel line loss computation is determined based on the created line loss data computation queue and the queue length of the line loss data computation queue.
Then, based on the line loss data calculation queue and the task thread number for parallel line loss calculation, a plurality of line loss calculation threads for parallel line loss calculation are started.
And adding the 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 so as to generate first line loss data; thus, 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 improved.
In this embodiment, 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 number of task threads for parallel line loss calculation may be determined according to a corresponding policy of the number of task threads for parallel line loss calculation and the queue lengths of the line loss data calculation queue and the line loss data calculation queue.
It may be appreciated that the corresponding policy may be a pre-configured policy, where the corresponding policy records a corresponding relationship between task thread data and a queue type and a queue length.
For example, the line loss data calculation queues in different length ranges can be divided into different queue types according to different queue lengths, different corresponding relations are set under each queue type, and each corresponding relation is used for indicating the corresponding relation between task thread data and the 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 the one hand, under the condition that the number of the task threads for parallel line loss calculation is not larger than the preset maximum task thread number, enabling a plurality of line loss calculation threads for parallel line loss calculation, which correspond to the task thread number.
On the other hand, under the condition that the number of task threads for parallel line loss calculation is larger than the preset maximum task threads, dynamically starting a plurality of line loss calculation threads for parallel line loss calculation corresponding to the preset maximum task threads based on the processing sequence 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 task thread number based on the processing sequence of each dynamic reference line loss data in the line loss data calculation queue, the following modes may be adopted: 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, determining the preset maximum task thread number as the number of the plurality of line loss calculation threads for parallel line loss calculation under the condition that the determined task thread number for parallel line loss calculation is larger than the preset maximum task thread number, and starting the plurality of line loss calculation threads 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 be utilized to respectively pull the dynamic reference line loss data from the line loss data calculation queue; transmitting the dynamic reference line loss data respectively pulled by each line loss calculation thread for parallel line loss calculation to a plurality of line loss calculation units which are created in advance; and then, respectively carrying out parallel line loss calculation on the dynamic line loss data and the initial line loss data which are respectively pulled by the line loss calculation threads for parallel line loss calculation through the line loss calculation units, and averaging all the line loss results to obtain first line loss data.
As another implementation manner, 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 also 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, and one of the data comprises line loss data of the target electric energy meter.
Based on this, when the line loss data adjustment is performed on the line loss control section of the initial line loss data by using the target line loss data of the plurality of dynamic reference line loss data, the following scheme may be adopted to obtain the second line loss data of the target electric energy meter:
firstly, a dynamic reference line loss sequence of each dynamic reference line loss data and a standard reference line loss threshold value of the target line loss data are obtained.
And then, according to the average line loss reference threshold value 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 value of the target line loss data, calculating a first difference parameter and a second difference parameter between the target line loss data and each piece of dynamic reference line loss data.
And then, acquiring a target difference parameter calculated by the first difference parameter and the second difference parameter, comparing the target difference parameter with 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.
And then, determining a first statistical proportion of the target line loss data corresponding to the historical comparison line loss data set and a second statistical proportion of the historical average line loss data corresponding to the historical comparison line loss data set, wherein the first statistical proportion and the second statistical proportion are obtained by adjusting the reference difference parameters.
Then, the target line loss data and the historical average line loss data are weighted and overlapped according to the first statistical proportion and the second statistical proportion, and the weighted and overlapped result is saved to the historical comparison line loss data set so as 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 to be: and a sum of a product of the count value of the target line loss data and the first statistical history proportion, and a product of the count value of the history average line loss data and the second statistical history 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 an 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, the count value obtained by weighting the count value of the initial line loss data and the count value corresponding to the acquired line loss data with short line loss comparison according to a set proportion vector is used as the count value corresponding to the second line loss data.
Therefore, according to the implementation manner provided by the application, the second line loss data corresponding to the target electric energy meter can be accurately calculated, so that the calculation accuracy of the line loss data corresponding to the target electric energy meter is improved.
In addition, as an embodiment, when the dynamic reference line loss sequence of each piece of dynamic reference line loss data is acquired, a first average line loss reference threshold value and a second average line loss reference threshold value of each piece of dynamic reference line loss data may be acquired first, where the first average line loss reference threshold value is used for indicating a geometric average line loss value corresponding to each piece of dynamic reference line loss data in a historical time period, and the second average line loss reference threshold value is used for indicating 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 threshold value includes the first average line loss reference threshold value and the second average line loss reference threshold value.
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 value and the second average line loss reference threshold value of each dynamic reference line loss data.
In order to accelerate the subsequent calculation process, after the step of taking all the line loss control segments indicated by the target line loss control 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.
In this way, in the subsequent calculation process based on the above scheme provided by the application, the average line loss reference threshold value of each saved dynamic reference line loss data can be used for calculation, so as to improve the calculation speed.
In addition, as an embodiment, when the key data extraction is performed on the plurality of dynamic reference line loss data based on the first line loss data to obtain the target line loss data corresponding to the plurality of dynamic reference line loss data, the 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 addition and subtraction may be performed on the basis of the first line loss data according to a preset step size range, so as to calculate a dynamic line loss range with the value of the first line loss data as a center point and the preset step size 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.
And extracting target line loss data meeting the target extraction line loss range from the plurality of dynamic reference line loss data based on the target extraction line loss range.
When a plurality of target line loss data all meet the target extraction line loss range, one target line loss data can be selected randomly to be finally determined.
In addition, referring to fig. 3, fig. 3 is a block diagram of a dynamic line loss-based electric energy meter operation error monitoring system 300 provided in the present application, where the system includes an acquisition module 310 and a processing module 320.
An obtaining module 310, configured to obtain a plurality of dynamic reference line loss data corresponding to a target electric energy meter, where each of the 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, based on the obtained initial line loss data of the target electric energy meter and the corresponding multiple dynamic reference line loss data, first line loss data;
the processing module 320 is further configured to extract key data from the plurality of dynamic reference line loss data based on the first line loss data, so as to obtain target line loss data corresponding to the plurality of dynamic reference line loss data;
the processing module 320 is further configured to perform line loss data adjustment on a line loss control segment of the initial line loss data by using 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, where the line loss data adjustment is used for adjusting the line loss data of the line loss control segment.
Optionally, as an implementation manner, the processing module 320 is specifically configured to, when acquiring the initial line loss data of the target electric energy meter:
extracting initial line loss data corresponding to a target electric energy meter from a target electric energy acquisition database;
the processing module 320 is specifically configured to, when performing line loss data adjustment on the line loss control 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 second line loss data of the target electric energy meter:
Acquiring a dynamic reference line loss sequence of each dynamic reference line loss data and a standard reference line loss threshold value of the target line loss data;
according to the average line loss reference threshold value 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 value 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;
acquiring a target difference parameter calculated by the first difference parameter and the second difference parameter, a ratio between preset difference parameter thresholds 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 statistical proportion of the target line loss data corresponding to a historical comparison line loss data set and a second statistical proportion of the historical average line loss data corresponding to the historical comparison line loss data set, wherein the first statistical proportion and the second statistical proportion are obtained by adjusting the reference difference parameters;
the target line loss data and the historical average line loss data are subjected to weighted superposition according to the first statistical historical proportion and the second statistical historical proportion, and the weighted superposition result is stored in 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 to be: a sum of a product of the count value of the target line loss data and the first statistical history proportion, and a product of the count value of the history average line loss data and the second statistical history proportion;
In the target electric energy acquisition database, setting the count value of the acquired line loss data corresponding to the line loss comparison section 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 weighting the count value of the initial line loss data and the count value corresponding to the acquired line loss data with short line loss comparison according to a set proportion vector to obtain a count value serving as the count value corresponding to the second line loss data.
Optionally, as an embodiment, the processing module 320 is specifically configured to, when acquiring the dynamic reference line loss sequence of each dynamic reference line loss data:
acquiring a first average line loss reference threshold value and a second average line loss reference threshold value of each piece of dynamic reference line loss data, wherein the first average line loss reference threshold value is used for indicating 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 value is used for indicating 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 threshold value comprises the first average line loss reference threshold value and the second average line loss reference threshold value;
And acquiring a dynamic reference line loss sequence of each dynamic reference line loss data, wherein the dynamic reference line loss sequence is obtained by combining a first average line loss reference threshold value and a second average line loss reference threshold value of each dynamic reference line loss data.
Optionally, as an implementation manner, the obtaining module 310 is specifically configured to, when obtaining a plurality of dynamic reference line loss data corresponding to the target electric energy meter:
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 control segments indicated by the target line loss control set as the 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 value of each piece of dynamic reference line loss data, wherein the average line loss reference threshold value of each piece of dynamic reference line loss data is used for indicating the line loss average threshold value 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 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 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 extracted line loss range;
and extracting target line loss data meeting 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 calculating 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, the processing module 320 is 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;
Updating the second preset unit data length based on a preset retraction step under the condition that a line loss data calculation queue created according to the second preset unit data length indicates that the calculation queue is still empty, wherein the preset retraction step is used for indicating that the second preset unit data length is increased along with the increase of the number of times of re-acquiring 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 which is created according to the updated second preset unit data length indicates that the line loss data calculation queue is not empty any more, creating a line loss data calculation queue according to the last 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 task thread number for parallel line loss calculation;
Adding the dynamic reference line loss data into the line loss data calculation queue one by one;
and 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 so as to generate first line loss data.
Optionally, as an embodiment, the processing module 320 is specifically configured to, 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:
and determining the number of task threads for parallel line loss calculation according to the corresponding strategies of the number of task threads for parallel line loss calculation and the line loss data calculation queues and the queue lengths of the line loss data calculation queues.
Optionally, as an implementation manner, when the processing module 320 starts 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 is specifically configured to:
enabling a plurality of line loss calculation threads for parallel line loss calculation corresponding to the task thread number under the condition that the determined task thread number for parallel line loss calculation is not greater than the preset maximum task thread number; 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 larger than the preset maximum task thread number.
Optionally, as an implementation manner, when the processing module 320 dynamically starts a plurality of line loss calculation threads for parallel line loss calculation corresponding to the preset maximum task thread number according to the processing sequence of each dynamic reference line loss data in the line loss data calculation queue, the processing module 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, determining the preset maximum task thread number as the number of the plurality of line loss calculation threads for parallel line loss calculation under the condition that the determined task thread number for parallel line loss calculation is larger than the preset maximum task thread number, and starting the plurality of line loss calculation threads for parallel line loss calculation corresponding to the preset maximum task thread number.
Optionally, as an implementation manner, when the processing module 320 performs 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 is specifically configured to:
dynamic reference line loss data 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 line loss calculation thread for parallel line loss calculation to a plurality of pre-created line loss calculation units;
and respectively carrying out parallel line loss calculation on the dynamic line loss data and the initial line loss data which are respectively pulled by the line loss calculation threads for parallel line loss calculation through the line loss calculation units, and averaging all the 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 manners as well. The apparatus embodiments described above are merely illustrative, for example, of the flowcharts and block diagrams in the figures that 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 a single part, or each module may exist alone, or two or more modules may be integrated to form a single 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 may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method described in some embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk.
The foregoing is only a few examples of the present application and is not intended to limit the present application, and various modifications and variations may be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should 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 characteristics 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.

Claims (9)

1. An electric energy meter operation error monitoring method 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 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 dynamic reference line loss data;
based on the first line loss data, extracting key data from the plurality of dynamic reference line loss data to obtain target line loss data corresponding to the plurality of dynamic reference line loss data;
performing line loss data adjustment on a line loss comparison section of the initial line loss data by utilizing 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;
the method for acquiring the initial line loss data of the target electric energy meter comprises the following steps:
extracting initial line loss data corresponding to a target electric energy meter from a target electric energy acquisition database;
the step of 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, includes:
acquiring a dynamic reference line loss sequence of each dynamic reference line loss data and a standard reference line loss threshold value of the target line loss data;
According to the average line loss reference threshold value 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 value 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;
acquiring a target difference parameter calculated by the first difference parameter and the second difference parameter, a ratio between preset difference parameter thresholds 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 statistical proportion of the target line loss data corresponding to a historical comparison line loss data set and a second statistical proportion of the historical average line loss data corresponding to the historical comparison line loss data set, wherein the first statistical proportion and the second statistical proportion are obtained by adjusting the reference difference parameters;
the target line loss data and the historical average line loss data are subjected to weighted superposition according to the first statistical historical proportion and the second statistical historical proportion, and the weighted superposition result is stored in 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 to be: a sum of a product of the count value of the target line loss data and the first statistical history proportion, and a product of the count value of the history average line loss data and the second statistical history proportion;
In the target electric energy acquisition database, setting the count value of the acquired line loss data corresponding to the line loss comparison section 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 weighting the count value of the initial line loss data and the count value corresponding to the acquired line loss data with short line loss comparison according to a set proportion vector to obtain a count value serving as the count value corresponding to the second line loss data.
2. The method of claim 1, wherein the obtaining the dynamic reference line loss sequence for each dynamic reference line loss data comprises:
acquiring a first average line loss reference threshold value and a second average line loss reference threshold value of each piece of dynamic reference line loss data, wherein the first average line loss reference threshold value is used for indicating 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 value is used for indicating 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 threshold value comprises the first average line loss reference threshold value and the second average line loss reference threshold value;
And acquiring a dynamic reference line loss sequence of each dynamic reference line loss data, wherein the dynamic reference line loss sequence is obtained by combining a first average line loss reference threshold value and a second average line loss reference threshold value of each dynamic reference line loss data.
3. The method of claim 1, wherein the obtaining the 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.
4. The method according to any one of claims 1 to 3, 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 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 extracted line loss range;
And extracting target line loss data meeting the target extraction line loss range from the plurality of dynamic reference line loss data based on the target extraction line loss range.
5. The method of claim 1, wherein the calculating 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 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;
updating the second preset unit data length based on a preset retraction step under the condition that a line loss data calculation queue created according to the second preset unit data length indicates that the calculation queue is still empty, wherein the preset retraction step is used for indicating that the second preset unit data length is increased along with the increase of the number of times of re-acquiring 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 a line loss data calculation queue which is created according to the updated second preset unit data length indicates that the line loss data calculation queue is not empty any more, creating a line loss data calculation queue according to the last 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 task thread number for parallel line loss calculation;
adding the dynamic reference line loss data into the line loss data calculation queue one by one;
and 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 so as to generate first line loss data.
6. The method of claim 5, wherein the 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 task thread number under the condition that the determined task thread number for parallel line loss calculation is not greater than the preset maximum task thread number; 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 larger than the preset maximum task thread number.
7. The method of claim 6, wherein 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 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, determining the preset maximum task thread number as the number of the plurality of line loss calculation threads for parallel line loss calculation under the condition that the determined task thread number for parallel line loss calculation is larger than the preset maximum task thread number, and starting the plurality of line loss calculation threads for parallel line loss calculation corresponding to the preset maximum task thread number.
8. The method of claim 5, wherein the performing parallel line loss computation on the plurality of dynamic reference line loss data in the line loss data computation queue based on initial line loss data of the target power meter according to the plurality of line loss computation threads for parallel line loss computation to generate first line loss data comprises:
dynamic reference line loss data 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 line loss calculation thread for parallel line loss calculation to a plurality of pre-created line loss calculation units;
And respectively carrying out parallel line loss calculation on the dynamic line loss data and the initial line loss data which are respectively pulled by the line loss calculation threads for parallel line loss calculation through the line loss calculation units, and averaging all the line loss results to obtain first line loss data.
9. An electric energy meter operation error monitoring system based on dynamic line loss, the system comprising:
the acquisition module is used for 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 line loss data of a line loss comparison section corresponding to the target electric energy meter;
the processing module is used for calculating first line loss data based on the acquired initial line loss data of the target electric energy meter and the corresponding dynamic reference line loss data;
the processing module is further configured to extract key data from the plurality of dynamic reference line loss data based on the first line loss data, so as 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 a line loss comparison section of the initial line loss data by using 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;
The method for acquiring the initial line loss data of the target electric energy meter comprises the following steps:
extracting initial line loss data corresponding to a target electric energy meter from a target electric energy acquisition database;
the step of 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, includes:
acquiring a dynamic reference line loss sequence of each dynamic reference line loss data and a standard reference line loss threshold value of the target line loss data;
according to the average line loss reference threshold value 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 value 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;
acquiring a target difference parameter calculated by the first difference parameter and the second difference parameter, a ratio between preset difference parameter thresholds 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 statistical proportion of the target line loss data corresponding to a historical comparison line loss data set and a second statistical proportion of the historical average line loss data corresponding to the historical comparison line loss data set, wherein the first statistical proportion and the second statistical proportion are obtained by adjusting the reference difference parameters;
the target line loss data and the historical average line loss data are subjected to weighted superposition according to the first statistical historical proportion and the second statistical historical proportion, and the weighted superposition result is stored in 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 to be: a sum of a product of the count value of the target line loss data and the first statistical history proportion, and a product of the count value of the history average line loss data and the second statistical history proportion;
in the target electric energy acquisition database, setting the count value of the acquired line loss data corresponding to the line loss comparison section 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 weighting the count value of the initial line loss data and the count value corresponding to the acquired line loss data with short line loss comparison according to a set proportion vector to obtain a count value serving as the count value corresponding to the second line loss data.
CN202011318453.0A 2020-11-23 2020-11-23 Electric energy meter operation error monitoring method and system based on dynamic line loss Active CN112684398B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011318453.0A CN112684398B (en) 2020-11-23 2020-11-23 Electric energy meter operation error monitoring method and system based on dynamic line loss

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011318453.0A CN112684398B (en) 2020-11-23 2020-11-23 Electric energy meter operation error monitoring method and system based on dynamic line loss

Publications (2)

Publication Number Publication Date
CN112684398A CN112684398A (en) 2021-04-20
CN112684398B true CN112684398B (en) 2024-01-23

Family

ID=75446702

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011318453.0A Active CN112684398B (en) 2020-11-23 2020-11-23 Electric energy meter operation error monitoring method and system based on dynamic line loss

Country Status (1)

Country Link
CN (1) CN112684398B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113281697B (en) * 2021-05-20 2023-04-18 国网河南省电力公司营销服务中心 Operation error online analysis method and system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6757628B1 (en) * 1998-07-14 2004-06-29 Landis+Gyr Inc. Multi-level transformer and line loss compensator and method
CN101206239A (en) * 2007-08-01 2008-06-25 许之端 Method for real-time measurement of matching net wire loss
CN101714234A (en) * 2009-10-23 2010-05-26 西北电网有限公司 Grid line loss monitoring and analyzing system
CN102044868A (en) * 2009-10-14 2011-05-04 西安裕日软件有限公司 Method and device for monitoring and analyzing line loss of power grid
CN102280874A (en) * 2010-06-10 2011-12-14 上海市电力公司 Platform-area line loss rate detecting system
CN106992517A (en) * 2017-04-28 2017-07-28 国网山东省电力公司莱西市供电公司 Electric power line loss analysis method, device and system
CN108988340A (en) * 2018-09-05 2018-12-11 国网山东省电力公司枣庄供电公司 Reduce the method, apparatus and server of line loss
CN109034244A (en) * 2018-07-27 2018-12-18 国家电网有限公司 Line loss abnormality diagnostic method and device based on electric quantity curve characteristic model
KR102029031B1 (en) * 2018-06-29 2019-10-07 한국전력공사 Apparatus and method for estimating power loss of distribution line
CN111160404A (en) * 2019-12-09 2020-05-15 国网北京市电力公司 Method and device for analyzing reasonable value of line loss marking pole of power distribution network

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6757628B1 (en) * 1998-07-14 2004-06-29 Landis+Gyr Inc. Multi-level transformer and line loss compensator and method
CN101206239A (en) * 2007-08-01 2008-06-25 许之端 Method for real-time measurement of matching net wire loss
CN102044868A (en) * 2009-10-14 2011-05-04 西安裕日软件有限公司 Method and device for monitoring and analyzing line loss of power grid
CN101714234A (en) * 2009-10-23 2010-05-26 西北电网有限公司 Grid line loss monitoring and analyzing system
CN102280874A (en) * 2010-06-10 2011-12-14 上海市电力公司 Platform-area line loss rate detecting system
CN106992517A (en) * 2017-04-28 2017-07-28 国网山东省电力公司莱西市供电公司 Electric power line loss analysis method, device and system
KR102029031B1 (en) * 2018-06-29 2019-10-07 한국전력공사 Apparatus and method for estimating power loss of distribution line
CN109034244A (en) * 2018-07-27 2018-12-18 国家电网有限公司 Line loss abnormality diagnostic method and device based on electric quantity curve characteristic model
CN108988340A (en) * 2018-09-05 2018-12-11 国网山东省电力公司枣庄供电公司 Reduce the method, apparatus and server of line loss
CN111160404A (en) * 2019-12-09 2020-05-15 国网北京市电力公司 Method and device for analyzing reasonable value of line loss marking pole of power distribution network

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
关于实时线损计算应用及功能分析;关志东;;科技创业家(第19期);132 *
配电网的线损管理及降损措施探讨;张成玉;;科技经济导刊(第29期);205-207 *

Also Published As

Publication number Publication date
CN112684398A (en) 2021-04-20

Similar Documents

Publication Publication Date Title
CN109859054B (en) Network community mining method and device, computer equipment and storage medium
CN111026570A (en) Method and device for determining abnormal reason of business system
CN112765324B (en) Concept drift detection method and device
CN111091287A (en) Risk object identification method and device and computer equipment
CN112684398B (en) Electric energy meter operation error monitoring method and system based on dynamic line loss
CN110851333B (en) Root partition monitoring method and device and monitoring server
CN108595685B (en) Data processing method and device
CN111400126A (en) Network service abnormal data detection method, device, equipment and medium
CN114418226A (en) Fault analysis method and device of power communication system
CN113312239B (en) Data detection method, device, electronic equipment and medium
CN107342857B (en) Grouping method and device
JP7098735B2 (en) Optimization of large-scale data analysis
CN112463564A (en) Method and device for determining correlation index influencing host state
CN111783883A (en) Abnormal data detection method and device
CN115828244A (en) Memory leak detection method and device and related equipment
CN109840246A (en) It is a kind of for calculating the method and device of the historical data of target signature
CN112540906B (en) Intelligent analysis method and system for business and data relationship based on probe
CN110245844B (en) Abnormal index detection method and device
CN113824995A (en) Data transmission method and device for robot, electronic device and storage medium
CN108431835B (en) Apparatus and method for determining length of correlation history
CN112799911A (en) Node health state detection method, device, equipment and storage medium
CN112085218A (en) Feature derivation method, device, electronic equipment and computer readable medium
CN106547922B (en) Application program sorting method and device and server
CN110968640A (en) Oil well data processing method and device and oil well control system
JP2018190281A (en) Data processing apparatus, data processing method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant