New energy consumption capability rapid evaluation method and system based on security reinforcement learning
By using a method based on security reinforcement learning and using a cost-flexible action-evaluation strategy model to evaluate new energy consumption capabilities, the problem of long calculation time and inaccuracy in the existing technology is solved, and a fast and accurate assessment of new energy consumption capabilities is achieved. .
Patent Information
- Application Number
- CN202410612915.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-09-24
AI Technical Summary
Existing new energy accommodation capacity assessment methods rely on numerical analysis, which takes a long time to calculate and is not accurate enough, making it difficult to adapt to the uncertainty of new energy output and load fluctuations.
Using a method based on security reinforcement learning, through a pre-trained cost-flexible action-evaluation strategy model, historical data in new energy consumption scenarios are used to predict actions, calculate consumption rates and evaluate consumption capabilities, simplifying the calculation process and improving accuracy.
It shortens the calculation time of new energy consumption rate, enhances the flexibility and response speed of the power system, and ensures the accurate assessment of new energy consumption capacity.
Smart Images

Figure CN118693790A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of new energy consumption assessment, and in particular to a method and system for quickly assessing new energy consumption capacity based on safety reinforcement learning. Background Art
[0002] At present, with the rise of new energy sources such as wind power and photovoltaic power, a large number of wind farms and photovoltaic power plants have been connected to the grid, and the proportion of new energy power sources in the grid has increased significantly. However, the characteristics of this type of new energy power generation are significantly different from conventional power generation methods, such as large uncertainty and rapid fluctuations in power generation. At the same time, the power generation of new energy is mainly related to the natural conditions at the current moment, which makes the regulation ability of new energy poor and the system inertia low. Based on the above two characteristics, it is very difficult to maintain the balance between load demand and power supply in the grid containing a large number of new energy power sources. Since new energy such as wind power output and photovoltaic output are mainly affected by natural conditions, such as wind speed and light intensity in a certain place, and these conditions are difficult to predict under the current method, the uncertainty of new energy output needs to be considered when solving the unit combination problem. There are two main solutions to the problem of uncertain unit combination for new energy grid connection at home and abroad: random unit combination and robust unit combination. Random unit combination requires the selection of representative wind power output curves to construct a scenario set, which requires high prior knowledge, and it is difficult to select enough wind power output curves to fully summarize the wind power processing characteristics. Although the robust unit combination can ensure a safer startup plan for conventional units, it often gives a more conservative plan, which corresponds to a lower new energy consumption rate.
[0003] The evaluation of new energy absorption capacity is generally based on the absorption volume. At present, the estimation of new energy absorption capacity is generally carried out through the method of time-series production simulation. The time-series production simulation simulates the unit combination plan based on the start and stop mode of conventional units in the regional power grid, the power balance in the power grid, the spare capacity of the regional power grid and other constraints, so as to calculate the maximum new energy absorption capacity of the region at different time scales such as weeks, months and years. This method requires the use of numerical analysis methods for calculation, which takes a long time. At the same time, each regional power grid needs to be recalculated, which leads to inaccurate evaluation of new energy absorption capacity. Summary of the invention
[0004] In order to solve the problem that most existing methods for estimating the absorption capacity of new energy sources use numerical analysis methods for calculation, which takes a long time to calculate and each regional power grid needs to be recalculated, resulting in the problem that the evaluation of the absorption capacity of new energy sources is not accurate enough, the present invention proposes a method for quickly evaluating the absorption capacity of new energy sources based on security reinforcement learning, including:
[0005] Acquire the new energy output data and the power system operation data of the new energy consumption scenario to be evaluated from the new energy consumption scenario set, and use the new energy output data and the power system operation data as the state quantity of the new energy consumption scenario to be evaluated;
[0006] Based on the state quantity of the new energy consumption scenario to be evaluated, the startup state data of various types of generator sets are obtained as the action quantity corresponding to the state quantity by using the action network function in the pre-trained cost-flexible action-evaluation strategy model;
[0007] Determining the unit combination of the new energy consumption scenario based on the action quantity corresponding to the state quantity;
[0008] Based on the unit combination of the new energy consumption scenario, the consumption rate of the new energy consumption scenario is calculated, and the consumption capacity of the new energy consumption scenario is evaluated;
[0009] The cost-flexible action-evaluation strategy model is obtained by training the intelligent agent using the state quantity of the historical moments of the new energy consumption scenario set and the action quantity corresponding to the state quantity as training data.
[0010] Optionally, the cost-flexible action-evaluation strategy model includes the following training process:
[0011] Initialize the state quantity of the new energy consumption scenario set at the historical moment;
[0012] Based on the state quantity at the historical moment, using the action network function, obtaining the action quantity at the historical moment;
[0013] According to the state quantity at the historical moment and the action quantity at the historical moment, the action quantity at the historical moment is corrected to obtain the corrected action quantity at the historical moment;
[0014] Based on the state quantity at the historical moment and the corrected action quantity, the consumption rate of the new energy consumption scenario at the historical moment is obtained, and the reward value at the historical moment is determined according to the consumption rate of the new energy consumption scenario;
[0015] Based on the corrected action amount, obtaining a cost value of the historical moment;
[0016] The reward value at the historical moment is maximized, and the gap between the cost value at the historical moment and the set target cost value is minimized as the optimization goal. The parameters in the agent are updated until the number of training times is reached to obtain a cost-flexible action-evaluation strategy model.
[0017] Optionally, the modifying the action amount at the historical moment according to the state amount at the historical moment and the action amount at the historical moment includes:
[0018] Calculating the backup power grid capacity at the historical moment according to the state quantity at the historical moment and the action quantity at the historical moment;
[0019] The backup grid capacity is compared with the set minimum backup grid capacity. If the backup grid capacity is smaller than the minimum backup grid capacity, the action amount at the historical moment is corrected until the backup grid capacity corresponding to the corrected action amount is larger than the minimum backup grid capacity.
[0020] Optionally, after obtaining the cost value of the historical moment based on the corrected action amount, and before maximizing the reward value of the historical moment and minimizing the gap between the cost value of the historical moment and a set target cost value as the optimization goal, the method further includes:
[0021] The state quantity of the historical moment, the corrected action quantity of the historical moment, the reward value of the historical moment, the cost value of the historical moment and the state quantity of the historical moment corresponding to the next moment constitute the experience data of the historical moment and are stored in the experience pool.
[0022] Optionally, the updating of the parameters in the agent by maximizing the reward value at the historical moment and minimizing the gap between the cost value at the historical moment and the set target cost value as the optimization goal includes:
[0023] Randomly selecting a preset number of experience data from the experience pool;
[0024] The parameters in the intelligent agent are updated using the gradient descent method with the maximization of the reward value at the historical moment and the minimization of the gap between the cost value at the historical moment and the set target cost value as the optimization goal.
[0025] Optionally, the parameters in the agent are updated by the following calculation formula:
[0026]
[0027] Among them, θ′ represents the parameters of the agent after update; θ represents the parameters of the agent before update; λ represents the learning rate; represents the gradient descent operator corresponding to the parameter θ; L(d,θ) represents the loss function value when the parameter of the agent is θ when the corresponding experience data d.
[0028] Optionally, the new energy output data includes: current load power, current tie line power, current wind power theoretical output power and current photovoltaic theoretical output power;
[0029] The power system operation data includes: the maximum number of thermal power units in operation at the current moment, the minimum number of thermal power units in operation at the current moment, the maximum power of thermal power units in operation at the current moment, the minimum power of thermal power units in operation at the current moment, the maximum number of hydropower units in operation at the current moment, the minimum number of hydropower units in operation at the current moment, the maximum power of hydropower units in operation at the current moment, the minimum power of hydropower units in operation at the current moment, the number of thermal power units in operation at the previous moment, and the total number of changes in the number of thermal power units in operation at the current moment;
[0030] The startup status data of the various types of generator sets include: the number of thermal power units started at the current moment, the startup power of the thermal power units at the current moment, the number of hydropower units started at the current moment, and the startup power of the hydropower units at the current moment.
[0031] Optionally, the new energy consumption scenario set includes the following construction process:
[0032] Use new energy time series production simulation software to generate new energy scenario sets;
[0033] Based on the new energy scenario set, a new energy consumption scenario set is constructed in combination with load units, interconnection lines, wind power generation units, photovoltaic power generation units and hydropower generation units.
[0034] Optionally, the action network function is as follows:
[0035] a t =π γ (s t )
[0036] Among them, a t Indicates that the state quantity at time t is s t The output action amount when γ (·) represents the action network function with network parameter γ.
[0037] Based on the same inventive concept, the present invention also provides a new energy consumption capacity rapid evaluation system based on safety reinforcement learning, including:
[0038] Data acquisition module: used to centrally acquire the new energy output data and the power system operation data of the new energy consumption scenario to be evaluated from the new energy consumption scenario, and use the new energy output data and the power system operation data as the state quantity of the new energy consumption scenario to be evaluated;
[0039] Action execution module: based on the state quantity of the new energy consumption scenario to be evaluated, using the action network function in the pre-trained cost-flexible action-evaluation strategy model, to obtain the startup state data of various types of generator sets as the action quantity corresponding to the state quantity;
[0040] Strategy combination module: used to determine the unit combination of the new energy consumption scenario based on the action quantity corresponding to the state quantity;
[0041] Consumption evaluation module: used to calculate the consumption rate of the new energy consumption scenario based on the unit combination of the new energy consumption scenario, and evaluate the consumption capacity of the new energy consumption scenario;
[0042] Among them, the cost flexible action-evaluation strategy model in the action execution module is obtained by training the intelligent agent with the state quantity of the historical moment of the new energy consumption scenario set and the action quantity corresponding to the state quantity as training data.
[0043] Optionally, the cost-flexible action-evaluation strategy model in the action execution module includes the following training process:
[0044] Initialize the state quantity of the new energy consumption scenario set at the historical moment;
[0045] Based on the state quantity at the historical moment, using the action network function, obtaining the action quantity at the historical moment;
[0046] According to the state quantity at the historical moment and the action quantity at the historical moment, the action quantity at the historical moment is corrected to obtain the corrected action quantity at the historical moment;
[0047] Based on the state quantity at the historical moment and the corrected action quantity, the consumption rate of the new energy consumption scenario at the historical moment is obtained, and the reward value at the historical moment is determined according to the consumption rate of the new energy consumption scenario;
[0048] Based on the corrected action amount, obtaining a cost value of the historical moment;
[0049] The reward value at the historical moment is maximized, and the gap between the cost value at the historical moment and the set target cost value is minimized as the optimization goal. The parameters in the agent are updated until the number of training times is reached to obtain a cost-flexible action-evaluation strategy model.
[0050] Optionally, the action execution module corrects the action amount at the historical moment according to the state amount at the historical moment and the action amount at the historical moment, including:
[0051] Calculating the backup power grid capacity at the historical moment according to the state quantity at the historical moment and the action quantity at the historical moment;
[0052] The backup grid capacity is compared with the set minimum backup grid capacity. If the backup grid capacity is smaller than the minimum backup grid capacity, the action amount at the historical moment is corrected until the backup grid capacity corresponding to the corrected action amount is larger than the minimum backup grid capacity.
[0053] Optionally, after obtaining the cost value of the historical moment based on the corrected action amount in the action execution module, and before maximizing the reward value of the historical moment and minimizing the gap between the cost value of the historical moment and a set target cost value as the optimization goal, the method further includes:
[0054] The state quantity of the historical moment, the corrected action quantity of the historical moment, the reward value of the historical moment, the cost value of the historical moment and the state quantity of the historical moment corresponding to the next moment constitute the experience data of the historical moment and are stored in the experience pool.
[0055] Optionally, the action execution module updates the parameters in the agent by maximizing the reward value at the historical moment and minimizing the gap between the cost value at the historical moment and the set target cost value as the optimization goal, including:
[0056] Randomly selecting a preset number of experience data from the experience pool;
[0057] The reward value at the historical moment is maximized, and the gap between the cost value at the historical moment and the set target cost value is minimized as the optimization goal, and the parameters in the intelligent agent are updated using the gradient descent method.
[0058] Optionally, the parameters in the agent in the action execution module are updated by the following calculation formula:
[0059]
[0060] Among them, θ′ represents the parameters of the agent after update; θ represents the parameters of the agent before update; λ represents the learning rate; represents the gradient descent operator corresponding to the parameter θ; L(d,θ) represents the loss function value when the parameter of the agent is θ when the corresponding experience data d.
[0061] Optionally, the new energy output data in the data acquisition module includes: current load power, current tie line power, current wind power theoretical output power and current photovoltaic theoretical output power;
[0062] The power system operation data includes: the maximum number of thermal power units in operation at the current moment, the minimum number of thermal power units in operation at the current moment, the maximum power of thermal power units in operation at the current moment, the minimum power of thermal power units in operation at the current moment, the maximum number of hydropower units in operation at the current moment, the minimum number of hydropower units in operation at the current moment, the maximum power of hydropower units in operation at the current moment, the minimum power of hydropower units in operation at the current moment, the number of thermal power units in operation at the previous moment, and the total number of changes in the number of thermal power units in operation at the current moment;
[0063] The startup status data of the various types of generator sets include: the number of thermal power units started at the current moment, the startup power of the thermal power units at the current moment, the number of hydropower units started at the current moment, and the startup power of the hydropower units at the current moment.
[0064] Optionally, the new energy consumption scenario set in the data acquisition module includes the following construction process:
[0065] Use new energy time series production simulation software to generate new energy scenario sets;
[0066] Based on the new energy scenario set, a new energy consumption scenario set is constructed in combination with load units, interconnection lines, wind power generation units, photovoltaic power generation units and hydropower generation units.
[0067] Optionally, the action network function in the action execution module is as follows:
[0068] a t =π γ (s t )
[0069] Among them, a t Indicates that the state quantity at time t is s t The output action amount when γ (·) represents the action network function with network parameter γ.
[0070] In yet another aspect, the present invention further provides a computer device, comprising: one or more processors;
[0071] A memory for storing one or more programs;
[0072] When the one or more programs are executed by the one or more processors, a method for rapidly evaluating new energy absorption capacity based on safety reinforcement learning as described above is implemented.
[0073] On the other hand, the present invention also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed, the method for rapid assessment of new energy absorption capacity based on safety reinforcement learning as described above is implemented.
[0074] Compared with the prior art, the present invention has the following beneficial effects:
[0075] The present invention provides a method and system for rapid evaluation of new energy consumption capacity based on safety reinforcement learning, including: acquiring new energy output data and power system operation data of the new energy consumption scenario to be evaluated from the new energy consumption scenario set, and using the new energy output data and power system operation data as the state quantity of the new energy consumption scenario to be evaluated; based on the state quantity of the new energy consumption scenario to be evaluated, using the action network function in the pre-trained cost flexible action-evaluation strategy model, obtaining the startup state data of various types of generator sets as the action quantity corresponding to the state quantity; based on the action quantity corresponding to the state quantity, determining the unit combination under the new energy consumption scenario; based on the unit combination under the new energy consumption scenario, calculating the consumption rate under the new energy consumption scenario, and evaluating the consumption capacity under the new energy consumption scenario; wherein the cost flexible action-evaluation strategy model is based on the new energy The state quantity at the historical moment in the absorption scenario concentration and the action quantity corresponding to the state quantity are training data, which are obtained after training the intelligent agent; the present invention uses a pre-trained cost flexible action-evaluation strategy model based on the intelligent agent to predict the action of the state quantity generated in the new energy absorption scenario, and calculates the corresponding absorption rate according to the predicted action quantity to obtain the new energy absorption rate, and then evaluates the absorption capacity of the new energy absorption scenario; the present invention can efficiently utilize the new energy output data and the data generated during the operation of the power system, which is beneficial to shorten the calculation time of the new energy absorption rate; the start and stop conditions of various types of generator sets are simulated and predicted by the cost flexible action-evaluation strategy model based on the intelligent agent, which is beneficial to adapt to the changes in new energy output, enhance the flexibility and response speed of the power system, and accurately evaluate the absorption capacity under the new energy absorption scenario while ensuring the safe operation of the new power system. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] Figure 1 A schematic diagram of a process for rapidly evaluating a new energy consumption capacity based on safety reinforcement learning provided by the present invention;
[0077] Figure 2 A schematic diagram of the training process of a cost-flexible action-evaluation strategy model in a method for rapid evaluation of new energy consumption capacity based on safety reinforcement learning provided by the present invention;
[0078] Figure 3 A schematic diagram of the structural composition of a new energy consumption capacity rapid assessment system based on safety reinforcement learning provided by the present invention. DETAILED DESCRIPTION
[0079] The present invention proposes a method and system for rapid assessment of new energy consumption capacity based on safety reinforcement learning. The specific implementation methods of the present invention are further described in detail below in conjunction with the accompanying drawings.
[0080] Embodiment 1:
[0081] A rapid evaluation method for new energy consumption capacity based on safety reinforcement learning, the flow chart is as follows: Figure 1 As shown, including:
[0082] Step 1: acquiring the new energy output data and the power system operation data of the new energy consumption scenario to be evaluated from the new energy consumption scenario set, and using the new energy output data and the power system operation data as the state quantity of the new energy consumption scenario to be evaluated;
[0083] Step 2: Based on the state quantity of the new energy consumption scenario to be evaluated, the action network function in the pre-trained cost-flexible action-evaluation strategy model is used to obtain the startup state data of various types of generator sets as the action quantity corresponding to the state quantity;
[0084] Step 3: Determine the unit combination of the new energy consumption scenario based on the action quantity corresponding to the state quantity;
[0085] Step 4: Based on the unit combination of the new energy consumption scenario, calculate the consumption rate of the new energy consumption scenario, and evaluate the consumption capacity of the new energy consumption scenario;
[0086] The cost-flexible action-evaluation strategy model is obtained by training the intelligent agent using the state quantity of the historical moments of the new energy consumption scenario set and the action quantity corresponding to the state quantity as training data.
[0087] In one implementation, the new energy consumption scenario set in step 1 above includes the following construction process:
[0088] Use new energy time series production simulation software to generate new energy scenario sets;
[0089] Based on the new energy scenario set, combined with load units, interconnection lines, wind power units, photovoltaic power generation units, thermal power generation units and hydropower generation units, a new energy consumption scenario set is constructed; the new energy scenario set generated by the time series production simulation software can obtain a large number of new energy consumption scenario sets as the data basis for reinforcement learning.
[0090] In this implementation, various conventional units, new energy generating units, load units and tie-line units dispersed in the regional power grid are summarized as the same category. Therefore, the new energy consumption scenario can include 1 load, 1 tie-line, 1 wind power generating unit, 1 photovoltaic generating unit, 1 type of thermal generating unit and 1 type of hydropower generating unit.
[0091] The above-mentioned renewable energy output data may include: current load power, current tie line power, current wind power theoretical output power and current photovoltaic theoretical output power; taking scenario i as an example, the collected load power at time t in week week is P i,t,week,load Indicates that the interconnection line power at time t in week week is Pi ,t,week,del Indicates that the theoretical wind power output at time t in week 1 is P i,t,week,wind Indicates that the theoretical photovoltaic output power at time t in week week is P i,t,week,light Indicates; preferably, i=0,1,...10; t=0,1,...168; week=0,1,...52, constructed in weeks.
[0092] The above-mentioned power system operation data include: the maximum number of thermal power units at the current moment, the minimum number of thermal power units at the current moment, the maximum power of thermal power units at the current moment, the minimum power of thermal power units at the current moment, the maximum number of hydropower units at the current moment, the minimum number of hydropower units at the current moment, the maximum power of hydropower units at the current moment, the minimum power of hydropower units at the current moment, the number of thermal power units at the previous moment, and the total number of changes in the number of thermal power units at the current moment; taking scenario i as an example, the maximum number of thermal power units at the t moment of week t is adopted Indicates that the minimum number of thermal power units to be started at time t in week week is Indicates that the maximum startup power of the thermal power unit at time t in week week is Indicates that the minimum startup power of the thermal power unit at time t in week week is Indicates that the maximum number of hydropower units in operation at time t in week week is Indicates that the minimum number of hydropower units to be started at time t in week week is Indicates that the maximum startup power of the hydropower unit at time t in week week is Indicates that the minimum startup power of the hydropower unit at time t in week week is It indicates that the present invention constructs a massive scenario set by making full use of the output data of renewable energy and various data generated during the operation of the power system, and extracts the influence of various variables in the scenario set on the power generation plan formulation of each conventional unit in the power system through offline learning, which can reduce the online calculation time of the power generation plan of the conventional unit.
[0093] The startup status data of the above-mentioned various types of generator sets may include: the number of thermal power units started at the current moment, the startup power of the thermal power units at the current moment, the number of hydropower units started at the current moment, and the startup power of the hydropower units at the current moment; taking scenario i as an example, the number of thermal power units started at time t in week week is N i,t,week,fire Indicates that the startup power of the thermal power unit at time t in week week is P i,t,week,fire Indicates that the number of hydropower units in operation at time t in week week is N i,t,week,water Indicates that the starting power of the hydropower unit at time t in week week is P i,t,week,water express;
[0094] In this implementation, the above-mentioned power system operation data and the startup status data of various types of generator sets meet the following constraints: conventional unit power constraint, conventional unit startup quantity constraint, regional power grid reserve capacity constraint and conventional unit start-stop constraint;
[0095] For example, the expression corresponding to the conventional unit power constraint is as follows:
[0096]
[0097]
[0098] Among them, P i,t,week,fire represents the startup power of the thermal power unit at time t in week week i in scenario i; Indicates the minimum startup power of the thermal power unit at time t in week week i in scenario i; represents the maximum power of the thermal power unit at time t in week week i in scenario i; P i,t,week,water Indicates the startup power of the hydropower unit at time t in week week in scenario i; Indicates the minimum startup power of the hydropower unit at time t in week week i in scenario i; Indicates the maximum startup power of the hydropower unit at time t in week week i in scenario i;
[0099] For example, the expression corresponding to the above startup quantity constraint is as follows:
[0100]
[0101]
[0102] Among them, N i,t,week,fire Indicates the number of thermal power units in operation at time t in week week i in scenario i; Indicates the minimum number of thermal power units in operation at time t in week week i in scenario i; N represents the maximum number of thermal power units in operation at time t in week week i in scenario i; i,t,week,water Indicates the number of hydropower units in operation at time t in week week in scenario i; Indicates the minimum number of hydropower units in operation at time t in week week i in scenario i; Indicates the maximum number of hydropower units in operation at time t in week week in scenario i;
[0103] For example, the expression corresponding to the reserve capacity constraint of the above regional power grid is as follows:
[0104]
[0105] in, represents the minimum backup grid capacity at time t in week 1 of scenario i; N i,t,week,water Indicates the number of hydropower units in operation at time t in week week in scenario i; represents the maximum power of the hydropower unit at time t in week week i in scenario i; P i,t,week,water represents the startup power of the hydropower unit at time t in week week i; N i,t,week,fire Indicates the number of thermal power units in operation at time t in week week i in scenario i; represents the maximum power of the thermal power unit at time t in week week i in scenario i; P i,t,week,fire represents the startup power of the thermal power unit at time t in week week i in scenario i;
[0106] For example, the expression corresponding to the above conventional unit start-stop constraint is as follows:
[0107]
[0108]
[0109] Among them, N i,t,week,state,fire N represents the maximum number of starts and stops of thermal power units at time t in week week in scenario i; i,t+1,week,fire The number of thermal power units in operation at time t+1 in week week in scenario i; N i,t,week,fire The number of thermal power units in operation at time t in week 1 of scenario i; f(N i,t+1,week,fire ,N i,t,week,fire) indicates that the number of thermal power units in operation at time t+1 in week week in scenario i is N i,t+1,week,fire , the number of thermal power units in operation at time t is N i,t,week,fire The corresponding start and stop times.
[0110] like Figure 2 As shown, when training the cost flexible action-evaluation strategy model, the present invention first generates a new energy consumption scenario set, obtains a new energy output curve and a power system operation parameter from the new energy consumption scenario set, and trains the cost flexible action-evaluation strategy model. Specifically, the cost flexible action-evaluation strategy model in the above step 2 may include the following training process:
[0111] Initialize the state quantity of the new energy consumption scenario set at the historical moment;
[0112] Based on the state quantity at the historical moment, using the action network function, obtaining the action quantity at the historical moment;
[0113] According to the state quantity at the historical moment and the action quantity at the historical moment, the action quantity at the historical moment is corrected to obtain the corrected action quantity at the historical moment;
[0114] Based on the state quantity at the historical moment and the corrected action quantity, the consumption rate of the new energy consumption scenario at the historical moment is obtained, and the reward value at the historical moment is determined according to the consumption rate of the new energy consumption scenario (for example, the reward value at time t is r t It means that the reward value at each moment constitutes the reward value set R = [r1, r2, …r t …,r n ]);
[0115] Based on the corrected action amount, obtaining a cost value of the historical moment;
[0116] The reward value at the historical moment is maximized, and the gap between the cost value at the historical moment and the set target cost value is minimized as the optimization goal. The parameters in the agent are updated until the number of training times is reached to obtain a cost-flexible action-evaluation strategy model.
[0117] For example, the above action network function is as follows:
[0118] a t =π γ (s t )
[0119] Among them, a t Indicates that the state quantity at time t is s t The output action amount whenγ (·) represents the action network function with network parameter γ. For example, the expression corresponding to the above cost-flexible action-evaluation strategy model is as follows:
[0120] A=CSAC(S)
[0121] Among them, A represents the set of action variables, A=[a1,a2,…a n ], n represents the total time, a n represents the action quantity at time n; S represents the state quantity set, S = [s1, s2, …s n ],s n represents the state quantity at time n; the parameters in the cost flexible action-evaluation strategy model CSAC are represented by θ, in and Respectively represent the training evaluation network function Q 1,tra (·) and Q 2,tra (·) network parameters; and Respectively represent the target evaluation network function Q 1,tar (·) and Q 2,tar (·) network parameters; β tra and β tra Respectively represent the training cost network function C tra (·) and the target cost network function C tar (·) network parameters; γ represents the network parameters of the action network function π(·);
[0122] For example, the training evaluation network function Q 1,tra (·) and Q 2,tra (·) are updated using the gradient back propagation algorithm, and the loss function expression is as follows:
[0123]
[0124]
[0125] q i =Q i,tra (S t ,a t ),i=1,2
[0126]
[0127] Among them, q target Indicates that in state s t+1 Take action The target reward value of r t Indicates that the state quantity at time t is s tIn the case of t The reward value obtained when represents the attenuation coefficient; Indicates the state quantity as s t+1 Output action amount Time target evaluation network function Q 1,tar (·) The corresponding network function value; Indicates the state quantity as s t+1 Output action amount Time target evaluation network function Q 2,tar (·) The corresponding network function value; α represents the temperature coefficient; The network parameter representing the action network function π(·) is γ, and the state quantity is s t+1 The output action volume is The probability of Indicates that the state at time t+1 is s t+1 The output action amount when γ (s t+1 ) represents the action network function π(·) with parameter γ at time t+1, and the state quantity is s t+1 is the distribution of the corresponding action amount; when i = 1, q i Represents the evaluation network function Q 1,tra (·) The corresponding network function value, Q i,tra (s t ,a t ) indicates that the state quantity is s t Output action amount a t Evaluation network function Q 1,tra (·) The corresponding network function value, Represents the evaluation network function Q 1,tra (·) loss function value; when i = 2, q i Represents the evaluation network function Q 2,tra (·) The corresponding network function value, Q i,tra (s t ,a t ) indicates that the state quantity is s t Output action amount a t Evaluation network function Q 2,tra (·) The corresponding network function value, Represents the evaluation network function Q 2,tra The loss function value of (·);
[0128] Training cost network function C tra (·) is updated using a minimization algorithm, and its loss function is:
[0129]
[0130]
[0131] c=C tra (S t ,a t )
[0132]
[0133] Among them, c target Indicates that in state s t+1 Take action The target cost value; c t represents the cost value at time t; represents the attenuation coefficient; Indicates that the state quantity at time t+1 is s t+1 Output action amount The target cost network function value at time t; α represents the temperature coefficient; c represents the cost network function value at time t; C tra (s t ,a t ) represents the state quantity s t The amount of action is a t The cost network function value at time ; Represents the cost network function C tra The loss function value of (·);
[0134] For example, the above target evaluation network function and target cost network function are updated by the following soft update method;
[0135]
[0136]
[0137] β tar =(1-τ)*β tar +τ*β tra
[0138] in, Represents the target evaluation network function Q 1,tar (·) network parameters; Target evaluation network function Q 2,tar (·) network parameters; β tar Represents the target cost network function C tar (·) network parameters; τ is a hyperparameter used to represent the synchronization rate between the target evaluation network function and the target cost network function; Represents the evaluation network function Q 1,tra (·) network parameters; Evaluation network function Q 2,tra(·) network parameters; β tra Represents the cost network function C tra (·) network parameters;
[0139] The loss function of the training action network function uses the policy gradient update algorithm:
[0140]
[0141] Among them, L represents the loss function value of the action network function; Represents the state quantity s at time t t Amount of action The cost network function value at time; α represents the temperature coefficient; Indicates that the network parameter at time t is γ and the state quantity is s t The output action volume is The probability of Represents the state quantity s at time t t Output action amount When evaluating the network function Q 1,tra (·) network function value; Represents the state quantity s at time t t Output action amount When evaluating the network function Q 2,tra (·) The corresponding network function value.
[0142] In this implementation, the state quantity s of the above-mentioned new energy consumption scenario set at time t is t It can be expressed as:
[0143]
[0144] The action amount a at time t of the above-mentioned new energy consumption scenario set t It can be expressed as:
[0145] a t =[N i,t,week,fire , P i,t,week,fire , N i,t,week,water , P i,t,week,water ]
[0146] Among them, P i,t,week,load represents the load power at time t in week i of scenario i; P i,t,week,del represents the tie line power at time t in week i of scenario i; P i,t,week,wind P represents the theoretical wind power output at time t in week i of scenario i; i,t,week,light represents the theoretical photovoltaic output power at time t in week i of scenario i; Indicates the minimum number of thermal power units in operation at time t in week i of scenario i; Indicates the maximum number of thermal power units in operation at time t in week i of scenario i; Indicates the minimum startup power of the thermal power unit at time t in week i of scenario i; Indicates the maximum startup power of the thermal power unit at time t in week i of scenario i; Indicates the minimum number of hydropower units in operation at time t in week i of scenario i; Indicates the maximum number of hydropower units in operation at time t in week i of scenario i; It represents the minimum startup power of the hydropower unit at time t in week i of scenario i; represents the maximum power of the hydropower unit at time t in week i of scenario i; N i,t-1,week,fire N represents the number of thermal power units in operation at time t-1 in week i of scenario i; i,t,week,state,fire The total number of changes in the number of thermal power units started in week i up to time t in scenario i;
[0147] The present invention does not need to select representative scene sets when constructing new energy consumption scene sets. It directly trains the intelligent agent through a large number of scene sets of various new energy output conditions. By learning the current state of the scenes at each moment in the massive scene sets and the unit combination mode at the current moment, the general rules for formulating conventional unit startup plans are learned. The intelligent agent explores the load fluctuation characteristics and new energy processing characteristics in the scene sets through randomly generated unit combination strategies, and learns these characteristics in the process of continuous error correction to construct a more reasonable unit combination strategy. At the same time, there are differences in the fluctuation characteristics of the load and the output characteristics of new energy in different scene sets. By learning these different scene sets, it is beneficial for the intelligent agent to learn the general rules of load and new energy output. The trained intelligent agent has strong generalization for other differentiated scene sets and can provide a more reasonable unit combination strategy.
[0148] In this implementation, the above-mentioned correcting the action amount at the historical moment according to the state amount at the historical moment and the action amount at the historical moment includes:
[0149] Calculate the backup power grid capacity at the historical moment according to the state quantity at the historical moment and the action quantity at the historical moment; for example, the action quantity of the conventional unit at the historical moment may include: the startup power of the thermal power unit, the startup number of the thermal power unit, the startup power of the hydropower unit and the startup number of the hydropower unit;
[0150] Comparing the backup power grid capacity with the set minimum backup power grid capacity, if the backup power grid capacity is smaller than the minimum backup power grid capacity, correcting the action amount at the historical moment until the backup power grid capacity corresponding to the corrected action amount is larger than the minimum backup power grid capacity;
[0151] For example, the calculation formula corresponding to the above backup power grid capacity is as follows:
[0152]
[0153] like According to the difference The size of the action is adjusted in turn, and the order of adjustment is: hydropower unit startup power, thermal power unit startup power, hydropower unit startup number, thermal power unit startup number, so as to ensure that the reserve capacity meets the constraints;
[0154] The adjusted action amounts correspond to the following:
[0155]
[0156]
[0157]
[0158]
[0159] Among them, P i,t,week,prep N represents the backup grid capacity at time t in week i; i,t,week,water Indicates the number of hydropower units in operation at time t in week week in scenario i; represents the maximum power of the hydropower unit at time t in week week i in scenario i; P i,t,week,water represents the startup power of the hydropower unit at time t in week week i; N i,t,week,fire Indicates the number of thermal power units in operation at time t in week week i in scenario i; represents the maximum power of the thermal power unit at time t in week week i in scenario i; P i,t,week,fire represents the startup power of the thermal power unit at time t in week week i in scenario i; represents the minimum backup grid capacity at time t in week i; P′ i,t,week,water represents the corrected hydropower unit startup power at time t in week week i in scenario i; P′ i,t,week,fire N′ represents the corrected power generation capacity of the thermal power unit at time t in week 1 of scenario i; i,t,week,water N′ represents the corrected number of hydropower units in operation at time t in week week i in scenario i; i,t,week,fireIndicates the corrected number of thermal power units in operation at time t in week week i in scenario i;
[0160] For example, the expression corresponding to the consumption rate of the new energy consumption scenario at the historical moment obtained based on the state quantity at the historical moment and the corrected action quantity is as follows:
[0161]
[0162] Among them, ρ represents the new energy consumption rate at the current time t; P i,t,week,load represents the load power at time t in week week in scenario i; P i,t,week,wind P represents the theoretical wind power output at time t in week 1 of scenario i; i,t,week,light represents the theoretical photovoltaic output power at time t in week i of scenario i;
[0163] For example, the expression corresponding to the reward value at the historical moment determined according to the consumption rate of the new energy consumption scenario is as follows:
[0164]
[0165] Among them, r t represents the reward value at the current time t; ρ represents the new energy consumption rate at the current time t;
[0166] For example, the expression corresponding to the cost value at the historical moment obtained based on the corrected action amount is as follows:
[0167] c t =N i,t,week,state,fire +f(N i,t-1,week,fire , N i,t,week,fire )
[0168] Among them, c t Represents the cost value at the current time t; N i,t,week,state,fire The total number of changes in the number of thermal power units in week i up to time t; f(N i,t-1,week,fire ,N i,t,week,fire ) indicates that the number of thermal power units in operation at time t-1 in week i is N i,t-1,week,fire , the number of thermal power units in operation at time t is N i,t,week,fire The corresponding start and stop times;
[0169] In this implementation, after obtaining the cost value of the historical moment based on the corrected action amount, and before using the difference between the cost value and the reward value of the historical moment as the loss function, the method further includes:
[0170] The state quantity s at the historical momentt , the corrected action amount a at the historical moment t , the reward value r at the historical moment t , the cost value c of the historical moment t And the state quantity s corresponding to the next moment at the historical moment t+1 The experience data of the historical moment is stored in the experience pool; for example, according to the state quantity s at the current time t t and the amount of action a t , the state quantity s at the next moment can be obtained t+1 For example, assuming that the state quantity and action quantity satisfy: s t+1
[13] = a t [1], then:
[0171]
[0172] And build an experience (s t ,a t ,s t+1 ,r t ,c t ,s t+1 ) is stored in the experience pool D. For example, the experience pool D can be expressed as D = [(s1, a1, r1, c1, s2), (s2, a2, r2, c2, s3), … (s t ,a t ,s t+1 ,r t ,c t ,c t ,s t+1 )…,(s n-1 ,a n-1 ,r n-1 ,c n-1 ,s n )], which is used to save the historical information of decision-making of the above-mentioned cost-flexible action-evaluation strategy model.
[0173] In this implementation, the difference between the cost value and the reward value at the historical moment is used as the loss function to update the parameters in the agent, including:
[0174] Randomly select a preset number (e.g., k0 pieces) of experience data from the experience pool;
[0175] The reward value at the historical moment is maximized, and the gap between the cost value at the historical moment and the set target cost value is minimized as the optimization goal. The parameter θ in the agent is updated using the gradient descent method, and then it is determined whether the current moment t reaches the maximum sampling moment T. If not, let t=t+1, and input the state quantity of the new round into the above action network function to obtain the corresponding action quantity; if reached, the training of the cost flexible action-evaluation strategy model is terminated;
[0176] For example, the parameters in the above agent are updated by the following calculation formula:
[0177]
[0178] Among them, θ′ represents the parameters of the agent after update; θ represents the parameters of the agent before update; λ represents the learning rate; represents the gradient descent operator corresponding to the parameter θ; L(d,θ) represents the loss function value of the agent corresponding to the empirical data d.
[0179] By inputting the state quantity of each moment and the consumption scene into the trained action network function through the above steps, the unit combination strategy at each moment can be obtained, and by learning the unit combination strategy of different scene sets, the uncertainty of wind power / photovoltaic power generation and the volatility of load demand are indirectly taken into account, so as to calculate the new energy consumption at the current moment, and then realize the evaluation of the new energy consumption capacity. In the present invention, the intelligent agent learns the time series characteristics of these new energy power generation and the spatiotemporal correlation between the new energy and the load fluctuation law in the learning process, so that the strategy learned by the intelligent agent can play a role in the new scene, and the consumption evaluation of new energy by the method of the present invention is close to the effect of time series production simulation, and the characteristics related to the power generation plan of conventional units can be learned. At the same time, the learning process of the intelligent agent in the present invention is carried out offline. When the intelligent agent makes online decisions, it only needs to perform fixed mapping operations through the neural network to obtain the optimal unit combination strategy at each moment. Compared with the traditional method of using numerical optimization to calculate the unit combination strategy, the calculation time is greatly shortened.
[0180] Specifically, taking 10 scenario sets as an example, it contains 8760 hours of wind power / PV power and power system operation parameters, including: power load, system reserve capacity requirements, interconnection line transmission power, unit output of various conventional units and the constraint range of the number of units started;
[0181] A cost-flexible action-evaluation strategy model established using the method of the present invention;
[0182] A new scenario set different from the one used for training is obtained. The data types contained are consistent with the data used for training. A total of 8760 hours of renewable energy output data and power system operation data are obtained. These data are input into the model to obtain the unit combination strategies at different times, and then a rapid assessment of the regional power grid's renewable energy absorption capacity is obtained on a time scale of one year.
[0183] The present invention aims at the problem that the existing method for evaluating the new energy consumption capacity has a long calculation time and needs to be recalculated for each regional power grid. By proposing a method for rapid evaluation of regional new energy consumption capacity based on safe reinforcement learning, the reinforcement learning method is used to train the intelligent body from the generated massive new energy consumption scene set, a cost flexible action-evaluation strategy model is constructed, and the empirical law of the scene for unit combination simulation is learned. The time spent on the online unit combination scheme simulation is converted to offline, and the start and stop conditions of various generator sets are simulated and predicted, so as to realize the rapid generation of online unit combination schemes. At the same time, by learning the unit combination schemes under different new energy consumption scenes, the influence of the change law of wind power and photovoltaic power on the unit combination scheme is indirectly learned, and good robustness to the uncertainty of new energy output is achieved, which is conducive to adapting to the change of new energy output, enhancing the flexibility and response speed of the power system, and achieving a higher new energy consumption rate while ensuring the safe operation of the new power system, so as to accurately evaluate the consumption capacity under the new energy consumption scene. The method of the present invention can not only provide technical support for the rapid estimation of the regional power grid consumption capacity, but also provide reference for the subsequent conventional unit combination scheme and the installation planning of new energy.
[0184] Embodiment 2:
[0185] The present invention based on the same inventive concept also provides a new energy consumption capacity rapid evaluation system based on safety reinforcement learning, the structural composition diagram is as follows Figure 3 As shown, including:
[0186] Data acquisition module: used to centrally acquire the new energy output data and the power system operation data of the new energy consumption scenario to be evaluated from the new energy consumption scenario, and use the new energy output data and the power system operation data as the state quantity of the new energy consumption scenario to be evaluated;
[0187] Action execution module: based on the state quantity of the new energy consumption scenario to be evaluated, using the action network function in the pre-trained cost-flexible action-evaluation strategy model, to obtain the startup state data of various types of generator sets as the action quantity corresponding to the state quantity;
[0188] Strategy combination module: used to determine the unit combination of the new energy consumption scenario based on the action quantity corresponding to the state quantity;
[0189] Consumption evaluation module: used to calculate the consumption rate of the new energy consumption scenario based on the unit combination of the new energy consumption scenario, and evaluate the consumption capacity of the new energy consumption scenario;
[0190] Among them, the cost flexible action-evaluation strategy model in the action execution module is obtained by training the intelligent agent with the state quantity of the historical moment of the new energy consumption scenario set and the action quantity corresponding to the state quantity as training data.
[0191] The new energy output data in the above data acquisition module includes: current load power, current tie line power, current wind power theoretical output power and current photovoltaic theoretical output power;
[0192] The above-mentioned power system operation data include: the maximum number of thermal power units in operation at the current moment, the minimum number of thermal power units in operation at the current moment, the maximum power of thermal power units in operation at the current moment, the minimum power of thermal power units in operation at the current moment, the maximum number of hydropower units in operation at the current moment, the minimum number of hydropower units in operation at the current moment, the maximum power of hydropower units in operation at the current moment, the minimum power of hydropower units in operation at the current moment, the number of thermal power units in operation at the previous moment, and the total number of changes in the number of thermal power units in operation at the current moment;
[0193] The startup status data of the above-mentioned various types of generator sets include: the number of thermal power units started at the current moment, the startup power of the thermal power units at the current moment, the number of hydropower units started at the current moment, and the startup power of the hydropower units at the current moment.
[0194] The new energy consumption scenario set in the above data acquisition module includes the following construction process:
[0195] Use new energy time series production simulation software to generate new energy scenario sets;
[0196] Based on the new energy scenario set, a new energy consumption scenario set is constructed in combination with load units, interconnection lines, wind power generation units, photovoltaic power generation units and hydropower generation units.
[0197] The cost-flexible action-evaluation strategy model in the above action execution module includes the following training process:
[0198] Initialize the state quantity of the new energy consumption scenario set at the historical moment;
[0199] Based on the state quantity at the historical moment, using the action network function, obtaining the action quantity at the historical moment;
[0200] According to the state quantity at the historical moment and the action quantity at the historical moment, the action quantity at the historical moment is corrected to obtain the corrected action quantity at the historical moment;
[0201] Based on the state quantity at the historical moment and the corrected action quantity, the consumption rate of the new energy consumption scenario at the historical moment is obtained, and the reward value at the historical moment is determined according to the consumption rate of the new energy consumption scenario;
[0202] Based on the corrected action amount, obtaining a cost value of the historical moment;
[0203] The reward value at the historical moment is maximized, and the gap between the cost value at the historical moment and the set target cost value is minimized as the optimization goal. The parameters in the agent are updated until the number of training times is reached to obtain a cost-flexible action-evaluation strategy model.
[0204] For example, the action network function in the above action execution module is as follows:
[0205] a t =π γ (s t )
[0206] Among them, a t Indicates that the state quantity at time t is s t The output action amount when γ (·) represents the action network function with network parameter γ.
[0207] The above-mentioned action execution module corrects the action amount at the historical moment according to the state amount at the historical moment and the action amount at the historical moment, including:
[0208] Calculating the backup power grid capacity at the historical moment according to the state quantity at the historical moment and the action quantity at the historical moment;
[0209] The backup grid capacity is compared with the set minimum backup grid capacity. If the backup grid capacity is smaller than the minimum backup grid capacity, the action amount at the historical moment is corrected until the backup grid capacity corresponding to the corrected action amount is larger than the minimum backup grid capacity.
[0210] After obtaining the cost value of the historical moment based on the corrected action amount in the above-mentioned action execution module, before maximizing the reward value of the historical moment and minimizing the difference between the cost value of the historical moment and the set target cost value as the optimization goal, it also includes:
[0211] The state quantity of the historical moment, the corrected action quantity of the historical moment, the reward value of the historical moment, the cost value of the historical moment and the state quantity of the historical moment corresponding to the next moment constitute the experience data of the historical moment and are stored in the experience pool.
[0212] In the above-mentioned action execution module, the reward value at the historical moment is maximized, and the difference between the cost value at the historical moment and the set target cost value is minimized as the optimization goal, and the parameters in the intelligent agent are updated, including:
[0213] Randomly selecting a preset number of experience data from the experience pool;
[0214] The parameters in the intelligent agent are updated using the gradient descent method with the maximization of the reward value at the historical moment and the minimization of the gap between the cost value at the historical moment and the set target cost value as the optimization goal.
[0215] For example, the parameters of the agent in the above action execution module are updated by the following calculation formula:
[0216]
[0217] Among them, θ′ represents the parameters of the agent after update; θ represents the parameters of the agent before update; λ represents the learning rate; represents the gradient descent operator corresponding to the parameter θ; L(d,θ) represents the loss function value when the parameter of the agent is θ when the corresponding experience data d.
[0218] Embodiment 3:
[0219] Based on the same inventive concept, the present invention also provides a computer device, which includes a processor and a memory, the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. 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 gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions in the computer storage medium to implement the corresponding method flow or corresponding function, so as to implement the steps of a method for rapid evaluation of new energy consumption capacity based on safety reinforcement learning in the above embodiment.
[0220] Embodiment 4:
[0221] Based on the same inventive concept, the present invention also provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both built-in storage media in a computer device and, of course, extended storage media supported by the computer device. The computer-readable storage medium provides a storage space that stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the steps of a method for rapid evaluation of new energy consumption capacity based on safety reinforcement learning in the above embodiment.
[0222] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0223] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0224] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0225] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0226] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit its protection scope. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the field should understand that after reading the present invention, those skilled in the art can still make various changes, modifications or equivalent substitutions to the specific implementation methods of the application, but these changes, modifications or equivalent substitutions are all within the protection scope of the claims to be approved.
Claims
1. A rapid assessment method for new energy consumption capacity based on safety reinforcement learning, It is characterized in that include: Acquire the new energy output data and the power system operation data of the new energy consumption scenario to be evaluated from the new energy consumption scenario set, and use the new energy output data and the power system operation data as the state quantity of the new energy consumption scenario to be evaluated; Based on the state quantity of the new energy consumption scenario to be evaluated, the startup state data of various types of generator sets are obtained as the action quantity corresponding to the state quantity by using the action network function in the pre-trained cost-flexible action-evaluation strategy model; Determining the unit combination of the new energy consumption scenario based on the action quantity corresponding to the state quantity; Based on the unit combination of the new energy consumption scenario, the consumption rate of the new energy consumption scenario is calculated, and the consumption capacity of the new energy consumption scenario is evaluated; The cost-flexible action-evaluation strategy model is obtained by training the intelligent agent using the state quantity of the historical moments of the new energy consumption scenario set and the action quantity corresponding to the state quantity as training data.
2. The method according to claim 1, It is characterized in that The cost-flexible action-evaluation strategy model includes the following training process: Initialize the state quantity of the new energy consumption scenario set at the historical moment; Based on the state quantity at the historical moment, using the action network function, obtaining the action quantity at the historical moment; According to the state quantity at the historical moment and the action quantity at the historical moment, the action quantity at the historical moment is corrected to obtain the corrected action quantity at the historical moment; Based on the state quantity at the historical moment and the corrected action quantity, the consumption rate of the new energy consumption scenario at the historical moment is obtained, and the reward value at the historical moment is determined according to the consumption rate of the new energy consumption scenario; Based on the corrected action amount, obtaining a cost value of the historical moment; The reward value at the historical moment is maximized, and the gap between the cost value at the historical moment and the set target cost value is minimized as the optimization goal. The parameters in the agent are updated until the number of training times is reached to obtain a cost-flexible action-evaluation strategy model.
3. The method according to claim 2, It is characterized in that The step of correcting the action amount at the historical moment according to the state amount at the historical moment and the action amount at the historical moment includes: Calculating the backup power grid capacity at the historical moment according to the state quantity at the historical moment and the action quantity at the historical moment; The backup grid capacity is compared with the set minimum backup grid capacity. If the backup grid capacity is smaller than the minimum backup grid capacity, the action amount at the historical moment is corrected until the backup grid capacity corresponding to the corrected action amount is larger than the minimum backup grid capacity.
4. The method according to claim 2, It is characterized in that After obtaining the cost value of the historical moment based on the corrected action amount, and before maximizing the reward value of the historical moment and minimizing the difference between the cost value of the historical moment and the set target cost value as the optimization goal, the method further includes: The state quantity of the historical moment, the corrected action quantity of the historical moment, the reward value of the historical moment, the cost value of the historical moment and the state quantity of the historical moment corresponding to the next moment constitute the experience data of the historical moment and are stored in the experience pool.
5. The method according to claim 4, It is characterized in that The method of maximizing the reward value at the historical moment and minimizing the gap between the cost value at the historical moment and the set target cost value as the optimization goal, and updating the parameters in the intelligent agent includes: Randomly selecting a preset number of experience data from the experience pool; The reward value at the historical moment is maximized, and the gap between the cost value at the historical moment and the set target cost value is minimized as the optimization goal, and the parameters in the intelligent agent are updated using the gradient descent method.
6. The method according to claim 5, It is characterized in that The parameters in the agent are updated using the following calculation formula: Among them, θ ′ represents the parameters of the agent after the update; θ represents the parameters of the agent before the update; λ represents the learning rate; represents the gradient descent operator corresponding to the parameter θ; L(d,θ) represents the loss function value when the parameter of the agent is θ when the corresponding experience data d.
7. The method according to any one of claims 1 to 6, It is characterized in that The new energy output data includes: current load power, current tie line power, current wind power theoretical output power and current photovoltaic theoretical output power; The power system operation data includes: the maximum number of thermal power units in operation at the current moment, the minimum number of thermal power units in operation at the current moment, the maximum power of thermal power units in operation at the current moment, the minimum power of thermal power units in operation at the current moment, the maximum number of hydropower units in operation at the current moment, the minimum number of hydropower units in operation at the current moment, the maximum power of hydropower units in operation at the current moment, the minimum power of hydropower units in operation at the current moment, the number of thermal power units in operation at the previous moment, and the total number of changes in the number of thermal power units in operation at the current moment; The startup status data of the various types of generator sets include: the number of thermal power units started at the current moment, the startup power of the thermal power units at the current moment, the number of hydropower units started at the current moment, and the startup power of the hydropower units at the current moment.
8. The method according to claim 1, It is characterized in that The new energy consumption scenario set includes the following construction process: Use new energy time series production simulation software to generate new energy scenario sets; Based on the new energy scenario set, a new energy consumption scenario set is constructed in combination with load units, interconnection lines, wind power generation units, photovoltaic power generation units and hydropower generation units.
9. The method according to claim 2, It is characterized in that The action network function is as follows: a t =π γ (s t ) Among them, a t Indicates that the state quantity at time t is s t The output action amount when γ (·) represents the action network function with network parameter γ.
10. A rapid assessment system for new energy consumption capacity based on safety reinforcement learning, It is characterized in that include: Data acquisition module: used to centrally acquire the new energy output data and the power system operation data of the new energy consumption scenario to be evaluated from the new energy consumption scenario, and use the new energy output data and the power system operation data as the state quantity of the new energy consumption scenario to be evaluated; Action execution module: based on the state quantity of the new energy consumption scenario to be evaluated, using the action network function in the pre-trained cost-flexible action-evaluation strategy model, to obtain the startup state data of various types of generator sets as the action quantity corresponding to the state quantity; Strategy combination module: used to determine the unit combination of the new energy consumption scenario based on the action quantity corresponding to the state quantity; Consumption evaluation module: used to calculate the consumption rate of the new energy consumption scenario based on the unit combination of the new energy consumption scenario, and evaluate the consumption capacity of the new energy consumption scenario; Among them, the cost flexible action-evaluation strategy model in the action execution module is obtained by training the intelligent agent with the state quantity of the historical moment of the new energy consumption scenario set and the action quantity corresponding to the state quantity as training data.
11. The system according to claim 10, It is characterized in that The cost-flexible action-evaluation strategy model in the action execution module includes the following training process: Initialize the state quantity of the new energy consumption scenario set at the historical moment; Based on the state quantity at the historical moment, using the action network function, obtaining the action quantity at the historical moment; According to the state quantity at the historical moment and the action quantity at the historical moment, the action quantity at the historical moment is corrected to obtain the corrected action quantity at the historical moment; Based on the state quantity at the historical moment and the corrected action quantity, the consumption rate of the new energy consumption scenario at the historical moment is obtained, and the reward value at the historical moment is determined according to the consumption rate of the new energy consumption scenario; Based on the corrected action amount, obtaining a cost value of the historical moment; The difference between the cost value and the reward value at the historical moment is used as the loss function, and the parameters in the intelligent agent are updated until the number of training times is reached, thereby obtaining a cost-flexible action-evaluation strategy model.
12. The system according to claim 11, It is characterized in that The action execution module corrects the action amount at the historical moment according to the state amount at the historical moment and the action amount at the historical moment, including: Calculating the backup power grid capacity at the historical moment according to the state quantity at the historical moment and the action quantity at the historical moment; The backup grid capacity is compared with the set minimum backup grid capacity. If the backup grid capacity is smaller than the minimum backup grid capacity, the action amount at the historical moment is corrected until the backup grid capacity corresponding to the corrected action amount is larger than the minimum backup grid capacity.
13. The system of claim 11, It is characterized in that The new energy output data in the data acquisition module includes: current load power, current tie line power, current wind power theoretical output power and current photovoltaic theoretical output power; The power system operation data includes: the maximum number of thermal power units in operation at the current moment, the minimum number of thermal power units in operation at the current moment, the maximum power of thermal power units in operation at the current moment, the minimum power of thermal power units in operation at the current moment, the maximum number of hydropower units in operation at the current moment, the minimum number of hydropower units in operation at the current moment, the maximum power of hydropower units in operation at the current moment, the minimum power of hydropower units in operation at the current moment, the number of thermal power units in operation at the previous moment, and the total number of changes in the number of thermal power units in operation at the current moment; The startup status data of the various types of generator sets include: the number of thermal power units started at the current moment, the startup power of the thermal power units at the current moment, the number of hydropower units started at the current moment, and the startup power of the hydropower units at the current moment.
14. A computer device, It is characterized in that include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, a method for rapidly evaluating new energy absorption capacity based on safety reinforcement learning as described in any one of claims 1 to 9 is implemented.
15. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, and when the computer program is executed, a method for rapidly evaluating new energy absorption capacity based on safety reinforcement learning as described in any one of claims 1 to 9 is implemented.
