Detection device setting method, system, computer equipment and medium based on Hausdorff algorithm
The Hausdorff algorithm is used to calculate and adjust the position of the detection device, which solves the problem of insufficient number of overvoltage online detection devices in the distribution network, optimizes the number and cost of equipment, and ensures reliable acquisition of lightning parameters in the distribution network.
Patent Information
- Application Number
- CN202211167466.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-23
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-09-23
AI Technical Summary
In the distribution network, the number of overvoltage online detection devices is insufficient, resulting in high equipment investment costs and difficulty in obtaining effective lightning parameters. It is difficult to reasonably calculate the distance between detection devices with the existing technology.
The detection device setting method based on the Hausdorff algorithm is adopted. Through the Hausdorff distance calculation step and the preset setting value matching judgment, the detection device position is adjusted to achieve a reasonable setting distance to ensure information reliability and optimization of the number of equipment.
It achieves accurate calculation of the optimal installation distance between each overvoltage detection device, reduces the amount of equipment investment, lowers the installation cost, and solves the problems of excessive equipment and high cost caused by the pursuit of benefit maximization in traditional methods. .
Smart Images

Figure CN115480127B
Abstract
Description
Technical Field
[0001] The present invention relates to circuit detection, and in particular to a detection device setting method, system, computer equipment and medium based on Hausdorff algorithm. Background Art
[0002] The power industry is an important part of the national economy, and the distribution network is an important part of the power system. With the rapid construction and development of the power grid, the long-standing problems of outdated technical performance and low reliability of distribution network equipment in my country have become increasingly prominent, directly affecting people's lives and the development of economic construction. The safe operation of the distribution network has received more and more attention. The distribution network system is responsible for directly supplying power to users, and has the characteristics of wide distribution and many equipment; the insulation level of the distribution line is low, and power outages are prone to occur in the lightning environment, causing losses to the economy. Therefore, it is necessary to design more effective lightning protection measures for the distribution network line. The basis for the lightning protection transformation design of the distribution network is to obtain the lightning parameters in the area where the distribution network line is located. In order to better grasp the laws of lightning activity, my country built a lightning positioning system in the late 1980s, which uses lightning electromagnetic field telemetry technology to locate the lightning fault point and calculate the lightning current. Although the application of lightning positioning system is quite extensive now, due to the influence of many factors, the absolute accuracy of the lightning positioning system needs to be improved, so certain auxiliary measures should be taken to achieve more accurate acquisition of lightning parameters in the area where the distribution network line is located. With the development of high voltage testing technology and computer technology, overvoltage online detection technology has been rapidly developed and has shown good application prospects. Online detection of lightning parameters of distribution network lines can accurately obtain lightning strike point location, transmission line overvoltage, lightning tower current and other lightning related parameters through online detection system combined with lightning positioning system.
[0003] At present, the research on online overvoltage detection of distribution network mainly focuses on the development of online detection devices. In actual engineering applications, the layout of online detection devices also needs to be studied. In actual engineering conditions, due to the large number of distribution network lines, the online overvoltage detection devices put into the lines may have the problem of insufficient reserve of online overvoltage detection devices due to the pursuit of maximum benefits. Therefore, how to reasonably calculate the setting distance between each online overvoltage detection device, so as to reduce the number of online overvoltage detection devices, has become an urgent problem to be solved. Summary of the invention
[0004] Based on this, it is necessary to propose a detection device setting method, system, computer equipment and medium based on the Hausdorff algorithm that can reasonably calculate the setting distance between each overvoltage online detection device in order to address the above problem.
[0005] A detection device setting method based on Hausdorff algorithm, characterized in that it includes a protection circuit and a plurality of overvoltage detection devices, and the method includes:
[0006] An i-th overvoltage detection device is set in the protection circuit, where the initial value of i is 2, wherein the first overvoltage detection device has been set at the starting point of the protection circuit, a first distance between the setting position of the i-th overvoltage detection device and the starting point is greater than a second distance between the setting position of the (i-1)-th overvoltage detection device and the starting point, and a difference between the first distance and the second distance is a set distance preset by a user;
[0007] The Hausdorff distance calculation step is performed to calculate the first distance value H between the first voltage sampling point acquired by the i-1th overvoltage detection device and the second voltage sampling point acquired by the i-th overvoltage detection device when an overvoltage occurs. ij1 ;
[0008] Determine the first distance value H ij1 Is it consistent with the preset setting value H set match;
[0009] If yes, it is determined that the setting position of the i-th overvoltage detection device is reasonable, and after setting i=i+1, the process returns to the step of setting the i-th overvoltage detection device on the protection circuit until all the overvoltage detection devices on the protection circuit are set;
[0010] If not, the position of the i-th overvoltage detection device on the protection line is adjusted, and the process returns to the step of calculating the Hausdorff distance.
[0011] Furthermore, before the step of providing the i-th overvoltage detection device on the protection circuit, the step includes:
[0012] Determining whether the setting position of the i-th overvoltage detection device exceeds the end of the protection circuit;
[0013] If not, after setting the i-th overvoltage detection device at the setting position, return to the step of setting the i-th overvoltage detection device on the protection circuit until the setting of all overvoltage detection devices on the protection circuit is completed.
[0014] Furthermore, after the step of determining whether the setting position exceeds the end of the protection line, the step further includes:
[0015] If yes, shorten the set distance according to the preset distance to obtain a shortened estimated distance, wherein the shortened estimated distance is less than or equal to the distance between the setting position of the (i-1)th overvoltage detection device and the end of the protection circuit;
[0016] After replacing the set distance with the shortened estimated distance, continue to execute the step of setting the i-th overvoltage detection device on the protection line.
[0017] Furthermore, the determination of the first distance value H ij1 Is it consistent with the preset setting value H set The matching steps include:
[0018] Determine the first distance value H ij1 With the preset setting value H set Whether the difference between them is less than or equal to the preset magnification factor k;
[0019] If so, determine the first distance value H ij1 With the preset setting value H set match.
[0020] Further, the determining of the first distance value H ij1 Is it consistent with the preset setting value H set The matching steps also include:
[0021] If the first distance value H ij1 Greater than the preset setting value H set , and the first distance value H ij1 With the preset setting value H set If the difference between the ith overvoltage detection device and the (i-1)th overvoltage detection device is greater than the preset amplification factor k, the distance between the ith overvoltage detection device and the (i-1)th overvoltage detection device is extended according to the set distance, and the Hausdorff distance calculation step is returned to be executed;
[0022] If the first distance value H ij1 Less than the preset setting value H set , and the first distance value H ij1 With the preset setting value H set is greater than the preset amplification factor k, the distance between the i-th overvoltage detection device and the (i-1)-th overvoltage detection device is shortened according to the set distance, and the Hausdorff distance calculation step is returned to be executed. Further, the Hausdorff distance calculation step specifically includes:
[0023] Acquire a preset reference coordinate system, wherein the horizontal axis of the reference coordinate system is the voltage acquisition time, and the horizontal axis is the voltage acquisition value;
[0024] Connecting a preset fault point to the (i-1)th overvoltage detection device and the (i)th overvoltage detection device to perform an overvoltage test, thereby obtaining a voltage sampling trajectory A of the (i-1)th overvoltage detection device in the preset reference coordinate system and a voltage sampling trajectory B of the (i)th overvoltage detection device in the preset reference coordinate system;
[0025] The voltage sampling trajectory A includes a plurality of first voltage sampling points α x , the voltage sampling trajectory B includes a plurality of second voltage sampling points β γ , the x and the γ correspond to the voltage acquisition time on the horizontal axis of the reference coordinate system;
[0026] Get the first voltage sampling point α x The second voltage sampling point β γ The coordinate distance between them is recorded as (α x , β γ );
[0027] According to the coordinate distance (α x , β γ ) Generate the first distance matrix D AB , the first distance matrix collectively D AB Specifically manifested as:
[0028]
[0029] Get the second voltage sampling point β γ The first voltage sampling point α x The coordinate distance between them is recorded as (β γ , α x );
[0030] According to the coordinate distance (β γ , α x ) The second distance matrix D BA Specifically manifested as:
[0031]
[0032] According to the first distance matrix D AB And the second matrix D BA Calculate the distance value H of the voltage sampling point between the first calculating device and the second calculating device ij .
[0033] Further, according to the first distance matrix D AB And the second distance matrix D BA Calculate the distance value H of the voltage sampling point between the first calculating device and the second calculating device ij The steps include:
[0034] Get the first distance matrix D ABThe minimum value of the coordinate distance corresponding to each horizontal column is recorded as the first matching distance, and the first matching distances are integrated into a first matching distance group;
[0035] Obtaining a maximum value of the coordinate distances included in the first matching distance group, thereby generating a first distance reference value;
[0036] Get the second distance matrix D BA The minimum value of the coordinate distance corresponding to each horizontal column is recorded as the second matching distance, and the second matching distances are integrated into a second matching distance group;
[0037] Obtaining a maximum value of the coordinate distances included in the second matching distance group, thereby generating a second distance reference value;
[0038] Obtain the maximum value between the first distance reference value and the second distance reference value, and record it as the distance value H ij .
[0039] A detection device setting system based on Hausdorff algorithm includes a protection circuit and a plurality of overvoltage detection devices, the system comprising:
[0040] a setting unit, configured to set an i-th overvoltage detection device on the protection circuit, wherein an initial value of i is 2, wherein a first overvoltage detection device has been set at a starting point of the protection circuit, a first distance between a setting position of the i-th overvoltage detection device and the starting point is greater than a second distance between a setting position of an (i-1)-th overvoltage detection device and the starting point, and a difference between the first distance and the second distance is a setting distance preset by a user;
[0041] A step execution unit is used to execute the Hausdorff distance estimation step, so as to estimate the first distance value H between the first voltage sampling point acquired by the i-1th overvoltage detection device and the second voltage sampling point acquired by the i-th overvoltage detection device when an overvoltage occurs. ij1 ;
[0042] A judging unit, configured to judge the first distance value H ij1 Is it consistent with the preset setting value H set match;
[0043] a position identification unit, for judging that if yes, then determining that the setting position of the i-th overvoltage detection device is reasonable, and returning to execute the step of setting the i-th overvoltage detection device on the protection circuit after setting i=i+1, until the setting of all overvoltage detection devices on the protection circuit is completed;
[0044] The adjusting unit is used to adjust the position of the i-th overvoltage detection device on the protection line if the judgment is not positive, and return to execute the Hausdorff distance calculation step.
[0045] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:
[0046] An i-th overvoltage detection device is set in the protection circuit, where the initial value of i is 2, wherein the first overvoltage detection device has been set at the starting point of the protection circuit, a first distance between the setting position of the i-th overvoltage detection device and the starting point is greater than a second distance between the setting position of the (i-1)-th overvoltage detection device and the starting point, and a difference between the first distance and the second distance is a set distance preset by a user;
[0047] The Hausdorff distance calculation step is performed to calculate the first distance value H between the first voltage sampling point acquired by the first overvoltage detection device and the second voltage sampling point acquired by the i-th overvoltage detection device when an overvoltage occurs. ij1 ;
[0048] Determine the first distance value H ij1 Is it consistent with the preset setting value H set match;
[0049] If yes, it is determined that the setting position of the i-th overvoltage detection device is reasonable, and after setting i=i+1, the process returns to the step of setting the i-th overvoltage detection device on the protection circuit until all the overvoltage detection devices on the protection circuit are set;
[0050] If not, adjust the position of the i-th overvoltage detection device on the protection line, and return to the step of performing the Hausdorff distance calculation.
[0051] A computer readable medium stores a computer program, which, when executed by a processor, causes the processor to perform the following steps:
[0052] An i-th overvoltage detection device is set in the protection circuit, where the initial value of i is 2, wherein the first overvoltage detection device has been set at the starting point of the protection circuit, a first distance between the setting position of the i-th overvoltage detection device and the starting point is greater than a second distance between the setting position of the (i-1)-th overvoltage detection device and the starting point, and a difference between the first distance and the second distance is a set distance preset by a user;
[0053] The Hausdorff distance calculation step is performed to calculate the first distance value H between the first voltage sampling point acquired by the first overvoltage detection device and the second voltage sampling point acquired by the i-th overvoltage detection device when an overvoltage occurs. ij1 ;
[0054] Determine the first distance value H ij1 Is it consistent with the preset setting value H set match;
[0055] If yes, it is determined that the setting position of the i-th overvoltage detection device is reasonable, and after setting i=i+1, the process returns to the step of setting the i-th overvoltage detection device on the protection circuit until all the overvoltage detection devices on the protection circuit are set;
[0056] If not, adjust the position of the i-th overvoltage detection device on the protection line, and return to the step of performing the Hausdorff distance calculation.
[0057] If so, other overvoltage detection devices are arranged on the protection line according to the set distance.
[0058] The above-mentioned detection device setting method, system, computer equipment and medium based on the Hausdorff algorithm, by using the Hausdorff distance calculation method to calculate the distance between the set overvoltage detection devices, and using the preset set value to judge whether the distance setting is appropriate, can achieve accurate calculation of the optimal distance between each overvoltage detection device. Different from the traditional fixed distance arrangement, the distributed detection device setting method based on the Hausdorff algorithm can reduce the number of equipment investments while ensuring information reliability, and solves the problem that the existing detection device setting method based on the Hausdorff algorithm in the prior art may result in insufficient overvoltage online detection device reserves and excessive costs due to too many settings due to the pursuit of maximum benefits, thereby reducing the setting cost of users when setting overvoltage online detection devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0060] in:
[0061] Figure 1Schematic diagram of a flow chart of a method for setting a detection device based on a Hausdorff algorithm in one embodiment;
[0062] Figure 2 It is a structural schematic diagram of a detection device setting system based on Hausdorff algorithm in one embodiment;
[0063] Figure 3 A structural block diagram of a computer device in one embodiment DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.
[0065] S1. An i-th overvoltage detection device is set in the protection circuit, where the initial value of i is 2, wherein the first overvoltage detection device has been set at the starting point of the protection circuit, a first distance between the setting position of the i-th overvoltage detection device and the starting point is greater than a second distance between the setting position of the (i-1)-th overvoltage detection device and the starting point, and a difference between the first distance and the second distance is a set distance preset by a user;
[0066] As described in the above step S1, the protection line is a three-phase AC transmission line, and the user simulates the installation positions of the first overvoltage detection device and the i-th overvoltage detection device on the protection line through the background system and the set distance. Then, after the user installs the first overvoltage detection device at the starting point of the protection line where the overvoltage detection device needs to be installed, the user installs the i-th overvoltage detection device at a location matching the set distance behind the first overvoltage detection device;
[0067] It can be understood that the first distance between the setting position of the i-th overvoltage detection device and the starting point (i.e., the first overvoltage detection device) is greater than the second distance between the setting position of the i-1-th overvoltage detection device set on the protection circuit (i.e., the first overvoltage detection device) and the starting point, and in addition, the difference between the first distance and the second distance is a set distance preset by the user;
[0068] For example, when i is superimposed once in the loop step, i=3, then the first distance between the setting position of the third overvoltage detection device and the starting point (i.e., the first overvoltage detection device) is greater than the second distance between the setting position of the second overvoltage detection device (i.e., the first overvoltage detection device) set on the protection circuit and the starting point;
[0069] In addition, in this embodiment, the first overvoltage detection device and the i-th overvoltage detection device are used to obtain the voltage parameters of the protection line setting position when the protection line has an overvoltage condition. For example, when the protection line is struck by lightning, the protection line has an overvoltage condition. At this time, the first overvoltage detection device in this embodiment obtains the voltage parameter of the starting position of the protection line when the protection line is struck by lightning, and sends it to the background system;
[0070] In addition, the background system is generally a background server. In addition, the background system can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. The present invention does not limit this.
[0071] S2, executing the Hausdorff distance calculation step, thereby calculating the first distance value H between the first voltage sampling point obtained by the i-1th overvoltage detection device and the second voltage sampling point obtained by the i-th overvoltage detection device when an overvoltage occurs. ij1 ;
[0072] As described in step S2 above, the background system executes a preset Hausdorff distance calculation step, which is used to obtain the first voltage sampling point obtained by the i-1th overvoltage detection device and the second voltage sampling point obtained by the i-th overvoltage detection device when the protection line has an overvoltage condition, and then use the Hausdorff distance calculation method to calculate the first distance value H between the first voltage sampling point and the second voltage sampling point. ij1 .
[0073] S3, determining the first distance value H ij1 Is it consistent with the preset setting value H set match;
[0074] As described in step S3 above, the background system calculates the first distance value H between the first voltage sampling point and the second voltage sampling point through the Hausdorff distance calculation step. ij1 After that, get the preset setting value H set It can be understood that the preset setting value H set The specific value of is set by the user. At this time, the background system determines the first distance value H ij1 Is it consistent with the preset setting value H set match;
[0075] In addition, in this embodiment, when the preset setting value H setWith the first distance value H ij1 When the difference between the two is less than or equal to a preset value, the background system determines that the first distance value H ij1 With the preset setting value H set match.
[0076] S4, if yes, then determine that the setting position of the i-th overvoltage detection device is reasonable, and set i=i+1 and then return to execute the step of setting the i-th overvoltage detection device on the protection circuit until the setting of all overvoltage detection devices on the protection circuit is completed;
[0077] As described in step S4 above, when the background system determines that the first distance value H ij1 With the preset setting value H set After matching, it is determined that the setting position of the i-th overvoltage detection device is reasonable, and after setting i=i+1, the process returns to execute the step of setting the i-th overvoltage detection device in the protection circuit;
[0078] For example, when i=3, when the background system determines that the first distance value H between the second overvoltage detection device and the third overvoltage detection device is ij1 With the preset setting value H set If the circuit breaker matches, the background system sets i=i+1 at this time, generates the fourth overvoltage detection device, and then returns to execute the step of setting the i-th overvoltage detection device in the protection circuit, thereby calculating the distance value between the third overvoltage detection device and the fourth overvoltage detection device, and cyclically executing the above steps until the setting of all overvoltage detection devices on the protection circuit is completed.
[0079] S5. If not, adjust the position of the i-th overvoltage detection device on the protection line, and return to execute the Hausdorff distance calculation step.
[0080] As described in step S5 above, when the background system determines that the first distance value H ij1 With the preset setting value H set After matching, it is determined that the setting position of the i-th overvoltage detection device is unreasonable. At this time, the background system adjusts the position of the i-th overvoltage detection device on the protection line and returns to execute the Hausdorff distance calculation step until the setting of all overvoltage detection devices on the protection line is completed.
[0081] This embodiment uses the above method to use the Hausdorff distance calculation method to calculate the distance between the set overvoltage detection devices, and uses a preset set value to determine whether the distance setting is appropriate to achieve accurate calculation of the optimal distance between each overvoltage detection device. Different from the traditional fixed distance arrangement distributed detection device setting method based on the Hausdorff algorithm, it can reduce the number of equipment investments while ensuring information reliability, and solves the problem that the existing detection device setting method based on the Hausdorff algorithm in the prior art may result in insufficient overvoltage online detection device reserves and excessive costs due to too many settings due to the pursuit of maximum benefits, thereby reducing the user's setting cost when setting an overvoltage online detection device.
[0082] In one embodiment, before the step of providing the i-th overvoltage detection device on the protection circuit, the step includes:
[0083] S11. Determine whether the setting position of the i-th overvoltage detection device exceeds the end of the protection circuit; if not, set the i-th overvoltage detection device at the setting position.
[0084] As described in the above embodiment, in order to obtain the voltage sampling point of the protection circuit when an overvoltage occurs, a corresponding overvoltage detection device must be provided at the end of the protection circuit. When the background system determines that the setting position of the i-th overvoltage detection device does not exceed the end of the protection circuit, it can be understood that when the setting position does not exceed the end of the protection circuit, it proves that the distance between the i-1th overvoltage detection device and the i-th overvoltage detection device is appropriate. At this time, after the i-th overvoltage detection device is set at the setting position, the step of setting the i-th overvoltage detection device on the protection circuit is returned to execute until the setting of all overvoltage detection devices on the protection circuit is completed.
[0085] In one embodiment, after the step of determining whether the setting position exceeds the end of the protection line, the step further includes:
[0086] S12, if yes, shorten the set distance according to the preset distance to obtain a shortened estimated distance;
[0087] After replacing the set distance with the shortened estimated distance, let i=2 and return to the step of setting the i-th overvoltage detection device on the protection line.
[0088] As described in the above embodiment, when the background system determines that the setting position of the i-th overvoltage detection device exceeds the end of the protection circuit, it can be understood that when the setting position exceeds the end of the protection circuit, it proves that the distance between the i-1th overvoltage detection device and the i-th overvoltage detection device is too long. At this time, the background system determines that the corresponding overvoltage detection device is not set at the end of the protection circuit. At this time, the background system shortens the set distance according to the preset distance, thereby obtaining a shortened estimated distance. It can be understood that the shortened estimated distance after shortening is less than or equal to the distance between the setting position of the i-1th overvoltage detection device and the end of the protection circuit, thereby ensuring that the position of the i-th overvoltage detection device adjusted according to the shortened estimated distance on the protection circuit will not exceed the end of the protection circuit. After that, the back-end system replaces the set distance with the shortened estimated distance, and sets i=2, thereby restarting the step of setting the i-th overvoltage detection device in the protection circuit, so as to restart the calculation of the distance value H between the first overvoltage detection device and the second overvoltage detection device. ij The function is to ensure that the position of the i-th overvoltage detection device adjusted according to the shortened estimated distance on the protection line does not exceed the end of the protection line.
[0089] In one embodiment, the step S3 specifically includes:
[0090] S31, determining the first distance value H ij1 With the preset setting value H set Is the difference between the two values less than or equal to the preset magnification factor k? If so, determine whether the first distance value H ij1 With the preset setting value H set match.
[0091] As described in the above embodiment, when the background system needs to determine the first distance value H ij1 Is it consistent with the preset setting value H set When matching, the background system obtains the preset magnification factor k, and then the background system determines the first distance value H ij1 With the preset setting value H set The relationship satisfies H ij1 -H set ≤k, the background system determines the first distance value H ij1 With the preset setting value H set Match, and return to execute if yes, then determine the step of setting position of the i-th overvoltage detection device is reasonable.
[0092] It can be understood that the specific value of the preset amplification factor k is set by the user, and the present invention does not limit the specific value of the preset amplification factor k.
[0093] In one embodiment, the determining of the first distance value Hij1 Is it consistent with the preset setting value H set The matching steps also include:
[0094] If the first distance value H ij1 Greater than the preset setting value H set , and the first distance value H ij1 With the preset setting value H set If the difference between the ith overvoltage detection device and the (i-1)th overvoltage detection device is greater than the preset amplification factor k, the distance between the ith overvoltage detection device and the (i-1)th overvoltage detection device is extended according to the set distance, and the Hausdorff distance calculation step is returned to be executed;
[0095] If the first distance value H ij1 Less than the preset setting value H set , and the first distance value H ij1 With the preset setting value H set If the difference between the ith overvoltage detection device and the (i-1)th overvoltage detection device is greater than the preset amplification factor k, the distance between the ith overvoltage detection device and the (i-1)th overvoltage detection device is shortened according to the set distance, and the Hausdorff distance calculation step is returned to be executed.
[0096] As described in the above embodiment, when the background system determines that the first distance value H ij1 With the preset setting value H set If there is no match, the background system will determine the first distance value H again. ij1 Is it greater than the preset setting value H set At the same time, the first distance value H ij1 With the preset setting value H set The difference is greater than the preset magnification factor k, because when the first distance value H ij1 Greater than the preset setting value H set When , the background system determines that the distance between the i-th overvoltage detection device and the i-1-th overvoltage detection device is too close, resulting in the voltage sampling trajectory obtained being inconsistent with the preset setting value H set The similarity between the corresponding set trajectories is too high, so it is necessary to extend the distance between the i-th overvoltage detection device and the i-1-th overvoltage detection device to reduce the voltage sampling trajectory and the preset setting value H set The similarity between the corresponding set trajectories, so at this time the background system extends the set distance according to the set distance, thereby generating an extended replacement distance, and then replaces the set distance with the extended replacement distance and recalculates the distance value H through the distance calculation step. ij Until the distance value H ij With the preset setting value H set Until the match is achieved, the position of the i-th overvoltage detection device on the protection line is adjusted while reducing the voltage sampling trajectory and the preset setting value H setThe corresponding function of setting the similarity between trajectories;
[0097] In addition, if the first distance value H ij1 Less than the preset setting value H set , then shorten the distance between the i-th overvoltage detection device and the i-1-th overvoltage detection device according to the set distance, and return to execute the Hausdorff distance calculation step;
[0098] Then when the background system determines the first distance value H ij1 With the preset setting value H set If there is no match, the background system will determine the first distance value H again. ij1 Is it less than the preset setting value H set At the same time, the first distance value H ij1 With the preset setting value H set The difference is greater than the preset magnification factor k, because when the first distance value H ij1 Less than the preset setting value H set When , the background system determines that the distance between the i-th overvoltage detection device and the i-1-th overvoltage detection device is too far, resulting in the obtained voltage sampling trajectory being inconsistent with the preset setting value H set The similarity between the corresponding set trajectories is too low, so it is necessary to shorten the distance between the i-th overvoltage detection device and the i-1-th overvoltage detection device to improve the similarity of the voltage sampling trajectory. Therefore, at this time, the background system shortens the set distance according to the set distance, thereby generating a shortened replacement distance, and then replaces the set distance with the shortened replacement distance, and then recalculates the distance value H through the distance calculation step. ij Until the distance value H ij With the preset setting value H set Until the voltage is matched, the position of the i-th overvoltage detection device on the protection line is adjusted and the voltage sampling trajectory is improved to match the preset setting value H. set The corresponding function sets the similarity between trajectories.
[0099] It is understandable that, since the above embodiment only returns to the Hausdorff distance calculation step for re-execution, it is only used to adjust the setting distance between the corresponding two overvoltage detection devices on the protection line, and will not affect the setting distance between the remaining overvoltage detection devices on the protection line.
[0100] In one embodiment, the Hausdorff distance calculation step specifically includes:
[0101] S21, obtaining a preset reference coordinate system, wherein the horizontal axis of the reference coordinate system is the voltage acquisition time, and the horizontal axis is the voltage acquisition value, and a preset fault point is connected to the (i-1)th overvoltage detection device and the (i)th overvoltage detection device to perform an overvoltage test, thereby obtaining a voltage sampling trajectory A of the (i-1)th overvoltage detection device on the preset reference coordinate system and a voltage sampling trajectory B of the (i)th overvoltage detection device on the preset reference coordinate system, wherein the voltage sampling trajectory A includes a plurality of first voltage sampling points α x , the voltage sampling trajectory B includes a plurality of second voltage sampling points β γ , the x and the γ correspond to the voltage acquisition time on the horizontal axis of the reference coordinate system, and the first voltage sampling point α is obtained. x The second voltage sampling point β γ The coordinate distance between them is recorded as (α x , β γ ), according to the coordinate distance (α x , β γ ) Generate the first distance matrix D AB , the first distance matrix collectively D AB Specifically manifested as:
[0102]
[0103] Get the second voltage sampling point β γ The first voltage sampling point α x The coordinate distance between them is recorded as (β γ , α x );
[0104] According to the coordinate distance (β γ , α x ) Generate the second distance matrix D BA , the second distance matrix D BA Specifically manifested as:
[0105]
[0106] According to the first distance matrix D AB And the second matrix D BA Calculate the distance value H of the voltage sampling point between the first calculating device and the second calculating device ij .
[0107] As described in the above embodiment, the background system obtains a preset reference coordinate system, the horizontal axis of the reference coordinate system is the voltage acquisition time, and the horizontal axis is the voltage acquisition value. Then, the background system connects the preset fault point to the i-1th overvoltage detection device and the i-th overvoltage detection device, thereby realizing the simulation of the overvoltage situation. Then, the background system obtains the voltage sampling trajectory A of the i-1th overvoltage detection device when simulating the overvoltage situation and the voltage sampling trajectory B of the i-th overvoltage detection device when simulating the overvoltage situation, wherein the voltage sampling trajectory A includes a plurality of first voltage sampling points α x , the voltage sampling trajectory B contains several second voltage sampling points β γ , then the background system obtains the first voltage sampling point α x The second voltage sampling point β γ The coordinate distance between them is recorded as (α x , β γ ) and then, according to the coordinate distance (α x , β γ ) Generate the first distance matrix D AB , the first distance matrix collectively D AB Specifically manifested as:
[0108]
[0109] It can be understood that x and γ correspond to the voltage acquisition time on the horizontal axis of the preset reference coordinate system. For example, the first voltage sampling point α1 and the second voltage sampling point β1 are voltage sampling points acquired at the same voltage acquisition time in the preset reference coordinate system, then (a1, β1) is the coordinate distance between the first voltage sampling point α1 and the second voltage sampling point β1 acquired at the same voltage acquisition time in the preset reference coordinate system, and (a1, β2) is the coordinate distance between the first voltage sampling point α1 in the preset reference coordinate system and the second voltage sampling point β2 acquired at the next voltage acquisition time of the second voltage sampling point β1. By analogy, the first distance matrix D AB It contains the first voltage sampling point α corresponding to all voltage acquisition times on the preset reference coordinate system x To the second voltage sampling point β corresponding to all voltage acquisition times on the preset reference coordinate system γ The coordinate distance between them;
[0110] Then the background system obtains the second voltage sampling point and the β γ The first voltage sampling point α x The coordinate distance between them is recorded as (β γ , α x ) and then, according to the coordinate distance (β γ , αx ) Generate the second distance matrix D BA , the second distance matrix collectively D BA Specifically manifested as:
[0111]
[0112] For example, the second voltage sampling point β1 and the second voltage sampling point α1 are voltage sampling points acquired at the same voltage acquisition time in the preset reference coordinate system, then (β1, a1) is the coordinate distance between the second voltage sampling point β1 and the first voltage sampling point α1 acquired at the same voltage acquisition time in the preset reference coordinate system, and (β1, a2) is the coordinate distance between the second voltage sampling point β1 and the first voltage sampling point α2 acquired at the next voltage acquisition time of the first voltage sampling point α1 in the preset reference coordinate system, and so on, the second distance matrix collective D BA It contains the second voltage sampling point β corresponding to all voltage acquisition times on the preset reference coordinate system γ To the first voltage sampling point α corresponding to all voltage acquisition times on the preset reference coordinate system x The coordinate distance between them;
[0113] Then the background system calculates the distance matrix D according to the first distance matrix D. AB And the second matrix D BA Calculate the distance value H of the voltage sampling point between the i-1th calculating device and the i-th calculating device ij .
[0114] In one embodiment, the first distance matrix D AB And the second distance matrix D BA Calculate the distance value H of the voltage sampling point between the first calculating device and the second calculating device ij The steps include:
[0115] S22, obtaining the first distance matrix D AB The minimum value of the coordinate distance corresponding to each horizontal column in the matrix is recorded as the first matching distance, and the first matching distance is integrated into a first matching distance group, and the maximum value of the coordinate distance contained in the first matching distance group is obtained, thereby generating a first distance reference value, and obtaining the second distance matrix D BA The minimum value of the coordinate distance corresponding to each horizontal column in the coordinate distance is recorded as the second matching distance, and the second matching distance is integrated into a second matching distance group, and the maximum value of the coordinate distance contained in the second matching distance group is obtained to generate a second distance reference value, and the maximum value between the first distance reference value and the second distance reference value is obtained and recorded as the distance value H. ij .
[0116] As described in the above embodiment, the background system obtains the first distance matrix D AB The minimum value of the coordinate distance corresponding to each horizontal column in is recorded as the first matching distance. It can be understood that the first distance matrix D AB The coordinate distance corresponding to each row is the same first voltage sampling point α x To the second voltage sampling point β corresponding to all voltage acquisition times on the preset reference coordinate system γ The coordinate distance between them is given by: AB The coordinate distance of the first row is the distance from the first voltage sampling point α1 to the second voltage sampling point β 1-γ The coordinate distance between them, and then the background system obtains the first distance matrix D AB The minimum value of the corresponding coordinate distances in each horizontal column is recorded as the first matching distance, and after the first matching distances are integrated into a first matching distance group, the maximum value of the coordinate distances included in the first matching distance group is obtained, thereby generating a first distance reference value;
[0117] Then the background system obtains the second distance matrix D BA The minimum value of the coordinate distance corresponding to each horizontal column in is recorded as the second matching distance. It can be understood that the second distance matrix D BA The coordinate distance corresponding to each row is the same second voltage sampling point β γ To the second voltage sampling point β corresponding to all voltage acquisition times on the preset reference coordinate system γ The coordinate distance between them is given by: BA The coordinate distance of the first row is the second voltage sampling point β γ To the first voltage sampling point α 1-x The coordinate distance between them, and then the background system obtains the second distance matrix D BA The minimum value of the corresponding coordinate distances in each horizontal column is recorded as the second matching distance, and after the second matching distances are integrated into a second matching distance group, the maximum value of the coordinate distances included in the second matching distance group is obtained, thereby generating a second distance reference value;
[0118] Finally, the background system takes the maximum value between the first distance reference value and the second distance reference value, and records the distance reference value corresponding to the maximum value as the distance value H ij .
[0119] A detection device setting system based on Hausdorff algorithm includes a protection circuit and a plurality of overvoltage detection devices, the system comprising:
[0120] A setting unit 1 is used to set an i-th overvoltage detection device on the protection circuit, where the initial value of i is 2, wherein a first overvoltage detection device has been set at the starting point of the protection circuit, a first distance between a setting position of the i-th overvoltage detection device and the starting point is greater than a second distance between a setting position of an i-1-th overvoltage detection device and the starting point, and a difference between the first distance and the second distance is a setting distance preset by a user;
[0121] Step execution unit 2 is used to execute the Hausdorff distance estimation step, so as to estimate the first distance value H between the first voltage sampling point obtained by the i-1th overvoltage detection device and the second voltage sampling point obtained by the i-th overvoltage detection device when an overvoltage occurs. ij1 ;
[0122] The judging unit 3 is used to judge the first distance value H ij1 Is it consistent with the preset setting value H set match;
[0123] The position identification unit 4 is used to determine that if yes, then the setting position of the i-th overvoltage detection device is reasonable, and after setting i=i+1, return to execute the step of setting the i-th overvoltage detection device on the protection line until the setting of all overvoltage detection devices on the protection line is completed;
[0124] The adjusting unit 5 is used to adjust the position of the i-th overvoltage detection device on the protection line if the judgment is not positive, and return to execute the Hausdorff distance calculation step.
[0125] The above-mentioned units are for executing the above-mentioned voltage detection device setting system, and will not be introduced one by one here.
[0126] Figure 3 FIG. 1 shows an internal structure diagram of a computer device in an embodiment. The computer device may be a server, including but not limited to a high-performance computer and a high-performance computer cluster. Figure 3 As shown, the computer device includes a processor, a memory and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor may implement the employee status determination method. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor may execute the detection device setting method based on the Hausdorff algorithm.
[0127] In one embodiment, the customer behavior identification method provided by the present invention can be implemented in the form of a computer program. The computer program can be used in Figure 3The computer device shown in the figure is run. The memory of the computer device can store various program templates that constitute the automatic mail classification and aggregation device. For example:
[0128] A computer device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0129] A first overvoltage detection device is set at the starting point of the protection line, and a device setting step is performed. A second overvoltage detection device is set on the protection line, and the distance between the second overvoltage detection device and the first overvoltage detection device is a set distance preset by a user. A Hausdorff distance calculation step is performed to calculate a first distance value H of a voltage sampling point between the first overvoltage detection device and the second overvoltage detection device. ij1 , determine the first distance value H ij1 Is it consistent with the preset setting value H set Match, if so, then set the remaining overvoltage detection devices on the protection line according to the set distance.
[0130] From the above embodiments, it can be seen that the greatest beneficial effect of the present invention is that the distance between the overvoltage detection devices is calculated by using the Hausdorff distance calculation method, and a preset set value is used to determine whether the distance setting is appropriate to achieve accurate calculation of the optimal distance between each overvoltage detection device. Different from the traditional fixed distance arrangement, the distributed detection device setting method based on the Hausdorff algorithm can reduce the number of equipment investments while ensuring information reliability. It solves the problem that the existing detection device setting method based on the Hausdorff algorithm in the prior art may result in insufficient reserves of overvoltage online detection devices and excessive costs due to too many settings due to the pursuit of maximizing benefits, thereby reducing the setting cost of users when setting overvoltage online detection devices.
[0131] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be accomplished by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), and double data rate.
[0132] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0133] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A detection device setting method based on Hausdorff algorithm, characterized in that: The invention comprises a protection circuit and several overvoltage detection devices, and the method comprises: An i-th overvoltage detection device is set in the protection circuit, where the initial value of i is 2, wherein the first overvoltage detection device has been set at the starting point of the protection circuit, a first distance between the setting position of the i-th overvoltage detection device and the starting point is greater than a second distance between the setting position of the (i-1)-th overvoltage detection device and the starting point, and a difference between the first distance and the second distance is a set distance preset by a user; The Hausdorff distance calculation step is performed to calculate the first distance value H between the first voltage sampling point acquired by the i-1th overvoltage detection device and the second voltage sampling point acquired by the i-th overvoltage detection device when an overvoltage occurs. ij1 , the step of performing the Hausdorff distance calculation specifically includes: A preset reference coordinate system is obtained, wherein the horizontal axis of the reference coordinate system is the voltage acquisition time, and the vertical axis is the voltage acquisition value; a preset fault point is connected to the (i-1)th overvoltage detection device and the (i)th overvoltage detection device to perform an overvoltage test, thereby obtaining a voltage sampling trajectory A of the (i-1)th overvoltage detection device on the preset reference coordinate system and a voltage sampling trajectory B of the (i)th overvoltage detection device on the preset reference coordinate system; the voltage sampling trajectory A includes a plurality of first voltage sampling points α x , the voltage sampling trajectory B includes a plurality of second voltage sampling points β γ , the x and the γ correspond to the voltage acquisition time on the horizontal axis of the reference coordinate system; obtain the first voltage sampling point α x The second voltage sampling point β γ The coordinate distance between them is recorded as (α x , β γ ); According to the coordinate distance (α x , β γ ) Generate the first distance matrix D AB , the first distance matrix collectively D AB Specifically manifested as: Get the second voltage sampling point β γ The first voltage sampling point α x The coordinate distance between them is recorded as (β γ , α x ); According to the coordinate distance (β γ , α x ), generate the second distance matrix D BA , the second distance matrix D BA Specifically manifested as: Get the first distance matrix D AB The minimum value of the coordinate distance corresponding to each horizontal column in the matrix is recorded as the first matching distance, and the first matching distance is integrated into a first matching distance group; the maximum value of the coordinate distance contained in the first matching distance group is obtained to generate a first distance reference value; the second distance matrix D is obtained BA The minimum value of the coordinate distance corresponding to each horizontal column in the coordinate distance is recorded as the second matching distance, and the second matching distance is integrated into a second matching distance group; the maximum value of the coordinate distance contained in the second matching distance group is obtained to generate a second distance reference value; the maximum value between the first distance reference value and the second distance reference value is obtained and recorded as the first distance value H ij1 ; Determine the first distance value H ij1 Is it consistent with the preset setting value H set match; If yes, it is determined that the setting position of the i-th overvoltage detection device is reasonable, and after setting i=i+1, the process returns to the step of setting the i-th overvoltage detection device on the protection circuit until all the overvoltage detection devices on the protection circuit are set; If not, the position of the i-th overvoltage detection device on the protection line is adjusted, and the process returns to the step of calculating the Hausdorff distance.
2. The detection device setting method based on the Hausdorff algorithm according to claim 1, characterized in that: Before the step of providing the i-th overvoltage detection device on the protection circuit, the method includes: Determining whether the setting position of the i-th overvoltage detection device exceeds the end of the protection circuit; If not, the i-th overvoltage detection device is set at the setting position.
3. The detection device setting method based on Hausdorff algorithm according to claim 1, characterized in that: After the step of determining whether the setting position exceeds the end of the protection line, the method further includes: If yes, shorten the set distance according to the preset distance to obtain a shortened estimated distance; After replacing the set distance with the shortened estimated distance, let i=2 and return to the step of setting the i-th overvoltage detection device on the protection line.
4. The detection device setting method based on Hausdorff algorithm according to claim 1, characterized in that: The determining of the first distance value H ij1 Is it consistent with the preset setting value H set The matching steps include: Determine the first distance value H ij1 With the preset setting value H set Whether the difference between them is less than or equal to the preset magnification factor k; If so, determine the first distance value H ij1 With the preset setting value H set match.
5. The detection device setting method based on Hausdorff algorithm as claimed in claim 4, characterized in that: The method further comprises: If the first distance value H ij1 Greater than the preset setting value H set , and the first distance value H ij1 With the preset setting value H set If the difference between the ith overvoltage detection device and the (i-1)th overvoltage detection device is greater than the preset amplification factor k, the distance between the ith overvoltage detection device and the (i-1)th overvoltage detection device is extended according to the set distance, and the Hausdorff distance calculation step is returned to be executed; If the first distance value H ij1 Less than the preset setting value H set , and the first distance value H ij1 With the preset setting value H set If the difference between the ith overvoltage detection device and the (i-1)th overvoltage detection device is greater than the preset amplification factor k, the distance between the ith overvoltage detection device and the (i-1)th overvoltage detection device is shortened according to the set distance, and the Hausdorff distance calculation step is returned to be executed.
6. A detection device setting system based on Hausdorff algorithm, characterized in that: The system comprises a protection circuit and several overvoltage detection devices, and includes: a setting unit, configured to set an i-th overvoltage detection device on the protection circuit, wherein an initial value of i is 2, wherein a first overvoltage detection device has been set at a starting point of the protection circuit, a first distance between a setting position of the i-th overvoltage detection device and the starting point is greater than a second distance between a setting position of an (i-1)-th overvoltage detection device and the starting point, and a difference between the first distance and the second distance is a setting distance preset by a user; A step execution unit is used to execute the Hausdorff distance estimation step, so as to estimate the first distance value H between the first voltage sampling point acquired by the i-1th overvoltage detection device and the second voltage sampling point acquired by the i-th overvoltage detection device when an overvoltage occurs. ij1 , the step of performing the Hausdorff distance calculation specifically includes: A preset reference coordinate system is obtained, wherein the horizontal axis of the reference coordinate system is the voltage acquisition time, and the vertical axis is the voltage acquisition value; a preset fault point is connected to the i-1th overvoltage detection device and the i-th overvoltage detection device to perform an overvoltage test, thereby obtaining a voltage sampling trajectory A of the i-1th overvoltage detection device on the preset reference coordinate system and a voltage sampling trajectory B of the i-th overvoltage detection device on the preset reference coordinate system; the voltage sampling trajectory A includes a plurality of first voltage sampling points α x , the voltage sampling trajectory B includes a plurality of second voltage sampling points β γ , the x and the γ correspond to the voltage acquisition time on the horizontal axis of the reference coordinate system; obtain the first voltage sampling point α x The second voltage sampling point β γ The coordinate distance between them is recorded as (α x , β γ ); According to the coordinate distance (α x , β γ ) Generate the first distance matrix D AB , the first distance matrix collectively D AB Specifically manifested as: Get the second voltage sampling point β γ The first voltage sampling point α x The coordinate distance between them is recorded as (β γ , α x ); According to the coordinate distance (β γ , α x ), generate the second distance matrix D BA , the second distance matrix D BA Specifically manifested as: Get the first distance matrix D AB The minimum value of the coordinate distance corresponding to each horizontal column in the matrix is recorded as the first matching distance, and the first matching distance is integrated into a first matching distance group; the maximum value of the coordinate distance contained in the first matching distance group is obtained to generate a first distance reference value; the second distance matrix D is obtained BA The minimum value of the coordinate distance corresponding to each horizontal column in the coordinate distance is recorded as the second matching distance, and the second matching distance is integrated into a second matching distance group; the maximum value of the coordinate distance contained in the second matching distance group is obtained to generate a second distance reference value; the maximum value between the first distance reference value and the second distance reference value is obtained and recorded as the first distance value H ij1 ; A judging unit, configured to judge the first distance value H ij1 Is it consistent with the preset setting value H set match; a position identification unit, for judging that if yes, then determining that the setting position of the i-th overvoltage detection device is reasonable, and returning to execute the step of setting the i-th overvoltage detection device on the protection circuit after setting i=i+1, until the setting of all overvoltage detection devices on the protection circuit is completed; The adjusting unit is used to adjust the position of the i-th overvoltage detection device on the protection line if the judgment is not successful, and return to execute the Hausdorff distance calculation step.
7. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the method for setting a detection device based on the Hausdorff algorithm as described in any one of claims 1 to 5 is implemented when the processor executes the computer program.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the detection device setting method based on the Hausdorff algorithm as described in any one of claims 1 to 5 are implemented.
