Virtual power plant hierarchical transaction method and system based on multi-task learning
By using multi-task learning and neural networks between virtual power plants and multiple trading markets, the progress of each trading task is balanced, and the problem of unbalanced resource allocation in the trading market is solved, and the balance between trading markets is achieved.
Patent Information
- Application Number
- CN202410856026.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-06-28
AI Technical Summary
It is difficult for virtual power plants to balance hierarchical transactions when trading settlements with various trading markets, which can easily lead to a certain market dominance and affect the balance of resource allocation.
A multi-task learning method is adopted to arrange trading tasks between virtual power plants and multiple trading markets through neural networks, and obtain joint trading tasks through multi-task learning. The task weight is set to balance the progress of each trading task and avoid single market dominance.
The transaction settlement balance between virtual power plants and various trading markets is achieved, ensuring the balance of resource allocation and avoiding the problem of uneven resource allocation.
Smart Images

Figure CN118970872A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of virtual power plants, and in particular to a virtual power plant hierarchical trading method and system based on multi-task learning. Background Art
[0002] A virtual power plant is a power coordination management system that uses advanced information and communication technologies and software systems to achieve the aggregation and coordinated optimization of DERs such as DG, energy storage systems, controllable loads, and electric vehicles, so that it can participate in the power market and power grid operation as a special power plant. The core of the concept of a virtual power plant can be summarized as "communication" and "aggregation". The key technologies of a virtual power plant mainly include coordinated control technology, smart metering technology, and information and communication technology.
[0003] At present, in order to promote the enthusiasm of virtual power plant operators, increase the level of new energy consumption, and form a stable coordinated interaction capability between virtual power plants and power grids, virtual power plants are traded in a tiered manner, which greatly optimizes the resource allocation between virtual power plants.
[0004] Most of the existing technologies consider the cost structure of virtual power plants, or the characteristics of internal resources, or the degree of clean energy consumption, but rarely consider the settlement and profit distribution plan of virtual power plants. However, virtual power plants can participate in the electricity market, natural gas market, carbon trading market, and peak-shaving market as a whole. It is difficult to achieve balanced hierarchical transactions when conducting transactions and settlements with various trading markets, which can easily lead to transactions being dominated by a certain market, ultimately affecting the effect of hierarchical transactions and causing unbalanced resource allocation among virtual power plants. Summary of the invention
[0005] The purpose of the present invention is to provide a virtual power plant hierarchical trading method based on multi-task learning, so as to solve the technical problem that it is difficult to achieve balanced hierarchical transactions when virtual power plants conduct transaction settlements with various trading markets in the prior art, which easily leads to transactions being dominated by a certain market, ultimately affecting the effect of hierarchical transactions and causing unbalanced resource allocation among virtual power plants.
[0006] In order to solve the above technical problems, the present invention specifically provides the following technical solutions:
[0007] A virtual power plant hierarchical trading method based on multi-task learning includes the following steps:
[0008] Obtain transaction data for virtual power plants to settle with multiple trading markets;
[0009] Based on the transaction data, using a neural network, respectively arrange transaction tasks for settlement between the virtual power plant and the multiple trading markets;
[0010] Multi-task learning is performed on each trading task to obtain a joint trading task for hierarchical settlement between the virtual power plant and multiple trading markets.
[0011] As a preferred solution of the present invention, the trading market includes: an electric energy market, a natural gas market, a carbon trading market, and a peak-shaving market.
[0012] As a preferred solution of the present invention, the transaction data of the electric energy market includes the scale of aggregatable resources, the scale of total load, and the electricity clearing price of the electric energy market;
[0013] The transaction data of the peak-shaving market includes the peak-shaving declared quantity and electricity clearing price generated by the peak-shaving demand of the peak-shaving market;
[0014] The transaction data of the carbon trading market includes the carbon trading volume and carbon clearing price of the carbon trading market;
[0015] The transaction data of the natural gas market include the natural gas trading volume and natural gas clearing price in the natural gas market.
[0016] As a preferred solution of the present invention, the method for constructing the transaction task includes:
[0017] The mathematical relationship between the transaction data of the electric energy market and the income of the virtual power plant in the electric energy market is encapsulated into the BP neural network, and the electric energy market transaction task of obtaining the income of the virtual power plant in the electric energy market according to the transaction data of the electric energy market is obtained. The electric energy market transaction task is:
[0018] M1=BP(data1), where M1 is the revenue of the virtual power plant in the electric energy market, data1 is the transaction data of the electric energy market, and BP is the BP neural network;
[0019] The mathematical relationship between the transaction data of the natural gas market and the revenue of the virtual power plant in the natural gas market is encapsulated into the BP neural network, and a natural gas market transaction task is obtained to obtain the revenue of the virtual power plant in the natural gas market according to the transaction data of the natural gas market. The natural gas market transaction task is:
[0020] M2 = BP (data2), where M2 is the revenue of the virtual power plant in the natural gas market, data2 is the transaction data of the natural gas market, and BP is the BP neural network;
[0021] The mathematical relationship between the transaction data of the carbon trading market and the income of the virtual power plant in the carbon trading market is encapsulated into the BP neural network, and the carbon trading market transaction task of obtaining the income of the virtual power plant in the carbon trading market according to the transaction data of the carbon trading market is obtained. The carbon trading market transaction task is:
[0022] M3 = BP (data3), where M3 is the revenue of the virtual power plant in the carbon trading market, data3 is the transaction data of the carbon trading market, and BP is the BP neural network;
[0023] The mathematical relationship between the transaction data of the peak-shaving market and the revenue of the virtual power plant in the peak-shaving market is encapsulated into the BP neural network, and the peak-shaving market transaction task for obtaining the revenue of the virtual power plant in the peak-shaving market according to the transaction data of the peak-shaving market is obtained. The peak-shaving market transaction task is:
[0024] M4=BP(data4), where M4 is the revenue of the virtual power plant in the peak-shaving market, data4 is the transaction data of the peak-shaving market, and BP is the BP neural network.
[0025] As a preferred solution of the present invention, the method for constructing the joint transaction task includes:
[0026] Set the task weight of each transaction task;
[0027] Jointly training each transaction task by using the task weights to obtain the joint transaction task;
[0028] The joint transaction tasks are:
[0029]
[0030] Wherein, A1, A2, A3 and A4 are the task weights of the electric energy market trading task, natural gas market trading task, carbon trading market trading task and peak-shaving market trading task respectively, M1 is the income of the virtual power plant in the electric energy market, data1 is the trading data of the electric energy market, M2 is the income of the virtual power plant in the natural gas market, data2 is the trading data of the natural gas market, M3 is the income of the virtual power plant in the carbon trading market, data3 is the trading data of the carbon trading market, M4 is the income of the virtual power plant in the peak-shaving market, and data4 is the trading data of the peak-shaving market.
[0031] As a preferred solution of the present invention, the method for setting the task weight includes:
[0032] Determine the transaction progress of each transaction task through the loss function of each transaction task;
[0033] Using the transaction progress to set task weights;
[0034] The task weights are:
[0035]
[0036] Among them, C i (t-1) = Li (t-1) / L i (t-2), i∈[1,2,3,4];
[0037] In the formula, A i (t) is A i The task weight at the tth transaction time, C i (t-1) is A i The transaction progress at the t-1th transaction time, L i (t-1) is A i The loss function at the t-1th transaction time, L i (t-2) is A i The loss function at the t-2th transaction moment, N is the total number of transaction tasks, T is the total length of the transaction moment, i, j, t are all counting variables.
[0038] As a preferred solution of the present invention, the loss function is a function for quantifying the error between the predicted value of the revenue of the transaction task and the true value of the revenue.
[0039] As a preferred solution of the present invention, the present invention provides a virtual power plant hierarchical trading system based on multi-task learning, which is applied to the virtual power plant hierarchical trading method based on multi-task learning, and the system includes:
[0040] A data acquisition unit, used to obtain transaction data used for settlement between the virtual power plant and multiple trading markets;
[0041] A data processing unit, configured to use a joint transaction task to perform hierarchical settlement between the virtual power plant and multiple transaction markets based on the transaction data;
[0042] The data storage unit is used to store the joint transaction tasks.
[0043] As a preferred solution of the present invention, the method for constructing a joint transaction task in the data processing unit includes:
[0044] Set the task weight of each transaction task;
[0045] Jointly training each transaction task by using the task weights to obtain the joint transaction task;
[0046] The joint transaction tasks are:
[0047]
[0048] Wherein, A1, A2, A3 and A4 are the task weights of the electric energy market trading task, natural gas market trading task, carbon trading market trading task and peak-shaving market trading task respectively, M1 is the income of the virtual power plant in the electric energy market, data1 is the trading data of the electric energy market, M2 is the income of the virtual power plant in the natural gas market, data2 is the trading data of the natural gas market, M3 is the income of the virtual power plant in the carbon trading market, data3 is the trading data of the carbon trading market, M4 is the income of the virtual power plant in the peak-shaving market, and data4 is the trading data of the peak-shaving market.
[0049] As a preferred solution of the present invention, the method for constructing each transaction task includes:
[0050] The mathematical relationship between the transaction data of the electric energy market and the income of the virtual power plant in the electric energy market is encapsulated into the BP neural network, and the electric energy market transaction task of obtaining the income of the virtual power plant in the electric energy market according to the transaction data of the electric energy market is obtained. The electric energy market transaction task is:
[0051] M1=BP(data1), where M1 is the revenue of the virtual power plant in the electric energy market, data1 is the transaction data of the electric energy market, and BP is the BP neural network;
[0052] The mathematical relationship between the transaction data of the natural gas market and the revenue of the virtual power plant in the natural gas market is encapsulated into the BP neural network, and a natural gas market transaction task is obtained to obtain the revenue of the virtual power plant in the natural gas market according to the transaction data of the natural gas market. The natural gas market transaction task is:
[0053] M2 = BP (data2), where M2 is the revenue of the virtual power plant in the natural gas market, data2 is the transaction data of the natural gas market, and BP is the BP neural network;
[0054] The mathematical relationship between the transaction data of the carbon trading market and the income of the virtual power plant in the carbon trading market is encapsulated into the BP neural network, and the carbon trading market transaction task of obtaining the income of the virtual power plant in the carbon trading market according to the transaction data of the carbon trading market is obtained. The carbon trading market transaction task is:
[0055] M3 = BP (data3), where M3 is the revenue of the virtual power plant in the carbon trading market, data3 is the transaction data of the carbon trading market, and BP is the BP neural network;
[0056] The mathematical relationship between the transaction data of the peak-shaving market and the revenue of the virtual power plant in the peak-shaving market is encapsulated into the BP neural network, and the peak-shaving market transaction task for obtaining the revenue of the virtual power plant in the peak-shaving market according to the transaction data of the peak-shaving market is obtained. The peak-shaving market transaction task is:
[0057] M4=BP(data4), where M4 is the revenue of the virtual power plant in the peak-shaving market, data4 is the transaction data of the peak-shaving market, and BP is the BP neural network.
[0058] Compared with the prior art, the present invention has the following beneficial effects:
[0059] The present invention utilizes a neural network to respectively arrange transaction tasks for settlement between a virtual power plant and multiple trading markets; and performs multi-task learning on each transaction task to obtain a joint transaction task for hierarchical settlement between the virtual power plant and multiple trading markets, thereby achieving balanced hierarchical transactions when the virtual power plant conducts transaction settlement with each trading market, avoiding transactions being dominated by a certain market, and ultimately balancing resource allocation between virtual power plants. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0061] Figure 1 A flow chart of a virtual power plant hierarchical trading method provided in an embodiment of the present invention;
[0062] Figure 2 A block diagram of a virtual power plant hierarchical trading system provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0063] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0064] like Figure 1 As shown, the present invention provides a virtual power plant hierarchical trading method based on multi-task learning, comprising the following steps:
[0065] Obtain transaction data for virtual power plants to settle with multiple trading markets;
[0066] Based on transaction data, a neural network is used to arrange transaction tasks for settlement between virtual power plants and multiple trading markets.
[0067] Multi-task learning is performed on each trading task to obtain a joint trading task for hierarchical settlement between the virtual power plant and multiple trading markets.
[0068] The present invention encapsulates the transactions between virtual power plants and the electric energy market, natural gas market, carbon trading market, and peak-shaving market into independent transaction tasks through neural networks, so that the profit settlement results of the virtual power plant can be obtained according to the transaction data of each trading market.
[0069] In order to balance the transactions of virtual power plants with the electric energy market, natural gas market, carbon trading market, and peak-shaving market, that is, to achieve balanced resource allocation of virtual power plants among the electric energy market, natural gas market, carbon trading market, and peak-shaving market, the present invention balances the progress of various transaction tasks during the transaction process through multi-task learning to avoid the dominance of a single task.
[0070] Specifically, by monitoring the loss function of each transaction task, the progress of each transaction task can be monitored. The loss function is used to calculate the rate of decrease of the loss function. The faster the rate of decrease of the loss function is, the faster the progress of the transaction task is and the stronger the transaction dominance is.
[0071] Therefore, the present invention sets task weights so that trading tasks with faster task progress and stronger dominance have low task weights, thereby lowering their task progress or dominance, and trading tasks with slow task progress and weak dominance have high task weights, thereby improving their task progress or dominance, thereby achieving balance in the progress of trading tasks, that is, each trading task is settled and executed with similar dominance, ultimately achieving balance in resource allocation of virtual power plants among the electricity energy market, natural gas market, carbon trading market, and peak-shaving market.
[0072] Trading markets include: electricity market, natural gas market, carbon trading market, and peak-shaving market.
[0073] The transaction data of the electric energy market includes the scale of aggregated resources, total load scale, and electricity clearing price of the electric energy market. The revenue of the virtual power plant in the electric energy market is (scale of aggregated resources - total load scale) * electricity clearing price.
[0074] The transaction data of the peak-shaving market includes the peak-shaving declared volume and electricity-clearing price generated by the peak-shaving demand in the peak-shaving market. The revenue of the virtual power plant in the peak-shaving market is the peak-shaving declared volume*electricity-clearing price.
[0075] The transaction data of the carbon trading market includes the carbon trading volume and carbon clearing price of the carbon trading market. The income of the virtual power plant in the carbon trading market is the carbon trading volume*carbon clearing price;
[0076] The transaction data of the natural gas market include the natural gas trading volume and natural gas clearing price in the natural gas market. The income of the virtual power plant in the natural gas market is the natural gas trading volume * natural gas clearing price.
[0077] The present invention encapsulates the transactions between virtual power plants and the electric energy market, natural gas market, carbon trading market, and peak-shaving market into independent transaction tasks through neural networks, so that the revenue settlement results of virtual power plants can be obtained according to the transaction data of each trading market, as follows:
[0078] The construction method of transaction tasks includes:
[0079] The mathematical relationship between the transaction data of the electric energy market and the income of the virtual power plant in the electric energy market is encapsulated into the BP neural network, and the electric energy market transaction task of obtaining the income of the virtual power plant in the electric energy market according to the transaction data of the electric energy market is obtained. The electric energy market transaction task is:
[0080] M1=BP(data1), where M1 is the revenue of the virtual power plant in the electric energy market, data1 is the transaction data of the electric energy market, and BP is the BP neural network;
[0081] The mathematical relationship between the transaction data of the natural gas market and the revenue of the virtual power plant in the natural gas market is encapsulated into the BP neural network, and the natural gas market transaction task of obtaining the revenue of the virtual power plant in the natural gas market according to the transaction data of the natural gas market is obtained. The natural gas market transaction task is:
[0082] M2 = BP (data2), where M2 is the revenue of the virtual power plant in the natural gas market, data2 is the transaction data of the natural gas market, and BP is the BP neural network;
[0083] The mathematical relationship between the transaction data of the carbon trading market and the income of the virtual power plant in the carbon trading market is encapsulated into the BP neural network, and the carbon trading market transaction task of obtaining the income of the virtual power plant in the carbon trading market according to the transaction data of the carbon trading market is obtained. The carbon trading market transaction task is:
[0084] M3 = BP (data3), where M3 is the revenue of the virtual power plant in the carbon trading market, data3 is the transaction data of the carbon trading market, and BP is the BP neural network;
[0085] The mathematical relationship between the transaction data of the peak-shaving market and the revenue of the virtual power plant in the peak-shaving market is encapsulated into the BP neural network, and the peak-shaving market transaction task is obtained to obtain the revenue of the virtual power plant in the peak-shaving market according to the transaction data of the peak-shaving market. The peak-shaving market transaction task is:
[0086] M4=BP(data4), where M4 is the revenue of the virtual power plant in the peak-shaving market, data4 is the transaction data of the peak-shaving market, and BP is the BP neural network.
[0087] BP (back propagation) neural network is a concept proposed by scientists led by Rumelhart and McClelland. It is a multi-layer feedforward neural network trained according to the error back propagation algorithm and is one of the most widely used neural network models.
[0088] BP neural network has the ability to classify patterns of any complexity and excellent multi-dimensional function mapping ability. It learns certain rules through its own training and obtains the result closest to the expected output value when the input value is given, that is, it determines the mapping relationship between input and output. The BP algorithm includes two processes: forward propagation of signals and reverse propagation of errors. That is, when calculating the error output, it is done from input to output, while adjusting the weights and thresholds from output to input. During forward propagation, the input signal acts on the output node through the hidden layer, and after nonlinear transformation, the output signal is generated. If the actual output does not match the expected output, the error reverse propagation process is entered. Error back propagation is to propagate the output error through the hidden layer to the input layer layer by layer, and distribute the error to all units in each layer, and use the error signal obtained from each layer as the basis for adjusting the weights of each unit. By adjusting the connection strength between the input node and the hidden layer node, the connection strength between the hidden layer node and the output node, and the threshold, the error is reduced along the gradient direction. After repeated learning and training, the network parameters (weights and thresholds) corresponding to the minimum error are determined, and the training stops. At this point, the trained neural network can process the input information of similar samples and obtain the output information by itself after nonlinear transformation with the smallest output error.
[0089] Utilizing the function mapping properties of the BP neural network, the present invention applies the BP neural network to the transaction settlement process and trains the BP neural network to learn the mapping relationship between transaction data and revenue, thereby being able to obtain the revenue of the virtual power plant in the electric energy market based on the transaction data of the electric energy market and put it into use in various transaction tasks.
[0090] Multi-task learning (MTL) is a promising field in machine learning. Its goal is to use the useful information contained in multiple learning tasks to help learn more accurate learners (or deep learning algorithms, neural networks) for each task. Based on the correlation between all tasks, it has been found experimentally and theoretically that joint learning of multiple tasks can achieve better performance than learning them separately.
[0091] In multi-task learning, information between tasks is shared, and knowledge is transferred between different tasks. Multi-task learning methods improve the overall learning effect by sharing multi-task information, which is especially effective for learning on small samples. Assuming there are a large number of small sample learning tasks, multi-task learning methods can make full use of the information of multiple small samples to improve the overall learning effect of multiple tasks.
[0092] Utilizing the performance improvement characteristics of multi-task learning, the present invention performs multi-task learning on multiple trading tasks. Joint learning enables each trading task to achieve better performance, balances the progress of each trading task during the transaction process, avoids the dominance of a single task, and ultimately achieves trading balance between the virtual power plant and the electricity energy market, natural gas market, carbon trading market, and peak-shaving market.
[0093] In order to balance the transaction balance between virtual power plants and the electric energy market, natural gas market, carbon trading market, and peak-shaving market, that is, to achieve the balance of resource allocation between virtual power plants in the electric energy market, natural gas market, carbon trading market, and peak-shaving market, the present invention balances the progress of each transaction task in the transaction process through multi-task learning to avoid the dominance of a single task, as follows:
[0094] The construction method of the joint transaction task includes:
[0095] Set the task weight of each transaction task;
[0096] Jointly train each transaction task through task weights to obtain a joint transaction task;
[0097] The joint transaction tasks are:
[0098]
[0099] Wherein, A1, A2, A3 and A4 are the task weights of the electric energy market trading task, natural gas market trading task, carbon trading market trading task and peak-shaving market trading task respectively, M1 is the income of the virtual power plant in the electric energy market, data1 is the trading data of the electric energy market, M2 is the income of the virtual power plant in the natural gas market, data2 is the trading data of the natural gas market, M3 is the income of the virtual power plant in the carbon trading market, data3 is the trading data of the carbon trading market, M4 is the income of the virtual power plant in the peak-shaving market, and data4 is the trading data of the peak-shaving market.
[0100] The method of setting task weight includes:
[0101] Determine the transaction progress of each transaction task through the loss function of each transaction task;
[0102] Use transaction progress to set task weights;
[0103] The task weights are:
[0104]
[0105] Among them, C i (t-1) = L i (t-1) / L i (t-2), i∈[1,2,3,4];
[0106] In the formula, A i (t) is A i The task weight at the tth transaction time, C i (t-1) is A i The transaction progress at the t-1th transaction time, L i (t-1) is A i The loss function at the t-1th transaction time, L i (t-2) is A i The loss function at the t-2th transaction moment, N is the total number of transaction tasks, T is the total length of the transaction moment, i, j, t are all counting variables.
[0107] In the present invention, joint training is carried out through various trading tasks, and the task weights are adjusted during the training process to balance the task progress, ensure the trading balance between the virtual power plant and the electric energy market, natural gas market, carbon trading market, and peak-shaving market, and avoid the generation of task dominance. For example, when the task weights of the electric energy market trading task, the natural gas market trading task, the carbon trading market trading task, and the peak-shaving market trading task appear, the task weight of the electric energy market trading task is 0.6, the task weight of the natural gas market trading task is 0.2, the task weight of the carbon trading market trading task is 0.1, and the task weight of the peak-shaving market trading task is 0.1. (The values here are used as examples, the actual values are Calculation shall be based on the actual scenario). At this time, the electric energy market transaction task is dominant, which will cause the virtual power plant to focus on the electric energy market transaction and ignore the other three trading markets, resulting in an imbalance in the transaction. The joint trading task will actively reduce the task weight of the electric energy trading market transaction task in the subsequent transaction process, and then increase the task weight of the other three trading markets, thereby reducing the dominance of the electric energy trading market and shifting the virtual power plant's trading attention to the other three trading markets, thereby balancing the virtual power plant's resource allocation between the electric energy market, natural gas market, carbon trading market, and peak-shaving market, balancing the progress of each trading task during the transaction, and avoiding the dominance of a single task. The natural gas market, carbon trading market, and peak-shaving market have high task weights and are dominant, similar to the electric energy market, so they will not be elaborated here.
[0108] The present invention uses the decreasing rate of the loss function as the transaction progress, and monitors the progress of each transaction task by monitoring the loss function of each transaction task. The decreasing rate of the loss function is calculated through the loss function, and the faster the decreasing rate of the loss function is, the faster the progress of the transaction task is, and the stronger the transaction dominance is.
[0109] Therefore, the present invention sets task weights so that trading tasks with faster task progress and stronger dominance have low task weights, thereby lowering their task progress or dominance, and trading tasks with slow task progress and weak dominance have high task weights, thereby improving their task progress or dominance, thereby achieving balance in the progress of trading tasks, that is, each trading task is settled and executed with similar dominance, ultimately achieving balance in resource allocation of virtual power plants among the electricity energy market, natural gas market, carbon trading market, and peak-shaving market.
[0110] The loss function is a function that quantifies the error between the predicted value of the profit of the trading task and the true value of the profit, such as the mean square error function, L1 norm and other error quantification functions.
[0111] like Figure 2As shown, the present invention provides a virtual power plant hierarchical trading system based on multi-task learning, which is applied to a virtual power plant hierarchical trading method based on multi-task learning. The system includes:
[0112] A data acquisition unit, used to obtain transaction data used for settlement between the virtual power plant and multiple trading markets;
[0113] A data processing unit, used to utilize joint transaction tasks to perform hierarchical settlement between the virtual power plant and multiple transaction markets based on transaction data;
[0114] The data storage unit is used to store the joint transaction tasks.
[0115] As a preferred solution of the present invention, a method for constructing a joint transaction task in a data processing unit includes:
[0116] Set the task weight of each transaction task;
[0117] Jointly train each transaction task through task weights to obtain a joint transaction task;
[0118] The joint transaction tasks are:
[0119]
[0120] Wherein, A1, A2, A3 and A4 are the task weights of the electric energy market trading task, natural gas market trading task, carbon trading market trading task and peak-shaving market trading task respectively, M1 is the income of the virtual power plant in the electric energy market, data1 is the trading data of the electric energy market, M2 is the income of the virtual power plant in the natural gas market, data2 is the trading data of the natural gas market, M3 is the income of the virtual power plant in the carbon trading market, data3 is the trading data of the carbon trading market, M4 is the income of the virtual power plant in the peak-shaving market, and data4 is the trading data of the peak-shaving market.
[0121] The construction methods of each transaction task include:
[0122] The mathematical relationship between the transaction data of the electric energy market and the income of the virtual power plant in the electric energy market is encapsulated into the BP neural network, and the electric energy market transaction task of obtaining the income of the virtual power plant in the electric energy market according to the transaction data of the electric energy market is obtained. The electric energy market transaction task is:
[0123] M1=BP(data1), where M1 is the revenue of the virtual power plant in the electric energy market, data1 is the transaction data of the electric energy market, and BP is the BP neural network;
[0124] The mathematical relationship between the transaction data of the natural gas market and the revenue of the virtual power plant in the natural gas market is encapsulated into the BP neural network, and the natural gas market transaction task of obtaining the revenue of the virtual power plant in the natural gas market according to the transaction data of the natural gas market is obtained. The natural gas market transaction task is:
[0125] M2 = BP (data2), where M2 is the revenue of the virtual power plant in the natural gas market, data2 is the transaction data of the natural gas market, and BP is the BP neural network;
[0126] The mathematical relationship between the transaction data of the carbon trading market and the income of the virtual power plant in the carbon trading market is encapsulated into the BP neural network, and the carbon trading market transaction task of obtaining the income of the virtual power plant in the carbon trading market according to the transaction data of the carbon trading market is obtained. The carbon trading market transaction task is:
[0127] M3 = BP (data3), where M3 is the revenue of the virtual power plant in the carbon trading market, data3 is the transaction data of the carbon trading market, and BP is the BP neural network;
[0128] The mathematical relationship between the transaction data of the peak-shaving market and the revenue of the virtual power plant in the peak-shaving market is encapsulated into the BP neural network, and the peak-shaving market transaction task is obtained to obtain the revenue of the virtual power plant in the peak-shaving market according to the transaction data of the peak-shaving market. The peak-shaving market transaction task is:
[0129] M4=BP(data4), where M4 is the revenue of the virtual power plant in the peak-shaving market, data4 is the transaction data of the peak-shaving market, and BP is the BP neural network.
[0130] The present invention utilizes a neural network to respectively arrange transaction tasks for settlement between a virtual power plant and multiple trading markets; and performs multi-task learning on each transaction task to obtain a joint transaction task for hierarchical settlement between the virtual power plant and multiple trading markets, thereby achieving balanced hierarchical transactions when the virtual power plant conducts transaction settlement with each trading market, avoiding transactions being dominated by a certain market, and ultimately balancing resource allocation between virtual power plants.
[0131] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.
Claims
1. A virtual power plant hierarchical trading method based on multi-task learning, characterized in that: The following steps are involved: Obtain transaction data for virtual power plants to settle with multiple trading markets; Based on the transaction data, using a neural network, respectively arrange transaction tasks for settlement between the virtual power plant and the multiple trading markets; Multi-task learning is performed on each trading task to obtain a joint trading task for hierarchical settlement between the virtual power plant and multiple trading markets.
2. According to claim 1, a virtual power plant hierarchical trading method based on multi-task learning is characterized by: The trading markets include: electricity energy market, natural gas market, carbon trading market, and peak-shaving market.
3. A virtual power plant hierarchical trading method based on multi-task learning according to claim 2, characterized in that: The transaction data of the electric energy market includes the scale of aggregated resources, total load scale, and electricity clearing price in the electric energy market; The transaction data of the peak-shaving market includes the peak-shaving declared quantity and electricity clearing price generated by the peak-shaving demand of the peak-shaving market; The transaction data of the carbon trading market includes the carbon trading volume and carbon clearing price of the carbon trading market; The transaction data of the natural gas market include the natural gas trading volume and natural gas clearing price in the natural gas market.
4. A virtual power plant hierarchical trading method based on multi-task learning according to claim 3, characterized in that: The method for constructing the transaction task includes: The mathematical relationship between the transaction data of the electric energy market and the income of the virtual power plant in the electric energy market is encapsulated into the BP neural network, and the electric energy market transaction task of obtaining the income of the virtual power plant in the electric energy market according to the transaction data of the electric energy market is obtained. The electric energy market transaction task is: M1=BP(data1), where M1 is the revenue of the virtual power plant in the electric energy market, data1 is the transaction data of the electric energy market, and BP is the BP neural network; The mathematical relationship between the transaction data of the natural gas market and the revenue of the virtual power plant in the natural gas market is encapsulated into the BP neural network, and a natural gas market transaction task is obtained to obtain the revenue of the virtual power plant in the natural gas market according to the transaction data of the natural gas market. The natural gas market transaction task is: M2 = BP (data2), where M2 is the revenue of the virtual power plant in the natural gas market, data2 is the transaction data of the natural gas market, and BP is the BP neural network; The mathematical relationship between the transaction data of the carbon trading market and the income of the virtual power plant in the carbon trading market is encapsulated into the BP neural network, and the carbon trading market transaction task of obtaining the income of the virtual power plant in the carbon trading market according to the transaction data of the carbon trading market is obtained. The carbon trading market transaction task is: M3 = BP (data3), where M3 is the revenue of the virtual power plant in the carbon trading market, data3 is the transaction data of the carbon trading market, and BP is the BP neural network; The mathematical relationship between the transaction data of the peak-shaving market and the revenue of the virtual power plant in the peak-shaving market is encapsulated into the BP neural network, and the peak-shaving market transaction task for obtaining the revenue of the virtual power plant in the peak-shaving market according to the transaction data of the peak-shaving market is obtained. The peak-shaving market transaction task is: M4=BP(data4), where M4 is the revenue of the virtual power plant in the peak-shaving market, data4 is the transaction data of the peak-shaving market, and BP is the BP neural network.
5. A virtual power plant hierarchical trading method based on multi-task learning according to claim 4, characterized in that: The method for constructing the joint transaction task includes: Set the task weight of each transaction task; Jointly training each transaction task by using the task weights to obtain the joint transaction task; The joint transaction tasks are: Wherein, A1, A2, A3 and A4 are the task weights of the electric energy market trading task, natural gas market trading task, carbon trading market trading task and peak-shaving market trading task respectively, M1 is the income of the virtual power plant in the electric energy market, data1 is the trading data of the electric energy market, M2 is the income of the virtual power plant in the natural gas market, data2 is the trading data of the natural gas market, M3 is the income of the virtual power plant in the carbon trading market, data3 is the trading data of the carbon trading market, M4 is the income of the virtual power plant in the peak-shaving market, and data4 is the trading data of the peak-shaving market.
6. A virtual power plant hierarchical trading method based on multi-task learning according to claim 5, characterized in that: The method for setting the task weight includes: Determine the transaction progress of each transaction task through the loss function of each transaction task; Setting task weights using the transaction progress; The task weights are: Among them, C i (t-1) = L i (t-1) / L i (t-2), i∈[1,2,3,4]; In the formula, A i (t) is A i The task weight at the tth transaction time, C i (t-1) is A i The transaction progress at the t-1th transaction time, L i (t-1) is A i The loss function at the t-1th transaction time, L i (t-2) is A i The loss function at the t-2th trading moment, N is the total number of trading tasks, T is the total length of trading moments, i, j, t are all counting variables.
7. The virtual power plant hierarchical trading method based on multi-task learning according to claim 4 is characterized by: The loss function is a function that quantifies the error between the predicted value of the profit of the transaction task and the true value of the profit.
8. A virtual power plant hierarchical trading system based on multi-task learning, characterized in that: A virtual power plant hierarchical trading method based on multi-task learning applied to any one of claims 1 to 7, the system comprising: A data acquisition unit, used to obtain transaction data used for settlement between the virtual power plant and multiple trading markets; A data processing unit, configured to use a joint transaction task to perform hierarchical settlement between the virtual power plant and multiple transaction markets based on the transaction data; The data storage unit is used to store the joint transaction tasks.
9. The virtual power plant hierarchical trading system based on multi-task learning according to claim 8 is characterized by: The method for constructing a joint transaction task in the data processing unit includes: Set the task weight of each transaction task; Jointly training each transaction task by using the task weights to obtain the joint transaction task; The joint transaction tasks are: Wherein, A1, A2, A3 and A4 are the task weights of the electric energy market trading task, natural gas market trading task, carbon trading market trading task and peak-shaving market trading task respectively, M1 is the income of the virtual power plant in the electric energy market, data1 is the trading data of the electric energy market, M2 is the income of the virtual power plant in the natural gas market, data2 is the trading data of the natural gas market, M3 is the income of the virtual power plant in the carbon trading market, data3 is the trading data of the carbon trading market, M4 is the income of the virtual power plant in the peak-shaving market, and data4 is the trading data of the peak-shaving market.
10. A virtual power plant hierarchical trading system based on multi-task learning according to claim 9, characterized in that: The construction methods of each transaction task include: The mathematical relationship between the transaction data of the electric energy market and the income of the virtual power plant in the electric energy market is encapsulated into the BP neural network, and the electric energy market transaction task of obtaining the income of the virtual power plant in the electric energy market according to the transaction data of the electric energy market is obtained. The electric energy market transaction task is: M1=BP(data1), where M1 is the revenue of the virtual power plant in the electric energy market, data1 is the transaction data of the electric energy market, and BP is the BP neural network; The mathematical relationship between the transaction data of the natural gas market and the revenue of the virtual power plant in the natural gas market is encapsulated into the BP neural network, and a natural gas market transaction task is obtained to obtain the revenue of the virtual power plant in the natural gas market according to the transaction data of the natural gas market. The natural gas market transaction task is: M2 = BP (data2), where M2 is the revenue of the virtual power plant in the natural gas market, data2 is the transaction data of the natural gas market, and BP is the BP neural network; The mathematical relationship between the transaction data of the carbon trading market and the income of the virtual power plant in the carbon trading market is encapsulated into the BP neural network, and the carbon trading market transaction task of obtaining the income of the virtual power plant in the carbon trading market according to the transaction data of the carbon trading market is obtained. The carbon trading market transaction task is: M3 = BP (data3), where M3 is the revenue of the virtual power plant in the carbon trading market, data3 is the transaction data of the carbon trading market, and BP is the BP neural network; The mathematical relationship between the transaction data of the peak-shaving market and the revenue of the virtual power plant in the peak-shaving market is encapsulated into the BP neural network, and the peak-shaving market transaction task for obtaining the revenue of the virtual power plant in the peak-shaving market according to the transaction data of the peak-shaving market is obtained. The peak-shaving market transaction task is: M4=BP(data4), where M4 is the revenue of the virtual power plant in the peak-shaving market, data4 is the transaction data of the peak-shaving market, and BP is the BP neural network.
Citation Information
Patent Citations
Virtual power plant grading settlement method and system considering contribution degree, and storage medium
CN114066067A
Optimized regulation and control method for participation of virtual power plant in multi-market transaction based on digital twinning
CN114219186A
Virtual power plant low-carbon joint transaction optimization method
CN115907981A
Operation optimization method for power supply type virtual power plant to participate in energy market and peak regulation auxiliary service market
CN118040743A
Virtual power plant simulator and method for optimal operation simulation of virtual power plant
KR101770064B1
