Virtual power plant task execution method and device, equipment, medium and product

By using blockchain and smart contracts in the virtual power plant task execution system, the problems of low task execution efficiency and lack of traceability mechanism are solved, automated execution and data security are achieved, cost reduction and efficiency are improved.

CN119168318APending Publication Date: 2024-12-20SHANGHAI POWER EQUIPMENT RESEARCH INSTITUTE CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411321979.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

The existing virtual power plant task execution system has problems such as low task execution efficiency and lack of traceability mechanisms, which require manual review and are difficult to prevent data tampering, forgery and fraud.

Method used

By introducing blockchain technology and smart contracts, we receive virtual power plant task execution requests, obtain service parameters, determine the target field value, execute the task if the conditions are met, and record the results on the blockchain for subsequent audits.

Benefits of technology

It realizes the self-execution and automation of tasks, reduces execution costs, improves task execution efficiency, prevents data tampering and fraud, and provides an effective traceability mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119168318A_ABST
    Figure CN119168318A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual power plant task execution method, device and equipment, a medium and a product. The method comprises the following steps: receiving a virtual power plant task execution request sent by a client, and extracting a target task type carried by the virtual power plant task execution request and a request parameter corresponding to the target task type; obtaining service parameters corresponding to the virtual power plant task execution request from a block chain network; determining a target field value corresponding to the target task type according to a service parameter corresponding to the virtual power plant service execution request and a request parameter corresponding to the target task type; if a smart contract corresponding to the target transaction type is called, and a target field value corresponding to the target task type is determined to meet a task execution condition, executing a task to obtain a task execution result; and recording the task execution result on the block chain, and feeding back the task execution result to the client, through the technical scheme of the invention, the task execution efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of electric power technology, and in particular to a virtual power plant task execution method, device, equipment, medium and product. Background Art

[0002] With the transformation of the global energy structure and the development of the power market, virtual power plants, as a new type of distributed energy aggregation and management model, have gradually become an important part of the power system. Virtual power plants achieve efficient utilization and optimal allocation of energy by integrating multiple distributed energy resources, such as wind power, solar power, and natural gas power generation.

[0003] The existing virtual power plant task execution system has many shortcomings. First, the task execution mechanism of the existing system is not perfect, and manual review is required to determine whether the task can be executed, which leads to low task execution efficiency. In addition, the existing system lacks an effective traceability mechanism. Summary of the invention

[0004] Embodiments of the present invention provide a virtual power plant task execution method, device, equipment, medium and product to solve at least one of the above problems.

[0005] According to one aspect of the present invention, a method for executing a virtual power plant task is provided, comprising:

[0006] Receive a virtual power plant task execution request sent by a client, extract a target task type carried in the virtual power plant task execution request and a request parameter corresponding to the target task type, wherein the target task type includes: any one of a demand response type, an auxiliary service type, and a power spot transaction settlement type;

[0007] Obtain service parameters corresponding to the virtual power plant task execution request from the blockchain network;

[0008] Determine a target field value corresponding to the target task type according to a service parameter corresponding to the virtual power plant service execution request and a request parameter corresponding to the target task type;

[0009] If the smart contract corresponding to the target transaction type is called and it is determined that the target field value corresponding to the target task type meets the task execution condition, the task is executed to obtain the task execution result;

[0010] The task execution result is recorded on the blockchain and fed back to the client.

[0011] According to another aspect of the present invention, a virtual power plant task execution device is provided, the virtual power plant task execution device comprising:

[0012] A virtual power plant task execution request receiving module is used to receive a virtual power plant task execution request sent by a client, and extract a target task type carried by the virtual power plant task execution request and a request parameter corresponding to the target task type, wherein the target task type includes: any one of a demand response type, an auxiliary service type, and a power spot transaction settlement type;

[0013] A service parameter acquisition module is used to obtain service parameters corresponding to the virtual power plant task execution request from the blockchain network;

[0014] A target field value determination module corresponding to a target task type, used to determine a target field value corresponding to the target task type according to a service parameter corresponding to the virtual power plant service execution request and a request parameter corresponding to the target task type;

[0015] A smart contract calling module is used to call a smart contract corresponding to the target transaction type, determine that the target field value corresponding to the target task type meets the task execution condition, and then execute the task to obtain the task execution result;

[0016] The task execution result recording module is used to record the task execution result on the blockchain and feed back the task execution result to the client.

[0017] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:

[0018] at least one processor; and

[0019] a memory communicatively connected to the at least one processor; wherein,

[0020] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the virtual power plant task execution method described in any embodiment of the present invention.

[0021] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the virtual power plant task execution method described in any embodiment of the present invention when executed.

[0022] According to another aspect of the present invention, a computer program product is provided. When the computer program is executed by a processor, the computer program implements the virtual power plant task execution method as described in any one of the embodiments of the present invention.

[0023] The embodiment of the present invention realizes the self-execution and automation of tasks and reduces the cost of task execution by introducing the function of a virtual power plant smart contract. The technical solution of this embodiment, by receiving a virtual power plant task execution request sent by a client, extracts the target task type carried by the virtual power plant task execution request and the request parameters corresponding to the target task type, wherein the target task type includes: any one of a demand response type, ancillary service type, and a power spot transaction settlement type; obtains the service parameters corresponding to the virtual power plant task execution request from the blockchain network; determines the target field value corresponding to the target task type according to the service parameters corresponding to the virtual power plant service execution request and the request parameters corresponding to the target task type; if the smart contract corresponding to the target transaction type is called and it is determined that the target field value corresponding to the target task type meets the task execution condition, the task is executed to obtain the task execution result; the task execution result is recorded on the blockchain, and the task execution result is fed back to the client, which can effectively prevent data tampering, forgery and fraud, and realizes the self-execution and automation of tasks by introducing the function of a virtual power plant smart contract, improves the efficiency of task execution, and after the task is executed, the task execution result is recorded on the blockchain for subsequent auditing and tracing.

[0024] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0026] Figure 1 is a flow chart of a method for executing a virtual power plant task in an embodiment of the present invention;

[0027] Figure 2 is a flow chart of another virtual power plant task execution method in an embodiment of the present invention;

[0028] Figure 3 is a structural schematic diagram of a virtual power plant task execution device in an embodiment of the present invention;

[0029] Figure 4 It is a structural schematic diagram of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0032] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0033] Embodiment 1

[0034] Figure 1 A flowchart of a virtual power plant task execution method provided by an embodiment of the present invention. This embodiment is applicable to the execution of virtual power plant tasks based on a blockchain network. The method can be executed by a virtual power plant task execution device in an embodiment of the present invention, and the device can be implemented in software and / or hardware, such as Figure 1 As shown, the method specifically comprises the following steps:

[0035] S110, receiving a virtual power plant task execution request sent by a client, and extracting a target task type and a request parameter corresponding to the target task type carried in the virtual power plant task execution request.

[0036] The target task type includes any one of a demand response type, ancillary service type and a spot electricity transaction settlement type.

[0037] Among them, the virtual power plant task execution request can be a virtual power plant task execution request for a demand response type, a virtual power plant task execution request for ancillary service type, or a virtual power plant task execution request for electricity spot trading settlement type.

[0038] Among them, if the target task type is a demand response type, the request parameters corresponding to the demand response type include: user response amount. If the target task type is an auxiliary service type, the request parameters corresponding to the auxiliary service type include: auxiliary service amount provided by the user. If the target task type is an electricity spot transaction settlement type, the request parameters corresponding to the electricity spot transaction settlement type include: transaction identifier to be settled, actual power load, and actual power value attribute value, wherein the transaction identifier to be settled can be the transaction time to be settled, or other transaction identifiers that can determine the transaction time to be settled.

[0039] Specifically, the method for extracting the target task type carried by the virtual power plant task execution request and the request parameters corresponding to the target task type can be: parsing the virtual power plant task execution request to obtain the target task type and the request parameters corresponding to the target task type.

[0040] Optionally, the request parameters corresponding to the demand response type include: user response amount, the request parameters corresponding to the auxiliary service type include: auxiliary service amount provided by the user, and the request parameters corresponding to the power spot transaction settlement type include: transaction time to be settled, actual power load, and actual power value attribute value. Among them, the actual power value attribute value can be the electricity price.

[0041] S120, obtaining service parameters corresponding to the virtual power plant task execution request from the blockchain network.

[0042] Among them, if the target task type is a demand response type, the service parameters corresponding to the virtual power plant task execution request are: the value attribute value during the demand response period and the value attribute value threshold of the electricity amount for the demand response to be initiated. If the target task type is an auxiliary service type, the service parameters corresponding to the virtual power plant task execution request are: the negative auxiliary service indicator value corresponding to each megawatt and the positive auxiliary service indicator value corresponding to each megawatt. If the target task type is an electricity spot transaction settlement type, the service parameters corresponding to the virtual power plant task execution request are: the predicted electricity amount value attribute value and the predicted load corresponding to the transaction time to be settled. The value attribute value during the demand response period can be the price during the demand response period. The value attribute value threshold of the electricity amount can be the electricity price threshold. The negative auxiliary service indicator value corresponding to each megawatt can be the auxiliary service payment fee corresponding to each megawatt. The positive auxiliary service indicator value corresponding to each megawatt can be the auxiliary service income corresponding to each megawatt.

[0043] Specifically, the method for obtaining the service parameters corresponding to the virtual power plant task execution request from the blockchain network may be: obtaining the service parameters corresponding to the target task type carried by the virtual power plant task execution request from the blockchain network. The method for obtaining the service parameters corresponding to the virtual power plant task execution request from the blockchain network may also be: obtaining the service parameters corresponding to the target task type carried by the virtual power plant task execution request and the request parameters corresponding to the target task type from the blockchain network. The method for obtaining the service parameters corresponding to the virtual power plant task execution request from the blockchain network may be: obtaining the service parameters corresponding to the request parameters corresponding to the target task type carried by the virtual power plant task execution request from the blockchain network.

[0044] Optionally, obtain service parameters corresponding to the virtual power plant task execution request from the blockchain network, including:

[0045] If the target task type is a demand response type, the value attribute value during the demand response period and the value attribute value threshold of the electricity quantity for starting the demand response are obtained from the blockchain network;

[0046] If the target task type is an auxiliary service type, obtain the auxiliary service negative indicator value corresponding to each megawatt and the auxiliary service positive indicator value corresponding to each megawatt from the blockchain network;

[0047] If the target task type is the electricity spot transaction settlement type, the predicted electricity value attribute value and predicted load corresponding to the transaction time to be settled are obtained from the blockchain network.

[0048] The transaction time to be settled is in days. It should be noted that "actual power load" refers to the actual load on the trading day, and "actual electricity value attribute value" refers to the actual electricity value attribute value on the trading day. In day-ahead transactions, both the actual power load and the actual electricity value attribute value are unknown. Generally, the predicted electricity value attribute value and predicted load on the trading day are estimated based on the known load forecast error and the average value of the electricity value attribute value forecast error in the past week.

[0049] Specifically, if the target task type is a demand response type, the method for obtaining the value attribute value during the demand response period and the value attribute value threshold of the electricity quantity for initiating the demand response from the blockchain network can be: If the target task type is a demand response type, the method for obtaining the value attribute value during the demand response period and the value attribute value threshold of the electricity quantity for initiating the demand response corresponding to the demand response type from the blockchain network.

[0050] Specifically, if the target task type is an auxiliary service type, then the method for obtaining the auxiliary service negative indicator value corresponding to each megawatt and the auxiliary service positive indicator value corresponding to each megawatt from the blockchain network can be: If the target task type is an auxiliary service type, then the method for obtaining the auxiliary service negative indicator value corresponding to each megawatt and the auxiliary service positive indicator value corresponding to each megawatt from the blockchain network.

[0051] Specifically, if the target task type is an electricity spot transaction settlement type, the method for obtaining the predicted electricity value attribute value and predicted load corresponding to the transaction time to be settled from the blockchain network can be: If the target task type is an electricity spot transaction settlement type, the method for obtaining the predicted electricity value attribute value and predicted load corresponding to the transaction time to be settled from the blockchain network can be:

[0052] S130: Determine a target field value corresponding to the target task type according to a service parameter corresponding to the virtual power plant service execution request and a request parameter corresponding to the target task type.

[0053] Among them, the target field value corresponding to the target task type can be: the user benefit corresponding to the demand response type task, the target field value corresponding to the target task type can also be: the user benefit corresponding to the auxiliary service type task, the target field value corresponding to the target task type can also be: the transaction benefit corresponding to the electricity spot trading settlement type task.

[0054] Specifically, the method for determining the target field value corresponding to the target task type according to the service parameters corresponding to the virtual power plant service execution request and the request parameters corresponding to the target task type can be: if the target task type is a demand response type, then the target field value corresponding to the demand response type is determined according to the value attribute value during the demand response period, the value attribute value threshold of the electricity amount initiated by the demand response, and the user response amount; if the target task type is an auxiliary service type, then the target field value corresponding to the auxiliary service type is determined according to the negative indicator value of the auxiliary service corresponding to each megawatt, the positive indicator value of the auxiliary service corresponding to each megawatt, and the amount of auxiliary services provided by the user; if the target task type is an electricity spot trading settlement type, then the target field value corresponding to the electricity spot trading settlement type is determined according to the predicted electricity value attribute value, predicted load, actual electricity load, and actual electricity value attribute value corresponding to the transaction time to be settled.

[0055] Optionally, determining a target field value corresponding to the target task type according to a service parameter corresponding to the virtual power plant service execution request and a request parameter corresponding to the target task type includes:

[0056] If the target task type is a demand response type, the target field value corresponding to the demand response type is determined according to the value attribute value during the demand response period, the value attribute value threshold of the power value attribute value for the start of the demand response, and the user response amount;

[0057] If the target task type is an auxiliary service type, the target field value corresponding to the auxiliary service type is determined according to the auxiliary service negative indicator value corresponding to each megawatt, the auxiliary service positive indicator value corresponding to each megawatt, and the auxiliary service amount provided by the user;

[0058] If the target task type is an electricity spot transaction settlement type, the target field value corresponding to the electricity spot transaction settlement type is determined based on the predicted electricity value attribute value, predicted load, actual electricity load and actual electricity value attribute value corresponding to the transaction time to be settled.

[0059] Specifically, the method for determining the target field value corresponding to the demand response type according to the value attribute value during the demand response period, the value attribute value threshold of the electricity amount for initiating the demand response, and the user response amount can be: determining the revenue during the demand response period according to the value attribute value during the demand response period and the user response amount, determining the negative indicator value during the demand response period according to the value attribute value threshold of the electricity amount for initiating the demand response and the user response amount, and determining the user revenue corresponding to the demand response type according to the revenue during the demand response period and the negative indicator value during the demand response period.

[0060] Specifically, the method for determining the target field value corresponding to the auxiliary service type according to the negative auxiliary service indicator value corresponding to each megawatt, the positive auxiliary service indicator value corresponding to each megawatt, and the amount of auxiliary services provided by the user can be: determining the total positive indicator value obtained by providing auxiliary services according to the positive auxiliary service indicator value corresponding to each megawatt and the amount of auxiliary services provided by the user, determining the total negative indicator value for providing auxiliary services according to the negative auxiliary service indicator value corresponding to each megawatt and the amount of auxiliary services provided by the user, and determining the user benefit corresponding to the auxiliary service type according to the total positive indicator value obtained by providing auxiliary services and the total negative indicator value for providing auxiliary services.

[0061] Specifically, the method for determining the target field value corresponding to the electricity spot transaction settlement type according to the predicted electricity value attribute value, predicted load, actual electricity load and actual electricity value attribute value corresponding to the transaction time to be settled can be: determine the purchase electricity and sale electricity according to the predicted electricity value attribute value, predicted load, actual electricity load and actual electricity value attribute value corresponding to the transaction time to be settled, and determine the transaction income corresponding to the electricity spot transaction settlement type according to the purchase electricity, sale electricity, predicted electricity value attribute value and actual electricity value attribute value.

[0062] Optionally, according to the value attribute value during the demand response period, the value attribute value threshold of the electricity quantity for initiating the demand response, and the user response amount, a target field value corresponding to the demand response type is determined, including:

[0063] The product of the demand response period value attribute value and the user response amount is determined as the demand response period benefit;

[0064] The product of the power value attribute value threshold for starting the demand response and the user response amount is determined as the negative indicator value during the demand response period;

[0065] The difference between the revenue during the demand response period and the negative indicator value during the demand response period is determined as the target field value corresponding to the demand response type.

[0066] Among them, the target field value corresponding to the demand response type is the benefit obtained by the user from the demand response.

[0067] In a specific example, if the target task type carried by the virtual power plant task execution request is a demand response type, the virtual power plant task execution method includes the following steps:

[0068] 1. User registration and identity verification:

[0069] User identity verification: Use the digital signature technology of the blockchain network to ensure the authenticity and uniqueness of the user's identity.

[0070] 2. Demand Response Capability Registration:

[0071] User Response Capacity: C user1 (in MW);

[0072] Response condition: T user (time frame, such as peak hours);

[0073] 3. Market rules and value attribute value mechanism:

[0074] Trigger condition: P trigger (response to start the power value attribute value threshold);

[0075] Value attribute value mechanism: P response (value attribute value during response);

[0076] Reward Structure: R reward (Reward for responsive behavior).

[0077] 4. Smart contract deployment:

[0078] Transaction matching algorithm: Based on the blockchain's smart contract, determine whether the task execution conditions are met, thereby ensuring user benefits.

[0079] Task execution conditions:

[0080] E user1 >First setting value;

[0081] Among them, E user1 For user benefit, the first set value may be a preset value. In the embodiment of the present invention, the first set value may be zero.

[0082] Meeting the above task execution conditions can ensure that the task will be executed only when the user benefits from demand response.

[0083] 5. Transaction execution and settlement:

[0084] User response quantity: Q user1 (the actual response point force in MW);

[0085] User benefits: E user1 (the benefits that users gain from demand response);

[0086] User revenue calculation formula:

[0087] E user1 =Q user1 ×P response -Q user1 ×P trigger ;

[0088] Among them, Q user1 ×P response is the revenue during the demand response period, Q user1 ×P trigger It is the negative indicator value during the demand response period.

[0089] Optionally, determining a target field value corresponding to the auxiliary service type according to the auxiliary service negative indicator value corresponding to each megawatt, the auxiliary service positive indicator value corresponding to each megawatt, and the auxiliary service amount provided by the user includes:

[0090] The product of the auxiliary service positive index value corresponding to each megawatt and the auxiliary service amount provided by the user is determined as the total positive index value obtained by providing the auxiliary service;

[0091] The total negative index value for providing auxiliary services is determined by multiplying the product of the auxiliary service negative index value corresponding to each megawatt and the amount of auxiliary services provided by the user;

[0092] The difference between the total positive index value obtained by providing the auxiliary service and the total negative index value obtained by providing the auxiliary service is determined as the target field value corresponding to the auxiliary service type.

[0093] The target field value corresponding to the auxiliary service type is the net income obtained by the user from the auxiliary service.

[0094] In a specific example, if the target task type carried by the virtual power plant task execution request is an auxiliary service type, the virtual power plant task execution method includes the following steps:

[0095] 1. User registration and identity verification:

[0096] User identity verification: Use the digital signature technology of the blockchain network to ensure the authenticity and uniqueness of the user's identity.

[0097] 2. Registration of auxiliary service capabilities:

[0098] Auxiliary service type: S service (such as frequency regulation, standby service, etc.);

[0099] User-provided capacity: C user2 (in MW);

[0100] Response time: T response (the time it takes for a user to respond to a request);

[0101] 3. Market rules and value attribute value mechanism:

[0102] Auxiliary service request: C pay (negative ancillary service indicator value corresponding to each megawatt);

[0103] Value attribute value mechanism: P service (value attribute value of auxiliary service);

[0104] Reward Structure: R reward (Rewards for providing ancillary services).

[0105] 4. Smart contract deployment:

[0106] Transaction matching algorithm: Based on the blockchain's smart contract, determine whether the task execution conditions are met, thereby ensuring user benefits.

[0107] Task execution conditions:

[0108] E user2 > Second setting value;

[0109] Among them, E user2 For user benefit, the second set value may be the same as or different from the first set value. In an embodiment of the present invention, the second set value may be zero.

[0110] Meeting the above task execution conditions can ensure that the task will be executed only when the user benefits from the auxiliary service.

[0111] 5. Transaction execution and settlement:

[0112] User provided amount: Q user2 (actual service volume provided, in MW);

[0113] User benefits: E user2 (net benefits to users from ancillary services);

[0114] User revenue calculation formula:

[0115] E user2 =Q user2 ×P service -Q user2 ×C pay ;

[0116] Among them, Q user2 ×P service Q is the total positive indicator value obtained from providing ancillary services. user2 ×C pay The total negative indicator value for providing ancillary services.

[0117] Optionally, the target field value corresponding to the electricity spot transaction settlement type is determined according to the predicted electricity value attribute value, predicted load, actual electricity load and actual electricity value attribute value corresponding to the transaction time to be settled, including:

[0118] The difference between the actual power load and the predicted load corresponding to the transaction time to be settled is determined as the load prediction error corresponding to the transaction time to be settled;

[0119] The difference between the actual electric quantity value attribute value and the predicted electric quantity value attribute value corresponding to the transaction time to be settled is determined as the prediction error of the electric quantity value attribute value corresponding to the transaction time to be settled;

[0120] Determining the purchased power according to the load forecast error, the first adjustment coefficient and the predicted power value attribute value;

[0121] Determine the amount of electricity sold according to the electricity value attribute value prediction error, the second adjustment coefficient and the predicted load;

[0122] If the purchased electricity is greater than zero and the sold electricity is zero, the target field value corresponding to the electricity spot transaction settlement type is determined according to the purchased electricity, the actual electricity value attribute value and the predicted electricity value attribute value;

[0123] If the purchased electricity amount is zero and the sold electricity amount is greater than zero, the target field value corresponding to the electricity spot transaction settlement type is determined according to the sold electricity amount, the actual electricity value attribute value and the predicted electricity value attribute value.

[0124] In a specific example, if the target task type carried by the virtual power plant task execution request is a power spot transaction settlement type, the virtual power plant task execution method includes the following steps:

[0125] 1. Forecast load:

[0126] Forecast load: L pred (forecasted load value in MW);

[0127] Load forecast error: E load (the difference between actual load and predicted load);

[0128] 2. Predict the value of the power value attribute:

[0129] Predicted power value attribute value: P pred (the predicted value of the electricity value attribute, in $ / MWh);

[0130] Electricity value attribute value prediction error: E price (the difference between the actual power value attribute value and the predicted power value attribute value);

[0131] 3. Trading position management

[0132] Purchase quantity: B position (The amount of electricity planned to be purchased, in MWh);

[0133] Selling power: S position (Amount of electricity planned to be sold, in MWh);

[0134] The amount of electricity purchased refers to the need to purchase additional electricity in the real-time trading market on the trading day, based on the amount of electricity purchased in the previous day's transaction, because the actual electricity load on the trading day is higher than the previous day's forecast value.

[0135] Selling electricity means that, based on the electricity purchased in the previous transaction, due to the actual electricity load on the trading day being lower than the previous forecast value, part of the purchased electricity needs to be sold in the real-time trading market on the trading day.

[0136] 4. Smart contract deployment:

[0137] Transaction income = (sell position - buy position) * (actual power value attribute value - predicted power value attribute value) > the third set value;

[0138] The third set value may be the same as or different from the first set value and the second set value, and this is not limited in the embodiment of the present invention.

[0139] It should be noted that if the sell position is greater than zero, the buy position is zero, and if the buy position is greater than zero, the sell position is zero.

[0140] 5. Transaction execution and settlement:

[0141] Transaction income: R trade (Profit from the transaction, in $)

[0142] Transaction cost: C trade (cost of the transaction, in $);

[0143] Load forecast error calculation formula:

[0144] E load =L actual -L pred ;

[0145] Among them, L actual The actual power load.

[0146] The calculation formula of the prediction error of the electric quantity value attribute value is:

[0147] E price =P actual -P pred ;

[0148] Among them, P actual It is the actual power value attribute value.

[0149] Buying electricity calculation formula:

[0150] B position =L pred +k load ×E load ;

[0151] Among them, k load is the first adjustment coefficient, which is used to adjust the purchased electricity according to the load forecast error. It should be noted that if the load forecast error shows that the actual load will be higher than the predicted load, it may be necessary to increase the purchased electricity to ensure supply.

[0152] Selling power calculation formula:

[0153] S position =L pred -k price ×E price ;

[0154] Among them, k priceis the second adjustment coefficient, which is used to adjust the sold electricity according to the prediction error of the electricity value attribute value. It should be noted that if the prediction error of the electricity value attribute value shows that the actual electricity value attribute value is higher than the predicted electricity value attribute value, then it may be necessary to increase the sold electricity to obtain higher profits.

[0155] In another specific example, Figure 2 As shown, the virtual power plant task provided by the embodiment of the present invention can be power trading. Power trading is to use smart contracts to realize automatic transactions between virtual power plants and power markets. Power trading includes: demand response, ancillary services and power spot trading settlement. The virtual power plant blockchain smart contract constructed by the embodiment of the present invention is different from the transaction blockchain dominated by the power trading center. On the basis of saving the transaction link data, it is equipped with the existing load forecasting, predicted electricity value attribute value, transaction position management, user portrait and other functions of the virtual power plant platform. According to various actual and predicted data on the chain, the conditions trigger the automatic execution of the set transaction program, thereby ensuring the optimal economy on the basis of transaction execution. Through the smart contract equipped with the existing user portrait and package recommendation algorithm of the virtual power plant platform, the intelligent management of tasks in the division of transaction benefits between the virtual power plant and the user is realized, reducing disputes and controversies.

[0156] S140: If the smart contract corresponding to the target transaction type is called and it is determined that the target field value corresponding to the target task type meets the task execution condition, the task is executed to obtain the task execution result.

[0157] The task execution result includes any one of: a demand response execution result, an auxiliary service execution result and a power spot transaction settlement result.

[0158] It should be noted that if the target task type is a demand response type, the smart contract corresponding to the target transaction type is: the target field value corresponding to the demand response type is greater than the first set value; if the target task type is an auxiliary service type, the smart contract corresponding to the target transaction type is: the target field value corresponding to the auxiliary service type is greater than the second set value; if the target task type is an electricity spot trading settlement type, the smart contract corresponding to the target transaction type is: the smart contract corresponding to the target transaction type is greater than the third set value, wherein the first set value, the second set value and the third set value may be the same or different.

[0159] Specifically, if the smart contract corresponding to the target transaction type is called, and it is determined that the target field value corresponding to the target task type meets the task execution condition, the task is executed, and the task execution result is obtained in the following manner: if the target task type is a demand response type, the smart contract corresponding to the demand response type is called, and if the target field value corresponding to the demand response type is greater than the first set value, it is determined that the target field value corresponding to the demand response type meets the task execution condition, and the demand response is executed to obtain the demand response execution result. If the target task type is an auxiliary service type, the smart contract corresponding to the auxiliary service type is called, and if the target field value corresponding to the auxiliary service type is greater than the second set value, it is determined that the target field value corresponding to the auxiliary service type meets the task execution condition, and the auxiliary service is executed to obtain the auxiliary service execution result. If the target task type is an electric power spot transaction settlement type, the smart contract corresponding to the electric power spot transaction settlement type is called, and if the target field value corresponding to the electric power spot transaction settlement type is greater than the third set value, it is determined that the target field value corresponding to the electric power spot transaction settlement type meets the task execution condition, and the electric power spot transaction settlement is executed to obtain the electric power spot transaction settlement result. S150, recording the task execution result on the blockchain, and feeding back the task execution result to the client.

[0160] In a specific example, the embodiment of the present invention takes the Nantong virtual power plant as an example. The Nantong virtual power plant is a typical distributed energy aggregate, including: wind power generation, solar power generation, natural gas power generation and other distributed energy resources. The virtual power plant task execution method includes:

[0161] 1) System deployment and configuration: First, deploy the blockchain-based virtual power plant task execution system inside the Nantong virtual power plant. According to the actual situation of the Nantong virtual power plant, select appropriate data acquisition equipment, blockchain nodes and identity authentication equipment. Then, configure the blockchain-based virtual power plant task execution system, including: network configuration, blockchain configuration and identity authentication policy configuration.

[0162] 2) Data collection and preprocessing: After the system is started, the transaction data collection module begins to collect the transaction data of the Nantong virtual power plant in real time. The data collection module preprocesses the collected data, including data cleaning, outlier processing and data fusion.

[0163] 3) Blockchain ledger construction: Use blockchain technology to build a distributed ledger to record and store transaction data. Blockchain ledgers are tamper-proof and transparent, ensuring the integrity and authenticity of transaction data.

[0164] 4) Identity authentication and permission management: The identity authentication module implements the identity authentication of both parties of the transaction to prevent illegal transactions. According to the user's role and permission, the system dynamically allocates data access rights.

[0165] 5) Through blockchain smart contracts, demand response, ancillary services, electricity spot trading settlement and other transaction items are executed to achieve the required execution rate and optimal economic efficiency.

[0166] 6) Transaction Verification: Blockchain verifies the integrity of transaction data to ensure the integrity and authenticity of transaction data. Hash functions and other technologies are used to verify the integrity of transaction data.

[0167] 7) Transaction audit and tracing: The transaction audit module records transaction data and transaction process to facilitate subsequent audit and tracing. Once a transaction dispute occurs, effective investigation and handling can be carried out.

[0168] Through the implementation of the above steps, the blockchain-based virtual power plant task execution system can effectively prevent data tampering, forgery and fraud. At the same time, the system realizes the identity verification of both parties to the transaction and the integrity verification of transaction data, improving the accuracy and efficiency of transaction authentication.

[0169] The blockchain-based virtual power plant task execution system proposed in the embodiment of the present invention aims to solve the problems of data tampering, forgery and fraud in the existing virtual power plant task execution system. The overall system architecture mainly includes: virtual power plant transaction data collection module, blockchain ledger module, identity authentication module, transaction verification module and transaction audit module.

[0170] 1) Transaction data collection module: responsible for real-time collection of transaction data of virtual power plants, including information of both parties to the transaction, transaction volume, transaction value attribute values, etc. Data collection: real-time collection of user load data through non-intrusive sensors and intelligent monitoring equipment. Data preprocessing: cleaning, outlier processing and data fusion of the collected data to improve data quality.

[0171] 2) Blockchain ledger module: Using the distributed ledger characteristics of blockchain technology, record and store transaction data within the virtual power plant platform to ensure the immutability and transparency of the data. Ledger construction: Use blockchain technology to build a distributed ledger to record and store virtual power plant transaction data. Data encryption: Encrypt the data in the ledger to ensure data security.

[0172] 3) Identity authentication module: realize the identity authentication of both parties of the transaction to prevent the occurrence of illegal transactions. User identity authentication: adopt the key management mechanism based on public key infrastructure (PKI) to verify the identity of the virtual power plant platform user. Authority allocation: dynamically allocate data access rights according to the user's role and authority, for example, different operation permissions are allocated to power users, platform maintenance personnel, virtual power plant traders, etc.

[0173] 4) Transaction Verification Module: Verify the integrity of transaction data to ensure the integrity and authenticity of transaction data. Data integrity verification: Use hash functions and other technologies to verify the integrity of transaction data. Transaction consistency verification: Ensure the consistency and accuracy of transaction data.

[0174] 5) Transaction audit module: Establish an effective transaction audit and tracing mechanism, so that once a transaction dispute occurs, effective investigation and handling can be carried out. Transaction audit: Record transaction data and transaction process to facilitate subsequent audit and tracing. Dispute handling: Once a transaction dispute occurs, effective investigation and handling can be carried out.

[0175] The embodiment of the present invention realizes the full process recording and verification of virtual power plant transactions by adopting distributed ledger technology based on blockchain. By utilizing the immutability and transparency of blockchain, data tampering, forgery and fraud can be effectively prevented to ensure the security and reliability of transactions. At the same time, the system realizes the identity verification of both parties to the transaction and the integrity verification of transaction data, improving the accuracy and efficiency of task execution.

[0176] The embodiment of the present invention proposes a virtual power plant task execution method based on blockchain. The virtual power plant task execution method utilizes the immutability and distributed characteristics of blockchain technology to achieve comprehensive authentication of virtual power plant tasks, effectively prevent data tampering, forgery and fraud, and improve the security and reliability of virtual power plant task execution. Through blockchain technology, the above method can achieve real-time monitoring and verification of transaction data to ensure the integrity and authenticity of transaction data. At the same time, the above method can also achieve identity authentication of both parties to the transaction to prevent the occurrence of illegal transactions. In addition, the above method can also establish an effective transaction audit and traceability mechanism, and once a transaction dispute occurs, it can be effectively investigated and handled.

[0177] To sum up, the blockchain-based virtual power plant task execution method proposed in the embodiment of the present invention can effectively solve the problems existing in the existing virtual power plant task execution method, improve the security and reliability of virtual power plant transactions, and provide strong support for the stable operation and sustainable development of virtual power plants.

[0178] The embodiment of the present invention realizes the self-execution and automation of tasks and reduces the cost of task execution by introducing the function of a virtual power plant smart contract. The technical solution of this embodiment, by receiving a virtual power plant task execution request sent by a client, extracts the target task type carried by the virtual power plant task execution request and the request parameters corresponding to the target task type, wherein the target task type includes: any one of a demand response type, ancillary service type, and a power spot transaction settlement type; obtains the service parameters corresponding to the virtual power plant task execution request from the blockchain network; determines the target field value corresponding to the target task type according to the service parameters corresponding to the virtual power plant service execution request and the request parameters corresponding to the target task type; if the smart contract corresponding to the target transaction type is called and it is determined that the target field value corresponding to the target task type meets the task execution condition, the task is executed to obtain the task execution result; the task execution result is recorded on the blockchain, and the task execution result is fed back to the client, which can effectively prevent data tampering, forgery and fraud, and realizes the self-execution and automation of tasks by introducing the function of a virtual power plant smart contract, improves the efficiency of task execution, and after the task is executed, the task execution result is recorded on the blockchain for subsequent auditing and tracing.

[0179] Embodiment 2

[0180] Figure 3 The present invention provides a schematic diagram of the structure of a virtual power plant task execution device. This embodiment is applicable to the case of virtual power plant task execution. The device can be implemented in software and / or hardware. The device can be integrated in any device that provides a virtual power plant task execution function, such as Figure 3 As shown, the virtual power plant task execution device specifically includes: a virtual power plant task execution request receiving module 310, a service parameter acquisition module 320, a target field value determination module 330 corresponding to the target task type, a smart contract calling module 340 and a task execution result recording module 350.

[0181] The virtual power plant task execution request receiving module is used to receive the virtual power plant task execution request sent by the client, extract the target task type carried by the virtual power plant task execution request and the request parameters corresponding to the target task type, wherein the target task type includes: any one of a demand response type, ancillary service type and a power spot transaction settlement type;

[0182] A service parameter acquisition module is used to obtain service parameters corresponding to the virtual power plant task execution request from the blockchain network;

[0183] A target field value determination module corresponding to a target task type, used to determine a target field value corresponding to the target task type according to a service parameter corresponding to the virtual power plant service execution request and a request parameter corresponding to the target task type;

[0184] A smart contract calling module is used to call a smart contract corresponding to the target transaction type, determine that the target field value corresponding to the target task type meets the task execution condition, and then execute the task to obtain the task execution result;

[0185] The task execution result recording module is used to record the task execution result on the blockchain and feed back the task execution result to the client.

[0186] The above-mentioned product can execute the method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0187] Embodiment 3

[0188] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0189] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0190] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0191] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a virtual power plant task execution method.

[0192] In some embodiments, the virtual power plant task execution method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the virtual power plant task execution method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the virtual power plant task execution method in any other appropriate manner (e.g., by means of firmware).

[0193] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0194] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0195] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0196] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0197] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0198] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0199] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0200] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the virtual power plant task execution method according to any embodiment of the present invention.

[0201] In the process of implementation, the computer program product can be written in one or more programming languages ​​or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0202] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A virtual power plant task execution method, It is characterized in that Applied to a blockchain network, the method comprises: Receive a virtual power plant task execution request sent by a client, extract a target task type carried in the virtual power plant task execution request and a request parameter corresponding to the target task type, wherein the target task type includes: any one of a demand response type, an auxiliary service type, and a power spot transaction settlement type; Obtain service parameters corresponding to the virtual power plant task execution request from the blockchain network; Determine a target field value corresponding to the target task type according to a service parameter corresponding to the virtual power plant service execution request and a request parameter corresponding to the target task type; If the smart contract corresponding to the target transaction type is called and it is determined that the target field value corresponding to the target task type meets the task execution condition, the task is executed to obtain the task execution result; The task execution result is recorded on the blockchain and fed back to the client.

2. The method according to claim 1, It is characterized in that The request parameters corresponding to the demand response type include: user response amount, the request parameters corresponding to the auxiliary service type include: auxiliary service amount provided by the user, and the request parameters corresponding to the electricity spot transaction settlement type include: transaction time to be settled, actual power load and actual power value attribute value.

3. The method according to claim 2, It is characterized in that From the blockchain network, obtain the service parameters corresponding to the virtual power plant task execution request, including: If the target task type is a demand response type, the value attribute value during the demand response period and the value attribute value threshold of the electricity quantity for starting the demand response are obtained from the blockchain network; If the target task type is an auxiliary service type, obtain the auxiliary service negative indicator value corresponding to each megawatt and the auxiliary service positive indicator value corresponding to each megawatt from the blockchain network; If the target task type is the electricity spot transaction settlement type, the predicted electricity value attribute value and predicted load corresponding to the transaction time to be settled are obtained from the blockchain network.

4. The method according to claim 3, It is characterized in that Determining a target field value corresponding to the target task type according to a service parameter corresponding to the virtual power plant service execution request and a request parameter corresponding to the target task type includes: If the target task type is a demand response type, the target field value corresponding to the demand response type is determined according to the value attribute value during the demand response period, the value attribute value threshold of the power quantity initiated by the demand response, and the user response amount; If the target task type is an auxiliary service type, the target field value corresponding to the auxiliary service type is determined according to the auxiliary service negative indicator value corresponding to each megawatt, the auxiliary service positive indicator value corresponding to each megawatt, and the auxiliary service amount provided by the user; If the target task type is an electricity spot transaction settlement type, the target field value corresponding to the electricity spot transaction settlement type is determined based on the predicted electricity value attribute value, predicted load, actual electricity load and actual electricity value attribute value corresponding to the transaction time to be settled.

5. The method according to claim 4, It is characterized in that According to the value attribute value during the demand response period, the value attribute value threshold of the power value at which the demand response is initiated, and the user response amount, the target field value corresponding to the demand response type is determined, including: The product of the demand response period value attribute value and the user response amount is determined as the demand response period benefit; The product of the power value attribute value threshold for starting the demand response and the user response amount is determined as the negative indicator value during the demand response period; The difference between the revenue during the demand response period and the negative indicator value during the demand response period is determined as the target field value corresponding to the demand response type.

6. The method according to claim 4, It is characterized in that According to the negative indicator value of the auxiliary service corresponding to each megawatt, the positive indicator value of the auxiliary service corresponding to each megawatt, and the amount of auxiliary services provided by the user, the target field value corresponding to the auxiliary service type is determined, including: The total positive index value obtained by providing auxiliary services is determined by multiplying the product of the auxiliary service positive index value corresponding to each megawatt and the auxiliary service amount provided by the user; The total negative index value for providing auxiliary services is determined by multiplying the product of the auxiliary service negative index value corresponding to each megawatt and the amount of auxiliary services provided by the user; The difference between the total positive index value obtained by providing the auxiliary service and the total negative index value obtained by providing the auxiliary service is determined as the target field value corresponding to the auxiliary service type.

7. The method according to claim 4, It is characterized in that According to the predicted electricity value attribute value, predicted load, actual electricity load and actual electricity value attribute value corresponding to the transaction time to be settled, the target field value corresponding to the electricity spot transaction settlement type is determined, including: The difference between the actual power load and the predicted load corresponding to the transaction time to be settled is determined as the load prediction error corresponding to the transaction time to be settled; The difference between the actual electric quantity value attribute value and the predicted electric quantity value attribute value corresponding to the transaction time to be settled is determined as the prediction error of the electric quantity value attribute value corresponding to the transaction time to be settled; Determining the purchased power according to the load forecast error, the first adjustment coefficient and the predicted power value attribute value; Determine the amount of electricity sold according to the electricity value attribute value prediction error, the second adjustment coefficient and the predicted load; If the purchased electricity is greater than zero and the sold electricity is zero, the target field value corresponding to the electricity spot transaction settlement type is determined according to the purchased electricity, the actual electricity value attribute value and the predicted electricity value attribute value; If the purchased electricity amount is zero and the sold electricity amount is greater than zero, the target field value corresponding to the electricity spot transaction settlement type is determined according to the sold electricity amount, the actual electricity value attribute value and the predicted electricity value attribute value.

8. A virtual power plant task execution device, It is characterized in that Applied to the blockchain network, the virtual power plant task execution device includes: A virtual power plant task execution request receiving module is used to receive a virtual power plant task execution request sent by a client, and extract a target task type carried by the virtual power plant task execution request and a request parameter corresponding to the target task type, wherein the target task type includes: any one of a demand response type, an auxiliary service type, and a power spot transaction settlement type; A service parameter acquisition module is used to obtain service parameters corresponding to the virtual power plant task execution request from the blockchain network; A target field value determination module corresponding to a target task type, used to determine a target field value corresponding to the target task type according to a service parameter corresponding to the virtual power plant service execution request and a request parameter corresponding to the target task type; A smart contract calling module is used to call a smart contract corresponding to the target transaction type, determine that the target field value corresponding to the target task type meets the task execution condition, and then execute the task to obtain the task execution result; The task execution result recording module is used to record the task execution result on the blockchain and feed back the task execution result to the client.

9. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the virtual power plant task execution method according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the virtual power plant task execution method described in any one of claims 1-7 when executed.

11. A computer program product, It is characterized in that The computer program product comprises a computer program, which, when executed by a processor, implements the virtual power plant task execution method according to any one of claims 1 to 7.