Energy internet optimization operation method and related device
By generating adversarial networks to simulate the transition probabilities of uncertain environmental quantities and combining alliance game training to optimize dispatch reinforcement learning models, the uncertainty problem caused by random fluctuations of sources and loads in the energy Internet is solved, and the robustness and reliability of optimal dispatch decisions are improved. The overall optimization effect of the Energy Internet.
Patent Information
- Application Number
- CN202411151372.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-08-21
AI Technical Summary
Existing technologies are difficult to effectively adapt to the uncertainty caused by random fluctuations of sources and loads in the energy Internet. Traditional optimization scheduling methods are difficult to meet the needs of complex systems, especially in distributed energy environments. Traditional reinforcement learning methods assume that the state transition probability is 100%. , leading to model output errors.
Generative adversarial networks are used to simulate the transition probabilities of uncertain environmental quantities, and the optimal dispatch reinforcement learning model is trained through alliance games to build a policy network to adapt to the highly uncertain environment of microgrids and improve the robustness of optimal dispatch decisions.
By constructing a generative adversarial network to simulate the transition probability of uncertain environmental quantities, the adaptability of the microgrid strategy network model and the robustness of optimal dispatch decisions are improved, ensuring the optimization effect of the energy Internet operation, especially in the face of high uncertainty environment, it can better adapt to and optimize the operation of the Energy Internet.
Smart Images

Figure CN118657264A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of energy internet, and relates to an energy internet optimization operation method and related devices. Background Art
[0002] Energy Internet integrates multiple stages such as energy production, transmission, storage and consumption. The optimized operation involves all links of source-grid-load-storage such as primary energy, secondary energy and energy transportation network. The various energy sources are not simply connected and superimposed, but scientifically allocated through efficient and accurate intelligent control strategies under the support of an information network composed of safe and reliable advanced sensors and communications. While meeting the diverse energy needs of users, it utilizes the complementary and synergistic characteristics of various energy sources to improve energy utilization efficiency and renewable energy absorption capacity, and enhance the overall safety, reliability and flexibility of the system. Energy Internet will change the top-down centralized decision-making model of traditional energy networks. Each energy entity in the system will independently manage its own energy production, consumption and transactions, and realize autonomous energy management and system decision-making.
[0003] With the gradual access of distributed energy, the number of autonomous control points has increased significantly. The Energy Internet has evolved into a giant dimensional system with complex structure, numerous equipment and complex technology. It has typical nonlinear random characteristics and multi-scale dynamic characteristics, which greatly increases the difficulty of optimized operation. Traditional mechanism model analysis and distributed optimization methods can no longer meet the requirements of optimized scheduling, analysis and evaluation, and operation control. This requires the full interconnection and sharing of energy and information between various entities with the help of advanced sensing, measurement technology and edge computing technology, and the friendly interaction of source, grid, load and storage and the full absorption of a high proportion of renewable energy through artificial intelligence algorithms. In order to address the above problems, research on the operation control and optimization decision-making of the Energy Internet has received widespread attention in recent years.
[0004] For example, Chinese patent application CN118017492A discloses an active distribution network optimization scheduling method, which obtains the photovoltaic output forecast value and load forecast value of each area of the active distribution network, and calls the preset distributed optimization scheduling model based on alliance game according to the photovoltaic output forecast value and load forecast value of each area, obtains the optimal output value of each controllable device in each area, generates control instructions for each controllable device in each area according to the optimal output value of each controllable device in each area, and sends them to each controllable device in each area; wherein, the distributed optimization scheduling model based on alliance game includes an alliance game layer and intelligent agents in each area that interact with the alliance game layer. It realizes distributed collaborative optimization based on the sharing of non-critical information based on the game mechanism of each area, avoids the centralized collection and processing of a large amount of data, and greatly improves the decision-making speed. However, this method only considers the economic and safety issues of real-time decision-making, and cannot adapt well to the uncertainty caused by random fluctuations in source and load. Summary of the invention
[0005] The purpose of the present invention is to overcome the above-mentioned shortcomings of the prior art and provide an energy Internet optimization operation method and related devices.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions: In a first aspect, the present invention provides an energy internet optimization operation method, comprising: obtaining status data of each microgrid in the energy internet; according to the status data of each microgrid, obtaining the optimization scheduling decision of each microgrid through the strategy network model preset by each microgrid; wherein the strategy network model preset by each microgrid is obtained by the following method: obtaining the optimization scheduling reinforcement learning model of each microgrid; a training step: generating the transition probability of the uncertainty environment quantity of each microgrid through the pre-trained generative adversarial network of each microgrid, and obtaining the predicted environment of each microgrid based on the transition probability, and training the optimization scheduling reinforcement learning model of each microgrid by adopting the alliance game method according to the predicted environment of each microgrid; iterating the training step until the training of the optimization scheduling reinforcement learning model of each microgrid is completed, and obtaining the strategy network in the optimization scheduling reinforcement learning model of each microgrid, and obtaining the preset strategy network model of each microgrid.
[0007] Optionally, the generative adversarial network is constructed based on a Wasserstein generative adversarial network with gradient penalty.
[0008] Optionally, the pre-trained generative adversarial networks of each microgrid satisfy the following generation constraints: the transfer probabilities of the uncertain environmental quantities of each microgrid generated by the pre-trained generative adversarial networks of each microgrid fall within the probability distribution fuzzy sets constructed with the empirical probability distribution of the uncertain environmental quantities of each microgrid as the center and a preset Wasserstein distance as the radius.
[0009] Optionally, during the iterative training step, after each training step is completed, the pre-trained generative adversarial network of each microgrid is updated with the goal of minimizing the reward value function of the optimization scheduling reinforcement learning model of each microgrid.
[0010] Optionally, it also includes: taking the state of the optimized scheduling reinforcement learning model of each microgrid as input and the transfer probability of the uncertain environmental quantity of each microgrid as output, constructing an initial generative adversarial network of each microgrid; training the initial generative adversarial network of each microgrid according to the historical data of each microgrid, and obtaining a pre-trained generative adversarial network of each microgrid.
[0011] Optionally, the method of training the optimization scheduling reinforcement learning model of each microgrid by adopting the alliance game method according to the prediction environment of each microgrid includes: the optimization scheduling reinforcement learning model of each microgrid interacts with the prediction environment of each microgrid respectively to obtain the historical experience of each microgrid; according to the net power demand data in the historical experience of each microgrid, the alliance allocation benefit and unit electricity price of each microgrid are obtained based on the market middle price mechanism and the Shapley value method; according to the alliance allocation benefit and unit electricity price of each microgrid, the reward function value of the optimization scheduling reinforcement learning model of each microgrid is obtained; through the judgment network of the optimization scheduling reinforcement learning model of each microgrid, according to the optimization of each microgrid The state value function of the optimal scheduling reinforcement learning model of each microgrid is obtained by combining the reward function value of the scheduling reinforcement learning model and the historical data stored in the experience replay pool in the historical experience, and a generalized advantage estimation is performed based on the state value function of the optimal scheduling reinforcement learning model of each microgrid to obtain the advantage function of the optimal scheduling reinforcement learning model of each microgrid; according to the state value function of the optimal scheduling reinforcement learning model of each microgrid, the judgment network of the optimal scheduling reinforcement learning model of each microgrid is updated; according to the advantage function of the optimal scheduling reinforcement learning model of each microgrid, the strategy network of the optimal scheduling reinforcement learning model of each microgrid is updated by adopting the constraint strategy optimization method.
[0012] Optionally, the status data includes the active output of the gas turbine and the energy of the energy storage system at the previous moment and the new energy output and load at the previous several moments; the uncertain environmental quantity includes the new energy output and load; the optimization scheduling decision of each microgrid includes the active output of the gas turbine of each microgrid, the reactive output of the gas turbine, the active output of the energy storage system and the reactive output of the energy storage system.
[0013] According to a second aspect of the present invention, an energy internet optimization operation system is provided, comprising: a data acquisition module for acquiring status data of each microgrid in the energy internet; a decision module for obtaining an optimization scheduling decision of each microgrid according to the status data of each microgrid through a preset strategy network model of each microgrid; wherein the preset strategy network model of each microgrid is obtained by: obtaining an optimization scheduling reinforcement learning model of each microgrid; a training step: generating a transition probability of an uncertainty environment quantity of each microgrid through a pre-trained generative adversarial network of each microgrid, and obtaining a predicted environment of each microgrid based on the transition probability, and training the optimization scheduling reinforcement learning model of each microgrid by adopting a coalition game method according to the predicted environment of each microgrid; iterating the training step until the training of the optimization scheduling reinforcement learning model of each microgrid is completed, and obtaining the strategy network in the optimization scheduling reinforcement learning model of each microgrid to obtain the preset strategy network model of each microgrid.
[0014] According to a third aspect of the present invention, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned energy Internet optimization operation method when executing the computer program.
[0015] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned energy Internet optimization operation method are implemented.
[0016] Compared with the prior art, the present invention has the following beneficial effects: The energy Internet optimization operation method of the present invention obtains the optimization scheduling decision of each microgrid through the strategy network model preset by each microgrid according to the state data of each microgrid, and then realizes the optimization operation of the energy Internet based on the optimization scheduling decision of each microgrid. Among them, the strategy network model preset by each microgrid adopts the strategy network in the optimization scheduling reinforcement learning model trained by each microgrid, and in the training process of the optimization scheduling reinforcement learning model, a generative adversarial network is introduced to generate the transition probability of the uncertainty environment quantity of each microgrid, and the predicted environment of each microgrid is obtained based on the transition probability, and then the optimization scheduling reinforcement learning model of each microgrid is trained in the form of alliance game according to the predicted environment of each microgrid. According to the characteristics of the uncertainty environment quantity, the transition probability of the uncertainty environment quantity is simulated by constructing a generative adversarial network. Compared with the current default state transition probability of reinforcement learning as 100%, the strategy network model preset by each microgrid can better adapt to the highly uncertain environment of the microgrid, improve the robustness of the optimization scheduling decision, and ensure the optimization effect of the operation of the energy Internet. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 This is a flow chart of the energy internet optimization operation method according to an embodiment of the present invention.
[0018] Figure 2 Schematic diagram of a multi-agent collaborative framework according to an embodiment of the present invention.
[0019] Figure 3 A schematic diagram of a training framework for an optimization scheduling reinforcement learning model according to an embodiment of the present invention.
[0020] Figure 4 This is a structural block diagram of the energy internet optimization operation system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0023] The present invention is further described in detail below in conjunction with the accompanying drawings: See also Figure 1 In one embodiment of the present invention, a method for optimizing the operation of an energy Internet is provided, which simulates the transfer probability of uncertain environmental quantities by constructing a generative adversarial network to improve the robustness of the optimization scheduling decision.
[0024] Specifically, the energy internet optimization operation method of the present invention comprises the following steps: S1: Obtain the status data of each microgrid in the energy Internet.
[0025] S2: According to the status data of each microgrid, the optimal dispatching decision of each microgrid is obtained through the preset strategic network model of each microgrid.
[0026] Among them, the strategic network model preset by each microgrid is obtained by the following method: S11: Obtain the optimized dispatch reinforcement learning model of each microgrid.
[0027] S12: Training step: Generate the transition probability of the uncertainty environment quantity of each microgrid through the pre-trained generative adversarial network of each microgrid, and obtain the predicted environment of each microgrid based on the transition probability, and train the optimization scheduling reinforcement learning model of each microgrid by adopting the alliance game method according to the predicted environment of each microgrid.
[0028] S13: Iterate the training steps until the optimization scheduling reinforcement learning model training of each microgrid is completed, and obtain the strategy network in the optimization scheduling reinforcement learning model of each microgrid to obtain the preset strategy network model of each microgrid.
[0029] The energy Internet optimization operation method of the present invention obtains the optimization scheduling decision of each microgrid through the strategy network model preset by each microgrid according to the state data of each microgrid, and then realizes the optimization operation of the energy Internet based on the optimization scheduling decision of each microgrid. Among them, the strategy network model preset by each microgrid adopts the strategy network in the optimization scheduling reinforcement learning model trained by each microgrid, and in the training process of the optimization scheduling reinforcement learning model, a generative adversarial network is introduced to generate the transition probability of the uncertainty environment quantity of each microgrid, and the predicted environment of each microgrid is obtained based on the transition probability, and then the optimization scheduling reinforcement learning model of each microgrid is trained in the form of alliance game according to the predicted environment of each microgrid. According to the characteristics of the uncertainty environment quantity, the transition probability of the uncertainty environment quantity is simulated by constructing a generative adversarial network. Compared with the current default state transition probability of reinforcement learning as 100%, the strategy network model preset by each microgrid can better adapt to the highly uncertain environment of the microgrid, improve the robustness of the optimization scheduling decision, and ensure the optimization effect of the operation of the energy Internet.
[0030] At present, the reinforcement learning methods used in power system optimization and dispatching basically use fixed renewable energy output and load for model training, that is, the default state transition probability of reinforcement learning is 100%. However, this is inappropriate because renewable energy output and load have highly uncertain characteristics. Once it is assumed that renewable energy output and load are fixed or follow a fixed probability distribution, the output of the final model will produce errors.
[0031] Therefore, the energy Internet optimization operation method of the present invention simulates the transfer probability of these uncertain environmental quantities of the microgrid by constructing a generative adversarial network, which is generally the output of new energy and load, and then determines the predicted environment of the microgrid based on the transfer probability of the uncertain environmental quantities generated by the generative adversarial network, and uses the predicted environment as the training basis of the optimized scheduling reinforcement learning model of each microgrid to improve the robustness of the model.
[0032] In a possible implementation, the energy Internet optimization operation method also includes: taking the state of the optimization scheduling reinforcement learning model of each microgrid as input and the transition probability of the uncertain environmental quantity of each microgrid as output, constructing an initial generative adversarial network of each microgrid; training the initial generative adversarial network of each microgrid according to the historical data of each microgrid, and obtaining a pre-trained generative adversarial network of each microgrid.
[0033] Specifically, the generative adversarial network consists of two parts: the generator and the discriminator. The input of the generator is random noise that conforms to a certain probability distribution, and new sample data is generated by learning the distribution law. The discriminator can be regarded as a binary classifier, whose input is the real sample data and the generated data, which is used to distinguish the true and false data. During the training and optimization process, a dynamic game process will be formed between the generator and the discriminator. The generator will continuously improve its ability to deceive the discriminator, while the discriminator will continuously improve its ability to distinguish the true from the false. The two will continuously improve the performance of their respective networks through adversarial training and finally achieve Nash equilibrium.
[0034] The initial generative adversarial network takes the state of the optimized dispatch reinforcement learning model of each microgrid as input to achieve coordinated training with the optimized dispatch reinforcement learning model, and takes the transition probability of the uncertain environmental quantity of the microgrid as output to achieve the simulation of the transition probability of the uncertain environmental quantity of the microgrid. In essence, it predicts the probability distribution of the uncertain environmental quantity at the next moment by fixing the state of the uncertain environmental quantity at the previous moment, and then realizes the state prediction of the uncertain environmental quantity at the next moment by sampling the probability distribution.
[0035] In the process of training the initial generative adversarial network of each microgrid, the empirical probability distribution of the uncertain environmental quantity is first calculated based on the historical data of the microgrid, and the empirical probability distribution of the uncertain environmental quantity is used as a training reference to make the transfer probability of the uncertain environmental quantity generated by the trained initial generative adversarial network as close as possible to the empirical probability distribution of the uncertain environmental quantity.
[0036] In a possible implementation, the microgrid pre-trained generative adversarial network includes several ones, each corresponding to each uncertain environmental quantity of the microgrid.
[0037] Specifically, considering that the correlation between different uncertain environmental quantities is not necessarily at a high level, different generative adversarial networks can be set for different uncertain environmental quantities and trained separately. For example, in this embodiment, different generative adversarial networks are set for new energy output and load.
[0038] Optionally, if there are several uncertain environmental quantities with high correlation, the same generative adversarial network can also be set to simulate the corresponding transition probabilities.
[0039] In a possible implementation, the generative adversarial network is constructed based on a Wasserstein generative adversarial network with gradient penalty.
[0040] Specifically, WGAN (Wasserstein Generative Adversarial Networks) is a variant of GAN (Generative Adversarial Networks). By introducing Wasserstein distance (bulldozer distance) as the objective function, WGAN has significantly improved the stability and quality of generated samples compared to traditional GAN. However, the weight clipping method used by WGAN during training has some defects, such as weakened modeling ability, gradient disappearance or explosion, etc.
[0041] WGAN-GP (WGAN with Gradient Penalty) is an improved version of WGAN. It replaces the weight clipping method used in WGAN by introducing gradient penalty, which allows the network to converge faster. At the same time, the gradient penalty term can also help avoid the problem of gradient vanishing or gradient exploding. The basic principle of WGAN-GP is to limit the gradient of the discriminator by adding a gradient penalty term to the objective function on the basis of WGAN. Specifically, the role of the gradient penalty term is to make the gradient norm of the discriminator at the interpolation point between the real sample and the generated sample as close to 1 as possible. Based on WGAN-GP, a more stable training process and better quality of generated samples can be achieved.
[0042] In a possible implementation, the pre-trained generative adversarial networks of each microgrid satisfy the following generation constraints: the transfer probabilities of the uncertain environmental quantities of each microgrid generated by the pre-trained generative adversarial networks of each microgrid fall within the probability distribution fuzzy sets constructed with the empirical probability distribution of the uncertain environmental quantities of each microgrid as the center and a preset Wasserstein distance as the radius.
[0043] Specifically, the generation constraint can limit the uncertainty of environmental quantities within a specific range to achieve a balance between economy and robustness and avoid the final optimization scheduling decision being too conservative.
[0044] The preset Wasserstein distance can be given based on historical experience. In practical applications, a specific value can be assumed for training, and the uncertainty under the preset value can be evaluated through the training results before adjustment.
[0045] In a possible implementation, during the iterative training step, after each training step is completed, the pre-trained generative adversarial network of each microgrid is updated with the goal of minimizing the reward value function of the optimization scheduling reinforcement learning model of each microgrid.
[0046] Specifically, the training process of the pre-trained generative adversarial network is added. The training goal of the pre-trained generative adversarial network is to find the worst predicted environment of the microgrid under certain constraints for the optimization scheduling reinforcement learning model to learn, so as to improve the robustness of the optimization scheduling reinforcement learning model as much as possible.
[0047] Therefore, in this embodiment, the pre-trained generative adversarial network of each microgrid is updated with the goal of minimizing the reward value function of the optimized scheduling reinforcement learning model of each microgrid. That is, the generative adversarial network can adopt a reward function setting and iteration direction that is completely opposite to that of the optimized scheduling reinforcement learning model.
[0048] In addition, combined with the settings of the previous implementation, the updated pre-trained generative adversarial networks of each microgrid also meet the corresponding generation constraints. W represents the Wasserstein distance, φ represents the updated parameters of the pre-trained generative adversarial network, φ 0 represents the initial parameters of the pre-trained generative adversarial network, and the update of the pre-trained generative adversarial network satisfies:
[0049] in, express expectations, represents the probability distribution of the updated pre-trained generative adversarial network output, represents the probability distribution of the initial pre-trained generative adversarial network output, express and The Wasserstein distance between Represents the upper limit of the Wasserstein distance.
[0050] In a possible implementation, the training of the optimization scheduling reinforcement learning model of each microgrid by using a coalition game method according to the prediction environment of each microgrid includes: The optimal dispatch reinforcement learning model of each microgrid interacts with the prediction environment of each microgrid respectively to obtain the historical experience of each microgrid; according to the net power demand data in the historical experience of each microgrid, the alliance allocation benefits and unit electricity price of each microgrid are obtained based on the market intermediate price mechanism and the Shapley value method; according to the alliance allocation benefits and unit electricity price of each microgrid, the reward function value of the optimal dispatch reinforcement learning model of each microgrid is obtained; through the judgment network of the optimal dispatch reinforcement learning model of each microgrid, according to the reward function value of the optimal dispatch reinforcement learning model of each microgrid and the historical data stored in the experience replay pool in the historical experience, the state value function of the optimal dispatch reinforcement learning model of each microgrid is obtained, and the generalized advantage estimation is performed based on the state value function of the optimal dispatch reinforcement learning model of each microgrid to obtain the advantage function of the optimal dispatch reinforcement learning model of each microgrid; according to the state value function of the optimal dispatch reinforcement learning model of each microgrid, the judgment network of the optimal dispatch reinforcement learning model of each microgrid is updated; according to the advantage function of the optimal dispatch reinforcement learning model of each microgrid, the constraint strategy-based optimization method is used to update the strategy network of the optimal dispatch reinforcement learning model of each microgrid.
[0051] In this implementation, the optimization scheduling reinforcement learning model of each microgrid can be obtained by directly using an existing optimization scheduling reinforcement learning model or directly constructing an optimization scheduling reinforcement learning model of each microgrid.
[0052] Specifically, in this implementation, the following method is used to construct an optimization scheduling reinforcement learning model for each microgrid: 1. Design of action space. The action of the optimization scheduling reinforcement learning model is defined as the internal scheduling decision variables of the microgrid, including the active output of the gas turbine, the reactive output of the gas turbine, the active output of the energy storage system, and the reactive output of the energy storage system:
[0053] in, for n Microgrids in t Optimize the scheduling of reinforcement learning model actions at all times. for n Microgrids in t The active power output of the gas turbine at the time, for n Microgrids in t The reactive power output of the gas turbine at the time, for n Microgrids in t The active output of the energy storage system at the moment, for n Microgrids in t The reactive output of the energy storage system at each moment.
[0054] 2. Design of state space. The optimization scheduling reinforcement learning model needs to make scheduling instructions in advance. Therefore, the historical information that the optimization scheduling reinforcement learning model can perceive from the environment is used as the state quantity to avoid the result deviation caused by inaccurate source and load prediction data. The active output of the gas turbine and the energy storage system at the previous moment, as well as the new energy output and load at the previous moments are used as the state In this implementation, 15 minutes is set as one moment, and the new energy output and load of the first four moments are used:
[0055] in, for n Microgrids in t Always optimize the state of the scheduling reinforcement learning model, for n Microgrids in t -1 The active power output of the gas turbine at time for n Microgrids in t -1 moment of energy storage system energy, for n Microgrids in t -4 hours of new energy output, for n Microgrids in t -1 hour of new energy output, for n Microgrids in t -4 moments of load, for n Microgrids in t -1 moment of load.
[0056] 3. Design of reward function. The reward values of the optimization scheduling reinforcement learning model of each microgrid include: 1. Microgrid operation cost reward, which is guided by the actual optimization goal to ensure the training trend of each intelligent agent. 2. Alliance contribution benefit reward, which distributes benefits according to the marginal contribution of the participating alliance to ensure the stability of the microgrid group alliance.
[0057] First, consider the determination of alliance distribution benefits and unit electricity price. Specifically, based on the net power demand data of each microgrid in historical experience, the energy Internet is obtained through the following formula t Net load power at the moment , Net power generation and net power demand : , ,
[0058] in, yes n Microgrids in t The net power demand at the moment, , For the Microgrid Alliance, is the set of microgrids with positive net power demand, is the set of microgrids with negative net power demand.
[0059] when hour, , ;when hour, , ;when hour, , ;in, for t The electricity purchase price of the upper-level power grid unit at that moment and t The electricity price of the upper-level power grid unit at that moment The median value of is the unit electricity purchase price between microgrids, It is the unit electricity selling price between microgrids.
[0060] And when t Time by ij Branch connected n Microgrid m When the microgrid sells electricity: ,
[0061] in, for n Microgrid Node i exist t The tie line power at the moment, for m Microgrid Node j exist t The tie line power at the moment, for n Microgrids in t The unit electricity price at the time, for m Microgrids in t The unit electricity purchase price at the time.
[0062] Taking the total cost reduced by collaborative optimization compared with individual optimization as the benefit function, the alliance distribution benefits of each microgrid are obtained by the following formula:
[0063]
[0064]
[0065] in, represent t Microgrid Alliance The benefits obtained, Microgrid Alliance The net load power, Microgrid Alliance The net power generation, for n Microgrid joins the Microgrid Alliance The marginal contribution of N is the total number of microgrids, S Microgrid Alliance The number of microgrids, for n Microgrids in t The alliance distributes benefits at all times. for remove n Alliance of remaining microgrids after microgrid.
[0066] Based on the above, t time n Reward value of reinforcement learning model for optimal dispatch of microgrids for:
[0067] in, for t time n Microgrid operating cost incentives for microgrids, for t time n Microgrid alliance contribution benefit rewards, is the preset scale factor.
[0068]
[0069]
[0070] in, for t time n The cost of purchasing electricity for microgrids, for t time n The power generation cost of the microgrid, for t time n Alliances of microgrids distribute benefits.
[0071]
[0072]
[0073] in, for t time n The net power demand of the microgrid, for t time n Microgrid i The active power output of the gas turbine, and is the preset coefficient, for n Gas turbine clusters for microgrids, [·] + / − Indicates positive / negative value.
[0074] Therefore, the reward function is set as follows:
[0075] in, For n Microgrid control strategy π n Take the average of all reward values generated under T To optimize the scheduling cycle time, is the discount coefficient of each microgrid’s preference for rewards at different times, for n Microgrid t The reward value at that moment.
[0076] 4. Design of the judgment network and the policy network. Specifically, the judgment network and the policy network can adopt the current conventional reinforcement learning neural network.
[0077] See also Figure 2 , shows a multi-agent collaborative framework, in which the optimization scheduling reinforcement learning model of each microgrid interacts with the prediction environment of each microgrid respectively, and then a coordination layer is set to achieve coordination between the microgrids, that is, according to the net power demand data in the historical experience of each microgrid, the alliance distribution benefits and unit electricity price of each microgrid are obtained based on the market intermediate price mechanism and the Shapley value method, and sent to each microgrid.
[0078] See also Figure 3, shows the training framework of the optimization scheduling reinforcement learning model, generates the transition probability of the uncertainty environment quantity of each microgrid through the pre-trained generative adversarial network of each microgrid, and obtains the predicted environment of each microgrid based on the transition probability, and then interacts with the predicted environment of each microgrid respectively to obtain the historical experience of each microgrid and store it in the experience replay pool, and then realizes the update of the optimization scheduling reinforcement learning model and the generative adversarial network according to the historical experience.
[0079] The constraint policy optimization method is a typical algorithm in secure reinforcement learning, which quickly solves non-convex problems in secure reinforcement learning through convex approximation and convex optimization. In this embodiment, a value function for the constraint function is set to support the update of the policy network based on the constraint policy optimization method.
[0080] Specifically, in order to reflect the constraint effect of system operation status on reinforcement learning, the constraint function is set to be transformed from the constraints of each device in the microgrid and the power flow constraints. Therefore, the value function of the constraint function is:
[0081] in, For n Microgrid control strategy π n Take the average of all constraint return values generated under for n Microgrid t The constraint function of the moment.
[0082]
[0083] in, for n The node set of the microgrid, for n Microgrid branch collection.
[0084]
[0085]
[0086]
[0087]
[0088]
[0089] in, for t Time Node i The voltage constraint satisfaction degree is for t Time Branch ij The degree of satisfaction of the current constraint, for t The degree of satisfaction of the tie line constraints at the time, for t Time Node i The gas turbine output and climbing constraint satisfaction degree, for t Time Node i The degree to which the energy storage constraints are satisfied.
[0090] For Node i Voltage lower limit, For Node i exist t The voltage at the moment, For Node i Voltage upper limit, For branch ij exist t The current at the moment, For branch ij Current limit, for n Microgrid Node i exist t The tie line power at the moment, for n Microgrid Node i The upper limit of the tie line power.
[0091] and They are n Microgrid Node i The upper and lower limits of the active output of the gas turbine; for n Microgrid Node i The upper limit of reactive power output of energy storage system; for n Microgrid Node i Maximum climbing power of the gas turbine; for n Microgrid Node i Energy storage system t The energy value at the moment, and They are n Microgrid Node i The upper and lower limits of the energy value of the energy storage system; for n Microgrid Node i Energy storage system t Active power at the moment; for n Microgrid Node iThe upper limit of the discharge power of the energy storage system; for n Microgrid Node i The upper limit of charging power of the energy storage system; for n Microgrid Node i Energy storage system t Reactive power at the moment; for n Microgrid Node i The reactive power limit of the energy storage system.
[0092] In a possible implementation, a typical park of a comprehensive energy service company is used as a representative to simulate and verify the energy Internet optimization operation method of the present invention. The typical park of the comprehensive energy service company includes three parks, each of which contains photovoltaic, cogeneration units and energy storage, and can directly trade electricity with the upper power grid. In order to more intuitively verify that the scheduling results meet the optimality law, the lowest unit power generation cost is set for Park 1, and the highest unit power generation cost is set for Park 3.
[0093] Assume that the power generation costs of photovoltaics and energy storage are ignored, and the unit power generation cost of Park 1 is lower than that of other parks. Therefore, when the load is greater than the photovoltaic power generation, the park group will first meet the load demand through photovoltaics and energy storage, and then use the gas units in Park 1 to make up for it, and finally make up the difference by using the gas units in Park 2 and purchasing electricity from the upper power grid. On the contrary, if the load is less than the photovoltaic power generation, photovoltaics will be used first to meet the demand and charge the energy storage. At this time, any excess electricity will be sold to the upper power grid to generate profits, and the output of the gas units is usually kept at the lowest level.
[0094] By analyzing the convergence curves of the overall reward value in three scenarios: alternating training of the optimization scheduling reinforcement learning model and the generative adversarial network, training only the optimization scheduling reinforcement learning model, and training only the generative adversarial network, it can be found that the optimization scheduling reinforcement learning model promotes the increase of the reward value, while the generative adversarial network minimizes the reward value to find the worst scheduling environment to improve the robustness of the decision. In addition, by analyzing the voltage amplitude curves of all nodes during the training process, it can be found that the voltage amplitudes of all nodes are kept within the constraints, which effectively ensures the safety of real-time decision-making.
[0095] In order to further illustrate that this method can take into account both economy and robustness, see Table 1, which compares the algorithm performance under different degrees of prediction error.
[0096] Table 1
[0097] It can be seen that when the prediction error is greater than 6%, the economic efficiency of the energy Internet optimization operation method of the present invention is better than the current deterministic mechanism optimization method. When the actual scheduling scenario has lower robustness requirements, the energy Internet optimization operation method of the present invention can further reduce costs and outperform the current deterministic mechanism optimization method with a smaller prediction error.
[0098] The following are device embodiments of the present invention, which can be used to implement the method embodiments of the present invention. For details not disclosed in the device embodiments, please refer to the method embodiments of the present invention.
[0099] See also Figure 4 In another embodiment of the present invention, an energy internet optimization operation system is provided, which can be used to implement the above-mentioned energy internet optimization operation method. Specifically, the energy internet optimization operation system includes a data acquisition module and a decision-making module.
[0100] Among them, the data acquisition module is used to obtain the status data of each microgrid in the energy Internet; the decision module is used to obtain the optimal scheduling decision of each microgrid through the preset strategy network model of each microgrid according to the status data of each microgrid. Among them, the preset strategy network model of each microgrid is obtained by the following method: obtaining the optimal scheduling reinforcement learning model of each microgrid; training step: generating the transition probability of the uncertainty environment quantity of each microgrid through the pre-trained generative adversarial network of each microgrid, and obtaining the predicted environment of each microgrid based on the transition probability, and training the optimal scheduling reinforcement learning model of each microgrid by using the alliance game method according to the predicted environment of each microgrid; iterating the training step until the optimal scheduling reinforcement learning model of each microgrid is trained, and obtaining the strategy network in the optimal scheduling reinforcement learning model of each microgrid, and obtaining the preset strategy network model of each microgrid.
[0101] All relevant contents of each step involved in the embodiment of the aforementioned energy internet optimization operation method can be referred to the functional description of the functional modules corresponding to the energy internet optimization operation system in the embodiment of the present invention, and will not be repeated here.
[0102] The division of modules in the embodiments of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present invention may be integrated into one processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0103] In another embodiment of the present invention, a computer device is provided, 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 a computer storage medium to implement the corresponding method flow or corresponding function; the processor described in the embodiment of the present invention can be used for the operation of the energy Internet optimization operation method.
[0104] In another embodiment of the present invention, 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, which 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 corresponding steps of the energy Internet optimization operation method in the above embodiment.
[0105] It will be appreciated by those skilled in the art 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. Furthermore, 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.
[0106] 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.
[0107] 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 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0108] 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 The steps for the functions specified in one or more boxes.
[0109] 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 it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. An energy internet optimization operation method, characterized in that: include: Obtain status data of each microgrid in the energy internet; According to the status data of each microgrid, the optimal dispatching decision of each microgrid is obtained through the preset strategic network model of each microgrid; Among them, the strategic network model preset by each microgrid is obtained by the following method: Obtain the optimal dispatch reinforcement learning model for each microgrid; Training steps: Generate the transition probability of the uncertainty environment quantity of each microgrid through the pre-trained generative adversarial network of each microgrid, and obtain the predicted environment of each microgrid based on the transition probability, and train the optimization scheduling reinforcement learning model of each microgrid by adopting the alliance game method according to the predicted environment of each microgrid; The iterative training steps are performed until the optimization scheduling reinforcement learning model training of each microgrid is completed, and the strategy network in the optimization scheduling reinforcement learning model of each microgrid is obtained to obtain the preset strategy network model of each microgrid.
2. The energy internet optimization operation method according to claim 1, characterized in that: The generative adversarial network is constructed based on the Wasserstein generative adversarial network with gradient penalty.
3. The energy internet optimization operation method according to claim 1, characterized in that: The pre-trained generative adversarial network of each microgrid satisfies the following generation constraints: The transfer probabilities of the uncertain environmental quantities of each microgrid generated by the pre-trained generative adversarial network of each microgrid fall within the probability distribution fuzzy sets constructed with the empirical probability distribution of the uncertain environmental quantity of each microgrid as the center and the preset Wasserstein distance as the radius.
4. The energy internet optimization operation method according to claim 1, characterized in that: During the iterative training step, after each training step is completed, the pre-trained generative adversarial network of each microgrid is updated with the goal of minimizing the reward value function of the optimization scheduling reinforcement learning model of each microgrid.
5. The energy internet optimization operation method according to claim 1, characterized in that: Also includes: Taking the state of the optimization scheduling reinforcement learning model of each microgrid as input and the transition probability of the uncertain environmental quantity of each microgrid as output, the initial generative adversarial network of each microgrid is constructed; According to the historical data of each microgrid, the initial generative adversarial network of each microgrid is trained to obtain the pre-trained generative adversarial network of each microgrid.
6. The energy internet optimization operation method according to claim 1, characterized in that: The method of training the optimization dispatch reinforcement learning model of each microgrid by using the alliance game method according to the prediction environment of each microgrid includes: The optimization dispatch reinforcement learning model of each microgrid interacts with the prediction environment of each microgrid to obtain the historical experience of each microgrid; According to the net power demand data from the historical experience of each microgrid, the alliance distribution benefits and unit electricity price of each microgrid are obtained based on the market intermediate price mechanism and Shapley value method; According to the alliance distribution benefits and unit electricity price of each microgrid, the reward function value of the optimal scheduling reinforcement learning model of each microgrid is obtained; Through the evaluation network of the optimal dispatch reinforcement learning model of each microgrid, according to the reward function value of the optimal dispatch reinforcement learning model of each microgrid and the historical data stored in the experience replay pool in the historical experience, the state value function of the optimal dispatch reinforcement learning model of each microgrid is obtained, and the generalized advantage estimation is performed according to the state value function of the optimal dispatch reinforcement learning model of each microgrid to obtain the advantage function of the optimal dispatch reinforcement learning model of each microgrid; According to the state value function of the optimization dispatch reinforcement learning model of each microgrid, the evaluation network of the optimization dispatch reinforcement learning model of each microgrid is updated; According to the advantage function of the optimal dispatch reinforcement learning model of each microgrid, the strategy network of the optimal dispatch reinforcement learning model of each microgrid is updated by using the constraint strategy optimization method.
7. The energy internet optimization operation method according to claim 1, characterized in that: The state data includes the active output of the gas turbine and the energy of the energy storage system at the last moment and the output and load of new energy sources at the previous moments; The uncertain environmental quantities include new energy output and load; The optimization dispatching decision of each microgrid includes the active output of the gas turbine of each microgrid, the reactive output of the gas turbine, the active output of the energy storage system and the reactive output of the energy storage system.
8. An energy internet optimization operation system, characterized in that: include: A data acquisition module is used to obtain the status data of each microgrid in the energy internet; A decision-making module is used to obtain the optimal dispatching decision of each microgrid according to the status data of each microgrid and through the strategy network model preset by each microgrid; Among them, the strategic network model preset by each microgrid is obtained by the following method: Obtain the optimal dispatch reinforcement learning model for each microgrid; Training steps: Generate the transition probability of the uncertainty environment quantity of each microgrid through the pre-trained generative adversarial network of each microgrid, and obtain the predicted environment of each microgrid based on the transition probability, and train the optimization scheduling reinforcement learning model of each microgrid by adopting the alliance game method according to the predicted environment of each microgrid; The iterative training steps are performed until the optimization scheduling reinforcement learning model training of each microgrid is completed, and the strategy network in the optimization scheduling reinforcement learning model of each microgrid is obtained to obtain the preset strategy network model of each microgrid.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the energy Internet optimization operation method as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the energy internet optimization operation method as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Method for evaluating new energy consumption capacity of hierarchical microgrid
CN112003279A
Distributed energy optimization scheduling method and device based on mixed learning
CN116451880A
Micro-grid energy storage optimization scheduling method based on deep reinforcement learning
CN117833285A
Active power distribution network optimization scheduling method, system and device and storage medium
CN118017492A
Micro-grid energy optimization scheduling method
CN118174355A
