Electric energy meter and use and acquisition terminal error calculation method

Through real-time calculation and clustering screening data, iterative calculation is performed based on the principle of minimum distance between the sub-table error vector plane and the entire 1 plane, which solves the problems of downline loss of the total table and inaccurate estimate of sub-table errors, and improves the measurement equipment Error calculation accuracy and reliability.

CN118938115APending Publication Date: 2024-11-12YANTAI DONGFANG WISDOM ELECTRIC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411273029.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In the case of the total table incorrect, the line loss parameters and sub-table error estimation are inaccurate, resulting in a deviation in the measurement accuracy.

Method used

By calculating the measurement accuracy vector in real time and forming an accuracy matrix, clustering and filtering out relatively concentrated data, iterative calculations are carried out based on the principle of minimum distance between the sub-table error vector plane and the entire 1 plane, and accurately estimate the total table error error. Table error and line loss.

Benefits of technology

The error calculation accuracy in the case of total table misalignment is improved, the measurement error deviation is reduced, and the accuracy and reliability of the measurement equipment are enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0005039298440000022
    Figure BDA0005039298440000022
  • Figure BDA0005039298440000031
    Figure BDA0005039298440000031
  • Figure BDA0005039298440000032
    Figure BDA0005039298440000032
Patent Text Reader

Abstract

The invention discloses an electric energy meter and a using and collecting terminal error calculation method, and belongs to the field of electric variable measurement. The method comprises the following steps: calculating a metering accuracy vector of each time period in real time, adding the metering accuracy vectors into a metering accuracy matrix in a row form, and clustering the metering accuracy matrix by taking rows as units when the row number of the metering accuracy matrix exceeds a preset value, and forming a target matrix by the rows corresponding to the class cluster with the maximum element quantity, extracting a sub-table accuracy matrix from the target matrix, and performing iterative calculation by taking the minimum distance between a sub-table accuracy plane represented by the sub-table accuracy matrix and the whole one plane as a principle to obtain the total table accuracy, thereby obtaining the error of the total table and the sub-table. According to the method, relatively concentrated data are screened out through clustering, and then the total table misalignment error, the sub-table error and the line loss are accurately calculated through iterative estimation, so that the problem of inaccurate estimation of the line loss parameter and the sub-table error under the condition of total table misalignment is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of measuring electrical variables, and in particular relates to a method for calculating measurement errors. Background Art

[0002] As metering equipment, the metering accuracy of energy meters and electricity terminals is one of the most important parameters. To ensure metering accuracy, power companies will regularly inspect these devices and update them in a timely manner. At present, in order to reduce costs, online error monitoring technology based on the principle of energy conservation is often used. This technology is based on the principle that the total electric energy of the total metering equipment is equal to the sum of the electric energy of each branch metering equipment, and obtains the accuracy data of each metering equipment by solving a linear equation group. If the error of the metering equipment does not exceed the allowable range, there is no need to replace the equipment, which significantly reduces the operation and maintenance costs.

[0003] According to the existence conditions of the solution of the linear equation system, the traditional calculation method usually requires the assumption that the total meter error is close to zero to accurately estimate the line loss and sub-meter error. However, if there is an error in the total meter, the error will be passed on to the line loss parameters and sub-meter error, resulting in deviations in the estimation results. Summary of the invention

[0004] The present invention proposes an electric energy meter and a terminal error calculation method, the purpose of which is to solve the problem of inaccurate estimation of line loss parameters and sub-meter errors in the existing error calculation method when the total meter is inaccurate.

[0005] The technical solution of the present invention is as follows:

[0006] A method for calculating an error of an electric energy meter and a user terminal, wherein the metering topology structure in which the electric energy meter and the user terminal meter are located includes a master meter and a plurality of sub-meters, and the method includes:

[0007] Step 1: Calculate the measurement accuracy vector of each time period in real time, and add the measurement accuracy vector to the measurement accuracy matrix in the form of rows;

[0008] Step 2: monitor the measurement accuracy matrix in real time. When the number of rows of the measurement accuracy matrix exceeds a preset value, execute step 3;

[0009] Step 1 and step 2 are performed simultaneously;

[0010] Step 3: Cluster the measurement accuracy matrix in rows, and form the target matrix with the rows corresponding to the cluster with the largest number of elements;

[0011] Step 4: extract the sub-table accuracy matrix from the target matrix, perform iterative calculation based on the principle of minimizing the distance between the sub-table accuracy plane represented by the sub-table accuracy matrix and the all-1 plane, and obtain the total table accuracy;

[0012] Step 5: Obtain the sub-meter accuracy and line loss constant according to the total meter accuracy and the target matrix, and then obtain the total meter error and sub-meter error according to the total meter accuracy and the sub-meter accuracy.

[0013] As a further improvement of the error calculation method of the electric energy meter and the user terminal: in step 1, the number of sub-meters is set to M, a time period includes N time intervals, and the accuracy of the i-th sub-meter in the time period is E i The accuracy of the total table is The energy increment of the ith submeter in the nth time interval is X ni , the total energy increment is Y n , the line loss constant of the metering topology is C, then the metering accuracy vector in this time period is:

[0014] O=(X T X) -1 X T Y;

[0015] in:

[0016]

[0017]

[0018] (·) T represents the matrix transpose operation, (·) -1 Represents a matrix inversion operation.

[0019] As a further improvement of the error calculation method of the electric energy meter and the user terminal: Assume that the measurement accuracy vector obtained by the i-th calculation is transposed to be i , then it contains K groups O i The measurement accuracy matrix is ​​expressed as:

[0020]

[0021] As a further improvement of the electric energy meter and the terminal error calculation method:

[0022] When the number of rows K in the accuracy matrix is ​​greater than 20×N, proceed to step 3.

[0023] As a further improvement of the error calculation method of the electric energy meter and the user terminal, the clustering process of step 3 is:

[0024] Step 3-1, determine the number of clusters Cla;

[0025] Step 3-2, design the number of rows of the accuracy matrix to be K, regard each row as an accuracy calculation vector, and randomly select Cla accuracy calculation vectors as the initial center points of each cluster, denoted as G1, G2, …, G Cla ;

[0026] Step 3-3: Calculate the distance between the K accuracy calculation vectors and the center point of each current cluster according to the following formula:

[0027]

[0028] Among them, ‖·‖2 represents the 2-norm operation of the calculation vector, O k represents the kth accuracy calculation vector, k = 1, 2, ..., K, G c represents the current center point of the c-th cluster, c = 1, 2, ..., Cla, Indicates O k To G c distance;

[0029] Step 3-4, traverse all calculated distances, sort the distances corresponding to the same accuracy calculation vector in ascending order, and record the cluster corresponding to the minimum distance as the cluster to which the accuracy calculation vector belongs;

[0030] Step 3-5: Recalculate the new center point of each cluster:

[0031]

[0032] G c ′ represents the new center point of the c-th cluster, P c represents the number of current accuracy calculation vectors in the c-th cluster, O c,p Calculate the p-th accuracy vector in the c-th cluster;

[0033] Step 3-6: Determine the new center point G of each cluster c ′ With the current center point G c If they are equal, clustering ends, otherwise the new center point G of each cluster is c ′ As the current center point G c , then return to step 3-3.

[0034] As a further improvement of the electric energy meter and the user terminal error calculation method, step 4 specifically includes:

[0035] Step 4-1, extract the first M columns from the target matrix to obtain the table accuracy matrix H, and set the number of rows of H to J;

[0036] Step 4-2: Estimated accuracy of the total table Initialized to 1;

[0037] Step 4-3, calculate the error e:

[0038]

[0039] Among them, ⊙ represents the Hadamard product, that is, the corresponding elements of the matrix are multiplied; The value is A J×M matrix;

[0040] Step 4-4: Determine whether the error e is lower than the preset threshold value. If so, set the current total meter accuracy estimate value As the total table accuracy, otherwise update the total table accuracy estimate according to the error e for ε is the step size coefficient.

[0041] As a further improvement of the electric energy meter and the user terminal error calculation method, the specific process of step 5 is:

[0042] Step 5-1: Total table accuracy Multiply each element in the target matrix respectively. After multiplication, each row of the target matrix contains M sub-meter accuracy and a line loss constant: [E1E2…E M C];

[0043] Step 5-2: For each sub-table, average the accuracy rates corresponding to each row to obtain the final accuracy rate of the sub-table; average the line loss constants of each row to obtain the final line loss constant;

[0044] The difference between 1 and the accuracy of the total table is the total table error, and the difference between 1 and the accuracy of the sub-table is the sub-table error.

[0045] Compared with the prior art, the present invention has the following positive effects:

[0046] The present invention firstly selects relatively concentrated data through clustering, and then, based on the prior knowledge that only a few devices on site will have accuracy deviations, iterative estimation is performed based on the principle of minimizing the distance between the error vector plane of the sub-meter and the all-1 error vector plane, thereby accurately calculating the total meter misalignment error, sub-meter error and line loss. DETAILED DESCRIPTION

[0047] The technical solution of the present invention is described in detail below. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments.

[0048] To simplify the description, in the metering topology, the main metering equipment (electricity meter, user and procurement terminal) is referred to as the main meter; the branch metering equipment (electricity meter, user and procurement terminal) is referred to as the sub-meter.

[0049] An electric energy meter and a method for calculating an error of a user terminal, the steps comprising:

[0050] Step 1: Calculate the measurement accuracy vector of each time period in real time, and add the measurement accuracy vector to the measurement accuracy matrix in the form of rows.

[0051] Assume that the number of sub-meters is M, a time period includes N time intervals, and the accuracy of the i-th sub-meter in the time period is E i The accuracy of the total table is The energy increment of the ith submeter in the nth time interval is X ni , the total energy increment is Y n , the line loss constant of the metering topology is C, then the metering accuracy vector in this time period is:

[0052] O=(X T X) -1 X T Y;

[0053] in:

[0054]

[0055] (·) T represents the matrix transpose operation, (·) -1 Represents a matrix inversion operation.

[0056] Suppose the measurement accuracy vector obtained by the i-th calculation is transposed to O i , then it contains K groups O i The measurement accuracy matrix is ​​expressed as:

[0057]

[0058] Step 2: monitor the measurement accuracy matrix in real time. When the number of rows of the measurement accuracy matrix exceeds a preset value, execute step 3.

[0059] Generally speaking, the number of rows K in the measurement accuracy matrix should be greater than 20×N before entering step 3.

[0060] Step 1 and step 2 are performed simultaneously.

[0061] Step 3: Cluster the measurement accuracy matrix in rows, and form the target matrix with the rows corresponding to the cluster with the largest number of elements.

[0062] Because the error of the electric energy meter is discrete to a certain extent under actual working conditions, it will interfere with the error calculation of the total meter. Therefore, it is necessary to screen out more concentrated data through clustering methods, find out the vector set with lower discreteness, and improve the estimation accuracy of the total meter error.

[0063] The clustering process in this embodiment is:

[0064] Step 3-1, determine the number of clusters Cla, which are divided into 3 groups in this embodiment.

[0065] Step 3-2, design the number of rows of the accuracy matrix to be K, regard each row as an accuracy calculation vector, and randomly select Cla accuracy calculation vectors as the initial center points of each cluster, denoted as G1, G2, …, G Cla .

[0066] Step 3-3: Calculate the distance between the K accuracy calculation vectors and the center point of each current cluster according to the following formula:

[0067]

[0068] Among them, ‖·‖2 represents the 2-norm operation of the calculation vector, O k represents the kth accuracy calculation vector, k = 1, 2, ..., K, G c represents the current center point of the c-th cluster, c = 1, 2, ..., Cla, Indicates O k To G c distance.

[0069] Step 3-4: traverse all calculated distances, sort the distances corresponding to the same accuracy calculation vector in ascending order, and record the cluster corresponding to the minimum distance as the cluster to which the accuracy calculation vector belongs.

[0070] Step 3-5: Recalculate the new center point of each cluster:

[0071]

[0072] G c ′ represents the new center point of the c-th cluster, P c represents the number of current accuracy calculation vectors in the c-th cluster, O c,p Compute the p-th accuracy vector in the c-th cluster.

[0073] Step 3-6: Determine the new center point G of each cluster c ′ With the current center point G c If they are equal, clustering ends, otherwise the new center point G of each cluster is c ′ As the current center point G c , then return to step 3-3.

[0074] After clustering, the number of current accuracy calculation vectors in all clusters is counted, and the clusters with the largest number form the target matrix.

[0075] Step 4: Extract the sub-table accuracy matrix from the target matrix, perform iterative calculation based on the principle of minimizing the distance between the sub-table accuracy plane represented by the sub-table accuracy matrix and the all-1 plane, and obtain the total table accuracy.

[0076] The specific steps include:

[0077] Step 4-1: Extract the first M columns from the target matrix to obtain the table accuracy matrix H, and set the number of rows of H to J.

[0078] Step 4-2: Estimated accuracy of the total table Initialized to 1.

[0079] Step 4-3, calculate the error e:

[0080]

[0081] Among them, ⊙ represents the Hadamard product, that is, the corresponding elements of the matrix are multiplied; The value is A J×M matrix.

[0082] Step 4-4: Determine whether the error e is lower than the preset threshold value. If so, set the current total meter accuracy estimate value As the total table accuracy, otherwise update the total table accuracy estimate according to the error e for ε is the step size coefficient, which can generally be set to a value between 0.001 and 0.01, and then go to step 4-3.

[0083] Step 5: Obtain the sub-meter accuracy and line loss constant according to the total meter accuracy and the target matrix, and then obtain the total meter error and sub-meter error according to the total meter accuracy and the sub-meter accuracy.

[0084] The specific process is:

[0085] Step 5-1: Total table accuracy Multiply each element in the target matrix respectively. After multiplication, each row of the target matrix contains M sub-meter accuracy and a line loss constant: [E1E2…E M C].

[0086] Step 5-2: For each sub-table, average the accuracy rates corresponding to each row to obtain the final accuracy rate of the sub-table; average the line loss constants of each row to obtain the final line loss constant.

[0087] The difference between 1 and the accuracy of the total table is the total table error, and the difference between 1 and the accuracy of the sub-table is the sub-table error.

[0088] It should be noted that it is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. The scope of the present invention is defined by the claims rather than the above description.

Claims

1. A method for calculating the error of an electric energy meter and a terminal, wherein the metering topology structure in which the electric energy meter and the terminal meter are located includes a master meter and a plurality of sub-meters, and is characterized in that The method includes: Step 1: Calculate the measurement accuracy vector of each time period in real time, and add the measurement accuracy vector to the measurement accuracy matrix in the form of rows; Step 2: monitor the measurement accuracy matrix in real time. When the number of rows of the measurement accuracy matrix exceeds a preset value, execute step 3; Step 1 and step 2 are performed simultaneously; Step 3: Cluster the measurement accuracy matrix in rows, and form the target matrix with the rows corresponding to the cluster with the largest number of elements; Step 4: extract the sub-table accuracy matrix from the target matrix, perform iterative calculation based on the principle of minimizing the distance between the sub-table accuracy plane represented by the sub-table accuracy matrix and the all-1 plane, and obtain the total table accuracy; Step 5: Obtain the sub-meter accuracy and line loss constant according to the total meter accuracy and the target matrix, and then obtain the total meter error and sub-meter error according to the total meter accuracy and the sub-meter accuracy.

2. The electric energy meter and the method for calculating the error of the user terminal according to claim 1, characterized in that: In step 1, let the number of sub-meters be M, a time period includes N time intervals, and the accuracy of the i-th sub-meter in the time period is E i The accuracy of the total table is The energy increment of the ith submeter in the nth time interval is X ni , the total energy increment is Y n , the line loss constant of the metering topology is C, then the metering accuracy vector in this time period is: O=(X T X) -1 X T Y; in: (·) T represents the matrix transpose operation, (·) -1 Represents a matrix inversion operation.

3. The electric energy meter and the method for calculating the error of the user terminal according to claim 2, characterized in that: Suppose the measurement accuracy vector obtained by the i-th calculation is transposed to O i , then it contains K groups O i The measurement accuracy matrix is ​​expressed as:

4. The electric energy meter and the method for calculating the error of the user terminal according to claim 3, characterized in that: When the number of rows K in the accuracy matrix is ​​greater than 20×N, proceed to step 3.

5. The electric energy meter and the method for calculating the error of the user terminal according to claim 1, characterized in that: The clustering process of step 3 is: Step 3-1, determine the number of clusters Cla; Step 3-2, design the number of rows of the accuracy matrix to be K, regard each row as an accuracy calculation vector, and randomly select Cla accuracy calculation vectors as the initial center points of each cluster, denoted as G1, G2, …, G Cla ; Step 3-3: Calculate the distance between the K accuracy calculation vectors and the center point of each current cluster according to the following formula: Among them, ‖·‖2 represents the 2-norm operation of the calculation vector, O k represents the kth accuracy calculation vector, k = 1, 2, ..., K, G c represents the current center point of the c-th cluster, c = 1, 2, ..., Cla, Indicates O k To G c distance; Step 3-4, traverse all calculated distances, sort the distances corresponding to the same accuracy calculation vector in ascending order, and record the cluster corresponding to the minimum distance as the cluster to which the accuracy calculation vector belongs; Step 3-5: Recalculate the new center point of each cluster: G c ′ represents the new center point of the c-th cluster, P c represents the number of current accuracy calculation vectors in the c-th cluster, O c,p Calculate the vector for the pth accuracy in the cth cluster; Step 3-6: Determine the new center point G of each cluster c ′ With the current center point G c If they are equal, clustering ends, otherwise the new center point G of each cluster is c ′ As the current center point G c , then return to step 3-3.

6. The electric energy meter and the method for calculating the error of the user terminal according to claim 3, characterized in that: Step 4 specifically includes: Step 4-1, extract the first M columns from the target matrix to obtain the table accuracy matrix H, and set the number of rows of H to J; Step 4-2: Estimated accuracy of the total table Initialized to 1; Step 4-3, calculate the error e: Among them, ⊙ represents the Hadamard product, that is, the corresponding elements of the matrix are multiplied; The value is A J×M matrix; Step 4-4: Determine whether the error e is lower than the preset threshold value. If so, set the current total meter accuracy estimate value As the total table accuracy, otherwise update the total table accuracy estimate according to the error e for ε is the step size coefficient.

7. The electric energy meter and the method for calculating the error of the user terminal according to claim 6, characterized in that: The specific process of step 5 is: Step 5-1: Total table accuracy Multiply each element in the target matrix respectively. After multiplication, each row of the target matrix contains < table accuracy and a line loss constant: [E1E2…E M C]; Step 5-2: For each sub-meter, average the accuracy rates corresponding to each row to obtain the final accuracy rate of the sub-meter; average the line loss constants of each row to obtain the final line loss constant; the difference between 1 and the total meter accuracy is the total meter error, and the difference between 1 and the sub-meter accuracy is the sub-meter error.