A method and system for effectively outputting dispatching strategies during power grid failure
By processing power grid fault information using a policy model based on deep reinforcement learning algorithms and combining it with an expert database for comprehensive matching, the problem of scheduling policy uncertainty during power grid faults is solved, and fast and effective scheduling policy output is achieved.
Patent Information
- Application Number
- CN202111117928.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-22
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-09-22
AI Technical Summary
Existing technologies cannot provide timely and effective references for dispatching strategies during power grid failures, resulting in complex and inconsistent dispatching strategies.
A strategy model based on deep reinforcement learning algorithm is adopted. It is trained and verified by historical fault information, combined with the power grid operation environment, to obtain and feed back the scheduling strategy. The deep Q-network algorithm and deep deterministic strategy gradient algorithm are used to process discrete or continuous data, and comprehensive matching is performed by combining expert database.
It enables timely and effective dispatching strategies during power grid failures, improves processing efficiency, expands the application scope of reinforcement learning, and can quickly respond to complex control variables.
Smart Images

Figure CN113780875B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power grid dispatching, and in particular to a method and system for effectively outputting a dispatching strategy when a power grid fails. Background Art
[0002] At present, the power grid dispatching system has been networked. When the power grid is in operation, a large amount of data analysis is required to make accurate judgments on the operation mechanism and operation strategy of the power grid dispatching system.
[0003] At present, various new technologies are applied to the power grid and participate in assisting decision-making, but these decisions are mostly used for normal dispatch outputs and have fixed logic.
[0004] However, sudden failures are prone to occur during the operation of the power grid, and effective dispatching measures need to be matched in time. However, due to the uncertainty of the failure, the dispatching strategy allocation logic is complex and unfixed, making it difficult for the existing technology to provide a dispatching strategy reference in a timely and effective manner. Therefore, it is necessary to provide an effective output method for the dispatching strategy when the power grid fails, which can solve the problem that the existing technology is difficult to provide a dispatching strategy reference in a timely and effective manner. Summary of the invention
[0005] The technical problem to be solved by the embodiments of the present invention is to provide a method and system for effectively outputting a dispatching strategy when a power grid fails, which can realize timely and effective output of a dispatching strategy when a power grid fails.
[0006] In order to solve the above technical problems, an embodiment of the present invention provides a method for effectively outputting a dispatching strategy when a power grid fails, the method comprising the following steps:
[0007] Obtain various fault information in the on-site operation environment of the power grid;
[0008] Use the pre-trained strategy model to process the various fault information obtained to obtain the corresponding scheduling strategy.
[0009] The strategy model is created based on a deep reinforcement learning algorithm, trained through historical fault information, and verified by feeding back the training results to the power grid operation environment.
[0010] Among them, there are multiple deep reinforcement learning algorithms involved in the strategy model, and the corresponding algorithm type is selected based on the data type used in the historical fault information.
[0011] Among them, there are two deep reinforcement learning algorithms involved in the policy model, including deep Q network algorithm and deep deterministic policy gradient algorithm; among them,
[0012] If the data type used by the historical fault information is discrete data, the deep reinforcement learning algorithm selected by the strategy model is a deep Q network algorithm; and / or
[0013] If the data type used by the historical fault information is continuous data, the deep reinforcement learning algorithm selected by the strategy model is a deep deterministic policy gradient algorithm.
[0014] The output scheduling strategy of the strategy model is classified according to the fault type, and the corresponding activation function is used in the training process;
[0015] If the fault type is a device fault, the activation function used by the strategy model during training is a linear activation function; and / or
[0016] If the fault type is a load fault, the excitation function used by the strategy model during the training process is an S-shaped excitation function.
[0017] The strategy model pre-stores the action reward and punishment intervals fed back during the verification of the power grid operation environment, including a normal interval, an over-limit interval, and a divergent interval.
[0018] The strategy model pre-stores a scheduling strategy adjustment prompt formed when the action reward and punishment interval is at least one of an over-limit interval and a divergence interval.
[0019] Wherein, the method further comprises:
[0020] The obtained scheduling strategy is combined with the pre-established expert database to obtain a comprehensive matching result with the number of control actions, safety and time consumed as constraints.
[0021] The embodiment of the present invention also provides a system for effectively outputting a dispatching strategy when a power grid fails, comprising a data acquisition unit and an effective dispatching strategy output unit; wherein:
[0022] The data acquisition unit is used to acquire various fault information in the on-site operation environment of the power grid;
[0023] The scheduling strategy effective output unit is used to process various acquired fault information using a pre-trained strategy model to obtain a corresponding scheduling strategy.
[0024] Among them, it also includes: a scheduling strategy comprehensive matching output unit; among them,
[0025] The scheduling strategy comprehensive matching output unit is used to combine the obtained scheduling strategy with the pre-established expert database to obtain a comprehensive matching result with the number of control actions, safety and time consumed as constraints.
[0026] Implementing the embodiments of the present invention has the following beneficial effects:
[0027] 1. The present invention uses a pre-trained strategy model to process various fault information obtained on site to obtain corresponding dispatch strategies, so as to provide dispatch strategies in a timely and effective manner when power grid faults occur;
[0028] 2. The strategy model of the present invention utilizes a deep reinforcement learning algorithm, which has the advantages of no longer being limited to the low-dimensional space to effectively process a large number of continuous and complex control variables. It greatly expands the scope of use of reinforcement learning, directly controls according to input information, and quickly gives scheduling strategies through iteration, greatly improving processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, without paying creative labor, other drawings obtained based on these drawings still belong to the scope of the present invention.
[0030] Figure 1 A flowchart of a method for effectively outputting a dispatching strategy when a power grid fails provided by an embodiment of the present invention;
[0031] Figure 2 A schematic diagram of the structure of a system for effectively outputting a dispatching strategy during a power grid failure provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.
[0033] like Figure 1 As shown in the figure, a method for effectively outputting a dispatching strategy when a power grid fails is provided in an embodiment of the present invention, and the method comprises the following steps:
[0034] Step S1, obtaining various fault information in the on-site operation environment of the power grid;
[0035] Step S2: Use the pre-trained strategy model to process the various fault information obtained to obtain the corresponding scheduling strategy.
[0036] The specific process is that before step S1, a strategy model is created in advance based on a deep reinforcement learning algorithm (DRL), and the strategy model is trained through historical fault information and verified by feeding back the training results to the power grid operation environment.
[0037] The construction and training of the strategy model are implemented in the following steps:
[0038] (1) First, historical fault information is obtained through database mirroring, data extraction, conversion and loading, and data interface software. The historical fault information comes from various business systems, such as power generation systems, dispatching systems, operation monitoring systems, and load management systems. The standard XML format is used to convert byte values to achieve large data transmission.
[0039] In order to ensure data accuracy and availability, the rationality of historical fault information is also verified, including basic verification and plug-in verification. Among them, the basic verification is used to verify the limit, format and accuracy of each data; for example, whether the voltage value exceeds the voltage limit, etc.; the plug-in verification is used to verify the complex business logic between each data; for example, there is business logic between the total power and the sub-power, and between each power and the related current, voltage and time, and certain constraints are met.
[0040] (2) Secondly, a strategy model is created based on the deep reinforcement learning algorithm (DRL). A part of the historical fault information is used as training data and fed back to the power grid operation environment for verification. Another part of the historical fault information is used as test data to test the strategy model, thereby obtaining a trained strategy model.
[0041] Given that historical fault information uses a variety of data types, including discrete data and continuous data, the policy model involves a variety of deep reinforcement learning algorithms, including the deep Q network algorithm (DCN algorithm) and the deep deterministic policy gradient algorithm (DDPG algorithm). Among them, when the data type used by the historical fault information is discrete data, the deep reinforcement learning algorithm selected by the policy model is the DCN algorithm; if the data type used by the historical fault information is continuous data, the deep reinforcement learning algorithm selected by the policy model is the DDPG algorithm; if the data type used by the historical fault information is both discrete data and continuous data, the deep reinforcement learning algorithms selected by the policy model also include both the DCN algorithm and the DDPG algorithm.
[0042] At the same time, given that the fault types are divided into equipment faults and load faults, the output scheduling strategy of the strategy model is also classified according to the fault type, and the corresponding excitation function is used in the training process. Among them, linear excitation function, S-shaped excitation function, threshold or step excitation function, etc. At the same time, in the iterative training process, the parameter value of the strategy model is updated to improve its autonomy and intelligence level.
[0043] In one embodiment, if the fault type is a device fault, the excitation function used by the strategy model during the training process is a linear excitation function. If the fault type is a load fault, the excitation function used by the strategy model during the training process is an S-shaped excitation function. If the fault type includes both a device fault and a load fault, the excitation function used by the strategy model during the training process includes both a linear excitation function and an S-shaped excitation function.
[0044] When the strategy model feeds back the training results (i.e., the dispatch strategy) to the power grid operation environment for verification, the power grid environment executes the training results and generates corresponding action reward and punishment intervals; wherein the reward and punishment intervals include normal intervals, over-limit intervals, and divergent intervals; positive rewards are given to normal intervals, and all others are punished. At this time, the strategy model will pre-store the action reward and punishment intervals fed back during the verification of the power grid operation environment, and at the same time, the strategy model pre-stores the dispatch strategy adjustment prompt formed when the action reward and punishment interval is at least one of the over-limit interval and the divergent interval, to prompt the dispatcher to make adjustments.
[0045] For example, when a short circuit fault is detected in a certain device, the device is powered off according to the training results, and the load corresponding to the powered-off device is switched to another device. At the same time, the operating feedback of the power grid operating environment is observed. If it is normal, the strategy model determines that the reward and punishment interval is a normal interval; if it is abnormal, but overcurrent, overload, etc. occur, the strategy model determines that the control effect is not ideal, and determines that the reward and punishment interval is an out-of-limit interval and / or a divergent interval, which requires punishment, and prompts the dispatcher to make corresponding adjustments.
[0046] It should be noted that when prompting the dispatcher to make adjustments, if the dispatcher changes the load in the power grid operating environment, the control equipment must also be adjusted in a certain proportion. For example, the corresponding output is adjusted according to the power, impedance, and capacity of the control equipment, and some control equipment is shut down or put into operation. At the same time, the different power grid topologies formed by the state changes of each control device are recorded. For example, due to the shutdown or commissioning of the control equipment, different power grid topologies are naturally formed. For example, the shutdown of some equipment causes the tree structure to become a string structure.
[0047] It should be noted that the dispatching strategy output by the strategy model training includes multiple control measures, that is, there are multiple solutions to solve a certain fault problem. The dispatching strategy can be a set of instructions, including transformer input commands, circuit breaker and disconnector closing commands, contact network switching commands, etc.
[0048] In step S1, various fault information in the on-site operating environment of the power grid is collected in real time, and the various fault information collected on-site is transmitted to the trained dispatching strategy.
[0049] In step S2, the trained dispatching strategy is determined, and various fault information collected on site is processed to obtain the dispatching strategy required by the on-site operation environment of the power grid.
[0050] In an embodiment of the present invention, in order to achieve a comprehensive evaluation of the strategy, the method further includes: combining the obtained scheduling strategy with a pre-established expert database to obtain a comprehensive matching result with the number of controlled actions, safety and time consumed as constraints, that is, the number of actions controlled by the comprehensive matching scheduling strategy, the corresponding safety and the time consumed.
[0051] like Figure 2 As shown in the figure, a system for effectively outputting a dispatching strategy when a power grid fails is provided in an embodiment of the present invention, comprising a data acquisition unit 110 and a dispatching strategy effective output unit 120; wherein,
[0052] The data acquisition unit 110 is used to acquire various fault information in the on-site operation environment of the power grid;
[0053] The scheduling strategy effective output unit 120 is used to process various acquired fault information using a pre-trained strategy model to obtain a corresponding scheduling strategy.
[0054] Among them, it also includes: a scheduling strategy comprehensive matching output unit; among them,
[0055] The scheduling strategy comprehensive matching output unit is used to combine the obtained scheduling strategy with the pre-established expert database to obtain a comprehensive matching result with the number of control actions, safety and time consumed as constraints.
[0056] Implementing the embodiments of the present invention has the following beneficial effects:
[0057] 1. The present invention uses a pre-trained strategy model to process various fault information obtained on site to obtain corresponding dispatch strategies, so as to provide dispatch strategies in a timely and effective manner when power grid faults occur;
[0058] 2. The strategy model of the present invention utilizes a deep reinforcement learning algorithm, which has the advantages of no longer being limited to the low-dimensional space to effectively process a large number of continuous and complex control variables. It greatly expands the scope of use of reinforcement learning, directly controls according to input information, and quickly gives scheduling strategies through iteration, greatly improving processing efficiency.
[0059] It is worth noting that in the above system embodiment, the various units included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0060] A person skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as ROM / RAM, disk, CD-ROM, etc.
[0061] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A method for effectively outputting a dispatching strategy when a power grid fails, characterized in that: The method comprises the following steps: Obtain various fault information in the on-site operation environment of the power grid; Use the pre-trained strategy model to process the various fault information obtained to obtain the corresponding scheduling strategy; The strategy model is created based on a deep reinforcement learning algorithm, trained with historical fault information, and verified by feeding back the training results to the grid operation environment; The output scheduling strategy of the strategy model is classified according to the fault type, and the corresponding activation function is used in the training process; If the fault type is a device fault, the activation function used by the strategy model during training is a linear activation function; and / or If the fault type is a load fault, the excitation function used by the strategy model during training is an S-shaped excitation function; The strategy model pre-stores the action reward and punishment intervals fed back during the power grid operation environment verification, including a normal interval, an over-limit interval, and a divergent interval; The strategy model pre-stores a scheduling strategy adjustment prompt formed when the action reward and punishment interval is at least one of an over-limit interval and a divergence interval; Wherein, the method further comprises: The obtained scheduling strategy is combined with the pre-established expert database to obtain a comprehensive matching result with the number of control actions, safety and time consumed as constraints.
2. The method for effectively outputting a dispatching strategy when a power grid fails according to claim 1, characterized in that: There are multiple deep reinforcement learning algorithms involved in the strategy model, and the corresponding algorithm type is selected based on the data type used in the historical fault information.
3. The method for effectively outputting a dispatching strategy when a power grid fails according to claim 2, characterized in that: There are two deep reinforcement learning algorithms involved in the policy model, including deep Q network algorithm and deep deterministic policy gradient algorithm; among them, If the data type used by the historical fault information is discrete data, the deep reinforcement learning algorithm selected by the strategy model is a deep Q network algorithm; and / or If the data type used by the historical fault information is continuous data, the deep reinforcement learning algorithm selected by the strategy model is a deep deterministic policy gradient algorithm.
4. A system for effectively outputting dispatching strategies during power grid failure, characterized in that: It includes a data acquisition unit and a scheduling strategy effective output unit; wherein, The data acquisition unit is used to acquire various fault information in the on-site operation environment of the power grid; The scheduling strategy effective output unit is used to process various acquired fault information using a pre-trained strategy model to obtain a corresponding scheduling strategy; The strategy model is created based on a deep reinforcement learning algorithm, trained with historical fault information, and verified by feeding back the training results to the grid operation environment; The output scheduling strategy of the strategy model is classified according to the fault type, and the corresponding activation function is used in the training process; If the fault type is a device fault, the activation function used by the strategy model during training is a linear activation function; and / or If the fault type is a load fault, the activation function used by the strategy model during training is an S-shaped activation function. The strategy model pre-stores the action reward and punishment intervals fed back during the power grid operation environment verification, including a normal interval, an over-limit interval, and a divergent interval; The strategy model pre-stores a scheduling strategy adjustment prompt formed when the action reward and punishment interval is at least one of an over-limit interval and a divergence interval; Among them, it also includes: a scheduling strategy comprehensive matching output unit; among them, The scheduling strategy comprehensive matching output unit is used to combine the obtained scheduling strategy with the pre-established expert database to obtain a comprehensive matching result with the number of control actions, safety and time consumed as constraints.
