A method, device and medium for real-time congestion adjustment of key sections of power grid
By constructing a real-time blocking adjustment environment variable set and action space, and designing a reward function, the closed-loop control of the real-time blocking adjustment agent in key sections of the power grid is realized, which solves the problems of long decision-making process and insufficient closed-loop feedback in the existing technology, and improves the performance of key sections of the power grid. Efficiency and precision of real-time blocking adjustments.
Patent Information
- Application Number
- CN202111250009.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-26
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-10-26
AI Technical Summary
The decision-making process of the existing real-time congestion adjustment method for key sections of the power grid is long and inefficient. Moreover, there is no closed-loop feedback between the decision-making results and the actual execution effect, making it difficult to guarantee the control effectiveness.
Construct a real-time blocking adjustment environment variable set and action space, design a reward function, and perform dynamic decision updates based on real-time blocking adjustment agents to achieve closed-loop control from actual operation to adjustment strategy, improving decision-making efficiency and control accuracy.
Through the dynamic update of the real-time blocking adjustment agent, the power generation output of the AGC unit is optimized, the decision-making process is shortened, the accuracy and efficiency of real-time blocking control of key sections are improved, and the safety of system operation is ensured.
Smart Images

Figure CN114048968B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power grid dispatching and operation, and in particular to a method, a device and a medium for real-time congestion adjustment of a key section of a power grid. Background Art
[0002] Real-time congestion adjustment of key sections of large power grids is an important technical issue in the field of power grid dispatching and operation. The essential requirement of this issue is to adjust the power flow of key sections in a short time by adjusting the power generation output of AGC units to ensure that the power flow does not exceed the limit. With the rapid development of new energy such as wind power and photovoltaics, the uncertainty impact on the power grid has increased significantly, and the difficulty of real-time congestion adjustment of key sections has also increased. This is reflected in the large deviation of new energy prediction and strong random volatility, which leads to large fluctuations in the power flow of key sections affected by it, requiring real-time congestion adjustment decisions to be more efficient and accurate.
[0003] At present, the real-time congestion adjustment of key sections of large power grids mainly adopts the optimization dispatching method based on ultra-short-term new energy forecast. The current adjustment method mainly includes two steps: ultra-short-term new energy power forecast and real-time congestion adjustment optimization modeling. Since the meteorological data in the current power grid dispatching operation generally do not have the conditions for real-time update, the ultra-short-term new energy power forecast is mainly based on the real-time power of new energy and the day-ahead power forecast curve, and a rolling update forecast is carried out. The real-time congestion adjustment optimization modeling is based on the distribution characteristics of the power grid flow transfer, with the best adjustment economy as the optimization goal, to construct the AGC unit power output adjustment optimization model, and by solving the model, the real-time congestion adjustment strategy of the key section is calculated.
[0004] However, the current real-time congestion adjustment method has two key problems: (1) The decision-making process is long and inefficient. The current optimization dispatch method based on ultra-short-term new energy prediction mainly includes two steps: ultra-short-term new energy power prediction and real-time congestion adjustment optimization modeling. The actual operating status is not directly used for adjustment strategy formulation, but is used for prediction analysis first, resulting in a long overall process. Moreover, since the power grid flow distribution is essentially a highly nonlinear problem, the real-time congestion adjustment optimization model is generally a nonlinear programming problem, and the solution efficiency is difficult to guarantee. (2) The decision result and the actual execution effect are not closed-loop feedback, and the control effectiveness is difficult to guarantee. The current real-time congestion adjustment method does not form a closed loop between adjustment strategy formulation and actual execution, and the strategy execution effect is not used to improve the strategy formulation method. Therefore, the effectiveness of the above adjustment method depends on the accuracy of the real-time congestion adjustment optimization model. If a special operation mode of the power grid is encountered, the control effectiveness is difficult to guarantee. Summary of the invention
[0005] The embodiments of the present invention provide a real-time congestion adjustment method, device and medium for key sections of a power grid. The reward function is designed considering the over-limit time in an actual execution cycle, and a real-time congestion adjustment intelligent body is constructed to achieve closed-loop control from actual operation to the adjustment strategy, thereby avoiding the problems of long decision-making process based on ultra-short-term new energy prediction and adjustment methods, and effectively improving decision-making efficiency.
[0006] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application provides a method for real-time congestion adjustment of a key section of a power grid, the method comprising:
[0007] Constructing a real-time congestion adjustment environment variable set and a real-time congestion adjustment action space; the real-time congestion adjustment environment variable set refers to a set of external environment characteristic indicators based on which the real-time congestion adjustment agent makes decisions; the real-time congestion adjustment action space refers to a set of results after normalization processing of the automatic generation control AGC unit power generation output instructions;
[0008] Constructing a real-time congestion adjustment reward function according to the actual over-limit time value and the adjustment amplitude values of the power generation output instructions of the multiple AGC units;
[0009] Dynamically updating the action decision function of the real-time congestion adjustment agent according to the real-time congestion adjustment reward function, the real-time congestion adjustment environment variable set and the real-time congestion adjustment action space;
[0010] The action decision function and the actual environmental variables of the power grid are combined to obtain a real-time blocking adjustment value, and the power generation power of the AGC unit is adjusted according to the real-time blocking adjustment value.
[0011] In a possible implementation manner of the first aspect, constructing the real-time blocking adjustment environment variable set specifically includes:
[0012] Select the grid operation characteristic variables that affect the real-time blocking adjustment of key sections of the grid according to the grid operation status;
[0013] The power grid operation characteristic variables are normalized and dimensionless processed to obtain a real-time congestion adjustment environment variable set.
[0014] In a possible implementation of the first aspect, the grid operation characteristic variables include the current coordinated load, the current new energy power, the current key section flow, the predicted coordinated load at the next decision moment, the predicted new energy power at the next decision moment, and the predicted key section flow at the next decision moment.
[0015] In a possible implementation manner of the first aspect, constructing the real-time blocking adjustment action space specifically includes:
[0016] The AGC units whose power flow transfer distribution factor value exceeds the preset distribution limit are included in the multiple AGC units in operation;
[0017] The multiple AGC unit power generation output instructions that are in effect are dimensionally processed and discretized to obtain a real-time blocking adjustment action space.
[0018] In a possible implementation of the first aspect, dimensionless processing of the power generation output instructions of the multiple AGC units in effect specifically includes:
[0019] A plurality of ratios of the current power output command value of each AGC unit and the power output plan value of each AGC unit at that moment are taken as dimensionless results.
[0020] In a possible implementation of the first aspect, constructing a real-time congestion adjustment reward function according to the actual over-limit time value and the multiple AGC unit power generation output instruction adjustment amplitude values specifically includes:
[0021] The inverse of the sum of the actual over-limit time value within the decision period and the value of the adjustment amplitude of the power generation output command of the multiple AGC units in effect is used as the function value of the real-time congestion adjustment reward function.
[0022] In a possible implementation manner of the first aspect, dynamically updating the action decision function of the real-time congestion adjustment agent according to the real-time congestion adjustment reward function, the real-time congestion adjustment environment variable set, and the real-time congestion adjustment action space specifically includes:
[0023] constructing a state-action relationship function according to the real-time blocking adjustment reward function, the real-time blocking adjustment environment variable set, and the real-time blocking adjustment action space;
[0024] Adjust the interaction between the agent and the environment according to the real-time blocking, and dynamically update the state-action relationship function;
[0025] The maximum value of the state-action relationship function is used as the function value of the action decision function of the real-time blocking adjustment agent.
[0026] In a possible implementation manner of the first aspect, combining the action decision function and the actual environmental variables of the power grid to obtain a real-time blockage adjustment value, and adjusting the power generation power of the AGC unit according to the real-time blockage adjustment value specifically includes:
[0027] Normalizing the actual environmental variables of the power grid required in the agent application phase, and inputting the normalized actual environmental variables of the power grid into the action decision function of the real-time congestion adjustment agent to obtain the discrete value of the AGC unit power generation output instruction;
[0028] The discrete value of the AGC unit power generation output instruction is denormalized to obtain a real-time blockage adjustment value, and the power generation power of the AGC unit is adjusted according to the real-time blockage adjustment value.
[0029] A second aspect of an embodiment of the present application provides a real-time blocking adjustment device for a key section of a power grid, comprising:
[0030] The variable set module is used to construct a real-time congestion adjustment environment variable set and a real-time congestion adjustment action space; the real-time congestion adjustment environment variable set refers to a set of external environment characteristic indicators based on which the real-time congestion adjustment agent makes decisions; the real-time congestion adjustment action space refers to a set of results after normalization processing of the automatic generation control AGC unit power output instructions;
[0031] A reward function module, used to construct a real-time congestion adjustment reward function according to an actual over-limit time value and a plurality of AGC unit power generation output command adjustment amplitude values;
[0032] A decision function module, used for dynamically updating the action decision function of the real-time congestion adjustment agent according to the real-time congestion adjustment reward function, the real-time congestion adjustment environment variable set and the real-time congestion adjustment action space;
[0033] The adjustment module is used to combine the action decision function and the actual environmental variables of the power grid to obtain a real-time blockage adjustment value, and adjust the power generation power of the AGC unit according to the real-time blockage adjustment value.
[0034] A third aspect of an embodiment of the present application provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute the real-time blocking adjustment method for key sections of the power grid as described above.
[0035] The fourth aspect of an embodiment of the present application provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the 5G macro base station optimization scheduling method based on statistical analysis as described above when executing the computer program.
[0036] Compared with the prior art, the real-time congestion adjustment method, device and medium for key sections of the power grid provided in the embodiments of the present invention construct a real-time congestion adjustment environment variable set and a real-time congestion adjustment action space; then, a real-time congestion adjustment reward function is constructed according to the actual over-limit time value and the adjustment amplitude values of the power generation output instructions of multiple AGC units; and then, according to the real-time congestion adjustment reward function, the real-time congestion adjustment environment variable set and the real-time congestion adjustment action space, the action decision function of the real-time congestion adjustment agent is dynamically updated.
[0037] Since the over-limit time in the actual execution cycle is fully considered in the design of the reward function, the safety of system operation is guaranteed. Then, a real-time congestion adjustment agent is constructed based on the reward function, and the state-action relationship function is dynamically updated according to the interaction between the real-time congestion adjustment agent and the environment; and the maximum value of the state-action relationship function is used as the function value of the action decision function of the real-time congestion adjustment agent, thereby realizing the closed-loop control from actual operation to the adjustment strategy, and the process of updating the action decision function reflects the closed-loop control update process of the adjustment strategy. By adopting the embodiment of the present invention, the actual operating state of the power grid is directly used for the formulation of the adjustment strategy, avoiding the problems of long decision-making process based on the ultra-short-term new energy prediction adjustment method, effectively improving the decision-making efficiency, and the decision result and the actual execution effect form a closed-loop feedback, and the control accuracy of real-time congestion of key sections is also improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a flow chart of a method for real-time congestion adjustment of a key section of a power grid provided by an embodiment of the present invention;
[0039] Figure 2 It is a structural schematic diagram of a real-time blocking adjustment device for a key section of a power grid provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] See also Figure 1 An embodiment of the present invention provides a method for real-time blockage adjustment of a key section of a power grid, the method comprising:
[0042] S10. Construct a real-time congestion adjustment environment variable set and a real-time congestion adjustment action space; the real-time congestion adjustment environment variable set refers to the set of external environment characteristic indicators on which the real-time congestion adjustment agent makes decisions; the real-time congestion adjustment action space refers to the result set after the normalization processing of the automatic generation control AGC unit power generation output instruction.
[0043] S11. Constructing a real-time congestion adjustment reward function according to the actual over-limit time value and the power generation output instruction adjustment amplitude values of the plurality of AGC units.
[0044] S12. Dynamically update the action decision function of the real-time congestion adjustment agent according to the real-time congestion adjustment reward function, the real-time congestion adjustment environment variable set and the real-time congestion adjustment action space.
[0045] S13. Combining the action decision function with actual environmental variables of the power grid, a real-time congestion adjustment value is obtained, and the power generation power of the AGC unit is adjusted according to the real-time congestion adjustment value.
[0046] It should be noted that the real-time congestion adjustment environment variables refer to the external environment characteristic indicators on which the decision-making of the intelligent agent in reinforcement learning is based. In order to determine the real-time congestion adjustment environment variables, the tasks of the relevant technical features in S10 include determining the environmental variable indicators, normalizing the environmental variable indicators, and constructing the environmental variable set. The real-time congestion adjustment action space refers to the set of actions that can be adopted by the real-time congestion adjustment intelligent agent. The purpose of constructing the action set is to identify the active AGC units based on the flow transfer distribution factors between the AGC units and the key sections, and to construct the real-time congestion adjustment action space. The relevant technical features in S10 include three tasks: identification of active AGC units, normalization of AGC unit actions, and construction of action space.
[0047] The real-time congestion adjustment reward function refers to the function that the reinforcement learning agent uses to adjust the execution strategy according to the actual execution effect. The reward function design of the real-time congestion adjustment agent for key sections of the large power grid needs to consider both the actual over-limit time and the adjustment range of the power output command of the active AGC unit. The actual over-limit time reflects the safety of the section congestion adjustment, while the adjustment range of the power output command of the active AGC unit reflects the economy of the section congestion adjustment.
[0048] The real-time blocking adjustment agent is a model-free machine learning algorithm. During the agent training process, the state-action function is dynamically updated according to the interaction between the agent and the environment to update the agent's action strategy. S12 is the training process of the real-time blocking adjustment agent.
[0049] Finally, in S13, the trained real-time congestion adjustment agent is used to adjust the real-time congestion of the key sections of the large power grid. This step includes three tasks: normalization of the actual environmental variables of the power grid, output of the congestion adjustment strategy, and denormalization of the discrete values of the AGC unit power generation output instructions. The so-called normalization and denormalization are essentially the process of converting continuous variables and discrete variables. Normalization is the conversion of continuous variables into discrete variables, and vice versa. The flow and output processed by the real-time congestion adjustment of the key sections of the large power grid are all continuous variables. The real-time congestion adjustment agent can only handle discrete data problems. Therefore, in the process of agent training, it is necessary to use a normalization processing method to convert continuous variables into discrete variables, and the control signal output during the application is still a discrete variable, which needs to be converted into a continuous variable to meet the actual application needs.
[0050] Exemplarily, the construction of real-time blocking and adjusting the environment variable set specifically includes:
[0051] S101. Selecting grid operation characteristic variables that affect real-time congestion adjustment of key sections of the grid according to grid operation conditions.
[0052] S102: normalizing and dimensionless processing the power grid operation characteristic variables to obtain a real-time congestion adjustment environment variable set.
[0053] Exemplarily, the grid operation characteristic variables include the current coordinated load, the current new energy power, the current key section flow, the predicted coordinated load at the next decision moment, the predicted new energy power at the next decision moment, and the predicted key section flow at the next decision moment.
[0054] Preferably, the real-time congestion adjustment environmental variable index needs to select the power grid operation characteristic variable that has the greatest impact on the real-time congestion adjustment of the key section of the large power grid. Since the training effect will be significantly reduced when there are too many environmental variables during the training of the reinforcement learning agent, this patent selects the current moment t to coordinate the load Current time t New energy power Current time t key section flow The next decision time t+ΔT predicted unified load The next decision time t+ΔT predicts the new energy power Predict the key section flow at the next decision time t+ΔT Among the above six environmental variable indicators, the current time t coordinated load Current time t New energy power Current time t key section flow It is derived from the real-time operation data collected by the power grid, which can be directly output by the energy management system to predict the coordinated load at the next decision time t+ΔT. Next decision time t+ΔT predicted new energy power Predict the key section flow at the next decision time t+ΔT It comes from the intraday rolling plan and can also be directly output by the energy management system.
[0055] The normalization processing of real-time blocking adjustment environmental variable indicators refers to the process of converting the above environmental variable indicators belonging to continuous data types into discrete data types by using dimensionless and discretization methods.
[0056] Preferably, the dimensionless conversion of the above indicators is based on the predicted value of the indicator at the current moment as a benchmark, and the dimensionless conversion formula of the real-time blocking adjustment environment variable can be expressed as:
[0057]
[0058] In formula (1), The load at the current moment t is Current time t New energy power Current time t key section flow The next decision time t+ΔT predicted unified load The next decision time t+ΔT predicts the new energy power Predict the key section flow at the next decision time t+ΔT The dimensionless result is They are the predicted values of coordinated load, new energy power and key section flow at the current time t respectively.
[0059] In practical applications, considering that the accuracy of daily rolling load forecasting in my country has reached more than 98%, the accuracy of new energy power forecasting has reached more than 85%, and the power flow margin of key sections is generally 10%, the discretization process stipulates that the dimensionless values that exceed the above-mentioned forecast deviation and margin range in the positive and negative directions are 0 and 10 respectively, and the linear discretization method is used within the above-mentioned forecast deviation and margin range to convert it into a positive integer between 1 and 9. The further discretization formula of the dimensionless values of the above-mentioned environmental variable indicators can be expressed as:
[0060]
[0061] It should be noted that the division of the discretized numerical range is based on two considerations: First, the load forecast, new energy forecast, and key section flow distribution involved in the discretization process do not have a symmetrical distribution pattern. This feature determines that the discretization result in the formula is divided into 9 levels (0-9) when the value is less than 1, and the discretization result is greater than 1 but only 1 level (10) is divided. The division method does not affect the result; Second, the discretization result is related to the processing power of the reinforcement learning agent. Generally speaking, the finer the discretization, that is, the more discrete values, the more accurate the approximation of the original continuous variable, but the greater the difficulty of reinforcement learning training. Therefore, it is necessary to comprehensively consider the two factors. According to the actual acceptance capacity of reinforcement learning training, the general discretization value can only reach 10-11. For this reason, this patent discretizes the three variables of load forecast, new energy forecast, and key section flow into 1-9 in an average manner within the range of change.
[0062] As mentioned above, the accuracy of daily rolling load forecasting in my country has reached more than 98%, the accuracy of new energy power forecasting has reached more than 85%, and the power flow margin of key sections is generally 10%, which means that the values of the above three indicators are basically within the range of ±2%, ±15%, and ±10%. I % are set to 2%, 15%, and 10% respectively, which can ensure the quality of the discretized data.
[0063] Real-time blocking and adjusting the environment variable set is the process of forming a set of the above-mentioned normalized environment variable indicators. The environment variable set can be expressed as in The load at the current moment t is New energy power at current time t Current time t key section flow The next decision time t+ΔT predicted unified load The next decision time t+ΔT predicts the new energy power Predict the key section flow at the next decision time t+ΔT Discretization results.
[0064] Exemplarily, the constructing of the real-time blocking adjustment action space specifically includes:
[0065] S103, including the AGC units whose power flow transfer distribution factor values exceed the preset distribution limit into the multiple AGC units in operation.
[0066] S104, performing dimensionless processing and discretization processing on the power generation output instructions of the multiple AGC units in effect to obtain a real-time blocking adjustment action space.
[0067] Generally speaking, the identification of active AGC units is based on the numerical value of the power flow transfer distribution factor of the AGC unit and the key section. The AGC units with power flow transfer distribution factor values exceeding the limit are included in the category of active AGC units. The determination formula can be expressed as:
[0068] |D g,s |≥D set (3)
[0069] In formula (3), D g,s is the power flow transfer distribution factor between AGC unit g and key section s, D set is the judgment limit, | | means taking its absolute value.
[0070] Exemplarily, the dimensionless processing of the power generation output instructions of the multiple AGC units in effect specifically includes:
[0071] A plurality of ratios of the power generation output command value of each AGC unit at the current moment and the power generation output plan value of each AGC unit at the same moment are taken as dimensionless results.
[0072] The dimensionless conversion of the AGC unit power output command is based on the unit power output plan. The dimensionless conversion formula of the AGC unit power output command can be expressed as:
[0073]
[0074] In formula (4), are the power output command value and dimensionless result of AGC unit g at the current time t, It is the planned power output value of the AGC unit at that moment.
[0075] Preferably, the discretization of the AGC unit power output command is a process of converting the dimensionless result of the AGC unit power output into an integer between -4 and 4 in a linear discrete manner within the AGC response range. The discretization formula can be expressed as:
[0076]
[0077] Since the real-time congestion adjustment agent can only solve discrete numerical problems, and the physical quantities such as flow and output in the real-time congestion adjustment problem of the key section of the large power grid dealt with in this application are all continuous variables, they must be discretized. Formula (5) is the discretization formula proposed by this patent. During the discretization process, this patent adopts the average distribution discretization method to correspond the variable change range to a discrete value on average. The discrete value range is limited by the data processing capability of the real-time congestion adjustment agent. Generally, the maximum discrete value is 10-11, and the embodiment of the present invention selects 9 from them.
[0078] In formula (5), is the discretization result of the power generation output command of the AGC unit g at the current time t, are the dimensionless results corresponding to the upper and lower limits of the response range of the AGC unit g at the current time t, is the dimensionless result of the AGC unit g response range, that is, and difference.
[0079] Preferably, the real-time blocking adjustment action space is constructed by normalizing the power output instructions of the active AGC units, which can be expressed as in They are the normalized processing results of the power output instructions of the functional AGC units, and N is the number of functional AGC units.
[0080] Exemplarily, the real-time congestion adjustment reward function is constructed according to the actual over-limit time value and the multiple AGC unit power generation output command adjustment amplitude values, specifically including:
[0081] The inverse of the sum of the actual over-limit time value within the decision period and the value of the adjustment amplitude of the power generation output command of the multiple AGC units in effect is used as the function value of the real-time congestion adjustment reward function.
[0082] The real-time congestion adjustment reward function considering the real-time limit crossing time can be expressed as:
[0083]
[0084] R, also known as the reward function, is the basis for the reinforcement learning agent to improve its execution strategy. The process of real-time congestion adjustment agent training is essentially the process of constantly seeking to maximize the reward function. The goal of the real-time congestion adjustment method for key sections of large power grids involved in this application is that the control strategy can ensure that the section out-of-limit time is minimized in the next operating cycle, and the adjustment range of the AGC unit's power output is minimized. Minimum out-of-limit time is a manifestation of the safety of system operation; and minimum adjustment range of the AGC unit's power output is a manifestation of the economy of system operation. Considering that both of the above goals are minimization, and the goal in reward function training is maximization, a "minus" sign is added before the two goals to take the opposite number.
[0085] In formula (6), R is the real-time congestion adjustment reward function considering the real-time limit crossing time, t lim is the actual crossing time within the decision period range ΔT, Adjustment range of the power output command of the AGC unit
[0086] Exemplarily, dynamically updating the action decision function of the real-time congestion adjustment agent according to the real-time congestion adjustment reward function, the real-time congestion adjustment environment variable set and the real-time congestion adjustment action space specifically includes:
[0087] S120: construct a state-action relationship function according to the real-time congestion adjustment reward function, the real-time congestion adjustment environment variable set, and the real-time congestion adjustment action space.
[0088] S121. Adjust the interaction between the agent and the environment according to the real-time blocking, and dynamically update the state-action relationship function.
[0089] S122. Taking the maximum value of the state-action relationship function as the function value of the action decision function of the real-time blocking adjustment agent.
[0090] Preferably, the state-action relationship function update formula can be expressed as:
[0091] Q(s,a)=Q(s,a)+α(R+γQ(s',a')-Q(s,a)) (7)
[0092] In formula (7), Q(s,a) is the state-action function, s is the environment variable, a is the action space, s' and a' are the values of the environment variables and action space before iteration during the training process, respectively; α is the update step size, which is generally taken as 0.1; γ is the reward discount, which is generally taken as 0.5.
[0093] It should be noted that the process of updating the agent's decision strategy according to the state-action relationship function is actually the process of replacing the current decision strategy with the maximum value of the state-action relationship function, which can be expressed as:
[0094] π(s)=arg maxQ(s,a) (8)
[0095] In formula (8), π(s) is the decision strategy of the agent under the environment variable s, and arg maxQ(s,a) is the action strategy with the largest expected action space under all environment variables.
[0096] Exemplarily, the combining the action decision function and the actual environment variables of the power grid to obtain a real-time blockage adjustment value, and adjusting the power generation power of the AGC unit according to the real-time blockage adjustment value specifically includes:
[0097] S130, normalizing the actual environmental variables of the power grid required in the agent application phase, and inputting the normalized actual environmental variables of the power grid into the action decision function of the real-time blocking adjustment agent to obtain discrete values of the power generation output command of the AGC unit.
[0098] S131, denormalizing the discrete value of the AGC unit power generation output instruction to obtain a real-time blockage adjustment value, and adjusting the power generation power of the AGC unit according to the real-time blockage adjustment value.
[0099] The actual environmental variable normalization of the power grid is the process of obtaining environmental variables based on the actual power grid operation data and normalizing them. Refer to the environmental variable normalization step in step 1 to obtain the current time t coordinated load New energy power at current time t Current time t key section flow The next decision time t+ΔT predicted unified load The next decision time t+ΔT predicts the new energy power Predict the key section flow at the next decision time t+ΔT The current time t unified load forecast value New energy power prediction at current time t Current time t key section flow prediction value By referring to equations (1)-(2), the actual grid environment variables s required for the intelligent agent application phase can be calculated.
[0100] Preferably, the trained real-time congestion adjustment agent is used to directly output the AGC unit power generation output instruction according to the actual environmental variables of the power grid. The formula is:
[0101] a=π(s) (9)
[0102] It should be noted that the discrete value of the AGC unit power output command can be understood as the discrete value of the unit power generation power.
[0103] Since the action output by the blocking adjustment strategy is the discretization result of the AGC unit power output instruction, in order to meet the actual adjustment needs, it should be denormalized, that is, converted into power output value. The denormalization formula can be expressed as:
[0104]
[0105] In formula (10), That is the power generation output command of the AGC unit g at time t.
[0106] Compared with the prior art, the real-time congestion adjustment method for key sections of the power grid provided in the above-mentioned embodiment constructs a real-time congestion adjustment environment variable set and a real-time congestion adjustment action space; then, a real-time congestion adjustment reward function is constructed according to the actual over-limit time value and the adjustment amplitude values of the power generation output instructions of multiple AGC units; and then, according to the real-time congestion adjustment reward function, the real-time congestion adjustment environment variable set and the real-time congestion adjustment action space, the action decision function of the real-time congestion adjustment agent is dynamically updated.
[0107] Since the over-limit time in the actual execution cycle is fully considered in the design of the reward function, the safety of system operation is guaranteed. Then, a real-time congestion adjustment agent is constructed based on the reward function, and the state-action relationship function is dynamically updated according to the interaction between the real-time congestion adjustment agent and the environment; and the maximum value of the state-action relationship function is used as the function value of the action decision function of the real-time congestion adjustment agent, thereby realizing the closed-loop control from actual operation to the adjustment strategy, and the process of updating the action decision function reflects the closed-loop control update process of the adjustment strategy. By adopting the embodiment of the present invention, the actual operating state of the power grid is directly used for the formulation of the adjustment strategy, avoiding the problems of long decision-making process based on the ultra-short-term new energy prediction adjustment method, effectively improving the decision-making efficiency, and the decision result and the actual execution effect form a closed-loop feedback, and the control accuracy of real-time congestion of key sections is also improved.
[0108] See also Figure 2 A second aspect of an embodiment of the present application provides a real-time congestion adjustment device for a key section of a power grid, comprising: a variable set module 20, a reward function module 21, a decision function module 22 and an adjustment module 23.
[0109] The variable set module 20 is used to construct a real-time congestion adjustment environment variable set and a real-time congestion adjustment action space; the real-time congestion adjustment environment variable set refers to the set of external environment characteristic indicators based on which the real-time congestion adjustment agent makes decisions; the real-time congestion adjustment action space refers to the result set after the normalization processing of the automatic power generation control AGC unit power generation output instruction.
[0110] The reward function module 21 is used to construct a real-time congestion adjustment reward function according to the actual over-limit time value and the adjustment amplitude values of the power generation output instructions of the multiple AGC units.
[0111] The decision function module 22 is used to dynamically update the action decision function of the real-time congestion adjustment agent according to the real-time congestion adjustment reward function, the real-time congestion adjustment environment variable set and the real-time congestion adjustment action space.
[0112] The adjustment module 23 is used to combine the action decision function and the actual environmental variables of the power grid to obtain a real-time blockage adjustment value, and adjust the power generation power of the AGC unit according to the real-time blockage adjustment value.
[0113] Compared with the prior art, the real-time congestion adjustment device for key sections of a power grid provided in an embodiment of the present invention constructs a real-time congestion adjustment environment variable set and a real-time congestion adjustment action space; then, a real-time congestion adjustment reward function is constructed according to the actual over-limit time value and the adjustment amplitude values of the power generation output instructions of multiple AGC units; and then, according to the real-time congestion adjustment reward function, the real-time congestion adjustment environment variable set and the real-time congestion adjustment action space, the action decision function of the real-time congestion adjustment agent is dynamically updated.
[0114] Since the over-limit time in the actual execution cycle is fully considered in the design of the reward function, the safety of system operation is guaranteed. Then, a real-time congestion adjustment agent is constructed based on the reward function, and the state-action relationship function is dynamically updated according to the interaction between the real-time congestion adjustment agent and the environment; and the maximum value of the state-action relationship function is used as the function value of the action decision function of the real-time congestion adjustment agent, thereby realizing the closed-loop control from actual operation to the adjustment strategy, and the process of updating the action decision function reflects the closed-loop control update process of the adjustment strategy. By adopting the embodiment of the present invention, the actual operating state of the power grid is directly used for the formulation of the adjustment strategy, avoiding the problems of long decision-making process based on the ultra-short-term new energy prediction adjustment method, effectively improving the decision-making efficiency, and the decision result and the actual execution effect form a closed-loop feedback, and the control accuracy of real-time congestion of key sections is also improved.
[0115] A third aspect of an embodiment of the present application provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute the real-time blocking adjustment method for key sections of the power grid as described above.
[0116] Preferably, the computer program can be divided into one or more modules / units (such as computer program, computer program), and the one or more modules / units are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.
[0117] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor. The processor is the control center of the terminal device, and various parts of the terminal device are connected using various interfaces and lines.
[0118] The memory mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function, etc., and the data storage area can store related data, etc. In addition, the memory can be a high-speed random access memory, or a non-volatile memory, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, and a flash card (Flash Card), etc., or the memory can also be other volatile solid-state storage devices.
[0119] It should be noted that the above-mentioned terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that the above-mentioned terminal device is merely an example and does not constitute a limitation on the terminal device. It may include more or fewer components, or a combination of certain components, or different components.
[0120] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for real-time congestion adjustment of key sections of a power grid, characterized in that: include: Construct a real-time congestion adjustment environment variable set and a real-time congestion adjustment action space; the real-time congestion adjustment environment variable set refers to the set of external environment characteristic indicators based on which the real-time congestion adjustment intelligent body makes decisions; the real-time congestion adjustment action space refers to the result set of normalized processing of the power generation output instructions of the automatic generation control AGC unit that plays a role in power flow transfer; the construction of the real-time congestion adjustment environment variable set includes: selecting the power grid operation characteristic variables that affect the real-time congestion adjustment of the key sections of the power grid according to the power grid operation status; normalizing and dimensionless processing the power grid operation characteristic variables to obtain the real-time congestion adjustment environment variable set; the power grid operation characteristic variables include the current coordinated load, the current new energy power, the current The key section flow at the moment, the unified dispatching load predicted at the next decision moment, the new energy power predicted at the next decision moment, and the key section flow predicted at the next decision moment; the construction of the real-time blocking adjustment action space specifically includes: the AGC unit whose flow transfer distribution factor value exceeds the preset distribution limit is included in the multiple AGC units that are in effect; the power generation output instructions of the multiple AGC units in effect are dimensionally processed and discretized to obtain the real-time blocking adjustment action space; the dimensionally processed power generation output instructions of the multiple AGC units in effect specifically includes: taking the multiple ratios of the power generation output instruction value of each AGC unit at the current moment and the power generation output plan value of each AGC unit at that moment as the dimensionless result; According to the actual over-limit time value and the power output command adjustment amplitude values of the multiple AGC units, a real-time congestion adjustment reward function is constructed, specifically comprising: taking the inverse of the sum of the actual over-limit time value and the power output command adjustment amplitude values of the multiple AGC units in effect and the value within the decision period as the function value of the real-time congestion adjustment reward function; According to the real-time congestion adjustment reward function, the real-time congestion adjustment environment variable set and the real-time congestion adjustment action space, the action decision function of the real-time congestion adjustment agent is dynamically updated, specifically including: constructing a state-action relationship function according to the real-time congestion adjustment reward function, the real-time congestion adjustment environment variable set and the real-time congestion adjustment action space; dynamically updating the state-action relationship function according to the interaction between the real-time congestion adjustment agent and the environment; taking the maximum value of the state-action relationship function as the function value of the action decision function of the real-time congestion adjustment agent; Combining the action decision function and the actual environmental variables of the power grid, a real-time congestion adjustment value is obtained, and the power generation power of the AGC unit is adjusted according to the real-time congestion adjustment value, specifically including: normalizing the actual environmental variables of the power grid required in the intelligent agent application phase, and inputting the normalized actual environmental variables of the power grid into the action decision function of the real-time congestion adjustment intelligent agent to obtain the discrete value of the power generation output instruction of the AGC unit; de-normalizing the discrete value of the power generation output instruction of the AGC unit to obtain the real-time congestion adjustment value, and adjusting the power generation power of the AGC unit according to the real-time congestion adjustment value.
2. A real-time blocking adjustment device for key sections of a power grid, characterized in that: include: A variable set module is used to construct a real-time congestion adjustment environment variable set and a real-time congestion adjustment action space; the real-time congestion adjustment environment variable set refers to a set of external environment characteristic indicators based on which the real-time congestion adjustment agent makes decisions; the real-time congestion adjustment action space refers to a set of results after normalization of the power generation output instructions of the automatic power generation control AGC unit that plays a role; the construction of the real-time congestion adjustment environment variable set includes: selecting power grid operation characteristic variables that affect the real-time congestion adjustment of key sections of the power grid according to the power grid operation status; normalizing and dimensionless processing the power grid operation characteristic variables to obtain the real-time congestion adjustment environment variable set; the power grid operation characteristic variables include the current coordinated load, the current new energy power , the current key section flow, the next decision moment predicted unified dispatching load, the next decision moment predicted new energy power and the next decision moment predicted key section flow; the construction of real-time blocking adjustment action space specifically includes: incorporating the AGC units whose flow transfer distribution factor values exceed the preset distribution limit into the multiple AGC units in action; performing dimensionless processing and discretization processing on the power generation output instructions of the multiple AGC units in action to obtain the real-time blocking adjustment action space; the dimensionless processing of the power generation output instructions of the multiple AGC units in action specifically includes: taking multiple ratios of the power generation output instruction values of each AGC unit at the current moment and the power generation output plan values of each AGC unit at that moment as dimensionless results; The reward function module is used to construct a real-time congestion adjustment reward function according to the actual over-limit time value and the multiple AGC unit power generation output command adjustment amplitude values, specifically including: taking the inverse of the sum of the actual over-limit time value and the multiple AGC unit power generation output command adjustment amplitude values and values within the decision period as the function value of the real-time congestion adjustment reward function; A decision function module is used to dynamically update the action decision function of the real-time congestion adjustment agent according to the real-time congestion adjustment reward function, the real-time congestion adjustment environment variable set and the real-time congestion adjustment action space, specifically comprising: taking the opposite of the sum of the actual over-limit time value and the sum of the adjustment amplitude values and values of the power generation output instructions of the multiple AGC units in effect within the decision period as the function value of the real-time congestion adjustment reward function; The adjustment module is used to combine the action decision function and the actual environmental variables of the power grid to obtain a real-time congestion adjustment value, and adjust the power generation power of the AGC unit according to the real-time congestion adjustment value, specifically including: normalizing the actual environmental variables of the power grid required in the intelligent agent application phase, and inputting the normalized actual environmental variables of the power grid into the action decision function of the real-time congestion adjustment intelligent agent to obtain the discrete value of the power generation output instruction of the AGC unit; denormalizing the discrete value of the power generation output instruction of the AGC unit to obtain the real-time congestion adjustment value, and adjusting the power generation power of the AGC unit according to the real-time congestion adjustment value.
3. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program; wherein, when the computer program is run, it controls the device where the computer-readable storage medium is located to execute the real-time blocking adjustment method for key sections of a power grid as claimed in claim 1.
