State monitoring method, device, electronic device and readable storage medium

By pre-storing and managing the calculation dependencies of power plant indicators in power plant status monitoring, combined with serial and parallel computing methods, the problems of low real-time and accuracy in power plant status monitoring are solved, and efficient and real-time monitoring effects are achieved.

CN114399404BActive Publication Date: 2025-03-28HANGZHOU HOLLYSYS AUTOMATION
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210055530.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-18
Publication Date
2025-03-28
Estimated Expiration
2042-01-18

AI Technical Summary

Technical Problem

In power plant status monitoring, the monitoring accuracy and real-time performance are poor due to the timed polling method, and the dependence and order relationship between indicators cannot be effectively solved, resulting in low computing efficiency.

Method used

By pre-storing the calculation dependencies between the target power plant indicators and their associated indicators, monitoring the change of target indicator data, obtaining and updating the associated indicator data, and using a combination of serial and parallel computing methods to ensure the calculation order and efficiency.

Benefits of technology

It realizes efficient, real-time and accurate power plant status monitoring, improves the real-time and accuracy of monitoring, and reduces calculation delays and resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114399404B_ABST
    Figure CN114399404B_ABST
Patent Text Reader

Abstract

The present application discloses a state monitoring method, device, electronic device and readable storage medium. The method includes pre-storing each associated power plant index having a calculation dependency relationship with the target power plant index, and storing the serial calculation relationship between the target power plant index and each associated power plant index; when monitoring the data change of the target power plant index, obtaining each associated power plant index of the target power plant index; based on the calculation sequence between each associated power plant index and the target power plant index, determining the parallel calculation relationship of each associated power plant index executed in parallel; according to the serial calculation relationship and the parallel calculation relationship, updating each associated power plant index data, so that the power plant state can be efficiently, real-time and accurately monitored.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information technology, and in particular to a state monitoring method, device, electronic device and readable storage medium. Background Art

[0002] With the rapid development of computer and Internet technology, information technology has been widely used in daily work and life, and the information construction of power plants has gradually replaced the traditional management mode of power plants. Power plant indicator data such as power generation equipment capacity, boiler production capacity, heating unit capacity, power generation, load rate, power sales, etc. are important foundations for the information construction of power plant data management, data application, data analysis, data monitoring, etc. Real-time calculation of indicators is the focus of power plant indicators. Real-time measurement points of underlying system equipment are collected. Through flexible indicator calculation formula configuration and real-time calculation, various thematic indicators such as production, safety and environmental protection of the whole plant are formed, and the real-time status of each plant-level system is monitored in real time in all directions to truly reflect the production status.

[0003] In the process of power plant status monitoring, related technologies usually use a timed polling method to calculate power plant indicator data, that is, to periodically schedule the execution of indicator calculation formulas. Since periodic timed scheduling calculations cannot guarantee real-time performance, power plant status monitoring will have poor monitoring accuracy and real-time performance due to delays; the passive calculation method of timed polling cannot solve the dependency order relationship between indicators. If the dependency order between indicators is to be solved, it is usually necessary to recursively decompose the lowest-level original indicators according to the formula. However, while solving the dependency order of indicators, when the indicator call level is too deep, it will lead to low calculation efficiency, which ultimately leads to poor monitoring real-time performance, accuracy and efficiency of power plant status monitoring due to low calculation efficiency.

[0004] In view of this, how to monitor the status of a power plant efficiently, in real time and accurately is a technical problem that needs to be solved by technicians in the relevant field. Summary of the invention

[0005] The present application provides a state monitoring method, device, electronic device and readable storage medium, which can monitor the state of a power plant efficiently, in real time and accurately.

[0006] To solve the above technical problems, the embodiments of the present invention provide the following technical solutions:

[0007] An embodiment of the present invention provides a state monitoring method, including:

[0008] Pre-storing each associated power plant index having a calculation dependency relationship with the target power plant index, and storing a serial calculation relationship between the target power plant index and each associated power plant index;

[0009] When a data change of the target power plant indicator is detected, the indicators of each power plant associated with the target power plant indicator are obtained;

[0010] Determining a parallel calculation relationship of the associated power plant indicators to be executed in parallel based on a calculation sequence between the associated power plant indicators and the target power plant indicator;

[0011] According to the serial calculation relationship and the parallel calculation relationship, the index data of each associated power plant is updated.

[0012] Optionally, there are multiple target power plant indicators, and when data changes of the target power plant indicators are monitored, the steps include:

[0013] Construct an ordered set in advance in the cache pool to be calculated;

[0014] According to the change time of each target power plant indicator, a corresponding weight value is determined for each target power plant indicator to serve as the data update order of each target power plant indicator;

[0015] Each target power plant indicator and its corresponding weight value are stored in the ordered set, so as to update the data of the associated power plant indicators corresponding to each target power plant indicator based on the data update sequence.

[0016] Optionally, the obtaining of indicators of power plants associated with the target power plant indicator includes:

[0017] The computing service polling thread is called to read the associated power plant indicators corresponding to each target power plant indicator from the to-be-calculated buffer pool by executing the ZPOPMIN command.

[0018] Optionally, updating the index data of each associated power plant according to the serial calculation relationship and the parallel calculation relationship includes:

[0019] Determining multiple indicator sets for parallel computing according to the parallel computing relationship;

[0020] According to the serial calculation relationship, determine the calculation order between the indicator sets;

[0021] Each indicator set is processed in turn according to the calculation sequence between the indicator sets. For each indicator set, the indicator data of each associated power plant in the current indicator set is calculated at the same time.

[0022] Optionally, before pre-storing the associated power plant indicators having a calculation dependency relationship with the target power plant indicator, the method further includes:

[0023] Obtain all power plant indicators of the power plant to be monitored and the calculation relationship between the power plant indicators;

[0024] The calculation dependency of each power plant indicator is recursively analyzed through an expression analyzer or regular analysis to form an indicator call relationship graph, so as to determine the target power plant indicator and its corresponding associated power plant indicator based on the indicator call relationship graph.

[0025] Another aspect of the present invention provides a state monitoring device, including:

[0026] A data storage module, used to pre-store various associated power plant indicators having a calculation dependency relationship with the target power plant indicator, and store a serial calculation relationship between the target power plant indicator and various associated power plant indicators;

[0027] A change monitoring module, used to monitor whether the data of the target power plant indicator has changed;

[0028] A data acquisition module, configured to acquire indicators of power plants associated with the target power plant indicator when data changes of the target power plant indicator are monitored;

[0029] A vertical segmentation module, used to determine the parallel calculation relationship of each related power plant index to be executed in parallel based on the calculation order between each related power plant index and the target power plant index;

[0030] The data updating module is used to update the index data of each associated power plant according to the serial calculation relationship and the parallel calculation relationship.

[0031] Optionally, it also includes a change event storage module, which is used to pre-build an ordered set in the cache pool to be calculated; there are multiple target power plant indicators, and according to the change time of each target power plant indicator, a corresponding weight value is determined for each target power plant indicator to serve as the data update order of each target power plant indicator; each target power plant indicator and its corresponding weight value are stored in the ordered set to update the data of the associated power plant indicators corresponding to each target power plant indicator based on the data update order.

[0032] Optionally, the data update module is further used to: determine multiple indicator sets for parallel calculation based on the parallel calculation relationship; determine the calculation order between each indicator set based on the serial calculation relationship; process each indicator set in sequence according to the calculation order between each indicator set, and for each indicator set, simultaneously calculate the indicator data of each associated power plant in the current indicator set.

[0033] An embodiment of the present invention further provides an electronic device, comprising a processor, wherein the processor is configured to implement the steps of the state monitoring method as described in any of the preceding items when executing a computer program stored in a memory.

[0034] Finally, an embodiment of the present invention further provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the state monitoring method as described in any of the preceding items are implemented.

[0035] The advantage of the technical solution provided by the present application is that the calculation dependency relationship between the power plant indicators reflecting the power plant status is stored in advance, and when the original indicator data change is detected, the update calculation of each related power plant indicator is triggered. The real-time calculation of the trigger-type related indicators from the bottom up based on the original indicators can effectively ensure the real-time calculation of the indicator data, thereby improving the real-time monitoring of the power plant. Parallel calculation is performed on each related power plant indicator that does not have a calculation sequence, and serial calculation is performed on each related power plant indicator with a dependency relationship, which greatly improves the efficiency of indicator calculation and can ensure the priority of indicator calculation, thereby improving the accuracy and efficiency of the entire power plant monitoring, and all-round efficient, accurate, and real-time monitoring of each plant-level system to truly reflect the production status.

[0036] In addition, the embodiment of the present invention also provides a corresponding implementation device, an electronic device and a readable storage medium for the status monitoring method, which further makes the method more practical, and the device, the electronic device and the readable storage medium have corresponding advantages.

[0037] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present invention or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. 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.

[0039] Figure 1 A flow chart of a state monitoring method provided by an embodiment of the present invention;

[0040] Figure 2 A schematic diagram of an indicator calling relationship of an exemplary application scenario provided by an embodiment of the present invention;

[0041] Figure 3 A schematic diagram of a flow chart of another state monitoring method provided by an embodiment of the present invention;

[0042] Figure 4 A schematic diagram of vertical hierarchical segmentation of an exemplary application scenario provided by an embodiment of the present invention;

[0043] Figure 5A schematic diagram of an indicator data update process for an exemplary application scenario provided by an embodiment of the present invention;

[0044] Figure 6 A flowchart of another state monitoring method provided by an embodiment of the present invention;

[0045] Figure 7 A structural diagram of a specific implementation of a status monitoring device provided by an embodiment of the present invention;

[0046] Figure 8 A structural diagram of a specific implementation of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0048] The terms "first", "second", "third", "fourth", etc. in the specification and claims of this application and the above drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.

[0049] After introducing the technical solutions of the embodiments of the present invention, various non-limiting implementation methods of the present application are described in detail below.

[0050] See first Figure 1 , Figure 1 A flow chart of a state monitoring method provided by an embodiment of the present invention, the embodiment of the present invention may include the following contents:

[0051] S101: pre-store various related power plant indicators having a calculation dependency relationship with the target power plant indicator, and store a serial calculation relationship between the target power plant indicator and various related power plant indicators.

[0052] In this embodiment, the target power plant index can be any index that can reflect the monitoring status of the power plant, is associated with the power plant measurement point data and is not dependent on other power plant indicators. The associated power plant index is a power plant index that has a calculation relationship with the target power plant index. The associated power plant index is to quote other indicators by writing a calculation formula. The quoted indicator can be the target power plant index or other calculation indicators related to the target power plant index. That is to say, the calculation process of the associated power plant index requires calling the target power plant index data, and the change of the target power plant index data will affect the value of the associated power plant index. The target power plant index can be 1 or more. For example, Ty, Tz are target power plant indicators. If Tx = Fx (Ty, Tz ...), that is, the Tx index is calculated based on the Ty and Tz indicators, where Fx is a calculation function or arithmetic operator supported by any formula parser. Taking Java language as an example, the open source expression analysis framework Jep can be used to implement various calculation functions and function parsing. Then Tx is the associated power plant index of Ty and Tz, and Jep is an open source expression parsing and execution class library. As shown in Table 1, T11 and T12 are target power plant indicators, while T21, T22, T23, T31, T32, T33, T41 and T42 are associated power plant indicators of T11, and T23, T32, T33, T41 and T42 are associated power plant indicators of T12.

[0053] Table 1: Example table of power plant indicators

[0054]

[0055]

[0056] In the step, since the associated power plant indicators are obtained according to the calculation formula by calling the target power plant indicators or the associated power plant indicators related to the target power plant indicators, that is to say, the calculation of the associated power plant indicators has a sequence, the serial calculation relationship in this step refers to the reference relationship of the associated power plant indicators, or the calculation method and order of calculating the associated power plant indicators.

[0057] In order to facilitate implementation, all power plant indicators of the power plant to be monitored and the calculation relationship between the power plant indicators can be obtained in advance; the calculation dependency relationship of each power plant indicator can be recursively analyzed through an expression analyzer or regular analysis to form an indicator call relationship diagram. Taking Table 1 as an example, the calculation dependency relationship of the T11-T42 indicators can be recursively analyzed through an expression analyzer or regular analysis to form the following: Figure 2The indicator call relationship diagram shown. Based on the indicator call relationship diagram, the target power plant indicator and its corresponding associated power plant indicator are determined, and the serial calculation relationship between the target power plant indicator and each associated power plant indicator is determined. The serial calculation relationship may include a calculation path starting from the target power plant indicator to multiple associated associated power plant indicators. The association here refers to multiple power plant indicators with calculation dependencies. The serial calculation relationship may include multiple calculation paths. As shown in the figure, when the value of the target power plant indicator T11 or T12 changes, the indicators T21 to T42 need to be calculated in conjunction, and the calculation order from right to left is guaranteed. For example, T11→T23→T32→T41 is the correct calculation order.

[0058] Taking T11 as the starting point, all correct calculation paths are as follows:

[0059] T11→T21→T31

[0060] T11→T22

[0061] T11→T23→T32→T41

[0062] T11→T23→T32→T42

[0063] T11→T23→T33

[0064] Taking T12 as the starting point, all correct calculation paths are as follows:

[0065] T12→T23→T32→T41

[0066] T12→T23→T32→T42

[0067] T12→T23→T33

[0068] As shown above, a single calculation path can be cached using the efficient cache Redis (Remote Dictionary Server), and the cache is synchronized with the indicator formula information. Redis is a high-performance Key-Value database. For easy storage, the serial calculation relationship can be formed into a cache data table. The cache data structure is, for example, a set Set, where the Key keywords are T11 and T12, and the values ​​are comma-connected ordered association indicators as shown in Table 2:

[0069] Table 2: Schematic diagram of power plant index storage

[0070]

[0071] S102: When data changes of the target power plant indicators are monitored, indicators of power plants associated with the target power plant indicators are obtained.

[0072] In this embodiment, since the value of the target power plant index changes, and each associated power plant index is an index calculated by directly or indirectly referencing the target power plant index, the values ​​of these associated power plant indexes need to be updated accordingly. There may be multiple or only one target power plant index that changes. When a target power plant index is monitored to change, all associated power plant indexes associated with the changed target power plant index are obtained from the location stored in S101, and the update calculation of each associated power plant index is triggered.

[0073] S103: Based on the calculation sequence between the related power plant indicators and the target power plant indicator, determine the parallel calculation relationship of the related power plant indicators to be executed in parallel.

[0074] It can be understood that the associated power plant indicator directly or indirectly references the target power plant indicator. The so-called indirect reference means that it directly references other target associated power plant indicators. The target associated power plant indicator directly or indirectly references the target power plant indicator. Therefore, when updating the associated power plant indicators, there is an update order and multiple updates of the same associated power plant indicator. Taking T11 as an example, according to Key = calc: relation: T11, the associated power plant indicator Set set is taken out, and the indicator calculation is executed cyclically. The calculation times of each associated power plant indicator in this calculation mode are shown in Table 3:

[0075] Table 3: Calculation times of related power plant indicators

[0076] Power plant indicators Calculation times T21 1 T22 1 T23 3 T31 1 T32 2 T33 1 T41 1 T42 1 total 11

[0077] As can be seen from Table 3, the T23 indicator is calculated three times, two of which are repeated calculations, and the T32 is calculated twice, one of which is repeated calculations, that is, one indicator is referenced by multiple calculation indicators, and repeated calculations will occur when it is disassembled into a single path. Based on this, this step clarifies the calculation order between the related power plant indicators according to the serial calculation relationship stored in S101, and divides these related power plant indicators into vertical hierarchical sections, that is, classifies the related power plant indicators, and divides multiple related power plant indicators that can be calculated in parallel into one group. The groups can have a sequential calculation dependency or no calculation dependency, and the calculation order of each group and between groups is used as a parallel calculation relationship.

[0078] S104: updating the index data of each associated power plant according to the serial calculation relationship and the parallel calculation relationship.

[0079] After the serial calculation relationship and the parallel calculation relationship are determined in the previous step, the calculation order and calculation method of each related power plant indicator are also uniquely determined. According to the serial calculation relationship and the parallel calculation relationship, the indicators of each related power plant can be calculated, thereby realizing the update of the indicator data of each related power plant.

[0080] In the technical solution provided by the embodiment of the present invention, the calculation dependency relationship between the power plant indicators reflecting the power plant status is stored in advance. When the original indicator data is detected to be changed, the update calculation of each related power plant indicator is triggered. The real-time calculation of the triggered related indicators from the bottom up based on the original indicators can effectively ensure the real-time calculation of the indicator data, thereby improving the real-time monitoring of the power plant. Parallel calculation is performed on each related power plant indicator that does not have a calculation sequence, and serial calculation is performed on each related power plant indicator with a dependency relationship, which greatly improves the efficiency of indicator calculation and can ensure the priority of indicator calculation, thereby improving the accuracy and efficiency of the entire power plant monitoring, and all-round efficient, accurate, and real-time monitoring of each plant-level system to truly reflect the production status.

[0081] In this embodiment, when the target power plant index data as the original index changes, for a scenario with multiple target power plant indexes, it is necessary to ensure orderliness in order to trigger the calculation of related indexes. Based on this, this embodiment also provides an optional embodiment, such as Figure 3 As shown, it may include the following:

[0082] Construct an ordered set in advance in the cache pool to be calculated;

[0083] According to the change time of each target power plant indicator, a corresponding weight value is determined for each target power plant indicator to serve as the data update order of each target power plant indicator;

[0084] Each target power plant indicator and its corresponding weight value are stored in an ordered set, so as to update the data of the associated power plant indicators corresponding to each target power plant indicator based on the data update order.

[0085] In this embodiment, the Redis ordered set ZSET can be used to cache the target power plant index to implement a first-in-first-out calculation queue, ensuring orderliness in the data change time dimension. When the Redis ordered set ZSET caches the target power plant index, the Key can be a fixed string calc:baseIndex, the Value value is the target power plant index T11, T12, and the weight is the queue entry timestamp to implement a first-in-first-out queue, as shown in Table 4. Figure 2 For example, if T11 is changed first and T12 is changed later, the five calculation relationships related to T11 need to be calculated first, and the three calculation relationships related to T12 need to be calculated later.

[0086] Table 4 Ordered set storage table

[0087]

[0088] Accordingly, the process of obtaining the power plant indicators associated with the target power plant indicator may include:

[0089] The computing service polling thread is called to read the associated power plant indicators corresponding to each target power plant indicator from the cache pool to be calculated by executing the ZPOPMIN command.

[0090] Taking T11 as an example, retrieve the associated power plant indicator Set from Redis by Key = calc: relation: T11, and perform indicator calculation in a loop. The Java pseudo code is as follows:

[0091]

[0092] In the above embodiment, there is no limitation on how to execute step S104. In this embodiment, an optional implementation method of updating the index data of each associated power plant according to the serial calculation relationship and the parallel calculation relationship is provided, which may include the following contents:

[0093] According to the parallel computing relationship, multiple indicator sets of parallel computing are determined;

[0094] According to the serial calculation relationship, determine the calculation order between each indicator set;

[0095] Each indicator set is processed in turn according to the calculation sequence between the indicator sets. For each indicator set, the indicator data of each associated power plant in the current indicator set is calculated at the same time.

[0096] In this embodiment, after determining the serial calculation relationship of each related power plant index in step S101, considering the invalid repeated calculation, in order to remove the repeated calculation index, as shown in Table 3, Figure 4 The vertical hierarchical segmentation shown is as follows:

[0097] Taking the T11 indicator change as an example, the indicators that need to be calculated for the L1 level are T21, T22, and T23, the indicators that need to be calculated for the L2 level are T31, T32, and T33, and the indicators that need to be calculated for the L3 level are T41 and T42. The calculation order of each vertical level is irrelevant and can be executed in parallel:

[0098] L1 = [T21, T22, T23], T21, T22, T23 are executed in parallel

[0099] L2 = [T31, T32, T33], T31, T32, T33 are executed in parallel

[0100] L3 = [T41, T42], T41, T42 are executed in parallel

[0101] That is, according to the parallel computing relationship, multiple indicator sets L1 = [T21, T22, T23], L2 = [T31, T32, T33], L3 = [T41, T42] can be generated. There is a sequential dependency between the levels, which is related to the calculation order and needs to be executed serially. That is, according to the serial computing relationship, the calculation order of each indicator set is determined to be L1 → L2 → L3. Based on this, if Figure 5 As shown, the entire calculation relationship is simplified as follows:

[0102] T11→[T21, T22, T23]→[T31, T32, T33]→[T41, T42]

[0103] This embodiment actively triggers the associated calculation indicators based on the change of the original indicator value. It is a bottom-up calculation solution. By introducing indicator relationship aspect deduplication, serial and parallel combination, etc., it maximizes parallel calculation while ensuring the order of dependency relationships to improve real-time calculation efficiency. This solution does not rely on a third-party computing framework, but only relies on efficient cache redis and open source formula parsing execution library, and has good technical independence.

[0104] In order to make the technical personnel in the field more clearly understand the technical solution of the present application, the present application is also combined with Figure 3 and Figure 6 Describe the entire technical solution, which may include the following:

[0105] Obtain the indicators of each power plant to be monitored and the calculation relationship between each power plant. Based on the indicator calculation formula, recursively analyze the calculation dependency of the indicator through the expression analyzer or regular analysis, determine the original power plant indicator and the associated power plant indicator based on the calculation dependency, and cache the original power plant indicator and its corresponding associated power plant indicator and their corresponding calculation relationship in the Redis cache. Use the original power plant indicator as the target power plant indicator to monitor data changes. When the indicator change is monitored, add the target power plant indicator to the ordered set in the Redis cache pool to be calculated to ensure the orderly calculation of the target power plant indicator. Through the ZPOMIN instruction, the calculation service polls to read the target power plant indicator to be calculated from the cache pool to be calculated, and obtains the associated calculation indicator path set of the target power plant indicator to be calculated from the Redis calculation relationship cache, splits and removes duplicates for each associated power plant indicator, and performs indicator calculation in a horizontal serial and vertical parallel manner according to the serial calculation relationship and parallel calculation relationship, and finally stores the calculation results.

[0106] The computer program code corresponding to the collection of associated calculation indicators Set taken out from Redis according to Key=calc:relation:T11 can refer to the contents recorded in the above embodiment. The computer program code corresponding to the process of performing indicator calculation in a horizontal serial and vertical parallel manner according to the serial calculation relationship and the parallel calculation relationship, such as Java pseudo code, can be:

[0107]

[0108]

[0109] The number of calculations in this mode is shown in Table 5:

[0110] Table 5 Statistics of indicator calculation times

[0111] index Calculation times T21 1 T22 1 T23 1 T31 1 T32 1 T33 1 T41 1 T42 1 total 8

[0112] Comparing it with Table 3, it can be seen that three repeated calculations are reduced, and the vertical level indicators are executed in parallel, which improves the parallel computing efficiency.

[0113] From the above, we can see that through the four key links of indicator formula parsing and caching, original indicator data change queue, vertical level segmentation and deduplication, and serial and parallel execution of indicator calculation, a bottom-up triggered correlation indicator calculation based on the original indicators is realized, ensuring the efficiency, accuracy and real-time performance of indicator data correlation calculation.

[0114] It should be noted that there is no strict order of execution between the steps in this application. As long as they comply with the logical order, these steps can be executed simultaneously or in a certain preset order. Figure 1 and Figure 6 This is just a schematic and does not mean that this is the only execution order.

[0115] The embodiment of the present invention also provides a corresponding device for the state monitoring method, which further makes the method more practical. Among them, the device can be described from the perspective of functional modules and hardware. The state monitoring device provided by the embodiment of the present invention is introduced below. The state monitoring device described below and the state monitoring method described above can be referred to each other.

[0116] From the perspective of functional modules, see Figure 7 , Figure 7 A structural diagram of a state monitoring device provided in an embodiment of the present invention in a specific implementation manner, the device may include:

[0117] The data storage module 701 is used to pre-store various related power plant indicators that have a calculation dependency relationship with the target power plant indicator, and store the serial calculation relationship between the target power plant indicator and various related power plant indicators;

[0118] A change monitoring module 702 is used to monitor whether the data of the target power plant indicator has changed;

[0119] The data acquisition module 703 is used to acquire the indicators of each power plant associated with the target power plant indicator when monitoring the data change of the target power plant indicator;

[0120] A vertical segmentation module 704 is used to determine the parallel calculation relationship of each associated power plant index to be executed in parallel based on the calculation order between each associated power plant index and the target power plant index;

[0121] The data updating module 705 is used to update the index data of each associated power plant according to the serial calculation relationship and the parallel calculation relationship.

[0122] Optionally, in some implementations of the present embodiment, the above-mentioned device may also include a change event storage module, which is used to pre-construct an ordered set in the cache pool to be calculated; there are multiple target power plant indicators, and according to the change time of each target power plant indicator, a corresponding weight value is determined for each target power plant indicator to serve as the data update order of each target power plant indicator; each target power plant indicator and its corresponding weight value are stored in an ordered set to update the data of the associated power plant indicators corresponding to each target power plant indicator based on the data update order.

[0123] As an optional implementation of the above embodiment, the above data acquisition module 703 can be further used to: call the computing service polling thread, and read the associated power plant indicators corresponding to each target power plant indicator from the to-be-calculated buffer pool by executing the ZPOPMIN command.

[0124] Optionally, in some other implementations of the present embodiment, the above-mentioned data update module is further used to: determine multiple indicator sets for parallel calculation based on parallel calculation relationships; determine the calculation order between each indicator set based on the serial calculation relationship; process each indicator set in sequence according to the calculation order between each indicator set, and for each indicator set, simultaneously calculate the indicator data of each associated power plant in the current indicator set.

[0125] Optionally, in some other implementations of the present embodiment, the above-mentioned device may also include an indicator call relationship graph generation module, for example, for obtaining all power plant indicators of the power plant to be monitored and the calculation relationship between each power plant indicator; through an expression analyzer or regular parsing, recursively analyzing the calculation dependency relationship of each power plant indicator to form an indicator call relationship graph, so as to determine the target power plant indicator and its corresponding associated power plant indicator based on the indicator call relationship graph.

[0126] The functions of the functional modules of the status monitoring device in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0127] It can be seen from the above that the embodiments of the present invention can monitor the status of a power plant efficiently, in real time and accurately.

[0128] The status monitoring device mentioned above is described from the perspective of functional modules. Furthermore, the present application also provides an electronic device, which is described from the perspective of hardware. Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application in one implementation manner. Figure 8 As shown, the electronic device includes a memory 80 for storing a computer program; and a processor 81 for implementing the steps of the state monitoring method mentioned in any of the above embodiments when executing the computer program.

[0129] Among them, the processor 81 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the processor 81 may also be a controller, a microcontroller, a microprocessor or other data processing chip. The processor 81 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 81 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 81 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 81 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0130] The memory 80 may include one or more computer-readable storage media, which may be non-transitory. The memory 80 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. The memory 80 may be an internal storage unit of an electronic device in some embodiments, such as a hard disk of a server. The memory 80 may also be an external storage device of an electronic device in other embodiments, such as a plug-in hard disk equipped on a server, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. Further, the memory 80 may also include both an internal storage unit of an electronic device and an external storage device. The memory 80 may not only be used to store application software and various types of data installed in the electronic device, such as: the code of the program for executing the vulnerability processing method, etc., but may also be used to temporarily store data that has been output or is to be output. In this embodiment, the memory 80 is at least used to store the following computer program 801, wherein, after the computer program is loaded and executed by the processor 81, the relevant steps of the state monitoring method disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 80 may also include an operating system 802 and data 803, and the storage method may be temporary storage or permanent storage. The operating system 802 may include Windows, Unix, Linux, etc. The data 803 may include but is not limited to data corresponding to the status monitoring results.

[0131] In some embodiments, the electronic device may further include a display screen 82, an input / output interface 83, a communication interface 84 or a network interface, a power supply 85 and a communication bus 86. Among them, the display screen 82 and the input / output interface 83 such as a keyboard belong to the user interface, and the optional user interface may also include a standard wired interface, a wireless interface, etc. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface. The communication interface 84 may optionally include a wired interface and / or a wireless interface, such as a WI-FI interface, a Bluetooth interface, etc., which are generally used to establish a communication connection between the electronic device and other electronic devices. The communication bus 86 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0132] Those skilled in the art will understand that Figure 8 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, for example, it may also include a sensor 87 to implement various functions.

[0133] The functions of the functional modules of the electronic device described in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0134] It can be seen from the above that the embodiments of the present invention can monitor the status of a power plant efficiently, in real time and accurately.

[0135] It is understandable that if the state monitoring method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), electrically erasable programmable ROM, register, hard disk, multimedia card, card-type memory (such as SD or DX memory, etc.), magnetic memory, removable disk, CD-ROM, disk or optical disk, etc. Various media that can store program codes.

[0136] Based on this, an embodiment of the present invention further provides a readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps of the state monitoring method described in any of the above embodiments are performed.

[0137] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the hardware disclosed in the embodiments, including devices and electronic devices, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part.

[0138] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0139] The above is a detailed introduction to a state monitoring method, device, electronic device and readable storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A state monitoring method, characterized in that: include: Pre-store various associated power plant indicators that have a calculation dependency relationship with the target power plant indicator, and store the serial calculation relationship between the target power plant indicator and the associated power plant indicators; the target power plant indicator is an indicator that is associated with the power plant measurement point data and does not depend on other power plant indicators, and the associated power plant indicator is a power plant indicator that has a calculation relationship with the target power plant indicator, which is obtained by calling the target power plant indicator or an associated power plant indicator related to the target power plant indicator according to a calculation formula; the serial calculation relationship refers to the reference relationship between the associated power plant indicators; When a data change of the target power plant indicator is detected, the indicators of each power plant associated with the target power plant indicator are obtained; Based on the calculation order between each related power plant indicator and the target power plant indicator, determining the parallel calculation relationship of each related power plant indicator to be executed in parallel, so as to remove repeated calculation indicators; According to the parallel calculation relationship, multiple indicator sets for parallel calculation are determined, and according to the serial calculation relationship, a calculation sequence between the indicator sets is determined; each indicator set is processed in sequence according to the calculation sequence between the indicator sets, and for each indicator set, each associated power plant indicator data in the current indicator set is calculated simultaneously; Wherein, based on the calculation order between each associated power plant index and the target power plant index, the parallel calculation relationship of each associated power plant index to be executed in parallel is determined as follows: According to the serial calculation relationship, the calculation order between the related power plant indicators is determined, and the related power plant indicators are classified. Multiple related power plant indicators that can be calculated in parallel are divided into a group. There is a sequential calculation dependency relationship or no calculation dependency relationship between the groups, and the calculation order between the groups is used as a parallel calculation relationship.

2. The state monitoring method according to claim 1, characterized in that: The target power plant indicators are multiple, and when the data change of the target power plant indicators is monitored, the method includes: Construct an ordered set in advance in the cache pool to be calculated; According to the change time of each target power plant indicator, a corresponding weight value is determined for each target power plant indicator to serve as the data update order of each target power plant indicator; Each target power plant indicator and its corresponding weight value are stored in the ordered set, so as to update the data of the associated power plant indicators corresponding to each target power plant indicator based on the data update sequence.

3. The state monitoring method according to claim 2, characterized in that: The step of obtaining the indicators of each power plant associated with the target power plant indicator includes: The computing service polling thread is called to read the associated power plant indicators corresponding to each target power plant indicator from the to-be-calculated buffer pool by executing the ZPOPMIN command.

4. The state monitoring method according to claim 1, characterized in that: Before pre-storing the associated power plant indicators having a calculation dependency relationship with the target power plant indicator, the method further includes: Obtain all power plant indicators of the power plant to be monitored and the calculation relationship between the power plant indicators; The calculation dependency of each power plant indicator is recursively analyzed through an expression analyzer or regular analysis to form an indicator call relationship graph, so as to determine the target power plant indicator and its corresponding associated power plant indicator based on the indicator call relationship graph.

5. A state monitoring device, characterized in that: include: A data storage module is used to pre-store various associated power plant indicators that have a calculation dependency relationship with the target power plant indicator, and store the serial calculation relationship between the target power plant indicator and the various associated power plant indicators; the target power plant indicator is an indicator that is associated with the power plant measurement point data and does not depend on other power plant indicators, and the associated power plant indicator is a power plant indicator that has a calculation relationship with the target power plant indicator, which is obtained by calling the target power plant indicator or an associated power plant indicator related to the target power plant indicator according to a calculation formula; the serial calculation relationship refers to the reference relationship between the various associated power plant indicators; A change monitoring module, used to monitor whether the data of the target power plant indicator has changed; A data acquisition module, configured to acquire indicators of power plants associated with the target power plant indicator when data changes of the target power plant indicator are monitored; A vertical segmentation module, for determining the parallel calculation relationship of the related power plant indicators to be executed in parallel based on the calculation order between the related power plant indicators and the target power plant indicators, so as to remove the repeated calculation indicators; A data updating module, used for updating the index data of each associated power plant according to the serial calculation relationship and the parallel calculation relationship; The vertical segmentation module is further used to: determine the calculation order between the related power plant indicators according to the serial calculation relationship, classify the related power plant indicators, divide multiple related power plant indicators that can be calculated in parallel into one group, and the groups have a sequential calculation dependency relationship or no calculation dependency relationship, and use the groups and the calculation order between the groups as a parallel calculation relationship; The data update module is further used to: determine multiple indicator sets for parallel calculation based on the parallel calculation relationship; determine the calculation sequence between each indicator set based on the serial calculation relationship; process each indicator set in turn according to the calculation sequence between each indicator set, and for each indicator set, simultaneously calculate the indicator data of each associated power plant in the current indicator set.

6. The state monitoring device according to claim 5, characterized in that: It also includes a change event storage module, which is used to pre-build an ordered set in the cache pool to be calculated; there are multiple target power plant indicators, and according to the change time of each target power plant indicator, a corresponding weight value is determined for each target power plant indicator to serve as the data update order of each target power plant indicator; Each target power plant indicator and its corresponding weight value are stored in the ordered set, so as to update the data of the associated power plant indicators corresponding to each target power plant indicator based on the data update sequence.

7. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the processor is used to implement the steps of the state monitoring method according to any one of claims 1 to 4 when executing a computer program stored in the memory.

8. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the state monitoring method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • A method for scheduling an application task based on a big data behavior, server and storage medium

    CN109901926A