| With the gradual increase in the proportion of distributed resources in the distribution network,the load side has changed from a single form of electricity consumption to prosumers with dual characteristics of electricity generation and consumption.With the further increase in the willingness of prosumers to participate in the power market,the traditional centralized energy trading method can no longer meet the needs of market participants for multilateral transactions and improve efficiency.Based on this background,this paper uses virtual power plant(VPP)to integrate the resources of proumers for energy management,a method of peer-to-peer(P2P)electricity trading for large-scale prosumers is proposed based on the transactive energy mechanism.In the day-ahead stage,this article established a market transaction model and energy management strategy for the prosumers with the goal of minimizing the electricity cost of all the prosumers based on the weakly centralized and decentralized market energy management frameworks commonly seen in the transactive energy mechanism:First,the distributed resources owned by the prosumers within the virtual power plant are quantitatively modeled and decoupled according to the flow of transactions;then,based on the transactive energy mechanism,the peer-to-peer weakly centralized and decentralized energy management framework,with the goal of minimizing the total cost of the cluster prosumers,and through the interaction of limited information,the original problem is decomposed through the Lagrangian decoupling principle and the sub-gradient method.Iteratively solves multiple sub-problems and completes the P2P power transaction between the prosumers in the virtual power plant.The proposed mechanism and model can effectively alleviate the computational pressure of VPP and protect user information privacy.Finally,the comparison between the analysis of calculation examples and the traditional electricity market transaction mode proves the rationality and effectiveness of the two energy management model proposed in this paper.In the real-time stage,this paper aims at the possible electric energy deviation of VPP in the real-time stage,and performs P2P electric energy trading at the VPP level to eliminate the possible power deviation according to the vickrey-clarke-groves(VCG)mechanism that satisfies the incentive compatibility theory,while ensuring that the real-time transaction time limit is met,the economic benefits of the prosumers are improved.Blockchain technology with distributed characteristics and proof of work(PoW)security mechanism is considered to be one of the most suitable tools for distributed energy transactions.Based on the real-time model,this article uses blockchain tools to provide a low-trust cost trading platform and economical smart contracts for all VPPs to eliminate electric energy deviation and provide blockchain tokens that are convenient for settlement,VPP and the power grid participate in the calculation as nodes,and the transaction results after consensus are included in the bill.Finally,the validity of the proposed smart contract is verified through a calculation example. |