Methods, apparatus, computer equipment and storage media for determining line loss rate
By acquiring and analyzing the equipment information of each power equipment, determining the target model of the equipment group and generating time slots, the problem that traditional line loss rate calculation methods are difficult to apply to large data volumes is solved, and the global understanding of line loss rate and lean management are achieved.
Patent Information
- Application Number
- CN202111414146.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-25
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2041-11-25
AI Technical Summary
The traditional method of calculating the line loss rate is difficult to apply to distribution networks or the entire network with larger data volumes, and it is impossible to understand the actual situation of the line loss rate from a global overall perspective, which is not conducive to the lean management of the line loss rate.
By obtaining the equipment information of each power equipment collected by monitoring equipment at each level, determining the target model of each device group based on the preset correspondence relationship, generating a time slot corresponding to the target model, and determining the line loss rate using the target model based on the power consumption.
The determination of the line loss rate of multiple device groups on a larger range of distribution networks or the entire network is realized. It is suitable for distribution networks or the entire network with a larger amount of data. The actual situation of the line loss rate is understood from a global overall perspective, and the lean management of the line loss rate is realized.
Smart Images

Figure CN114240075B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electric power technology, and in particular to a method, device, computer equipment, storage medium and computer program product for determining a line loss rate. Background Art
[0002] When electric energy is transmitted from the power plant to the user, it will be lost due to overcoming resistance. In addition, excitation loss will also occur during the electromagnetic conversion process. At the same time, factors such as management negligence and metering equipment errors will also cause electric energy loss. These electric energy losses are collectively referred to as line losses. Line loss is a technical indicator to measure the production technology level and management level of a power supply company. Therefore, it is of great significance for power supply companies to accurately and timely calculate line losses and scientifically and reasonably formulate corresponding line loss measures based on line losses.
[0003] Traditional line loss rate calculation is mainly for a relatively small main network or substation. However, as the calculation range of line loss rate increases, the amount of data calculated will also increase. The existing line loss rate calculation method is difficult to apply to distribution networks or the entire network with a larger amount of data, and it is impossible to understand the actual situation of line loss rate from a global perspective, which is not conducive to the realization of lean management of line loss rate. Summary of the invention
[0004] Based on this, it is necessary to provide a line loss rate determination method, device, computer equipment, computer-readable storage medium and computer program product that can achieve lean management of line loss rate in response to the above technical problems.
[0005] In a first aspect, the present application provides a method for determining a line loss rate. The method comprises:
[0006] Acquire device information of each electric device collected by monitoring devices at each level, wherein the device information includes power information and target device identification, and the electric devices form a plurality of device groups;
[0007] Determine the target model corresponding to each device group according to a preset corresponding relationship, wherein the preset corresponding relationship includes a corresponding relationship between different types of models and different device groups;
[0008] Generate a time slot corresponding to the target model of the same device group according to the device information of each power device in the same device group, wherein the time slot includes the power consumption of each power device in the same device group determined within a preset time window, and the power consumption is determined according to the difference of the power information collected by the monitoring device within the preset time window;
[0009] Based on the power consumption of each power device in the same device group, the target model of the same device group is adopted to determine the line loss rate of the same device group.
[0010] In a second aspect, the present application also provides a line loss rate determination device. The device comprises:
[0011] An acquisition module, used to acquire device information of each electric device collected by monitoring devices at each level, wherein the device information includes power information and target device identification, and the electric devices form a plurality of device groups;
[0012] A first determination module, configured to determine a target model corresponding to each of the device groups according to a preset correspondence relationship, wherein the preset correspondence relationship includes a correspondence relationship between different types of models and different device groups;
[0013] A generating module, configured to generate a time slot corresponding to a target model of the same device group according to device information of each power device in the same device group, wherein the time slot includes power consumption of each power device in the same device group determined within a preset time window, and the power consumption is determined according to a difference in power information collected by the monitoring device within the preset time window;
[0014] The second determination module is used to determine the line loss rate of the same equipment group based on the power consumption of each power equipment in the same equipment group and using the target model of the same equipment group.
[0015] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any of the above methods when executing the computer program.
[0016] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of any of the above methods when executed by a processor.
[0017] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0018] The above-mentioned line loss rate determination method, device, computer equipment, storage medium and computer program product obtain the equipment information of each power device collected by monitoring equipment at each level, wherein the equipment information includes power information and target equipment identification, and the power devices form a plurality of equipment groups. According to a preset correspondence, a target model corresponding to each of the equipment groups is determined, wherein the preset correspondence includes a correspondence between different types of models and different equipment groups. According to the equipment information of each power device in the same equipment group in each of the equipment groups, a time slot corresponding to the target model of the same equipment group is generated, wherein the time slot includes the power consumption of each power device in the same equipment group determined within a preset time window, and the power consumption is determined based on the difference in power information collected by the monitoring equipment within the preset time window. Based on the power consumption of each power device in the same equipment group, the target model of the same equipment group is used to determine the line loss rate of the same equipment group. Since the traditional technology can only calculate the power consumption of a group of power equipment collected by a certain level of monitoring equipment to calculate the line loss rate in a smaller area, the embodiment of the present invention can obtain the equipment information of each power equipment collected by monitoring equipment at each level, and according to the target models corresponding to different equipment groups, based on the power consumption of each power equipment in the same equipment group, the target model of the same equipment group is adopted to determine the line loss rate of the same equipment group, and then the line loss rates of multiple equipment groups in a larger distribution network or the entire network can be determined. Therefore, it can be applicable to distribution networks or entire networks with larger data volumes, and the actual situation of the line loss rate can be understood from a global perspective, thereby achieving lean management of the line loss rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is an application environment diagram of the line loss rate determination method in the embodiment of the present application;
[0020] Figure 2 A schematic diagram of calculating the line loss rate of a transformer area provided in an embodiment of the present application;
[0021] Figure 3 A schematic diagram of calculating a line loss rate provided in an embodiment of the present application;
[0022] Figure 4 A schematic diagram of a line loss rate determination system provided in an embodiment of the present application;
[0023] Figure 5 A schematic diagram of a flow chart of a line loss rate determination method provided in an embodiment of the present application;
[0024] Figure 6 A topological schematic diagram of a line loss calculation model provided in an embodiment of the present application;
[0025] Figure 7A schematic diagram of a flow chart of a method for generating time slots provided in an embodiment of the present application;
[0026] Figure 8 A flowchart of a method for updating a time slot provided in an embodiment of the present application;
[0027] Fig. 9 A schematic diagram of a flow chart of a method for determining a time slot provided in an embodiment of the present application;
[0028] Fig.10 A schematic diagram of a flow chart for calculating line loss rate provided in an embodiment of the present application;
[0029] Fig.11 A schematic diagram of an Energy Loss table provided in an embodiment of the present application;
[0030] Fig.12 A schematic diagram of the structure of a line loss rate determination device provided in an embodiment of the present application;
[0031] Fig.13 Schematic diagram of the internal structure of a computer device in an embodiment of the present application. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0033] Figure 1 This is an application environment diagram of the line loss rate determination method in the embodiment of the present application. Please refer to Figure 1 The line loss rate determination method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and the server 104 can be implemented by an independent server or a server cluster composed of multiple servers.
[0034] Figure 2 Schematic diagram of calculating the line loss rate of a transformer area provided in an embodiment of the present application. Figure 3 Schematic diagram of calculating line loss rate provided in the embodiment of the present application. Figure 2 and Figure 3As shown, the area line loss rate calculation method based on the area line loss rate calculation model and the line line loss rate calculation method based on the line line loss rate calculation model are both common local line loss rate calculation methods.
[0035] The calculation method of the area line loss rate is: low voltage area line loss rate = (A forward power consumption - ∑ user side power consumption) / A forward power consumption × 100%;
[0036] The line loss rate is calculated as follows: Line loss power = forward power consumption of switch A + forward power consumption of switch B - reverse power consumption of switch A - reverse power consumption of switch B. Line loss rate = line loss power / (forward power consumption of switch A + forward power consumption of switch B) × 100%.
[0037] The traditional line loss rate calculation method is mainly aimed at Figure 2 or Figure 3 For example, the line loss calculation is only performed on the power equipment in a substation monitored by a single-level monitoring device. Since the power equipment in the traditional calculation scope is relatively small, the monitoring intensity and standardization of the monitoring equipment are high, and the line loss rate calculation is relatively easy to achieve. However, the actual larger distribution network or the entire network includes many but not limited to Figure 2 and Figure 3 Therefore, the traditional line loss rate calculation method is not applicable to the larger scope of distribution network or the whole network.
[0038] In order to more clearly introduce the line loss rate determination method provided in this embodiment, Figure 4 Explain. Figure 4 , Figure 4 A schematic diagram of a line loss rate determination system provided in an embodiment of the present application. Figure 4 The line loss rate determination system shown can run on a single server or multiple server clusters. This embodiment is based on the streaming data processing framework Storm. Storm consists of a data acquisition component (Spout) and a data processing component (Bolt). Spout is responsible for acquiring the required data from the data source and then distributing it to Bolt for data processing. It should be noted that the streaming computing framework can be any appropriate framework, such as Spark framework, Flink framework and other frameworks.
[0039] More specifically, the line loss rate determination system provided in this embodiment includes Spout, an update unit Bolt, a calculation unit Bolt, a storage unit Bolt, Memcache and a Hadoop database (Hadoop database, Hbase. Among them, the update unit Bolt updates the time slot based on the data sent by the Spout; the calculation unit Bolt calculates the line loss based on the data sent by the update unit Bolt; the storage unit Bolt saves the data sent by the calculation unit Bolt in Hbase. Memcache is a high-performance distributed memory object cache system. By maintaining a unified huge hash table in the memory, it can be used to store data in various formats, including images, videos, files, and database retrieval results. Therefore, the required data can be called into the memory and then read from the memory, thereby greatly improving the reading speed. It should be noted that the loss rate determination system provided in this embodiment may have significant differences in the computational complexity, network transmission data volume and memory usage of each link. Therefore, in the actual deployment process, the concurrency of each link can be reasonably adjusted according to the server performance and data volume to optimize the overall system.
[0040] Figure 5 A schematic diagram of a method for determining a line loss rate provided in an embodiment of the present application, wherein the method is applied to Figure 1 The application environment and Figure 4 In the line loss rate determination system shown in FIG. Figure 1 In one embodiment, the server executes Figure 5 As shown, the following steps are included:
[0041] S501, acquiring device information of each electric device collected by monitoring devices at each level, wherein the device information includes power information and target device identification, and each electric device forms a plurality of device groups.
[0042] In this embodiment, the power devices collected by the monitoring devices at each level include the power devices in all power grid topologies of the entire network or distribution network. When each power device is working, the corresponding monitoring device will collect the device information of each power device at a fixed sampling frequency, and the monitoring device will then send the collected device information of each power device to the server. More specifically, the device information of each power device sent by the monitoring device will be sent to the server. Figure 4 The Spout in .
[0043] In this embodiment, the power equipment can be understood as a node or line in the power grid topology, such as a high transformer, a distribution box, a substation, etc. The monitoring device is a device used to collect equipment information of the power equipment, such as a high-voltage meter, a low-voltage meter, etc. Among them, each power equipment in the power grid topology of the entire network corresponds to a monitoring device, and each corresponding monitoring device will obtain the equipment information of each power equipment. Among them, the equipment group refers to the power equipment in the same calculation area, such as the power equipment in a substation area. More specifically, combined with Figure 3 As shown, Figure 3 Station A and Station B in the compose the same device group.
[0044] S502: Determine the target model corresponding to each device group according to a preset corresponding relationship, wherein the preset corresponding relationship includes a corresponding relationship between different types of models and different device groups.
[0045] In this embodiment, the preset correspondence includes the correspondence between different types of models and different device groups, for example, the correspondence between model 1 and device group 1, the correspondence between model 2 and device group 2, and the correspondence between model 3 and device group 3. At the same time, since the device group includes at least one power device, the correspondence between different models and the identifiers of the power devices in different device groups is defined. Therefore, based on the identifiers of the power devices in the device group, the model corresponding to the power device with the same identifier as the target device can be found, and the model can be used as the target model of the device group.
[0046] It should be noted that a device may be used in multiple models, so multiple models may be found and used as target models. More specifically, the monitoring device sends the device information of each power device to Figure 4 After the Spout in the device group, the Spout extracts the target device identifier from the device information, and then the Spout obtains all pre-defined models from Memcache, traverses all models, and based on the target device identifier of the power equipment in the received device group, searches for the model corresponding to the power equipment with the same target device identifier from the preset correspondence, and then uses the model corresponding to the power equipment with the same target device identifier as the target model corresponding to the device group. Then the Spout sends the group identifier of the target model and the device information in the target model to the next update unit Bolt, where the device information in the device list in the target model is the device information obtained by some monitoring devices.
[0047] In order to more clearly introduce the model provided in this embodiment, Figure 6 Provide explanation. Figure 6 Schematic diagram of a topology of a line loss calculation model provided in an embodiment of the present application. In this embodiment, Figure 6 As shown, a scripting language is defined to generate a line loss calculation model according to the power grid topology and equipment information. All predefined models can be line loss calculation models. More specifically, this embodiment uses Backus-Naur Form (BNF) to define the line loss calculation model. Therefore, this embodiment can generate each line loss calculation model in advance according to the power grid topology in the entire network and the information of each power device in the topology, and send each line loss calculation model as all predefined models to the Figure 4 After the line loss rate of the system is determined, all models are stored in Memcache so that the target model can be quickly found and called later.
[0048] The first part of the line loss calculation model is the model description starting with the letter M. The model description includes the group identifier and usage description of the model. The group identifier of the model is the unique identifier of the model and is used to distinguish different models. The second part of the model is the defined device group starting with the letter D. It can be understood that the device group consisting of power devices in the same calculation area is defined in the same model, such as Figure 2 Station A and Station B in the model will be defined in the same model, where the device list defines the device information of the power equipment in each device group. The device list includes the device identification, the sampling frequency of the monitored device, the sampling protocol of the monitored device, the timestamp when the monitored device is collected, etc., where the device identification is the unique identification of the power device, which is used to distinguish different power devices. Each power device has a calculated attribute, so the attribute calculated in this embodiment refers to the power of the power device. The attribute list describes the name of the power attribute and the index of the power attribute. The index values of the power devices in the same device group are not repeated. For example, Station A and Station B both have two attributes, forward power and reverse power. The index value of the forward power of Station A can be 1, the index value of the reverse power of Station A is 2, the index value of the forward power of Station B can be 3, and the index value of the reverse power of Station B can be 4. The third part of the model is the line loss calculation method defined at the beginning of the letter C. Finally, the fourth part of the model returns the line loss calculation result. The standard model defined in this embodiment facilitates the subsequent extraction of data required for line loss calculation. Therefore, the equipment information of each power equipment collected by monitoring equipment at various levels can be processed in the same way, and the calculation method of the line loss rate can be flexibly determined for different regions.
[0049] S503, based on the equipment information of each power device in the same equipment group in each equipment group, generate a time slot corresponding to the target model of the same equipment group, wherein the time slot includes the power consumption of each power device in the same equipment group determined within a preset time window, and the power consumption is determined based on the difference in power information collected by the monitoring device within the preset time window.
[0050] In this embodiment, the monitoring device collects the device information of each power device at the sampling time with a fixed sampling frequency. The data format of the time slot designed in this embodiment is used to record the device information of each power device in the same device group within the preset time window. The value of the preset time window can be any time interval, and this embodiment does not limit it. For example, the monitoring device of station A samples the device information of station A at a frequency of 300 times per hour. The preset time window can be set to 1 minute, 30 minutes or 1 hour.
[0051] In this embodiment, the server generates a corresponding time slot for each target model based on the received device information, and updates the information in the time slot based on the real-time sampling data in the acquired device information. More specifically, the update unit Bolt receives the group identifier of the target model and the device information in the target model sent by Spout, generates a time slot corresponding to the target model based on the device information, and determines the power consumption of each power device in the same device group based on the difference in power information collected by the monitoring device within a preset time window. The update unit Bolt stores each updated time slot in Memcache, and sends the final updated time slot and the group identifier of the target model to the next calculation unit Bolt.
[0052] In order to more clearly introduce the time slot data format provided by this embodiment, an explanation is given here in conjunction with Table 1.
[0053]
[0054] Table 1
[0055] Refer to Table 1, which is a two-dimensional matrix corresponding to a time slot data format provided in an embodiment of the present application. The time slot is a two-dimensional array slot[i][j], which can correspond to the two-dimensional matrix of Table 1. The first subscript i of the array represents the number of rows of the two-dimensional matrix, and the second subscript j of the array represents the number of columns of the two-dimensional matrix. i and j are both integers greater than or equal to zero. The first column of the two-dimensional matrix is used to record the overall information of the time slot. The overall information includes the deadline for sampling statistics of each device group within the preset time window, the line loss rate calculated by each device group within the preset time window, and the total number of samplings of each device group within the preset time window. For example, slot[0][0] is the deadline for the time slot, slot[1][0] is the line loss rate of the time slot, and slot[2][0] is the total number of samplings.
[0056] Since the index value (index) of the power attribute of each power device is defined in advance in the target model, and index is an integer greater than or equal to 1, the sum of the total number of power attributes of each power device is the total number of columns of each component. For example, both station A and station B have two attributes, forward power and reverse power. The index value of the forward power of station A can be 1, the index value of the reverse power of station A is 2, the index value of the forward power of station B can be 3, and the index value of the reverse power of station B can be 4. Therefore, the sum of the number of the above attributes is 4. Therefore, the time slot corresponding to the target model generated by the server for the equipment group of station A and station B corresponds to a two-dimensional matrix of 3 rows and 5 columns. Therefore, when j=index, the power, power consumption and sampling times of the same power attribute of the same power device can be determined according to slot[i][index], so that each column of the two-dimensional matrix starting from the second column records the component information of each power device, and the component information includes the power, power consumption, sampling times, etc. of a certain attribute of each power device within the preset time window. For example, slot[i][1] can record the forward component information of station A, slot[i][2] can record the reverse component information of station A, slot[i][3] can record the forward component information of station B, and slot[i][4] can record the reverse component information of station B.
[0057] The power consumption of each attribute of each power device in the time slot is determined based on the difference of the power information collected by the monitoring device within the preset time window. Among them, the power consumption of each attribute of a power device can be the difference between the power of the power device sampled for the last time within the preset time window and the power of the first sampling, or it can be obtained by accumulating the difference between the power of two adjacent samples within the preset time window. This embodiment does not limit the specific steps of obtaining the power consumption.
[0058] S504, based on the power consumption of each power device in the same device group, using the target model of the same device group, determine the line loss rate of the same device group.
[0059] In this embodiment, the server obtains the power consumption of each power device, and according to the target model of the same device group, substitutes the power consumption into the line loss calculation formula defined in the target model to calculate the line loss rate within the preset time window of the same device group. More specifically, the calculation unit Bolt obtains the updated time slot and the group identifier of the target model, and calculates the line loss rate based on the line loss calculation formula defined in the target model, and finally sends the group identifier of the target model, the deadline in the time slot, and the line loss rate to the next storage unit Bolt.
[0060] The line loss rate determination method provided in this embodiment is that the server obtains the equipment information of each power device collected by the monitoring devices at each level, wherein the equipment information includes power information and target device identification, and each power device constitutes a plurality of equipment groups. According to the preset corresponding relationship, the target model corresponding to each equipment group is determined, wherein the preset corresponding relationship includes the correspondence between different types of models and different equipment groups. Then, according to the equipment information of each power device in the same equipment group in each equipment group, a time slot corresponding to the target model of the same equipment group is generated. Among them, the time slot includes the power consumption of each power device in the same equipment group determined within the preset time window, and the power consumption is determined according to the difference in power information collected by the monitoring device within the preset time window. Therefore, based on the power consumption of each power device in the same equipment group, the target model of the same equipment group is adopted to determine the line loss rate of the same equipment group. Since the traditional technology can only calculate the power consumption of a group of power equipment collected by a certain level of monitoring equipment to calculate the line loss rate in a smaller area, the embodiment of the present invention can obtain the equipment information of each power equipment collected by monitoring equipment at each level, and according to the target models corresponding to different equipment groups, based on the power consumption of each power equipment in the same equipment group, the target model of the same equipment group is adopted to determine the line loss rate of the same equipment group, and then the line loss rates of multiple equipment groups in a larger distribution network or the entire network can be determined. Therefore, it can be applicable to distribution networks or entire networks with larger data volumes, and the actual situation of the line loss rate can be understood from a global perspective, thereby achieving lean management of the line loss rate.
[0061] Figure 7 A schematic diagram of a method for generating a time slot provided in an embodiment of the present application is shown in FIG. Figure 7 This embodiment relates to an optional implementation method of how to generate a time slot based on the device information of each power device. Based on the above embodiment, the above S503 specifically includes the following steps:
[0062] S701, determining the sampling times of each power device in the same device group according to the sampling frequency of each power device in the same device group and a preset time window.
[0063] In this embodiment, after the server obtains the target model of the same device group, it can obtain the device list of each power device in the same device group. The device list defines the sampling frequency of the monitored device. The sampling frequency is a fixed value, so the number of sampling times of each device within the preset time window can be determined. For example, the monitoring device of station A samples the device information of station A at a frequency of 300 times per hour. The preset time window is 1 minute, and the number of sampling times of station A within 1 minute is 5 times. Among them, the device information includes but is not limited to: the amount of electricity collected by the monitored device at a certain sampling time, the voltage collected by the monitored device, the sampling frequency of the monitored device, the sampling protocol of the monitored device, the timestamp when the monitored device collects, the device identification collected by the monitored device, etc.
[0064] S702, determining the total sampling times of each power device in the same device group, wherein the total sampling times is the sum of the sampling times of each power device in the same device group.
[0065] In this embodiment, after the server obtains the target model of the same device group, it can obtain the device list of each power device in the same device group. The device information in the device list contains the sampling frequency of the monitored device. The sampling frequency is a fixed value, so the number of sampling times of each device in the preset time window can be determined, and the total number of sampling times is the sum of the sampling times of each attribute of the power device. For example, there are only station A and station B in the device group in the target model, and both station A and station B have two attributes of forward power and reverse power. The monitoring device of station A samples the forward power and reverse power of station A at a frequency of 300 sampling times per hour, and the monitoring device of station B samples the forward power and reverse power of station B at a frequency of 240 sampling times per hour. If the preset time window is 1 minute, the total number of sampling times of the device group within 1 minute is the forward sampling times of station A + the reverse sampling times of station A + the forward sampling times of station B + the reverse sampling times of station B = 5 + 5 + 4 + 4 = 18 times.
[0066] S703, if the equipment information of the power equipment of the same equipment group is obtained each time, the total number of sampling times is reduced by one until the total number of sampling times is equal to zero, and a time slot corresponding to the target model of the same equipment group is generated according to the equipment information of the power equipment of the same equipment group obtained each time.
[0067] In this embodiment, each time the time slot in the server records the information of a sample, the total number of sampling times and the number of sampling times of the corresponding column of the power device will be reduced by one. When the total number of sampling times is zero, it means that the component information of each power device in each column of the two-dimensional matrix corresponding to the time slot has been recorded. Among them, slot[0][j] (j>0) represents the last electric quantity sampled by the monitored device of each power device within the preset time window, and slot[1][j] represents the difference between the last and first electric quantity sampled by the monitored device of each power device within the preset time window, that is, the electric quantity consumption of each power device within the preset time window. At this time, all the sampling data in the time slot have been collected, and the server can perform subsequent line loss rate calculations.
[0068] One of the biggest difficulties in calculating real-time line loss using streaming data is how to unify the time, because the calculation of line loss rate often involves the equipment information collected by monitoring devices in equipment groups in different calculation areas. For example, for the line loss in the substation area, it is necessary to use a 10kv total meter and an ordinary user's meter. The sampling frequencies of the two monitoring devices are different. Although technical means can be used to synchronize the time of the monitoring equipment, considering the problem of network transmission, it is still difficult to ensure that the equipment information collected by all monitoring devices arrives synchronously. In this embodiment, a time slot is used to record the power, power consumption and sampling times of each power device in a device group in a preset time window. The server may obtain the equipment information of each power device collected by the monitoring devices of each level in a certain order. The server can record the equipment information of the power device of which monitoring device is obtained first in the time slot until the total sampling times are zero. The component information of each power device in each column of the time slot has been recorded, which is equivalent to that all equipment groups in a target model have been recorded, and the server can proceed to the next line loss calculation. Therefore, the method provided in this embodiment takes into account the time difference between monitoring devices with different sampling frequencies, ensuring that all monitoring data arrive at the calculation unit Bolt synchronously. Therefore, the method provided in this embodiment of the present invention is suitable for distribution networks or entire networks with larger data volumes, and can understand the actual situation of the line loss rate from a global perspective, thereby achieving lean management of the line loss rate.
[0069] Figure 8 A flowchart of a method for updating a time slot provided in an embodiment of the present application is shown in FIG. Figure 8 This embodiment relates to an optional implementation method of updating a time slot. Based on the above embodiment, the above S703 specifically includes the following steps:
[0070] S801, determining a first difference between two adjacent electric quantity information of the same direction attribute of each electric power device in the same device group.
[0071] In this embodiment, within the preset time window, the equipment information of each power device collected by the monitoring device will be recorded in the time slot with the same deadline corresponding to the same target model. For example, the preset time window is 1 minute, the sampling frequency of the monitoring device is 5 times per minute, and the server obtains the equipment information obtained by the monitoring device for these 5 times, and the corresponding 5 times of equipment information all include the power under the sampling timestamp. The power information of the same direction attribute always arrives in the same preset time window in the order of the sampling time. After the server obtains the power information of the same direction attribute of the first sampling, the next time the power information of the same direction attribute of the second sampling is obtained, the power information of the same direction attribute of the second sampling will be subtracted from the power information of the same direction attribute of the first sampling, so as to update and iterate, and determine the first difference of the power information of the same direction attribute of two adjacent times of each power device in the same device group.
[0072] S802: Determine the time slot positions corresponding to the first differences from the time slots corresponding to the same device group.
[0073] In this embodiment, the server obtains the attribute index value in the target model for each acquired power information, so slot[0][index] is the power information of the same direction attribute, and slot[1][index] is the power consumption information of the same direction attribute. The server assigns the collected power information to slot[0][index] and assigns the first difference value to slot[1][index].
[0074] S803, fill the sum of each first difference and the last determined first difference in the corresponding time slot position, reduce the total number of sampling times by one, until the total number of sampling times is equal to zero, and generate a time slot corresponding to the target model of the same device group.
[0075] In this embodiment, the server determines whether the value of the power information (slot[0][index]) of each of the same direction attributes in the slot is less than zero. If its value is less than zero, the server assigns the collected power information to slot[0][index], and reduces the total number of sampling times (slot[2][0]) by one, and reduces the number of sampling times (slot[2][index]) of the column by one. If its value is greater than zero, the server assigns the first difference to slot[1][index], and then assigns the collected power information to slot[0][index], and reduces the total number of sampling times (slot[2][0]) by one, and reduces the number of sampling times (slot[2][index]) of the column by one.
[0076] Therefore, after the sampled device information of each power device within the preset time window is recorded, the total number of sampling times of the time slot (slot[2][0]) is zero, slot[0][index] is the power value of the last sampling of each direction attribute of each power device within the preset time window, and slot[1][index] is the power consumption value between the last and first sampling of each direction attribute of each power device within the preset time window.
[0077] The method provided in this embodiment determines the first difference of the power information of the same direction attribute of two adjacent times of each power device in the same device group, and determines the time slot position corresponding to each first difference from the time slot corresponding to the same device group. Then, the sum of each first difference and the first difference determined last time is filled in the corresponding time slot position, and the total number of samplings is reduced by one until the total number of samplings is equal to zero, and the time slot corresponding to the target model of the same device group is generated. Then, based on the power consumption of each power device in the same device group in the time slot, the target model of the same device group can be used to determine the line loss rate of the same device group.
[0078] Fig. 9 A flow chart of a method for determining a time slot provided in an embodiment of the present application is shown in FIG. Fig. 9 This embodiment relates to an implementation method of how to determine a time slot. Based on the above embodiment, the above line loss rate determination method also includes the following steps:
[0079] S901, obtaining the deadline corresponding to each time slot.
[0080] In this embodiment, the deadline in the time slot is generated according to a preset time window, and all time slots are sorted in ascending order according to their respective deadlines in the form of a linked list and stored in Memcache. The server can quickly find the corresponding time slot that has been generated based on the device information in the device list in the target model and the deadline of the time slot.
[0081] S902: Determine a time period corresponding to each time slot according to a deadline corresponding to each time slot and a preset time window.
[0082] In this embodiment, since the deadline in the time slot is generated according to the preset time window, the server can determine the time period corresponding to the time slot according to the deadline corresponding to the time slot and the preset time window. For example, if the preset time window is set to 1 hour, then the corresponding 24 hours in a day are the deadlines of the time slot. If the deadline of a time slot is 12:00, then the time period corresponding to the time slot is 11:00-12:00, indicating that the time slot records the device information and line loss rate recorded within the hour from 11:00 to 12:00. Similarly, if the deadline of a time slot is 13:00, then the time period corresponding to the time slot is 12:00-13:00, indicating that the time slot records the device information and line loss rate recorded within the hour from 12:00 to 13:00.
[0083] S903, obtaining sampling timestamps of the electric power equipment collected by the monitoring device, and determining the time period to which the collected sampling timestamps of the electric power equipment belong.
[0084] In this embodiment, after the server obtains the device information of each power device collected by the monitoring devices at each level, it also obtains the sampling timestamp in the device information. The sampling timestamp is the timestamp when the power device is collected by the monitoring device. According to the sampling timestamp, the server can determine the time period to which the sampling timestamp of the collected power device belongs. For example, the preset time window is set to 1 hour, and the sampling timestamp of the power device collected by the monitoring device is 11:30, then the time period to which the sampling time belongs is 11:00-12:00.
[0085] S904, storing the collected power information of the electric equipment in a time slot corresponding to a target time period, wherein the target time period is a time period to which the sampling timestamp belongs.
[0086] In this embodiment, after the server determines the time period to which the collected sampling timestamps of the power equipment belong, the time period is the target time period. Therefore, the server can determine the deadline of the corresponding time slot according to the target time period, and then determine the corresponding time slot. For example, the preset time window is set to 1 hour, and the sampling timestamp of the power equipment collected by the monitoring device is 11:30. Therefore, the target time period is 11:00-12:00, corresponding to the time slot with a deadline of 12:00, that is, the power information of the power equipment under the sampling timestamp collected by the monitoring device will be stored in the time slot with a deadline of 12:00 corresponding to 11:00-12:00.
[0087] In this embodiment, the deadline corresponding to each time slot is obtained, and the time period corresponding to each time slot is determined according to the deadline corresponding to each time slot and the preset time window, and the sampling timestamp of the power equipment collected by the monitoring device is obtained, and then the time period to which the sampling timestamp of the collected power equipment belongs is determined, and the collected power information of the power equipment is stored in the time slot corresponding to the target time period. Among them, the target time period is the time period to which the sampling timestamp belongs. In this way, the server can quickly find the corresponding time slot, and then update the time slot and calculate the corresponding line loss rate.
[0088] Fig.10 This is a schematic diagram of a flow chart for calculating line loss rate provided in an embodiment of the present application, referring to Fig.10 This embodiment relates to an optional implementation method of generating a time slot. Based on the above embodiment, the above S504 specifically includes the following steps:
[0089] S1001, using the target model of the same device group, determining the forward power consumption and reverse power consumption of each power device in the same device group included in the time slot.
[0090] In this embodiment, the same device group is in the same target model, and the index value of the power attribute of each power device is defined in the device group of the target model. According to the index value, the column of the time slot in which the power information and power consumption information of each power device is located can be found. Figure 3 , where the index value of the forward power of station A is 1, the index value of the reverse power is 2, the index value of the forward power of station B is 3, and the index value of the reverse power can be 4. Therefore, the forward power and power consumption information of station A is recorded in the second column of the two-dimensional matrix, the reverse power and power consumption information of station A is recorded in the third column of the two-dimensional matrix, the forward power and power consumption information of station B is recorded in the third column of the two-dimensional matrix, and the reverse power and power consumption information of station B is recorded in the fourth column of the two-dimensional matrix. That is, slot[1][1] is the forward power consumption of station A within the preset window, slot[1][2] is the reverse power consumption of station A within the preset window, slot[1][3] is the forward power consumption of station B within the preset window, and slot[1][4] is the reverse power consumption of station B within the preset window.
[0091] S1002, determining the difference between the sum of the forward power consumption of each power device in the same device group and the sum of the reverse power consumption of each power device.
[0092] In this embodiment, combined with Figure 3 , if the device group is Figure 3For station A and station B in the equipment group, according to the line loss calculation method in the target model corresponding to the equipment group of station A and station B, line loss power = forward power consumption of switch A + forward power consumption of switch B - reverse power consumption of switch A - reverse power consumption of switch B. The difference between the sum of the forward power consumption of each power device in the equipment group and the sum of the reverse power consumption can be determined, that is, the line loss power corresponding to the equipment group is slot[1][1]+slot[1][3]-(slot[1][2]+slot[1][4]).
[0093] S1003, determining the ratio of the difference to the sum of the forward power consumption of each power device in the same device group, and using the ratio as the line loss rate of the same device group.
[0094] In this embodiment, combined with Figure 3 , if the device group is Figure 3 For station A and station B in the target model, according to the line loss calculation method in the target model corresponding to the equipment group of station A and station B, line loss rate = line loss power / (forward power consumption of switch A + forward power consumption of switch B) × 100%, the ratio of the difference to the sum of the forward power consumption of each power device in the same equipment group can be used as the line loss rate of the same equipment group. That is, the line loss rate slot[1][0] corresponding to the equipment group is:
[0095] {slot[1][1]+slot[1][3]-(slot[1][2]+slot[1][4])} / (slot[1][1]+slot[1][3])×100%.
[0096] It should be noted that, if an electric device has only one electric quantity attribute, its attribute can be regarded as having only one reverse attribute.
[0097] In this embodiment, by adopting the target model of the same equipment group, the forward power consumption and reverse power consumption of each power device in the same equipment group included in the time slot are determined, and the difference between the sum of the forward power consumption of each power device in the same equipment group and the sum of each reverse power consumption is determined, and then the ratio of the difference to the sum of the forward power consumption of each power device in the same equipment group is determined. The ratio is used as the line loss rate of the same equipment group, and then when the server receives the data stream of the equipment information of each power device collected by the monitoring equipment of each level, the line loss of each level is calculated in real time, providing the real-time online calculation capability for the statistical analysis method of the large power grid loss, and improving the degree of lean management of line loss.
[0098] Optionally, the above-mentioned line loss rate determination method can also be implemented in the following manner:
[0099] The corresponding relationship between the target model of the same device group, the deadline of the time slot corresponding to the target model of the same device group, and the line loss rate of the same device group is stored.
[0100] In this embodiment, the server obtains the final calculated real-time line loss rate and saves it in the EnergyLoss table of HBase. More specifically, the calculation unit Bolt calculates the line loss rate of the time slot according to the target model based on the updated time slot sent by the update unit Bolt and the group identifier of the target model, and sends the calculated line loss rate (slot[1][0]), deadline (slot[0][0]) and the group identifier corresponding to the target model to the storage unit Bolt. The storage unit Bolt generates a line loss table (Energy Loss) based on the received line loss rate, deadline, and group identifier of the target model. For example, the group identifier and deadline of the target model represent RowKey, and each RowKey corresponds to a line loss rate. Refer to Fig.11 , Fig.11 A schematic diagram of an Energy Loss table provided in an embodiment of the present application. It should be noted that this embodiment does not impose any specific restrictions on the specific storage format.
[0101] In this embodiment, by storing the corresponding relationship between the target model of the same equipment group, the deadline of the time slot corresponding to the target model of the same equipment group, and the line loss rate of the same equipment group, the equipment group composed of each power equipment and the line loss within the deadline are stored, providing a basis for lean line loss management, and also providing basic support technology for subsequent power leakage analysis and line upgrade and transformation. At the same time, it also explores feasible paths for real-time calculation of other types of power grids.
[0102] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0103] Based on the same inventive concept, the embodiment of the present application also provides a line loss rate determination device for implementing the line loss rate determination method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more line loss rate determination device embodiments provided below can refer to the limitations of the line loss rate determination method above, and will not be repeated here.
[0104] Reference Fig.12 , Fig.12 12 is a schematic diagram of the structure of a line loss rate determination device provided in an embodiment of the present application. The device 1200 includes: an acquisition module 1201, a first determination module 1202, a generation module 1203, and a second determination module 1204, wherein:
[0105] The acquisition module 1201 is used to acquire the device information of each electric device collected by monitoring devices of each level, wherein the device information includes power information and target device identification, and each electric device forms a plurality of device groups.
[0106] The first determination module 1202 is used to determine the target model corresponding to each device group according to a preset corresponding relationship, wherein the preset corresponding relationship includes the corresponding relationship between different types of models and different device groups.
[0107] Generation module 1203 is used to generate a time slot corresponding to the target model of the same device group based on the device information of each power device in the same device group in each device group, wherein the time slot includes the power consumption of each power device in the same device group determined within a preset time window, and the power consumption is determined based on the difference in power information collected by the monitoring device within the preset time window.
[0108] The second determination module 1204 is used to determine the line loss rate of the same device group based on the power consumption of each power device in the same device group and using the target model of the same device group.
[0109] The line loss rate determination device provided in the present embodiment obtains the equipment information of each power equipment collected by monitoring equipment at each level, wherein the equipment information includes power information and target equipment identification, and each power equipment forms a plurality of equipment groups. According to a preset correspondence, a target model corresponding to each equipment group is determined, wherein the preset correspondence includes a correspondence between different types of models and different equipment groups. According to the equipment information of each power equipment in the same equipment group in each equipment group, a time slot corresponding to the target model of the same equipment group is generated, wherein the time slot includes the power consumption of each power equipment in the same equipment group determined within a preset time window, and the power consumption is determined based on the difference in power information collected by the monitoring equipment within the preset time window. Based on the power consumption of each power equipment in the same equipment group, the target model of the same equipment group is adopted to determine the line loss rate of the same equipment group. Since the traditional technology can only calculate the power of a group of power equipment collected by a certain level of monitoring equipment to calculate the line loss rate within a small area, the embodiment of the present invention can obtain the equipment information of each power equipment collected by monitoring equipment at each level, and according to the target models corresponding to different equipment groups, based on the power consumption of each power equipment in the same equipment group, the target model of the same equipment group is adopted to determine the line loss rate of the same equipment group, and then the line loss rate of multiple equipment groups in a larger distribution network or the entire network can be determined. Therefore, it can be applied to distribution networks or entire networks with larger data volumes, and the actual situation of the line loss rate can be understood from a global perspective, thereby realizing lean management of the line loss rate. .
[0110] Optionally, the generating module 1203 includes:
[0111] The first determining unit is used to determine the sampling times of each power device in the same device group according to the sampling frequency of each power device in the same device group and a preset time window.
[0112] The second determination unit is used to determine the total sampling times of each power device in the same device group, wherein the total sampling times is the sum of the sampling times of each power device in the same device group.
[0113] The generation unit is used to reduce the total number of sampling times by one each time the device information of the power equipment of the same device group is obtained until the total number of sampling times is equal to zero, and generate a time slot corresponding to the target model of the same device group based on the device information of the power equipment of the same device group obtained each time.
[0114] Optionally, the generation unit includes:
[0115] The first determining subunit is used to determine a first difference in the power information of the same direction attribute of two adjacent times of each power device in the same device group.
[0116] The second determining subunit is used to determine the time slot positions corresponding to the first difference values from the time slots corresponding to the same device group.
[0117] A generation subunit is used to fill the sum of each first difference and the last determined first difference in the corresponding time slot position, reduce the total number of sampling times by one, until the total number of sampling times is equal to zero, and generate a time slot corresponding to the target model of the same device group.
[0118] Optionally, the generating module 1203 further includes:
[0119] The acquisition unit is used to acquire the deadline corresponding to each time slot.
[0120] The third determining unit is used to determine the time period corresponding to each time slot according to the deadline corresponding to each time slot and the preset time window.
[0121] The fourth determining unit is used to obtain the sampling timestamps of the electric power equipment collected by the monitoring device, and determine the time period to which the collected sampling timestamps of the electric power equipment belong.
[0122] The storage unit is used to store the collected power information of the electric equipment in a time slot corresponding to a target time period, wherein the target time period is the time period to which the sampling timestamp belongs.
[0123] Optionally, the second determining module 1204 includes:
[0124] The fifth determination unit is used to determine the forward power consumption and reverse power consumption of each power device in the same device group included in the time slot by using the target model of the same device group.
[0125] The sixth determination unit is used to determine the difference between the sum of the forward power consumption of each power device in the same device group and the sum of the reverse power consumption.
[0126] The seventh determination unit is used to determine the ratio of the difference to the sum of the forward power consumption of each power device in the same device group, and use the ratio as the line loss rate of the same device group.
[0127] Optionally, the second determining module 1204 is further configured to store a correspondence between a target model of the same device group, a deadline of a time slot corresponding to the target model of the same device group, and a line loss rate of the same device group.
[0128] Each module in the above-mentioned line loss rate determination device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.
[0129] Fig.13 : is an internal structure diagram of a computer device in an embodiment of the present application. In this embodiment, a computer device is provided. The computer device can be a terminal or a server. The internal structure diagram thereof can be as shown in FIG. Fig.13 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for determining a line loss rate is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0130] Those skilled in the art will understand that Fig.13 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0131] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the line loss rate determination method provided in the above embodiment are implemented. The implementation principle and technical effect are similar to those of the above method embodiment, and will not be repeated here.
[0132] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the line loss rate determination method provided in the above embodiment are implemented. Its implementation principle and technical effect are similar to those of the above method embodiment, and will not be repeated here.
[0133] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of the line loss rate determination method provided in the above embodiment. Its implementation principle and technical effect are similar to those of the above method embodiment, and will not be repeated here.
[0134] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0135] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0136] 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.
[0137] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for determining line loss rate, characterized in that: The method comprises: Acquire device information of each electric device collected by monitoring devices at each level, wherein the device information includes power information and target device identification, and the electric devices form a plurality of device groups; Determine the target model corresponding to each of the device groups according to a preset corresponding relationship, wherein the preset corresponding relationship includes a corresponding relationship between different types of models and different device groups; Generate a time slot corresponding to the target model of the same device group according to the device information of each power device in the same device group in each of the device groups, wherein the time slot includes the power consumption of each power device in the same device group determined within a preset time window, and the power consumption is determined according to the difference of the power information collected by the monitoring device within the preset time window; Based on the power consumption of each power device in the same device group, a target model of the same device group is used to determine the line loss rate of the same device group; The device information also includes a sampling frequency; generating a time slot corresponding to a target model of the same device group according to the device information of each power device in the same device group in each of the device groups includes: Determining the sampling times of each power device in the same device group according to the sampling frequency of each power device in the same device group and the preset time window; Determine the total sampling times of each power device in the same device group, wherein the total sampling times is the sum of the sampling times of each power device in the same device group; If the device information of the power equipment of the same device group is obtained each time, the total number of sampling times is reduced by one until the total number of sampling times is equal to zero, and a time slot corresponding to the target model of the same device group is generated according to the device information of the power equipment of the same device group obtained each time; The step of generating a time slot corresponding to a target model of the same device group according to device information of each power device in the same device group in each of the device groups comprises: Determine a first difference value of the electric quantity information of the same direction attribute of two adjacent times of each electric power device in the same device group; Determine the time slot position corresponding to each of the first difference values from the time slot corresponding to the same device group; The sum of each of the first differences and the first difference determined last time is filled in the corresponding time slot position, and the total number of sampling times is reduced by one until the total number of sampling times is equal to zero, thereby generating a time slot corresponding to the target model of the same device group.
2. The method according to claim 1, characterized in that The device information also includes a sampling timestamp, and the method further includes: Obtaining the deadline corresponding to each of the time slots; Determine the time period corresponding to each time slot according to the deadline corresponding to each time slot and the preset time window; Obtaining sampling timestamps of the electric power equipment collected by the monitoring device, and determining the time period to which the collected sampling timestamps of the electric power equipment belong; The collected power information of the electric equipment is stored in a time slot corresponding to a target time period, wherein the target time period is the time period to which the sampling timestamp belongs.
3. The method according to claim 1, characterized in that The determining the line loss rate of the same device group based on the power consumption of each power device in the same device group and using the target model of the same device group includes: Using the target model of the same device group, determine the forward power consumption and reverse power consumption of each power device in the same device group included in the time slot; Determine the difference between the sum of the forward power consumption of each power device in the same device group and the sum of the reverse power consumption; The ratio of the difference to the sum of the forward power consumption of each power device in the same device group is determined, and the ratio is used as the line loss rate of the same device group.
4. The method according to claim 1, characterized in that: The method further comprises: The corresponding relationship among the target model of the same device group, the deadline of the time slot corresponding to the target model of the same device group, and the line loss rate of the same device group is stored.
5. A line loss rate determination device, characterized in that: The device comprises: An acquisition module, used to acquire device information of each electric device collected by monitoring devices of each level, wherein the device information includes power information and target device identification, and the electric devices form a plurality of device groups; A first determination module, configured to determine a target model corresponding to each of the device groups according to a preset correspondence relationship, wherein the preset correspondence relationship includes a correspondence relationship between different types of models and different device groups; A generating module, configured to generate a time slot corresponding to a target model of the same device group according to device information of each power device in the same device group in each of the device groups, wherein the time slot includes power consumption of each power device in the same device group determined within a preset time window, and the power consumption is determined according to a difference in power information collected by the monitoring device within the preset time window; A second determination module is used to determine the line loss rate of the same device group based on the power consumption of each power device in the same device group and using the target model of the same device group; The device information also includes a sampling frequency; the generation module includes: A first determining unit, configured to determine the number of sampling times of each power device in the same device group according to the sampling frequency of each power device in the same device group and the preset time window; A second determining unit is used to determine the total sampling times of each power device in the same device group, wherein the total sampling times is the sum of the sampling times of each power device in the same device group; A generating unit, configured to reduce the total number of sampling times by one each time the device information of the power devices of the same device group is obtained until the total number of sampling times is equal to zero, and to generate a time slot corresponding to the target model of the same device group according to the device information of the power devices of the same device group obtained each time; The generating unit comprises: A first determining subunit, used to determine a first difference between two adjacent electric quantity information of the same direction attribute of each electric power device in the same device group; A second determining subunit is used to determine the time slot positions corresponding to the first differences from the time slots corresponding to the same device group; A generation subunit is used to fill the sum of each first difference and the first difference determined last time in the corresponding time slot position, reduce the total number of sampling times by one, until the total number of sampling times is equal to zero, and generate a time slot corresponding to the target model of the same device group.
6. The device according to claim 5, characterized in that The device information also includes a sampling timestamp, and the generating module also includes: An acquisition unit, used to acquire the deadline corresponding to each of the time slots; A third determining unit, configured to determine a time period corresponding to each of the time slots according to a deadline corresponding to each of the time slots and the preset time window; a fourth determining unit, configured to obtain sampling timestamps of the electric power equipment collected by the monitoring device, and determine a time period to which the collected sampling timestamps of the electric power equipment belong; The storage unit is used to store the collected power information of the electric equipment in a time slot corresponding to a target time period, wherein the target time period is the time period to which the sampling timestamp belongs.
7. The device according to claim 5, characterized in that The second determining module comprises: A fifth determining unit, configured to determine a forward power consumption and a reverse power consumption of each power device in the same device group included in the time slot by using the target model of the same device group; A sixth determining unit, configured to determine a difference between a sum of forward power consumption of each power device in the same device group and a sum of each reverse power consumption; The seventh determination unit is used to determine the ratio of the difference to the sum of the forward power consumption of each power device in the same device group, and use the ratio as the line loss rate of the same device group.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Advertising model test method and device, computer equipment and storage medium
CN110781605A
Distribution line loss rate processing method and device based on multiple regression
CN112084678A