Distribution network fault analysis method and system based on Internet of Things
Through the distribution network fault analysis method based on the Internet of Things, using the information of gradient and approximate Hessian matrix, combined with line search and BFGS update algorithm, the problems of large calculation amount and local optimal solution in the traditional method are solved, and the distribution network fault is realized. The speed and accuracy of detection improve the efficiency and robustness of the system.
Patent Information
- Application Number
- CN202410996419.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-24
AI Technical Summary
Traditional distribution network fault analysis methods require large amounts of calculations and slow convergence speed when processing high-dimensional data, making it difficult to find the global optimal solution, and there are local optimal solutions and noise effects, which reduce detection accuracy and robustness.
The distribution network fault analysis method based on the Internet of Things uses the gradient and approximate Hessian matrix information, uses line search and BFGS update algorithms to quickly approach the optimal solution, and combines the real-time data collection with Internet of Things devices to construct the objective function and optimize the decision variables to achieve Superlinear convergence and global optimal solutions.
It improves the real-time and accuracy of fault detection and diagnosis, can more effectively jump out of the local optimal solution and find the global optimal solution, improves the efficiency and robustness of the system, and adapts to operating environments and fault scenarios under different conditions.
Smart Images

Figure CN118535976B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of distribution network fault analysis, and in particular to a distribution network fault analysis method and system based on the Internet of Things. Background Art
[0002] Distribution network fault analysis is a key area in the power system, which aims to ensure the reliability and stability of power supply. The distribution network is the end of the power system and is responsible for transmitting electric energy from the substation to the end users, including residential, commercial and industrial users. Since the distribution network is directly facing the users, its reliability has a direct impact on the users' power experience.
[0003] The prior art has the following defects:
[0004] 1. Traditional fault analysis and diagnosis methods face the problems of large computational complexity and slow convergence when processing high-dimensional data, resulting in low system efficiency. In addition, some optimization algorithms converge slowly when approaching the optimal solution, which seriously affects the real-time performance of fault detection and diagnosis.
[0005] 2. When dealing with nonlinear and non-convex optimization problems, existing analysis methods often fall into local optimal solutions and find it difficult to find the global optimum. In addition, fault detection and diagnosis data in practical applications may contain noise and outliers, which further reduces the detection accuracy and robustness of existing analysis methods.
[0006] Based on this, the present invention proposes a distribution network fault analysis method and system based on the Internet of Things, which combines the information of the gradient and the approximate Hessian matrix, can quickly approach the optimal solution at a superlinear convergence speed, improve the real-time performance of fault detection and diagnosis, and can more effectively jump out of the local optimal solution and find the global optimal solution. Summary of the invention
[0007] The purpose of the present invention is to provide a distribution network fault analysis method and system based on the Internet of Things to solve the deficiencies in the background technology.
[0008] In order to achieve the above object, the present invention provides the following technical solution: a distribution network fault analysis method based on the Internet of Things, the analysis method comprising the following steps:
[0009] The analysis system collects the operation data of the distribution network in real time through the Internet of Things devices, and automatically constructs the objective function based on the distribution network optimization target and the operation data, and initializes the initial point, Hessian matrix, iteration parameters and convergence threshold in the objective function;
[0010] Solve the gradient of the objective function at the current decision variable, calculate the search direction based on the Hessian matrix and the gradient of the objective function at the current decision variable, use the line search method to output the step size, update the decision variable based on the search direction and step size, calculate the step vector and gradient difference through the updated decision variable and the current decision variable, and use the BFGS update algorithm to update the Hessian matrix based on the step vector and gradient difference;
[0011] Whether the convergence condition is met is determined by comparing the norm of the objective function's gradient at the updated decision variable with the convergence threshold. Repeat iterations or output the optimized decision variables based on the judgment results. When the optimized decision variables are output, the analysis system performs real-time fault detection on the distribution network according to the optimized decision variables, identifies the fault points in the distribution network, and determines the fault type and cause by analyzing the detected fault characteristics. Finally, a fault report is generated and sent to the management personnel.
[0012] In a preferred embodiment, automatically constructing an objective function based on the distribution network optimization target and operation data includes the following steps:
[0013] The distribution network operation data includes fault occurrence and detection timestamps, the number of true positives, true negatives, false positives, and false negatives of fault diagnosis, the mean time between failures and the mean time to repair, the fault detection time threshold, and the reliability index threshold;
[0014] The initial point x of the objective function includes the fault detection time threshold , reliability index threshold , the weight of each parameter in the false diagnosis rate ;
[0015] The constructed objective function expression is:
[0016] , where is the objective function, Indicates the fault detection time, represents the misdiagnosis rate, represents the reliability index, , , are the weights of fault detection time, false diagnosis rate and reliability index, respectively, and .
[0017] In a preferred embodiment, solving the gradient of the objective function at the current decision variable and calculating the search direction according to the Hessian matrix and the gradient of the objective function at the current decision variable include the following steps:
[0018] Calculate the objective function In the current decision variable The gradient at is expressed as:
[0019] , where is the gradient, is the numerical gradient, and , Indicates unit vectors, is the convergence threshold, using the current Hessian matrix and gradient Calculate search direction , the expression is: .
[0020] In a preferred embodiment, the step length is outputted using a line search method, and the decision variable is updated in combination with the search direction and the step length, including the following steps:
[0021] Set the initial step size , calculate the objective function At the current step The function value at , and evaluates the Armijo conditional expression , is the Armijo parameter, and is a constant less than 1;
[0022] like , output the current step length ;
[0023] like , then the step size is reduced proportionally, ,in, To reduce the scale, and , the reduced step size Calculate the objective function At the current step Function values at and calculation of Armijo conditional expressions , when any iteration , output the current step length ;
[0024] By step length and search direction , update the current decision variables The value to the next iteration , the expression is: .
[0025] In a preferred embodiment, calculating the step vector and the gradient difference by using the updated decision variable and the current decision variable comprises the following steps:
[0026] Calculate the difference between the updated decision variable and the current decision variable as the step vector, expressed as: , where is the step vector, is the current decision variable, is the updated decision variable;
[0027] Calculate the gradient vector of the objective function at the current decision variable and the updated decision variable, and calculate the difference between the gradient of the updated decision variable and the current decision variable. The expression is:
[0028] , where is the gradient difference, is the gradient vector of the current decision variable, is the gradient vector of the updated decision variable.
[0029] In a preferred embodiment, the Hessian matrix is updated using the BFGS update algorithm in combination with the step vector and the gradient difference, comprising the following steps:
[0030] Update the Hessian matrix approximation using the BFGS update formula arrive , the expression is:
[0031] , where Indicates The Hessian matrix approximation of the step is is the gradient difference, is the step vector, Representation vector The transpose of Representation vector The outer product with its own transpose results in a matrix, Representation vector Multiply the matrix by the transpose of Multiply by the vector , the result is a scalar.
[0032] In a preferred embodiment, judging whether the convergence condition is met based on the comparison result of the norm of the gradient of the objective function at the updated decision variable and the convergence threshold, and repeatedly iterating or outputting the optimized decision variable based on the judgment result, including the following steps:
[0033] Calculate the norm of the gradient of the objective function at the updated decision variable, expressed as:
[0034] , where represents the norm of the gradient of the objective function at the update decision variable, is the numerical gradient, is the updated decision variable;
[0035] The norm of the gradient of the objective function at the update decision variable is compared with the preset convergence threshold Make comparisons;
[0036] like , judge whether the convergence conditions are met and output the optimized decision variables ;
[0037] like , judge that the convergence condition is not met, and use the updated decision variables Repeat the iteration until the until.
[0038] In a preferred embodiment, the optimization objectives include minimizing the fault detection time, minimizing the error diagnosis rate, and maximizing the power supply reliability. Minimizing the fault detection time, minimizing the error diagnosis rate, and maximizing the power supply reliability are quantitatively expressed as follows: , where represents the minimum value, Indicates the fault detection time, represents the misdiagnosis rate, represents the reliability index, , , are the weights of fault detection time, false diagnosis rate and reliability index respectively, and , , , , , , Represent the number of true positives, true negatives, false positives, and false negatives, respectively. Mean time between failures, represents the mean time to repair, , , , are the weights of true positive, true negative, false positive and false negative, respectively, and , , , All are greater than 0;
[0039] And the optimization target satisfies the approximate condition: , , where , Respectively represent nodes The voltage and current at is the voltage safety range, This is the current safety range.
[0040] The distribution network fault analysis system based on the Internet of Things includes an initialization module, a matrix update module, and a decision variable output module;
[0041] Initialization module: collects the operation data of the distribution network in real time through IoT devices, automatically builds the objective function based on the distribution network optimization target and operation data, and initializes the initial point, Hessian matrix, iteration parameters and convergence threshold in the objective function;
[0042] Matrix update module: solves the gradient of the objective function at the current decision variable, calculates the search direction based on the Hessian matrix and the gradient of the objective function at the current decision variable, outputs the step size using the line search method, updates the decision variable based on the search direction and step size, calculates the step size vector and gradient difference through the updated decision variable and the current decision variable, and uses the BFGS update algorithm to update the Hessian matrix based on the step size vector and gradient difference;
[0043] Decision variable output module: judge whether the convergence condition is met based on the comparison result of the norm of the gradient of the objective function at the updated decision variable and the convergence threshold, and repeat the iteration or output the optimized decision variable based on the judgment result. When the optimized decision variable is output, the distribution network is detected in real time according to the optimized decision variable, the fault point in the distribution network is identified, and the fault type and cause are determined by analyzing the detected fault characteristics, and finally a fault report is generated and sent to the management personnel.
[0044] In the above technical solution, the technical effects and advantages provided by the present invention are:
[0045] 1. The present invention solves the gradient of the objective function at the current decision variable, calculates the search direction according to the gradient of the objective function at the current decision variable, uses the line search method to output the step size, combines the search direction and the step size to update the decision variable, calculates the step size vector and the gradient difference through the updated decision variable and the current decision variable, and uses the BFGS update algorithm to update the Hessian matrix in combination with the step size vector and the gradient difference. When the optimized decision variable is output, the analysis system performs real-time fault detection on the distribution network according to the optimized decision variable and identifies the fault point in the distribution network. The analysis system combines the information of the gradient and the approximate Hessian matrix, can quickly approach the optimal solution at a superlinear convergence speed, improve the real-time performance of fault detection and diagnosis, and can more effectively jump out of the local optimal solution and find the global optimal solution;
[0046] 2. The present invention can comprehensively consider the system's fault detection speed, accuracy (error diagnosis rate), and stability index by optimizing the fault detection time threshold, the error diagnosis rate parameter weights, and the stability index threshold at the same time. This can enable the system to achieve higher efficiency and accuracy in the fault detection and diagnosis process, and by accurately optimizing the fault detection time threshold and the error diagnosis rate parameter weights, it can maximize the use of system resources, reduce unnecessary maintenance and detection time, improve the system's operating efficiency and cost-effectiveness, and enable the system to better adapt to the operating environment and fault scenarios under different conditions, thereby improving the system's flexibility and response capabilities. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0048] Figure 1 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] Example 1: Please refer to Figure 1 As shown, the distribution network fault analysis method based on the Internet of Things described in this embodiment includes the following steps:
[0051] The analysis system collects the operation data of the distribution network in real time through the Internet of Things devices, and automatically constructs the objective function based on the optimization target and operation data of the distribution network. After initializing the initial point, Hessian matrix, iteration parameters and convergence threshold in the objective function, the gradient of the objective function at the current decision variable is solved, and the search direction is calculated according to the Hessian matrix and the gradient of the objective function at the current decision variable. The step size is output using the line search method, and the decision variable is updated in combination with the search direction and the step size. The step size vector and the gradient difference are calculated by the updated decision variable and the current decision variable, and the Hessian matrix is updated by combining the step size vector and the gradient difference using the BFGS update algorithm. Whether the convergence condition is met is determined based on the comparison result of the norm of the gradient of the objective function at the updated decision variable and the convergence threshold. Based on the judgment result, it is repeated to iterate or output the optimized decision variable. When the optimized decision variable is output, the analysis system performs real-time fault detection on the distribution network according to the optimized decision variable, identifies the fault point in the distribution network, and determines the fault type and cause by analyzing the detected fault characteristics. Finally, a fault report is generated and sent to the management personnel.
[0052] This application solves the gradient of the objective function at the current decision variable, calculates the search direction according to the gradient of the objective function at the current decision variable, uses the line search method to output the step size, combines the search direction and the step size to update the decision variable, calculates the step vector and the gradient difference through the updated decision variable and the current decision variable, and uses the BFGS update algorithm to update the Hessian matrix in combination with the step vector and the gradient difference. When the optimized decision variable is output, the analysis system performs real-time fault detection on the distribution network according to the optimized decision variable and identifies the fault point in the distribution network. The analysis system combines the information of the gradient and the approximate Hessian matrix, can quickly approach the optimal solution at a superlinear convergence speed, improve the real-time performance of fault detection and diagnosis, and can more effectively jump out of the local optimal solution and find the global optimal solution.
[0053] Embodiment 2: The analysis system collects the operation data of the distribution network in real time through the Internet of Things devices, and automatically constructs the objective function based on the distribution network optimization target and the operation data, including the following steps:
[0054] Collect the operation data of the distribution network in real time through IoT devices (such as sensors and smart meters), including parameters such as voltage, current, temperature, and load, remove noise and outliers, interpolate or complete missing data to ensure data integrity and accuracy, and extract features that are helpful for fault detection and diagnosis from the original data, such as current waveforms and harmonic components;
[0055] In this application, the distribution network optimization objectives include minimizing the fault detection time, minimizing the error diagnosis rate, and maximizing the power supply reliability. Minimizing the fault detection time, minimizing the error diagnosis rate, and maximizing the power supply reliability are quantitatively expressed as follows:
[0056] , where represents the minimum value, Indicates the fault detection time, represents the misdiagnosis rate, represents the reliability index, , , are the weights of fault detection time, false diagnosis rate and reliability index, respectively, and , , , , , , Represent the number of true positives, true negatives, false positives, and false negatives, respectively. Mean time between failures, represents the mean time to repair, , , , are the weights of true positive, true negative, false positive and false negative, respectively, and , , , All are greater than 0;
[0057] And the optimization target satisfies the approximate condition: , , where , Respectively represent nodes The voltage and current at is the voltage safety range, This is the current safety range.
[0058] Automatically construct the objective function based on the distribution network optimization objectives and operation data, including the following steps:
[0059] The distribution network operation data includes fault occurrence and detection timestamps, the number of true positives, true negatives, false positives, and false negatives of fault diagnosis, the mean time between failures and the mean time to repair, the fault detection time threshold, and the reliability index threshold;
[0060] The initial point x of the objective function includes the fault detection time threshold , reliability index threshold , the weight of each parameter in the false diagnosis rate ;
[0061] The constructed objective function expression is:
[0062] , where is the objective function, Indicates the fault detection time, represents the misdiagnosis rate, represents the reliability index, , , are the weights of fault detection time, false diagnosis rate and reliability index respectively, and .
[0063] Initializing the initial point, Hessian matrix, iteration parameter and convergence threshold in the objective function includes the following steps:
[0064] According to the problem background and prior knowledge, obtain the preset initial point, that is, the fault detection time threshold , reliability index threshold , the weight of each parameter in the false diagnosis rate , the Hessian matrix Initialize to the identity matrix and set the maximum number of iterations , for example, the maximum number of iterations is , set the convergence threshold , for example: .
[0065] Solve the gradient of the objective function at the current decision variable, and calculate the search direction based on the Hessian matrix and the gradient of the objective function at the current decision variable, including the following steps:
[0066] Calculate the objective function In the current decision variable The gradient at is expressed as:
[0067] , where is the gradient, is the numerical gradient, and , Indicates unit vectors, is the convergence threshold, using the current Hessian matrix and gradient Calculate search direction , the expression is: .
[0068] The line search method is used to output the step size, and the decision variables are updated in combination with the search direction and step size, including the following steps:
[0069] Set the initial step size , calculate the objective function At the current step The function value at , and evaluates the Armijo conditional expression , is the Armijo parameter, and is a constant less than 1;
[0070] like , output the current step length ;
[0071] like , then the step size is reduced proportionally, ,in, To reduce the scale, and , the reduced step size Calculate the objective function At the current step Function values at and calculation of Armijo conditional expressions , when any iteration , output the current step length , Represents the gradient The transpose of Represents the transpose operation, which is used to describe multiplication and operations between matrices and vectors.
[0072] By step length and search direction , update the current decision variables The value to the next iteration (i.e., updated decision variables), the expression is: .
[0073] Calculating the step vector and gradient difference by the updated decision variables and the current decision variables includes the following steps:
[0074] Calculate the difference between the updated decision variable and the current decision variable as the step vector, expressed as: , where is the step vector, is the current decision variable, is the updated decision variable;
[0075] The gradient difference represents the gradient change of the objective function between the updated decision variable and the current decision variable. The calculation steps are as follows:
[0076] Calculate the gradient vector of the objective function at the current decision variable and the updated decision variable, and calculate the difference between the gradient of the updated decision variable and the current decision variable. The expression is:
[0077] , where is the gradient difference, is the gradient vector of the current decision variable, is the gradient vector of the updated decision variables.
[0078] The BFGS update algorithm is used to update the Hessian matrix in combination with the step vector and the gradient difference, including the following steps:
[0079] Update the Hessian matrix approximation using the BFGS update formula arrive , the expression is:
[0080] , where Indicates The Hessian matrix approximation of the step is is the gradient difference, is the step vector, Representation vector The transpose of Representation vector The outer product with its own transpose results in a matrix, Representation vector Multiply the matrix by the transpose of Multiply by the vector , the result is a scalar.
[0081] According to the comparison result of the norm of the gradient of the objective function at the updated decision variable and the convergence threshold, it is judged whether the convergence condition is met, and based on the judgment result, it is repeatedly iterated or the optimized decision variable is output, including the following steps:
[0082] Calculate the norm of the gradient of the objective function at the updated decision variable, expressed as:
[0083] , where represents the norm of the gradient of the objective function at the update decision variable, is the numerical gradient, is the updated decision variable;
[0084] The norm of the gradient of the objective function at the update decision variable is compared with the preset convergence threshold Make comparisons;
[0085] like , judge whether the convergence conditions are met and output the optimized decision variables ;
[0086] like , judge that the convergence condition is not met, and use the updated decision variables Repeat the iteration until the until.
[0087] In this implementation, the weights of each parameter in the error diagnosis rate calculation formula are Take optimization as an example:
[0088] , represents the misdiagnosis rate, , , , Represent the number of true positives, true negatives, false positives, and false negatives, respectively. , , , are the weights of true positive, true negative, false positive and false negative, respectively, and , , , All are greater than 0;
[0089] in, , , , , our goal is to adjust the weights , , , To minimize the misdiagnosis rate, assuming the initial weight is , , , ;
[0090] Iteration process:
[0091] Calculate the objective function , calculate the gradient of the objective function with respect to the weight, the expression is: ;
[0092] Use the identity matrix as the initial Hessian matrix and update the search direction to the negative gradient. The expression is: , get the step size by line search method ;
[0093] Using the step size and search direction to update the weight vector, we have:
[0094]
[0095]
[0096]
[0097]
[0098] During the repeated iteration process, when the norm of the gradient of the objective function with respect to the weight is less than or equal to the convergence threshold at any time, the optimal weight vector is output. It should be noted that in actual applications, the numerical calculation of each step can be implemented using computing tools or programming languages. Specifically, the example steps for optimizing the fault detection time threshold, the error diagnosis rate parameter weights, and the stability index threshold are cumbersome and will not be described in detail here.
[0099] In this application, by optimizing the fault detection time threshold, the weights of each parameter of the error diagnosis rate, and the stability index threshold at the same time, the system's fault detection speed, accuracy (error diagnosis rate), and the stability index of the system can be comprehensively considered. This can enable the system to achieve higher efficiency and accuracy in the process of fault detection and diagnosis, and by accurately optimizing the fault detection time threshold and the weights of each parameter of the error diagnosis rate, it can maximize the use of system resources, reduce unnecessary maintenance and detection time, improve the system's operating efficiency and cost-effectiveness, and enable the system to better adapt to the operating environment and fault scenarios under different conditions, thereby improving the system's flexibility and response capabilities.
[0100] When the optimized decision variables are output, the analysis system performs real-time fault detection on the distribution network according to the optimized decision variables, identifies the fault points in the distribution network, determines the fault type and cause by analyzing the detected fault characteristics, and finally generates a fault report and sends it to the management personnel.
[0101] Embodiment 3: The distribution network fault analysis system based on the Internet of Things described in this embodiment includes an initialization module, a matrix update module, and a decision variable output module;
[0102] Initialization module: collects the operation data of the distribution network in real time through the Internet of Things devices, and automatically constructs the objective function based on the optimization target and operation data of the distribution network. After initializing the initial point, Hessian matrix, iteration parameters and convergence threshold in the objective function, the objective function is sent to the matrix update module and the decision variable output module, and the initialized parameters are sent to the matrix update module and the decision variable output module;
[0103] Matrix update module: solves the gradient of the objective function at the current decision variable, calculates the search direction based on the Hessian matrix and the gradient of the objective function at the current decision variable, uses the line search method to output the step size, updates the decision variable based on the search direction and step size, calculates the step vector and gradient difference through the updated decision variable and the current decision variable, and uses the BFGS update algorithm to update the Hessian matrix based on the step vector and gradient difference, and sends the updated decision variable to the decision variable output module;
[0104] Decision variable output module: judge whether the convergence condition is met based on the comparison result of the norm of the gradient of the objective function at the updated decision variable and the convergence threshold, and repeat the iteration or output the optimized decision variable based on the judgment result. When the optimized decision variable is output, the distribution network is detected in real time according to the optimized decision variable, the fault point in the distribution network is identified, and the fault type and cause are determined by analyzing the detected fault characteristics, and finally a fault report is generated and sent to the management personnel.
[0105] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0106] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0107] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well.
Claims
1. A distribution network fault analysis method based on the Internet of Things, characterized by: The analytical method comprises the following steps: The analysis system collects the operation data of the distribution network in real time through the Internet of Things devices, and automatically constructs the objective function based on the distribution network optimization target and the operation data, and initializes the initial point, Hessian matrix, iteration parameters and convergence threshold in the objective function; Solve the gradient of the objective function at the current decision variable, calculate the search direction based on the Hessian matrix and the gradient of the objective function at the current decision variable, use the line search method to output the step size, update the decision variable based on the search direction and step size, calculate the step vector and gradient difference through the updated decision variable and the current decision variable, and use the BFGS update algorithm to update the Hessian matrix based on the step vector and gradient difference; Whether the convergence condition is met is determined based on the comparison result of the norm of the gradient of the objective function at the updated decision variable and the convergence threshold, and the optimized decision variable is repeatedly iterated or output based on the judgment result. When the optimized decision variable is output, the analysis system performs real-time fault detection on the distribution network according to the optimized decision variable, identifies the fault point in the distribution network, and determines the fault type and cause by analyzing the detected fault characteristics, and finally generates a fault report and sends it to the management personnel; Automatically construct the objective function based on the distribution network optimization objectives and operation data, including the following steps: The distribution network operation data includes fault occurrence and detection timestamps, the number of true positives, true negatives, false positives, and false negatives of fault diagnosis, the mean time between failures and the mean time to repair, the fault detection time threshold, and the reliability index threshold; The initial point x of the objective function includes the fault detection time threshold , reliability index threshold , the weight of each parameter in the false diagnosis rate ; The constructed objective function expression is: , where is the objective function, Indicates the fault detection time, represents the misdiagnosis rate, represents the reliability index, , , are the weights of fault detection time, false diagnosis rate and reliability index respectively, and ; Solve the gradient of the objective function at the current decision variable, and calculate the search direction based on the Hessian matrix and the gradient of the objective function at the current decision variable, including the following steps: Calculate the objective function In the current decision variable The gradient at is expressed as: , where is the gradient, is the numerical gradient, and , Indicates unit vectors, is the convergence threshold, using the current Hessian matrix and gradient Calculate search direction , the expression is: ; The line search method is used to output the step size, and the decision variables are updated in combination with the search direction and step size, including the following steps: Set the initial step size , calculate the objective function At the current step The function value at , and evaluates the Armijo conditional expression , is the Armijo parameter, and is a constant less than 1; like , output the current step length ; like , then the step size is reduced proportionally, ,in, To reduce the scale, and , the reduced step size Calculate the objective function At the current step Function values at and calculation of Armijo conditional expressions ; When any iteration , output the current step length ; By step length and search direction , update the current decision variables The value to the next iteration , the expression is: ; The optimization objectives include minimizing the fault detection time, minimizing the error diagnosis rate, and maximizing the power supply reliability. Minimizing the fault detection time, minimizing the error diagnosis rate, and maximizing the power supply reliability are quantitatively expressed as follows: , where represents the minimum value, Indicates the fault detection time, represents the misdiagnosis rate, represents the reliability index, , , are the weights of fault detection time, false diagnosis rate and reliability index respectively, and , , , , , , Represent the number of true positives, true negatives, false positives, and false negatives, respectively. Mean time between failures, represents the mean time to repair, , , , are the weights of true positive, true negative, false positive and false negative, respectively, and , , , All are greater than 0; And the optimization target satisfies the approximate condition: , , where , Respectively represent nodes The voltage and current at is the voltage safety range, This is the current safety range.
2. The method for analyzing distribution network faults based on the Internet of Things according to claim 1, characterized in that: Calculating the step vector and gradient difference by the updated decision variables and the current decision variables includes the following steps: Calculate the difference between the updated decision variable and the current decision variable as the step vector, expressed as: , where is the step vector, is the current decision variable, is the updated decision variable; Calculate the gradient vector of the objective function at the current decision variable and the updated decision variable, and calculate the difference between the gradient of the updated decision variable and the current decision variable. The expression is: , where is the gradient difference, is the gradient vector of the current decision variable, is the gradient vector of the updated decision variable.
3. The method for analyzing distribution network faults based on the Internet of Things according to claim 2, characterized in that: The BFGS update algorithm is used to update the Hessian matrix in combination with the step vector and the gradient difference, including the following steps: Update the Hessian matrix approximation using the BFGS update formula arrive , the expression is: , where Indicates The Hessian matrix approximation of the step is is the gradient difference, is the step vector, Representation vector The transpose of Representation vector The outer product with its own transpose results in a matrix, Representation vector Multiply the matrix by the transpose of Multiply by the vector , the result is a scalar.
4. The method for analyzing distribution network faults based on the Internet of Things according to claim 3 is characterized in that: According to the comparison result of the norm of the gradient of the objective function at the updated decision variable and the convergence threshold, it is judged whether the convergence condition is met, and based on the judgment result, it is repeatedly iterated or the optimized decision variable is output, including the following steps: Calculate the norm of the gradient of the objective function at the updated decision variable, expressed as: , where represents the norm of the gradient of the objective function at the update decision variable, is the numerical gradient, is the updated decision variable, n represents the number of variables, that is, the dimension of x; The norm of the gradient of the objective function at the update decision variable is compared with the preset convergence threshold Make comparisons; like , judge whether the convergence conditions are met and output the optimized decision variables ; like , judge that the convergence condition is not met, and use the updated decision variables Repeat the iteration until the until, is the convergence threshold.
5. A distribution network fault analysis system based on the Internet of Things, used to implement the analysis method according to any one of claims 1 to 4, characterized in that: It includes initialization module, matrix update module and decision variable output module; Initialization module: collects the operation data of the distribution network in real time through IoT devices, automatically builds the objective function based on the distribution network optimization target and operation data, and initializes the initial point, Hessian matrix, iteration parameters and convergence threshold in the objective function; Matrix update module: solves the gradient of the objective function at the current decision variable, calculates the search direction based on the Hessian matrix and the gradient of the objective function at the current decision variable, outputs the step size using the line search method, updates the decision variable based on the search direction and step size, calculates the step size vector and gradient difference through the updated decision variable and the current decision variable, and uses the BFGS update algorithm to update the Hessian matrix based on the step size vector and gradient difference; Decision variable output module: judge whether the convergence condition is met based on the comparison result of the norm of the gradient of the objective function at the updated decision variable and the convergence threshold, and repeat the iteration or output the optimized decision variable based on the judgment result. When the optimized decision variable is output, the distribution network is detected in real time according to the optimized decision variable, the fault point in the distribution network is identified, and the fault type and cause are determined by analyzing the detected fault characteristics, and finally a fault report is generated and sent to the management personnel.
