A virtual power plant resource scheduling method based on federated learning

Through federated learning and Q-learning algorithms, the problems of high computing complexity and data privacy leakage in virtual power plant resource scheduling are solved, efficient scheduling and privacy protection of virtual power plant resources are achieved, and resource utilization efficiency is improved.

CN118677031BActive Publication Date: 2024-11-05SHAANXI SIJI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411154550.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2024-11-05
Estimated Expiration
2044-08-22

AI Technical Summary

Technical Problem

When handling distributed power resources, the existing virtual power plant resource scheduling methods have high computational complexity, increased costs and high risk of data privacy leakage, and fail to effectively consider the overall operating costs and data privacy protection.

Method used

Using the virtual power plant resource scheduling method based on federated learning, the distributed power plant data is obtained through edge computing network, the production and energy storage costs are calculated, and the scheduling optimization objective function is established to minimize operation costs. The federated learning model is trained using the Q-learning algorithm, dynamic Adjust local models and perform global aggregation to protect data privacy and optimize resource scheduling.

Benefits of technology

It effectively protects the data privacy of distributed power plants, improves the flexibility and adaptability of scheduling strategies, and maximizes the utilization efficiency of power generation equipment and market resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677031B_ABST
    Figure CN118677031B_ABST
Patent Text Reader

Abstract

The present invention discloses a virtual power plant resource scheduling method based on federated learning, which belongs to the technical field of virtual power plant resource scheduling, including: obtaining the operation data of each distributed power plant, and the electricity market price transaction data; calculating the distributed energy production cost, distributed energy storage cost and market transaction cost, and setting the distributed power plant balance constraint; establishing a scheduling optimization objective function to minimize the operating cost; determining the federated learning participants and initializing the participants' environment; establishing a federated learning global model and sending it to each participant; using the Q-learning algorithm to train the federated learning global model to obtain a personalized local model; aggregating the personalized local model to obtain a virtual power plant scheduling model, and using the virtual power plant scheduling model to schedule each distributed power plant terminal equipment. The present invention can protect the data privacy of virtual power plants, improve the system robustness and ensure the reliability of the resource scheduling system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of virtual power plant resource scheduling, and in particular to a virtual power plant resource scheduling method based on federated learning. Background Art

[0002] With the continuous upgrading of modern energy systems represented by integrated energy systems and energy Internet, the energy industry is gradually expanding new energy utilization models with the goal of efficiency, safety and sustainability. Virtual power plants, as an advanced technology that efficiently aggregates and optimizes the use of flexible resources such as renewable energy, controllable loads and energy storage systems, can effectively promote the green and low-carbon transformation of power systems. With the rapid development of smart grids and energy Internet, the proportion of distributed power resources in virtual power plants is increasing. The rational use of distributed power resources can significantly improve the operating efficiency of virtual power plants, but the scheduling of numerous small-scale distributed power resources will greatly increase the computational complexity of the power system, increase the cost of power system information maintenance, and increase the risk of data information leakage.

[0003] The patent document with the publication number CN115062835A and the name of the patent document is "Optimal Scheduling Method for Distributed Resources in Active Distribution Network Based on Virtual Power Plant". It uses virtual power plant technology to aggregate a large number of small-scale distributed resources; based on two-layer planning, a coordinated scheduling scheme between distributed energy, virtual power plants and active distribution networks is established. The upper layer is the optimal bidding problem of virtual power plants containing multiple distributed resources, with the goal of maximizing profits, and the lower layer is the market clearing model of active distribution networks, with the goal of minimizing the operating costs of the distribution system; in view of the non-convex nonlinearity of the original problem, it is converted into a mixed integer linear programming problem and solved using linear branch flow, polygonal approximation method, KKT condition and strong duality theorem. Although this method improves the visibility and controllability of various types of distributed resources in optimal scheduling, in actual operation, the way to handle the privacy data of virtual power plants is relatively weak.

[0004] The patent document with the publication number CN113919717A and the name of the method and device for virtual power plant resource scheduling for multi-objective synchronous optimization obtains the predicted wind and solar power output of the regional energy network, the predicted load fluctuation, the grid structure parameters of the distribution network system, and the parameters of the virtual power plant dispatchable equipment; constructs a virtual power plant optimization scheduling model and the constraints of the optimization scheduling model; establishes virtual power plant optimization scheduling sub-targets based on the predetermined scheduling target; optimizes and solves the upper and lower limits of the sub-targets respectively. If a sub-target has no solution, it returns to the first step of obtaining data to correct the aforementioned data; determines the weight coefficient of each sub-target, and normalizes the selected sub-target to obtain the virtual power plant optimization scheduling objective function; finally, solves the virtual power plant optimization scheduling objective function, and dispatches the controllable resources of the virtual power plant according to the solution result. This method is based on the energy structure of a small-scale area with a high proportion of new energy and a variety of dispatchable flexible resource configurations. Using a multi-objective synchronization method, it can find multiple resource scheduling schemes that meet the target expectations. However, this method does not consider the overall operating cost of the virtual power plant, and does not consider data privacy leakage. Summary of the invention

[0005] In order to solve the above technical problems, a technical solution adopted by the present invention is: to provide a virtual power plant resource scheduling method based on federated learning, the method comprising:

[0006] S100: Obtain the operating data of each distributed power plant and the electricity market price transaction data through the edge computing power network;

[0007] S200: Calculate the distributed energy production cost, distributed energy storage cost and market transaction cost according to the distributed power plant operation data and the power market electricity price transaction data, and set the distributed power plant balance constraint;

[0008] S300: Establishing a scheduling optimization objective function for minimizing operating costs according to the distributed energy production cost, distributed energy storage cost and market transaction cost;

[0009] S400: Determine the federated learning participants and initialize the environment of the participants;

[0010] S500: Establish a global federated learning model, and send the global federated learning model to each participant;

[0011] S600: Each participant uses the Q-learning algorithm to train the federated learning global model on the local edge computing server to obtain a personalized local model for each participant;

[0012] S700: Each participant sends the personalized local model to the virtual power plant central server for aggregation to obtain a virtual power plant scheduling model, and uses the virtual power plant scheduling model to schedule each distributed power plant terminal device;

[0013] The edge computing power network is composed of a three-layer architecture, namely distributed power plant terminal equipment, distributed power plant edge computing servers and virtual power plant central servers;

[0014] The distributed power plant terminal equipment includes photovoltaic power generation equipment, wind power generation equipment, thermal combustion engine power generation equipment and energy storage equipment;

[0015] The distributed power plant operation data includes: the power generation of thermal gas turbine generator sets, the power generation of wind turbine generator sets, the power generation of photovoltaic generator sets and the charge and discharge of energy storage units.

[0016] Furthermore, the distributed energy production cost is calculated by the production cost of thermal power generation units, wind power generation units and photovoltaic power generation units, and the calculation formula is:

[0017] ;

[0018] in, refers to the production cost of distributed energy. Refers to the number of thermal gas turbine generator sets, refers to the number of wind turbines. Refers to the number of photovoltaic power generation units, , , Refers to the cost characteristic coefficient of thermal gas engine generator set, It refers to the cost coefficient of wind turbine generator set. Refers to the cost coefficient of photovoltaic generator sets, Refers to the first The power generation of thermal gas turbine generators, It refers to the first The power generation of wind turbines, Refers to the photovoltaic generator set The electricity generated by each photovoltaic generator;

[0019] The distributed energy storage cost is calculated as follows:

[0020] ;

[0021] in, Refers to the distributed energy storage cost, Refers to the number of energy storage units in a distributed power plant. It refers to the cost coefficient of charging and discharging the energy storage unit. It refers to The charge and discharge capacity of each energy storage unit;

[0022] The market transaction cost is calculated based on the electricity market price, and the calculation formula is:

[0023] ;

[0024] in, refers to the market transaction costs, means The electricity market price at the moment, means The amount of electricity traded in the electricity market at any given moment;

[0025] The distributed power plant balance constraint is to ensure the balance between the distributed power plant power generation, the energy storage unit charge and discharge, the power market transaction power and the power consumption of the load equipment. The balance constraint is expressed as:

[0026] ;

[0027] in, Refers to the number of load devices, It refers to The power consumption of each load device is Refers to the first The power generation of thermal gas turbine generators, It refers to the first The power generation of wind turbines, Refers to the photovoltaic generator set The power generation of a photovoltaic generator, It refers to The charge and discharge capacity of each energy storage unit, means The amount of electricity traded in the electricity market at any given moment, Refers to the number of thermal gas turbine generator sets, refers to the number of wind turbines. Refers to the number of photovoltaic power generation units, Refers to the number of energy storage units in a distributed power plant.

[0028] Furthermore, the dispatch optimization objective function refers to a dispatch optimization function established with the goal of minimizing the operating cost of the virtual power plant, which is expressed as:

[0029] ;

[0030] in, refers to the scheduling optimization objective function, refers to the production cost of distributed energy. refers to the distributed energy storage cost, Refers to market transaction costs.

[0031] Furthermore, the determining of the federated learning participants and initializing the environment of the participants refers to the virtual power plant central server determining each distributed power plant edge computing server participating in the federated learning in the virtual power plant and further initializing the training environment of each distributed power plant edge computing server;

[0032] The said parties refer to the distributed power plant edge computing servers;

[0033] Initializing the training environment of the edge computing servers of each distributed power plant refers to modeling the Markov decision process of each distributed power plant, including establishing a distributed power plant state space, a distributed power plant scheduling action space, and a distributed power plant reward function;

[0034] The distributed power plant state space includes the charge state of the energy storage unit, the output of the power generation equipment, and the load. The distributed power plant state space is expressed as:

[0035] ;

[0036] ;

[0037] in, refers to the distributed power plant state space, Distributed power plants Moment status, It refers to the amount of electricity generated by power generation equipment. Refers to the power consumption of the load equipment. refers to the charge state of the energy storage unit, It refers to the number of states contained in the state space of a distributed power plant;

[0038] The distributed power plant dispatch action space refers to the regulation of the power generation and energy storage of the distributed power plant, which is expressed as:

[0039] ;

[0040] ;

[0041] in, It refers to the dispatching action space of distributed power plants. Distributed power plants Schedule actions at all times. It refers to the amount of electricity generated by power generation equipment. Refers to the charge and discharge capacity of the energy storage unit. It refers to the number of actions contained in the distributed power plant dispatch action space;

[0042] The distributed power plant reward function is set according to the operating cost of the virtual power plant and is expressed as:

[0043] r t =- ρ 1 [ f cost + f ess + f ma ]- ρ 2 ∆P ;

[0044] in, Distributed power plants Get rewarded all the time. refers to the production cost of distributed energy. refers to the distributed energy storage cost, refers to the market transaction costs, is the reward coefficient, It refers to the imbalance in power generation of distributed power plants.

[0045] Furthermore, the federated learning global model refers to a Q value table whose size is the distributed power plant state space multiplied by the distributed power plant scheduling action space by a small random initialization, expressed as:

[0046] ;

[0047] in, refers to the initialized federated learning global model, Distributed power plants Moment status, Distributed power plants Schedule actions at all times.

[0048] Furthermore, the use of the Q-learning algorithm to train the federated learning global model means that each participant updates the federated learning global model according to the Q-learning update rule after receiving the federated learning global model sent by the virtual power plant central server, so as to obtain a personalized local model for each participant;

[0049] The Q-learning update rule is expressed as:

[0050] Q ( s t , a t )= Q ( s t , a t )+λ[ r t +γMaxQ( s t+1 , a t +1 )-Q( s t , a t )] ;

[0051] in, means Always in the state Distributed power plants perform dispatching actions The corresponding Q value table, is the learning rate, Distributed power plants Get rewarded all the time. is the discount factor, Distributed power plants Moment status, Distributed power plants Schedule actions at all times. means The state of the distributed power plant at the moment, means Distributed power plant dispatching actions at each moment, means Always in the state Distributed power plants perform dispatching actions The corresponding maximum Q value table.

[0052] Further, the S700 includes:

[0053] S710: Aggregate the personalized local models sent by each participant to the central server of the virtual power plant through a federated averaging algorithm to obtain an aggregated federated learning global model;

[0054] S720: Determine whether the maximum number of training rounds is reached. If so, use the aggregated federated learning global model as a virtual power plant scheduling model. If not, proceed to S730.

[0055] S730: Send the aggregated federated learning global model to each participant, and iteratively train a personalized local model;

[0056] S740: Sending the virtual power plant scheduling model to each participant, and each participant schedules each distributed power plant terminal device according to the virtual power plant scheduling model;

[0057] The federated averaging algorithm is expressed as:

[0058] ;

[0059] in, It refers to the aggregated federated learning global model. is the number of participants, It refers to Personalized local models of each participant;

[0060] The said participants dispatch the terminal equipment of each distributed power plant according to the virtual power plant dispatching model, which means that the virtual power plant dispatching model is used to select the optimal dispatching action with the goal of minimizing operating costs in each distributed power plant state to dispatch the terminal equipment of the distributed power plant.

[0061] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:

[0062] 1. The present invention provides a virtual power plant resource scheduling method based on federated learning. By constructing a federated learning model, the data is retained on the local edge server of each participant for training, thereby effectively protecting the privacy of the operating data of each distributed power plant and the power market transaction data, and avoiding the risk of data leakage.

[0063] 2. The present invention provides a virtual power plant resource scheduling method based on federated learning, which can timely reflect changes in the power market and the operating status of distributed power plants by dynamically adjusting the local models of each participant and performing global aggregation, thereby ensuring the flexibility and adaptability of the scheduling strategy.

[0064] 3. The present invention provides a virtual power plant resource scheduling method based on federated learning. By adopting the Q-learning reinforcement learning algorithm, personalized learning is performed on the resource scheduling of each distributed power plant to generate a highly adaptable local model, which can maximize the utilization efficiency of power generation equipment and market resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 It is a flow chart of a virtual power plant resource scheduling method based on federated learning of the present invention.

[0066] Figure 2 It is a federated learning model aggregation flow chart of a virtual power plant resource scheduling method based on federated learning in the present invention. DETAILED DESCRIPTION

[0067] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making a clearer and more definite definition of the protection scope of the present invention.

[0068] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present invention, rather than all of the embodiments.

[0069] See also Figure 1 and Figure 2 , the embodiment of the present invention includes:

[0070] like Figure 1 As shown, a virtual power plant resource scheduling method based on federated learning includes:

[0071] S100: Obtain the operating data of each distributed power plant and the electricity market price transaction data through the edge computing power network;

[0072] The edge computing power network is composed of a three-layer architecture, namely distributed power plant terminal equipment, distributed power plant edge computing servers and virtual power plant central servers;

[0073] The distributed power plant terminal equipment includes photovoltaic power generation equipment, wind power generation equipment, thermal combustion engine power generation equipment and energy storage equipment;

[0074] The distributed power plant operation data includes: the power generation of thermal gas turbine generator sets, the power generation of wind turbine generator sets, the power generation of photovoltaic generator sets and the charge and discharge of energy storage units.

[0075] S200: Calculate the distributed energy production cost, distributed energy storage cost and market transaction cost according to the distributed power plant operation data and the power market electricity price transaction data, and set the distributed power plant balance constraint.

[0076] Furthermore, the distributed energy production cost is calculated by the production cost of thermal power generation units, wind power generation units and photovoltaic power generation units, and the calculation formula is:

[0077] ;

[0078] in, refers to the production cost of distributed energy. Refers to the number of thermal gas turbine generator sets, refers to the number of wind turbines. Refers to the number of photovoltaic power generation units, , , Refers to the cost characteristic coefficient of thermal gas engine generator set, It refers to the cost coefficient of wind turbine generator set. Refers to the cost coefficient of photovoltaic generator sets, Refers to the first The power generation of thermal gas turbine generators, It refers to the first The power generation of wind turbines, Refers to the photovoltaic generator set The electricity generated by each photovoltaic generator;

[0079] The distributed energy storage cost is calculated as follows:

[0080] ;

[0081] in, Refers to the distributed energy storage cost, Refers to the number of energy storage units in a distributed power plant. It refers to the cost coefficient of charging and discharging the energy storage unit. It refers to The charge and discharge capacity of each energy storage unit;

[0082] The market transaction cost is calculated based on the electricity market price, and the calculation formula is:

[0083] ;

[0084] in, refers to the market transaction costs, means The electricity market price at the moment, means The amount of electricity traded in the electricity market at any given moment;

[0085] The distributed power plant balance constraint is to ensure the balance between the distributed power plant power generation, the energy storage unit charge and discharge, the power market transaction power and the power consumption of the load equipment. The balance constraint is expressed as:

[0086] ;

[0087] in, Refers to the number of load devices, It refers to The power consumption of each load device is Refers to the first The power generation of thermal gas turbine generators, It refers to the first The power generation of wind turbines, Refers to the photovoltaic generator set The power generation of a photovoltaic generator, It refers to The charge and discharge capacity of each energy storage unit, means The amount of electricity traded in the electricity market at any given moment, Refers to the number of thermal gas turbine generator sets, refers to the number of wind turbines. Refers to the number of photovoltaic power generation units, Refers to the number of energy storage units in a distributed power plant.

[0088] S300: Establishing a scheduling optimization objective function to minimize operating costs based on the distributed energy production costs, distributed energy storage costs and market transaction costs.

[0089] Furthermore, the dispatch optimization objective function refers to a dispatch optimization function established with the goal of minimizing the operating cost of the virtual power plant, which is expressed as:

[0090] ;

[0091] in, refers to the scheduling optimization objective function, refers to the production cost of distributed energy. refers to the distributed energy storage cost, Refers to market transaction costs.

[0092] S400: Determine the federated learning participants and initialize the environment of the participants.

[0093] Furthermore, the determining of the federated learning participants and initializing the environment of the participants refers to the virtual power plant central server determining each distributed power plant edge computing server participating in the federated learning in the virtual power plant and further initializing the training environment of each distributed power plant edge computing server;

[0094] The said parties refer to the distributed power plant edge computing servers;

[0095] Initializing the training environment of the edge computing servers of each distributed power plant refers to modeling the Markov decision process of each distributed power plant, including establishing a distributed power plant state space, a distributed power plant scheduling action space, and a distributed power plant reward function;

[0096] The distributed power plant state space includes the charge state of the energy storage unit, the output of the power generation equipment, and the load. The distributed power plant state space is expressed as:

[0097] ;

[0098] ;

[0099] in, refers to the distributed power plant state space, Distributed power plants Moment status, It refers to the amount of electricity generated by power generation equipment. Refers to the power consumption of the load equipment. refers to the charge state of the energy storage unit, It refers to the number of states contained in the state space of a distributed power plant;

[0100] The distributed power plant dispatch action space refers to the regulation of the power generation and energy storage of the distributed power plant, which is expressed as:

[0101] ;

[0102] ;

[0103] in, It refers to the dispatching action space of distributed power plants. Distributed power plants Schedule actions at all times. It refers to the amount of electricity generated by power generation equipment. Refers to the charge and discharge capacity of the energy storage unit. It refers to the number of actions contained in the distributed power plant dispatch action space;

[0104] The distributed power plant reward function is set according to the operating cost of the virtual power plant and is expressed as:

[0105] r t =- ρ 1 [ f cost + f ess + f ma ]- ρ 2 ∆P ;

[0106] in, Distributed power plants Get rewarded all the time. refers to the production cost of distributed energy. refers to the distributed energy storage cost, refers to the market transaction costs, is the reward coefficient, It refers to the imbalance in power generation of distributed power plants.

[0107] S500: Establish a global federated learning model, and send the global federated learning model to each participant.

[0108] Furthermore, the federated learning global model refers to a Q value table whose size is the distributed power plant state space multiplied by the distributed power plant scheduling action space by a small random initialization, expressed as:

[0109] ;

[0110] in, refers to the initialized federated learning global model, Distributed power plants Moment status, Distributed power plants Schedule actions at all times.

[0111] S600: Each participant uses the Q-learning algorithm on the local edge computing server to train the federated learning global model to obtain a personalized local model for each participant.

[0112] Furthermore, the use of the Q-learning algorithm to train the federated learning global model means that each participant updates the federated learning global model according to the Q-learning update rule after receiving the federated learning global model sent by the virtual power plant central server, so as to obtain a personalized local model for each participant;

[0113] The Q-learning update rule is expressed as:

[0114] Q ( s t , a t )= Q ( s t , a t )+λ[ r t +γMaxQ( s t+1 , a t +1 )-Q( s t , a t )] ;

[0115] in, means Always in the state Distributed power plants perform dispatching actions The corresponding Q value table, is the learning rate, Distributed power plants Get rewarded all the time. is the discount factor, Distributed power plants Moment status, Distributed power plants Schedule actions at all times. means The state of the distributed power plant at the moment, means Distributed power plant dispatching actions at each moment, means Always in the state Distributed power plants perform dispatching actions The corresponding maximum Q value table.

[0116] S700: Each participant sends the personalized local model to the virtual power plant central server for aggregation to obtain a virtual power plant scheduling model, and uses the virtual power plant scheduling model to schedule each distributed power plant terminal equipment.

[0117] Furthermore, if Figure 2 As shown, the S700 includes:

[0118] S710: Aggregate the personalized local models sent by each participant to the central server of the virtual power plant through a federated averaging algorithm to obtain an aggregated federated learning global model;

[0119] S720: Determine whether the maximum number of training rounds is reached. If so, use the aggregated federated learning global model as a virtual power plant scheduling model. If not, proceed to S730.

[0120] S730: Send the aggregated federated learning global model to each participant, and iteratively train a personalized local model;

[0121] S740: Sending the virtual power plant scheduling model to each participant, and each participant schedules each distributed power plant terminal device according to the virtual power plant scheduling model;

[0122] The federated averaging algorithm is expressed as:

[0123] ;

[0124] in, It refers to the aggregated federated learning global model. is the number of participants, It refers to Personalized local models of each participant;

[0125] The said participants dispatch the terminal equipment of each distributed power plant according to the virtual power plant dispatching model, which means that the virtual power plant dispatching model is used to select the optimal dispatching action with the goal of minimizing operating costs in each distributed power plant state to dispatch the terminal equipment of the distributed power plant.

[0126] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A virtual power plant resource scheduling method based on federated learning, characterized in that: include: S100: Obtain the operating data of each distributed power plant and the electricity market price transaction data through the edge computing power network; S200: Calculate the distributed energy production cost, distributed energy storage cost and market transaction cost according to the distributed power plant operation data and the power market electricity price transaction data, and set the distributed power plant balance constraint; S300: Establishing a scheduling optimization objective function for minimizing operating costs according to the distributed energy production cost, distributed energy storage cost and market transaction cost; S400: Determine the federated learning participants and initialize the environment of the participants; S500: Establish a global federated learning model, and send the global federated learning model to each participant; S600: Each participant uses a Q-learning algorithm to train the federated learning global model on a local edge computing server to obtain a personalized local model; S700: Each participant sends the personalized local model to the virtual power plant central server for aggregation to obtain a virtual power plant scheduling model, and uses the virtual power plant scheduling model to schedule each distributed power plant terminal device; The edge computing power network is composed of a three-layer architecture, namely distributed power plant terminal equipment, distributed power plant edge computing servers and virtual power plant central servers; The distributed power plant terminal equipment includes photovoltaic power generation equipment, wind power generation equipment, thermal combustion engine power generation equipment and energy storage equipment; The distributed power plant operation data includes: the power generation of thermal gas turbine generator sets, the power generation of wind turbine generator sets, the power generation of photovoltaic generator sets and the charge and discharge of energy storage units; Determining the federated learning participants and initializing the environment of the participants means that the virtual power plant central server determines each distributed power plant edge computing server participating in the federated learning in the virtual power plant and further initializes the training environment of each distributed power plant edge computing server; The said parties refer to the distributed power plant edge computing servers; Initializing the training environment of the edge computing servers of each distributed power plant refers to modeling the Markov decision process of each distributed power plant, including establishing a distributed power plant state space, a distributed power plant scheduling action space, and a distributed power plant reward function; The distributed power plant state space includes the charge state of the energy storage unit, the output of the power generation equipment, and the load. The distributed power plant state space is expressed as: ; ; in, refers to the distributed power plant state space, Distributed power plants Moment status, It refers to the amount of electricity generated by power generation equipment. Refers to the power consumption of the load equipment. refers to the charge state of the energy storage unit, It refers to the number of states contained in the state space of a distributed power plant; The distributed power plant dispatch action space refers to the regulation of the power generation and energy storage of the distributed power plant, which is expressed as: ; ; in, It refers to the dispatching action space of distributed power plants. Distributed power plants Schedule actions at all times. It refers to the amount of electricity generated by power generation equipment. Refers to the charge and discharge capacity of the energy storage unit. It refers to the number of actions contained in the distributed power plant dispatch action space; The distributed power plant reward function is set according to the operating cost of the virtual power plant and is expressed as: ; in, Distributed power plants Get rewarded all the time. refers to the production cost of distributed energy. refers to the distributed energy storage cost, refers to the market transaction costs, is the reward coefficient, It refers to the imbalance in power generation of distributed power plants.

2. A virtual power plant resource scheduling method based on federated learning as claimed in claim 1, characterized in that: The distributed energy production cost is calculated by the production cost of thermal gas turbine generator sets, wind turbine generator sets and photovoltaic generator sets. The calculation formula is: ; in, refers to the production cost of distributed energy. Refers to the number of thermal gas turbine generator sets, refers to the number of wind turbines. Refers to the number of photovoltaic power generation units, , , Refers to the cost characteristic coefficient of thermal gas engine generator set, It refers to the cost coefficient of wind turbine generator set. Refers to the cost coefficient of photovoltaic generator sets, Refers to the first The power generation of thermal gas turbine generators, It refers to the first The power generation of wind turbines, Refers to the photovoltaic generator set The electricity generated by each photovoltaic generator; The distributed energy storage cost is calculated as follows: ; in, Refers to the distributed energy storage cost, Refers to the number of energy storage units in a distributed power plant. It refers to the cost coefficient of charging and discharging the energy storage unit. It refers to The charge and discharge capacity of each energy storage unit; The market transaction cost is calculated based on the electricity market price, and the calculation formula is: ; in, refers to the market transaction costs, means The electricity market price at the moment, means The amount of electricity traded in the electricity market at any given moment; The distributed power plant balance constraint is to ensure the balance between the distributed power plant power generation, the energy storage unit charge and discharge, the power market transaction power and the power consumption of the load equipment. The balance constraint is expressed as: ; in, Refers to the number of load devices, It refers to The power consumption of each load device, Refers to the first The power generation of thermal gas turbine generators, It refers to the first The power generation of wind turbines, Refers to the photovoltaic generator set The power generation of a photovoltaic generator, It refers to The charge and discharge capacity of each energy storage unit, means The amount of electricity traded in the electricity market at any given moment, Refers to the number of thermal gas turbine generator sets, refers to the number of wind turbines. Refers to the number of photovoltaic power generation units, Refers to the number of energy storage units in a distributed power plant.

3. A virtual power plant resource scheduling method based on federated learning as claimed in claim 1, characterized in that: The dispatch optimization objective function refers to a dispatch optimization function established with the goal of minimizing the operating cost of the virtual power plant, which is expressed as: ; in, refers to the scheduling optimization objective function, refers to the production cost of distributed energy. refers to the distributed energy storage cost, Refers to market transaction costs.

4. A virtual power plant resource scheduling method based on federated learning as claimed in claim 1, characterized in that: The federated learning global model refers to a Q-value table whose size is the distributed power plant state space multiplied by the distributed power plant scheduling action space by a small random initialization, which is expressed as: ; in, refers to the initialized federated learning global model, Distributed power plants Moment status, Distributed power plants Schedule actions at all times.

5. A virtual power plant resource scheduling method based on federated learning as claimed in claim 1, characterized in that: The adopting of the Q-learning algorithm to train the federated learning global model means that each participant updates the federated learning global model according to the Q-learning update rule after receiving the federated learning global model sent by the virtual power plant central server, so as to obtain a personalized local model for each participant; The Q-learning update rule is expressed as: ; in, means Always in the state Distributed power plants perform dispatching actions The corresponding Q value table, is the learning rate, Distributed power plants Get rewarded all the time. is the discount factor, Distributed power plants Moment status, Distributed power plants Schedule actions at all times. means The state of the distributed power plant at the moment, means Distributed power plant dispatching actions at each moment, means Always in the state Distributed power plants perform dispatching actions The corresponding maximum Q value table.

6. A virtual power plant resource scheduling method based on federated learning as claimed in claim 1, characterized in that: The S700 includes: S710: Aggregate the personalized local models sent by each participant to the central server of the virtual power plant through a federated averaging algorithm to obtain an aggregated federated learning global model; S720: Determine whether the maximum number of training rounds is reached. If so, use the aggregated federated learning global model as a virtual power plant scheduling model. If not, proceed to S730. S730: Send the aggregated federated learning global model to each participant, and iteratively train a personalized local model; S740: Sending the virtual power plant scheduling model to each participant, and each participant schedules each distributed power plant terminal device according to the virtual power plant scheduling model; The federated averaging algorithm is expressed as: ; in, It refers to the aggregated federated learning global model. is the number of participants, It refers to Personalized local models of each participant; The said participants dispatch the terminal equipment of each distributed power plant according to the virtual power plant dispatching model, which means that the virtual power plant dispatching model is used to select the optimal dispatching action with the goal of minimizing operating costs in each distributed power plant state to dispatch the terminal equipment of the distributed power plant.