Multi-microgrid carbon quota data processing method based on quantum blockchain

Through quantum blockchain and cooperative game theory, combined with environmental awareness factors and virtual currency incentives, the problems of traditional blockchain carbon quota trading security and low participation are solved, and the safety and efficiency of carbon quota trading among multiple micro-networks are achieved. and environmental benefits.

CN114662957BActive Publication Date: 2024-10-15SHANGHAI UNIVERSITY OF ELECTRIC POWER
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210335207.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-31
Publication Date
2024-10-15
Estimated Expiration
2042-03-31

AI Technical Summary

Technical Problem

The security of carbon quota transactions based on traditional blockchain technology is threatened by quantum computing, and there is a lack of a mechanism to encourage microgrid nodes to participate in carbon quota transactions, resulting in high transaction risks, low efficiency and low participation.

Method used

Using a multi-microgrid carbon quota data processing method based on quantum blockchain, combined with environmental awareness factors and cooperative game theory, through quantum teleportation technology and virtual currency incentive mechanism, a safe and efficient carbon quota trading structure is built to promote microgrids Nodes participate in carbon quota trading.

Benefits of technology

It improves the security and efficiency of carbon quota trading among multiple microgrids, encourages microgrid nodes to participate in carbon quota trading, and maximizes environmental protection benefits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114662957B_ABST
    Figure CN114662957B_ABST
Patent Text Reader

Abstract

The present invention discloses a multi-microgrid carbon quota data processing method based on quantum blockchain, combines the advantages of quantum computing in processing massive data, and constructs a microgrid group carbon quota trading architecture based on quantum blockchain; utilizes the microgrid group carbon quota allocation mechanism to quantitatively calculate the environmental awareness factor of the microgrid node, and realizes the deep integration of the environmental awareness factor and the microgrid node; on this basis, adopts cooperative game theory to complete the optimization of microgrid group carbon quota trading, and realizes the purpose of economic factors motivating nodes to participate in carbon quota trading within the microgrid group; can ensure the security and efficiency of carbon quota trading between multiple microgrid nodes, and effectively improve the enthusiasm of multiple microgrid nodes to participate in carbon quota trading.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of microgrid technology, and in particular to a multi-microgrid carbon quota data processing method based on quantum blockchain. Background Art

[0002] With the development of distributed energy technology and strong support from policies, distributed energy equipment (DER) will be more and more widely used. As a relatively independent grid structure, microgrids can directly meet user-side needs and achieve efficient use of clean energy. They are the main force in responding to the national call for energy conservation and emission reduction. Therefore, the key point of the current power system reform is how to maximize the environmental benefits of microgrid groups.

[0003] Blockchain is a distributed database that deeply applies new computer technologies such as cryptographic algorithms, distributed data storage, peer-to-peer transmission, consensus mechanisms, and smart contracts to achieve decentralization, immutability, openness, and transparency. It perfectly meets the needs of carbon quota trading within microgrids. Therefore, blockchain technology provides a research direction and reference basis for improving the carbon quota trading system within microgrids.

[0004] At present, scholars at home and abroad have studied the multi-microgrid carbon trading mechanism based on blockchain from many aspects. Some literature uses blockchain technology to make corporate carbon emission data open and transparent within the system, realizing the effective combination of carbon emission trading plans and new carbon emission mechanisms. Some literature uses the underlying information security architecture of blockchain to construct a distributed carbon quota trading system architecture model. Some literature considers the credibility of both buyers and sellers and proposes a carbon quota trading mechanism model based on blockchain technology, which effectively reduces the trust cost of both parties and improves the efficiency of carbon quota trading. Some literature combines carbon emission reduction effort value to construct a carbon quota cost decision model, a carbon emission reduction reward and punishment model, and a carbon trading matching model, in order to achieve safe and efficient execution of multi-microgrid carbon quota trading. Some literature improves the Australian carbon trading market based on blockchain technology, so that the trading efficiency of the Australian carbon market is effectively guaranteed, while improving the security and fairness of transactions. The above literature applies blockchain technology to the carbon quota trading mechanism, providing reference and reference for optimizing the carbon quota trading mechanism between multi-microgrids. Based on the summary of existing research results, it is found that there are still two problems: ① With the development of quantum computers, the security of carbon quota transactions based on traditional blockchain technology will no longer be guaranteed; ② The research mainly considers the trustworthiness of both parties to the transaction, and lacks a mechanism to incentivize microgrid nodes to participate in the carbon quota trading model.

[0005] Quantum computing mainly uses the characteristics of quantum superposition and quantum entanglement in quantum mechanics theory to achieve unconditional and secure information exchange and rapid solution of complex problems. Traditional blockchain systems rely on technologies such as hash algorithms and digital signatures to ensure their own security, while quantum computers can easily crack security algorithms based on the complexity of mathematical problems, making it easier for nodes with quantum computers to form malicious groups and prevent honest nodes from mining valid blocks. Summary of the invention

[0006] In view of the problems of high risk, low efficiency and low node participation in carbon quota trading of microgrid groups in the prior art, the present invention provides a multi-microgrid carbon quota data processing method based on quantum blockchain, and uses quantum blockchain technology to complete the establishment of a carbon quota trading architecture between nodes in a microgrid group; a carbon quota allocation mechanism based on environmental awareness factors is adopted, and the environmental awareness factors are embedded in the basic attributes of microgrid nodes to achieve the purpose of promoting microgrid nodes to expand the scale of clean energy; on this basis, the cooperative game theory is combined with the carbon quota trading mechanism within the microgrid group, so that the benefits of the microgrid nodes are greatly improved, while reducing the carbon emissions within the microgrid group, and maximizing the environmental protection benefits of the microgrid nodes.

[0007] The following is the technical solution of the present invention.

[0008] The multi-microgrid carbon quota data processing method based on quantum blockchain includes the following steps:

[0009] Build a microgrid carbon quota trading architecture based on quantum blockchain, use load aggregators and microgrid nodes to form a private chain, and load aggregators serve as third parties to initiate carbon quota transactions and conduct carbon quota transactions between microgrids and external networks;

[0010] An environmental awareness factor is set as a comprehensive calculation result of the microgrid clean energy ratio and historical contribution value of the microgrid node, and the carbon quota is adjusted according to the environmental awareness factor of the microgrid node;

[0011] Set up a coalition profit model based on cooperative game theory to distribute cooperative surplus;

[0012] Among them, the generation of blocks is completed by load aggregators, and the verification of blocks is completed by load aggregators and all microgrid nodes in the private chain; after each transaction cycle, load aggregators and other microgrid nodes use algorithms based on quantum teleportation technology to complete reliable verification of transaction information.

[0013] Since the traditional blockchain system relies on technologies such as hash algorithms and digital signatures to ensure its own security, quantum computers can easily crack security algorithms based on the complexity of mathematical problems, making it easier for nodes with quantum computers to form malicious groups and prevent honest nodes from mining valid blocks. Therefore, in order to improve the security of carbon quota transactions between multiple microgrids and the enthusiasm of microgrid nodes to participate in carbon quota transactions, the present invention adopts quantum blockchain, and mutual security verification is implemented based on the algorithm of quantum teleportation technology.

[0014] Preferably, in the microgrid carbon quota trading architecture based on quantum blockchain, the quantum blockchain includes: the quantum blockchain is regarded as the GHZ (Greenberger-Horne-Zeilinger) form of non-coexisting photons, the data in the block is simplified into a two-bit string, and within a preset time, the record of each block is converted into a temporary Bell state to complete the encoding process; the quantum blockchain links the bit strings in the Bell state in chronological order through the fusion process;

[0015] At the same time, a blockchain framework based on quantum trust bitcoin (QTB) is constructed. After the block is verified and uploaded to the chain, the corresponding trust node will receive corresponding incentives. The corresponding incentive refers to the virtual currency QTB issued in the network. The value of QTB is the verification priority corresponding to the trust value.

[0016] Among them, quantum protection and quantum certificates are embedded in the transaction syntax of the quantum blockchain.

[0017] To make the quantum blockchain more powerful, quantum protection and quantum certificates are embedded into the transaction syntax of the quantum blockchain.

[0018] Therefore, in the blockchain system, multiple transactions y1,...,y n The record format is:

[0019] T x =(x,y1,...,y n ,j;α,φ;β1,ψ1,...,β n ,ψ n );

[0020] Where: x is the hash value of this transaction, which can be expressed as Where S and r are key pairs, T s is the Toeplite matrix generated by S; α and Φ are Boolean functions of classical and quantum certificates respectively; β is some classical data, ψ is quantum data, and both parameters are regarded as certificates.

[0021] Preferably, the calculation process of the environmental awareness factor includes:

[0022] The environmental identification factor and historical revenue value of the microgrid node are used as indicators for evaluating its environmental awareness factor, and the comprehensive calculation result of the two is defined as the environmental awareness factor;

[0023] Suppose there are n (i=1,2,…,n) nodes x i , m (j=1,2,…,m) indicators Y j , For node x i Indicator Y in the kth time period j The value of Y j The weight of is the microgrid node x i Environmental awareness factor in the kth time period;

[0024] Using the extreme value processing method, the indicators are dimensionless according to the benefit-type and cost-type indicators. The dimensionless values ​​are:

[0025]

[0026]

[0027] Where: and Respectively represent the index Y of all nodes in the kth time period j The maximum and minimum values ​​of ;

[0028] The dimensionless data is represented as a matrix

[0029] Indicator Y j Information entropy It is expressed as:

[0030]

[0031] Where: Represents node x i The weight of the jth index of the sum of the indexes of all nodes;

[0032] The weights of each indicator are calculated as follows:

[0033]

[0034] The environmental awareness factor of node i is:

[0035]

[0036] Preferably, the process of obtaining the environmental identification factor includes:

[0037] The clean energy content inside the microgrid node is expressed as the ratio of renewable energy generation to the total output of micro-sources, and is defined as the environmental identification factor;

[0038] The environmental identification factor is calculated as follows:

[0039] χ env =P REG / (P REG +P MT +Q GB );

[0040] Where P REG is the power generation of distributed clean energy, P MT is the power generation of the gas turbine, Q GB The power generation of the boiler.

[0041] Preferably, the process of obtaining the historical contribution value includes:

[0042] The historical carbon quota trading contribution value of the microgrid node is expressed as:

[0043]

[0044] In the formula, CON i represents the historical carbon quota trading contribution value of microgrid node i, It represents the sum of the benefits of node i participating in the cooperative game in γ historical periods.

[0045] Preferably, the adjusting the carbon quota according to the environmental awareness factor of the microgrid node includes:

[0046] The environmental awareness factor is used as a positive correlation factor to complete the allocation of node carbon quotas. Therefore, the carbon quota allocation value It is expressed as:

[0047]

[0048] In the formula, Represents the total amount of carbon quota allocated to all microgrid nodes, is the microgrid node x i The environmental awareness factor in the kth time period, The sum of the environmental awareness factors of all microgrid nodes in the kth time period. The higher the environmental awareness factor of the microgrid node, the higher the carbon quota obtained.

[0049] As a preferred embodiment, the alliance revenue model based on cooperative game theory is set to distribute the cooperative surplus, including: for n microgrids in the region, the partners are the surplus power microgrids and power-deficient microgrids willing to join the alliance, and the characteristic function V(S) is defined to represent the total revenue of the alliance S. After the surplus carbon quota microgrid and the carbon-deficient microgrid form a cooperative alliance, they can be regarded as a large microgrid node, which trades with the distribution network as a whole. Therefore, the revenue V(S) of the cooperative alliance can be expressed as:

[0050]

[0051] Where Δt represents the time interval within the transaction cycle, Assign values ​​to carbon allowances, represents the price of the remaining carbon quota microgrid group and the external network transaction in the kth period, represents the price of carbon quota-deficient microgrid group and external network transaction in the kth period, is the emission coefficient of pollutant CO2 of equipment j, P j is the power generation of device j;

[0052] Here we define μ k for:

[0053]

[0054] Compared with the direct transaction model between each microgrid and the distribution network, the total revenue ΔV increased by the cooperation model is:

[0055]

[0056] Where P and Q represent the set of microgrids with excess carbon quota and the set of microgrids with insufficient carbon quota, respectively.

[0057] As a preferred option, for the residual carbon quota microgrid, the revenue increase obtained in the alliance is equal to the mutual benefit part, and the income obtained in the cooperative game model is the income V allocated in the model. i ;

[0058] For microgrids lacking carbon quotas, the increase in revenue obtained in the alliance is equivalent to reducing their own carbon quota purchase costs; therefore, the carbon quota fee P that microgrids lacking carbon quotas need to pay in the cooperative game model is l (k) can be determined based on the mutual benefit, that is, the cost of purchasing carbon quotas of the node in the direct trading model minus the value of cooperation benefit, as shown in the following formula:

[0059]

[0060] Where V l (k) is the revenue of microgrid l calculated by Shapley value in the kth time period.

[0061] Preferably, the algorithm based on quantum teleportation technology includes:

[0062] The information party uses quantum digital signature to sign the transaction information;

[0063] The party to be verified distributes the key to the load aggregator and other verification nodes through quantum teleportation technology;

[0064] After receiving the key, load aggregators and other verification nodes as verifiers will check the security of the transaction information. When the verification result is greater than a pre-set threshold, the transaction information is written into the block, otherwise the information is considered illegal.

[0065] The present invention utilizes quantum teleportation technology to make the distribution of keys extremely secure so as to resist possible attacks from quantum computers.

[0066] The substantial effects of the present invention include: combining the advantages of quantum computing in processing massive data to construct a microgrid group carbon quota trading architecture based on quantum blockchain; utilizing the microgrid group carbon quota allocation mechanism to quantitatively calculate the environmental awareness factor of the microgrid node, and realize the deep integration of the environmental awareness factor and the microgrid node; on this basis, using cooperative game theory to complete the optimization of microgrid group carbon quota trading, and achieve the purpose of economic factors to motivate nodes to participate in carbon quota trading within the microgrid group; it can ensure the security and efficiency of carbon quota trading between multiple microgrid nodes, and effectively improve the enthusiasm of multiple microgrid nodes to participate in carbon quota trading. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1 is an architectural diagram of an embodiment of the present invention;

[0068] Figure 2 is a schematic diagram of cooperation surplus of an embodiment of the present invention;

[0069] Figure 3 is a cost and benefit diagram of a carbon-deficient quota microgrid according to an embodiment of the present invention;

[0070] Figure 4 is a flow chart of a carbon quota trading mechanism based on environmental awareness factors according to an embodiment of the present invention;

[0071] Figure 5 is a graph of carbon emissions of microgrid nodes according to an embodiment of the present invention;

[0072] Figure 6 It is a net carbon quota curve diagram of a microgrid node according to an embodiment of the present invention. DETAILED DESCRIPTION

[0073] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution will be clearly and completely described below in combination with the embodiments. 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.

[0074] It should be understood that in various embodiments of the present invention, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0075] It should be understood that in the present invention, "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.

[0076] It should be understood that in the present invention, "plurality" refers to two or more than two. "And / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "Contains A, B and C", "Contains A, B, C" means that A, B, and C are all included, "Contains A, B or C" means that one of A, B, and C is included, and "Contains A, B and / or C" means that any one, any two, or any three of A, B, and C are included.

[0077] The technical solution of the present invention is described in detail with specific embodiments below. The embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0078] Example:

[0079] The multi-microgrid carbon quota data processing method based on quantum blockchain includes the following steps:

[0080] like Figure 1 As shown, a microgrid carbon quota trading architecture based on quantum blockchain is built, using load aggregators and microgrid nodes to form a private chain. The load aggregators serve as the third party to initiate carbon quota transactions and conduct carbon quota transactions between microgrids and external networks.

[0081] An environmental awareness factor is set as a comprehensive calculation result of the microgrid clean energy ratio and historical contribution value of the microgrid node, and the carbon quota is adjusted according to the environmental awareness factor of the microgrid node;

[0082] Set up a coalition profit model based on cooperative game theory to distribute cooperative surplus;

[0083] Among them, the generation of blocks is completed by load aggregators, and the verification of blocks is completed by load aggregators and all microgrid nodes in the private chain; after each transaction cycle, load aggregators and other microgrid nodes use algorithms based on quantum teleportation technology to complete reliable verification of transaction information.

[0084] exist Figure 1 In the process, load aggregator A is a third-party agency that initiates carbon quota transactions and conducts carbon quota transactions between microgrid groups and external networks. It is responsible for integrating small and medium-sized user microgrids A1, A2, A3, and A4 that are not controlled by the power grid. A1 and A2 form two quantum blockchain nodes in cooperative alliance A, and A3 and A4 form two quantum blockchain nodes in cooperative alliance B. The nodes include microgrid intelligent entities and distributed energy devices that participate in the carbon quota cooperative game decision-making process.

[0085] In the microgrid carbon quota trading model based on quantum blockchain, load aggregators perform supervision and block building functions as regulatory nodes. After each trading cycle, load aggregators will use the key obtained by quantum teleportation to securely verify the transaction information. The transaction information in the microgrid group is completely public, and the load aggregators are constrained by the quantum Byzantine consensus mechanism and cannot modify the transaction information without authorization. Through the quantum blockchain, a trust machine, the dynamic cooperative game trading model proposed by the load aggregator allows microgrid nodes to share key information, truly ensuring the security and efficiency of carbon quota transactions between microgrid nodes.

[0086] In the quantum blockchain, due to the use of quantum digital signature technology, the hash algorithm will become ineffective. Load aggregators and other microgrid nodes use an algorithm based on quantum teleportation technology to complete the reliable verification of transaction information. The algorithm is divided into three steps: (1) The information party uses a quantum digital signature to sign the transaction information. (2) The party to be verified distributes the key to the load aggregator and other verification nodes through quantum teleportation technology. (3) After receiving the key, the verifier verifies the security of the transaction information. When the verification result is greater than a pre-set threshold, the transaction information is written into the block, otherwise the information is considered illegal. The above method can ensure the security of carbon quota transaction information between microgrids, thereby improving transaction efficiency.

[0087] Carbon quota allocation is the basic condition for carbon trading. Different carbon quota allocation methods mean different emission reduction costs and benefits. Considering that the amount of clean energy within the microgrid can reflect the environmental benefits of the microgrid node; the historical transaction income value of the microgrid node can reflect the participation activity of the microgrid node. Therefore, this embodiment introduces an environmental awareness factor to achieve a comprehensive calculation of the proportion of clean energy in the microgrid and the historical contribution value. On this basis, the carbon quota allocated to the microgrid node is affected by the environmental awareness factor, in order to achieve the purpose of constraining the behavior of the microgrid node and promoting the development of the microgrid node towards a renewable energy architecture.

[0088] The environmental identification factor and historical benefit value of the microgrid node are used as indicators to assess its environmental awareness factor, and the comprehensive calculation result of the two is defined as the environmental awareness factor.

[0089] Suppose there are n (i=1,2,…,n) nodes x i , m (j=1,2,…,m) indicators Y j , For node x i Indicator Y in the kth time period j The value of Y j The weight of is the microgrid node x i Environmental awareness factor in the kth time period. Considering the differences in the indicators for evaluating the environmental awareness factor of microgrid nodes, this embodiment adopts the extreme value processing method to non-dimensionalize the indicators according to the benefit-type and cost-type indicators. The dimensionless values ​​are:

[0090]

[0091]

[0092] Where: and Respectively represent the index Y of all nodes in the kth time period j The maximum and minimum values ​​of .

[0093] The dimensionless data can be expressed as a matrix

[0094] Indicator Y j Information entropy It is expressed as:

[0095]

[0096] Where: Represents node x i The weight of the jth index is the sum of the indexes of all nodes.

[0097] The weights of each indicator are calculated as follows:

[0098]

[0099] The environmental awareness factor of node i is:

[0100]

[0101] This paper uses environmental identification factors and node historical benefit values ​​as indicators to quantify environmental awareness factors. Therefore, it is necessary to quantitatively calculate environmental identification factors and historical benefit values.

[0102] The environmental identification factor reflects the low-carbon level of the microgrid node. Therefore, the clean energy content inside the microgrid node is expressed as the ratio of renewable energy power generation to the total output of micro sources, and it is defined as the environmental identification factor.

[0103] Based on the above definition, the calculation method of the environmental identification factor is as follows:

[0104] χ env =P REG / (P REG +P MT +Q GB );

[0105] Where P REG is the power generation of distributed clean energy, P MT is the power generation of the gas turbine, Q GB The power generation of the boiler.

[0106] According to the historical contribution value of microgrid nodes in participating in cooperative games, the enthusiasm of nodes in participating in carbon quota trading is determined, thereby encouraging enterprises to participate in cooperative game models to achieve the goal of energy conservation and emission reduction. Therefore, the historical carbon quota trading contribution value of microgrid nodes can be expressed as:

[0107]

[0108] In the formula, CON i represents the historical carbon quota trading contribution value of microgrid node i, It represents the sum of the benefits of node i participating in the cooperative game in γ historical periods.

[0109] Based on the above evaluation mechanism, the environmental awareness factor of the microgrid node can be specifically expressed as:

[0110]

[0111] In order to achieve the purpose of influencing the number of carbon quotas obtained by nodes with the environmental awareness factor, the environmental awareness factor is used as a positively correlated factor to complete the allocation of node carbon quotas. Therefore, the carbon quota allocation value It can be expressed as:

[0112]

[0113] In the formula, It represents the total carbon quota allocation of all microgrid nodes. From the above formula, it can be seen that the higher the environmental awareness factor of the microgrid node, the higher the carbon quota obtained. Therefore, the environmental awareness value can realize the supervision and incentive of the microgrid nodes, supervise the clean energy content of the microgrid nodes, and encourage the microgrid nodes to participate in the carbon quota cooperation game model.

[0114] Cooperative game is a type of game that is symmetrical to non-cooperative game. It refers to a type of game in which participants can jointly reach a binding and enforceable agreement. Cooperative game emphasizes collective rationality, efficiency, justice and fairness.

[0115] The two most important concepts in cooperative games are alliance and distribution: ① For the entire alliance, the overall benefits are greater than the sum of the benefits of each member when operating separately; ② For distribution, the benefits allocated to each participant from the alliance are not less than the benefits obtained by operating separately. In a cooperative game, information between members within the alliance can be exchanged with each other, and the agreements reached must be enforced. The reason why cooperation can enhance the interests of both parties is that cooperative games can generate a cooperative surplus. As for how the cooperative surplus is distributed among the game parties, it depends on the power comparison and institutional design of the game parties.

[0116] For microgrids with excess carbon quotas and microgrids with insufficient carbon quotas, information sharing is achieved through the data of the alliance blockchain, forming a cooperative alliance and using excess carbon quotas, and then trading with the power grid. Overall, it avoids the situation where the excess carbon quota group purchases carbon quotas from the external network at a high price, while the excess carbon quota group sells them to the power grid at a low price, causing economic losses.

[0117] For the mutual use of carbon quotas, the alliance uses the price sold to the external network. The cost reduction compared to the carbon quota purchased from the distribution network is the "cooperative surplus" in the cooperative game model, such as Figure 2 By allocating this part of the "cooperative surplus" in a reasonable way, the microgrids with excess carbon quota and the microgrids with insufficient carbon quota can increase their own profits respectively, so there is a driving force for the formation of cooperative alliances between microgrids.

[0118] For the n microgrids in the region, the partners are the surplus power microgrids and power shortage microgrids willing to join the alliance, and the characteristic function V(S) is defined to represent the total revenue of the alliance S. After the surplus carbon quota microgrid and the carbon shortage microgrid form a cooperative alliance, they can be regarded as a large microgrid node, which trades with the distribution network as a whole. Therefore, the revenue V(S) of the cooperative alliance can be expressed as:

[0119]

[0120] Where Δt represents the time interval within the transaction cycle, represents the price of the remaining carbon quota microgrid group and the external network transaction in the kth period, represents the price of carbon quota-deficient microgrid group and external network transaction in the kth period, is the emission coefficient of pollutant CO2 of equipment j, P j is the power generation of device j.

[0121] Here we define μ k for:

[0122]

[0123] Compared with the direct transaction model between each microgrid and the distribution network, the total revenue ΔV increased by the cooperation model is:

[0124]

[0125] Where P and Q represent the set of microgrids with excess carbon quota and the set of microgrids with insufficient carbon quota, respectively.

[0126] After determining the overall benefits of the microgrid group cooperative alliance, a reasonable and fair method of benefit distribution is needed. Each participant must get a corresponding allocation. Since there are n microgrids in the distribution area, the allocation is a set of n vectors of the game. The n-dimensional allocation vector is called the "solution" of the cooperative game.

[0127] Definition: cooperative game (N, V), N = {1, 2, ..., n}, for each participant (microgrid) i∈N, a real-valued parameter X is given i , forming an n-dimensional vector X=(x1,x2,...,x n ) and it satisfies:

[0128]

[0129] Then X is called an allocation plan of alliance S.

[0130] In the definition of distribution, x i ≥V({i}) is based on individual rationality. The benefits of cooperation cannot be less than the benefits of non-cooperation, which reflects the participation constraints of the participants. i <V({i}), then participant i cannot join the alliance. Based on collective rationality, the sum of each participant's allocation cannot exceed the collective surplus V(N). In addition, if not all are allocated, it is obvious that X is a Pareto optimal allocation plan and will not be accepted by the participants.

[0131] The Shapley value method is a mathematical method used to solve multi-player cooperative game problems. Its advantage is that the benefits are apportioned according to the marginal contributions of the members, and the benefits obtained by the participants are equal to the average of their marginal contributions to the alliance.

[20] For the cooperation model proposed in this paper, the calculation rules for allocating benefits to each participating PV microgrid using the Shapley value method are as follows.

[0132] The prerequisite for applying Shapley value to distribute the overall benefits is to meet the following conditions:

[0133]

[0134]

[0135] From the previous analysis, it can be seen that the benefits of microgrids when they cooperate are greater than the sum of their benefits when they operate separately. Therefore, for the cooperation model of this article, the above formula meets the conditions.

[0136] The Shapley value is used to calculate the benefits of each microgrid participating in the cooperation. For any microgrid i, its benefit V i The calculation formula is:

[0137]

[0138]

[0139] In the formula, S i are all subsets of the alliance that include microgrid i; |S| is the number of users in subset S; ω(|S|) is the weighting factor; V(S) is the revenue generated by set S; V(S / i) represents the total revenue obtained by the remaining microgrids forming a cooperative alliance after removing microgrid i from set S.

[0140] After using the Shapley value method to calculate the distributed income of the members in the alliance, it is also necessary to determine a real-time transaction settlement rule to calculate the cash flow in the transaction. This is because after the formation of the alliance, the carbon quota of the remaining carbon quota microgrid is actually used by the carbon quota-deficient microgrid, so the carbon quota-deficient microgrid needs to pay the remaining carbon quota microgrid for this part of the mutual carbon quota. However, the Shapley value calculates the size of the income and does not determine the payment relationship between different users in the alliance. Therefore, it is necessary to specifically analyze the payment relationship in the actual transaction. The remaining carbon quota microgrid belongs to the income party in the alliance, and the carbon quota-deficient microgrid belongs to the expenditure party in the alliance.

[0141] For the residual carbon quota microgrid, the revenue increase obtained in the alliance is equal to the mutual benefit part, and the income obtained in the cooperative game model is the income V allocated in the model. i .

[0142] For microgrids lacking carbon quotas, the increased income gained in the alliance is equivalent to reducing their own carbon quota purchase costs, such as Figure 3 shown.

[0143] Therefore, the carbon quota fee P that the microgrid lacking carbon quota needs to pay in the cooperative game model is l (k) can be determined based on the mutual benefit, that is, the cost of purchasing carbon quotas of the node in the direct trading model minus the value of cooperation benefit, as shown in the following formula.

[0144]

[0145] Where V l (k) is the revenue of microgrid l calculated by Shapley value in the kth time period.

[0146] In summary, the carbon quota trading mechanism process based on environmental awareness factors and cooperative game model proposed in this embodiment is as follows: Figure 4 shown.

[0147] Next, this embodiment will use the comparison method to compare the carbon quota trading model based on the traditional centralized mechanism and the carbon quota trading model based on the quantum blockchain of the present invention. By comparing and analyzing the operating results of the two models, the reliability can be determined.

[0148] The carbon quota trading environment of the microgrid group based on quantum blockchain in this embodiment is shown in Table 1. At this time, the microgrid nodes in the microgrid group have reached a cooperative game consensus.

[0149] Table 1 Basic parameters of microgrid nodes

[0150] Microgrid node A serial number 1 2 3 4 <![CDATA[CO2 unit emission factor (g / kWh)]]> 653.4 734.6 577.3 677.4 Environmental Identification Factors 0.6874 0.5431 0.7126 0.6542 Contract unit carbon quota transaction price (yuan / g) 0.58 0.64 0.49 0.58

[0151] The net power curves of the four microgrid nodes can be obtained, and combined with the unit emission coefficient of pollutant CO2 of the microgrid nodes in Table 1, the following can be obtained: Figure 5 The carbon emission curve of the microgrid node is shown in Figure 2. Figure 5 and Figure 6 From the net carbon quota curve of microgrid nodes, it can be seen that during the period from 8:00 to 18:00, microgrid nodes A1 and A3 are nodes with surplus carbon quota, and A2 and A4 are nodes with insufficient carbon quota. Therefore, A1 and A2 can form an alliance, and A3 and A4 can form an alliance.

[0152] The total running time of the model is set to 20 hours. By running the cooperative game model and the traditional transaction model between microgrids based on quantum blockchain, a comparison table of indicators of each microgrid can be obtained, as shown in Table 2.

[0153] Table 2 Comparison of indicators of different modes of microgrid nodes

[0154] Indicators of different modes <![CDATA[LA1]]> <![CDATA[LA2]]> <![CDATA[LA3]]> <![CDATA[LA4]]> Traditional trading model income / yuan 25.5 28.6 16.7 21.3 The income of the model mentioned in this article / yuan 69.5 78.3 49.3 50.8 <![CDATA[CO2 emissions per gram in the traditional trading model]]> <![CDATA[1.62*10 6 ]]> <![CDATA[1.78*10 6 ]]> <![CDATA[1.65*10 6 ]]> <![CDATA[1.76*10 6 ]]> <![CDATA[CO2 emissions of the mode proposed in this paper / g]]> <![CDATA[1.42*10 6 ]]> <![CDATA[1.51*10 6 ]]> <![CDATA[1.45*10 6 ]]> <![CDATA[1.49*10 6 ]]> Traditional trading model environmental identification factors 0.58 0.42 0.55 0.48 The model environment identification factor proposed in this paper 0.78 0.67 0.74 0.69

[0155] From the comparison of microgrid node revenue value, CO2 emissions, and environmental identification factor indicators in the above table, we can get:

[0156] (1) In the cooperative game mode based on quantum blockchain, the income of microgrid nodes A1, A2, A3 and A4 are all improved after Shapley distribution, which benefits from the mutual use of carbon quotas among microgrids.

[0157] (2) The pollutant CO2 emissions of each microgrid node have been reduced to varying degrees. The CO2 emissions of microgrid nodes A1, A2, A3, and A4 have been reduced by 12.3%, 15.2%, 6%, and 15.3%, respectively. Since cooperative games can bring more benefits to microgrid nodes, in order to benefit from this model, microgrid nodes try to reduce CO2 emissions as much as possible, so that more carbon quotas can be left to participate in the transaction.

[0158] (3) For environmental identification factors, the environmental identification factors of the microgrid group have all increased. This shows that environmental identification factors can promote the microgrid group to continuously expand the scale of clean energy in order to obtain more carbon quotas, thereby improving environmental awareness after each transaction, ensuring that the node develops its own benefits while responding to environmental protection calls.

[0159] Therefore, the substantial effects of this embodiment include: combining the advantages of quantum computing in processing massive data to build a microgrid group carbon quota trading architecture based on quantum blockchain; utilizing the microgrid group carbon quota allocation mechanism to quantitatively calculate the environmental awareness factor of the microgrid node, and realize the deep integration of the environmental awareness factor and the microgrid node; on this basis, using cooperative game theory to complete the optimization of microgrid group carbon quota trading, and achieve the purpose of economic factors to motivate nodes to participate in carbon quota trading within the microgrid group; it can ensure the security and efficiency of carbon quota trading between multiple microgrid nodes, and effectively improve the enthusiasm of multiple microgrid nodes to participate in carbon quota trading.

[0160] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the specific device can be divided into different functional modules to complete all or part of the functions described above.

[0161] In the embodiments provided in the present application, it should be understood that the disclosed structures and methods can be implemented in other ways. For example, the embodiments of the structure described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another structure, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, structures or units, which can be electrical, mechanical or other forms.

[0162] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0163] In addition, each functional unit in the embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0164] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0165] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. Multi-microgrid carbon quota data processing method based on quantum blockchain, It is characterized in that The following steps are involved: Build a microgrid carbon quota trading architecture based on quantum blockchain, use load aggregators and microgrid nodes to form a private chain, and load aggregators serve as third parties to initiate carbon quota transactions and conduct carbon quota transactions between microgrids and external networks; An environmental awareness factor is set as a comprehensive calculation result of the microgrid clean energy ratio and historical contribution value of the microgrid node, and the carbon quota is adjusted according to the environmental awareness factor of the microgrid node; Set up a coalition profit model based on cooperative game theory to distribute cooperative surplus; The generation of blocks is completed by load aggregators, and the verification of blocks is completed by load aggregators and all microgrid nodes in the private chain. After each transaction cycle, load aggregators and other microgrid nodes use algorithms based on quantum teleportation technology to complete reliable verification of transaction information. The calculation process of the environmental awareness factor includes: The environmental identification factor and historical revenue value of the microgrid node are used as indicators for evaluating its environmental awareness factor, and the comprehensive calculation result of the two is defined as the environmental awareness factor; Suppose there are n nodes x i , m indicators Y j , For node x i Indicator Y in the kth time period j The value of Y j The weight of is the microgrid node x i Environmental awareness factor in the kth time period; Using the extreme value processing method, the indicators are dimensionless according to the benefit-type and cost-type indicators. The dimensionless values ​​are: Where: and Respectively represent the index Y of all nodes in the kth time period j The maximum and minimum values ​​of ; The dimensionless data is represented as a matrix Indicator Y j Information entropy It is expressed as: Where: Represents node x i The weight of the jth index of the sum of the indexes of all nodes; The weights of each indicator are calculated as follows: The environmental awareness factor of node i is: The process of obtaining the environmental identification factor includes: The clean energy content inside the microgrid node is expressed as the ratio of renewable energy generation to the total output of micro-sources, and is defined as the environmental identification factor; The environmental identification factor is calculated as follows: χ env =P REG / (P REG +P MT +Q GB ); Where P REG is the power generation of distributed clean energy, P MT is the power generation of the gas turbine, Q GB is the power generation of the boiler; The process of obtaining the historical contribution value includes: The historical carbon quota trading contribution value of the microgrid node is expressed as: In the formula, CON i represents the historical carbon quota trading contribution value of microgrid node i, It represents the sum of the benefits of node i participating in the cooperative game in γ historical periods.

2. According to the multi-microgrid carbon quota data processing method based on quantum blockchain according to claim 1, It is characterized in that In the microgrid carbon quota trading architecture based on quantum blockchain, the quantum blockchain includes: The quantum blockchain is regarded as a GHZ form of non-coexisting photons. The data in the block is simplified into a two-bit string. Within a preset time, the record of each block is converted into a temporary Bell state to complete the encoding process. The quantum blockchain links the bit strings in Bell state together in chronological order through the fusion process; At the same time, a blockchain framework based on Quantum Trust Coin (QTB) is constructed. After the block is verified and put on the chain, the corresponding trust node will receive corresponding incentives. The corresponding incentives refer to the virtual currency QTB issued in the network. The value of QTB is the verification priority corresponding to the trust value. Among them, quantum protection and quantum certificates are embedded in the transaction syntax of the quantum blockchain.

3. According to the multi-microgrid carbon quota data processing method based on quantum blockchain in claim 1, It is characterized in that The adjusting of the carbon quota according to the environmental awareness factor of the microgrid node includes: The environmental awareness factor is used as a positive correlation factor to complete the allocation of node carbon quotas. Therefore, the carbon quota allocation value It is expressed as: In the formula, Represents the total amount of carbon quota allocated to all microgrid nodes, is the microgrid node x i The environmental awareness factor in the kth time period, The sum of the environmental awareness factors of all microgrid nodes in the kth time period. The higher the environmental awareness factor of the microgrid node, the higher the carbon quota obtained.

4. According to the multi-microgrid carbon quota data processing method based on quantum blockchain in claim 1, It is characterized in that The setting of the alliance revenue model based on cooperative game theory for cooperative surplus distribution includes: For the n microgrids in the region, the partners are the surplus power microgrids and power-deficient microgrids that are willing to join the alliance. The characteristic function V(S) is defined to represent the total revenue of the alliance S. After the surplus carbon quota microgrid and the carbon quota-deficient microgrid form a cooperative alliance, they can be regarded as a large microgrid node and trade with the distribution network as a whole. Therefore, the revenue V(S) of the cooperative alliance can be expressed as: Where Δt represents the time interval within the transaction cycle, Assign values ​​to carbon allowances, represents the price of the remaining carbon quota microgrid group and the external network transaction in the kth period, represents the price of carbon quota-deficient microgrid group and external network transaction in the kth period, is the pollutant CO of equipment j 2 The emission factor, P j is the power generation of device j; Here we define μ k for: Compared with the direct transaction model between each microgrid and the distribution network, the total revenue V increased by the cooperation model is: Where P and Q represent the set of microgrids with excess carbon quota and the set of microgrids with insufficient carbon quota, respectively.

5. According to the multi-microgrid carbon quota data processing method based on quantum blockchain in claim 1, It is characterized in that For the residual carbon quota microgrid, the revenue increase obtained in the alliance is equal to the mutual benefit part, and the income obtained in the cooperative game model is the income V allocated in the model. i ; For microgrids lacking carbon quotas, the increase in revenue obtained in the alliance is equivalent to reducing their own carbon quota purchase costs; therefore, the carbon quota fee P that microgrids lacking carbon quotas need to pay in the cooperative game model is l (k) can be determined based on the mutual benefit, that is, the cost of purchasing carbon quotas of the node in the direct trading model minus the value of cooperation benefit, as shown in the following formula: Where V l (k) is the revenue of microgrid l calculated by Shapley value in the kth time period.

6. According to the multi-microgrid carbon quota data processing method based on quantum blockchain in claim 1, It is characterized in that The algorithm based on quantum teleportation technology includes: The information party uses quantum digital signature to sign the transaction information; The party to be verified distributes the key to the load aggregator and other verification nodes through quantum teleportation technology; After receiving the key, load aggregators and other verification nodes as verifiers will check the security of the transaction information. When the verification result is greater than a pre-set threshold, the transaction information is written into the block, otherwise the information is considered illegal.