Abstract:
Aiming at the shortcoming of traditional blockchain consensus algorithm, which requires a lot of energy for invalid calculation, this paper proposes the PoRO consensus mechanism, and expounds the application scheme of PoRO consensus mechanism in microgrid energy blockchain from four aspects: network layer, contract layer, consensus layer and data layer. Firstly, in the data layer, the foundation block records a two-stage robust optimal scheduling model including microgrid objective function and global constraints; Secondly, according to the consensus process of PoRO consensus mechanism, in the consensus stage, each node broadcasts its own constraints in the current period, and other nodes generate the final two-stage robust scheduling model of microgrid after receiving it; Thirdly, in the contract layer, the two-stage robust optimization problem of microgrid is solved under the chain, and the problem is solved iteratively by column and constraint generation (C&CG) decomposition method, strong duality theory and large M method Then, in the network layer, the nodes package the optimal decision variable multiplier and the corresponding Lagrange multiplier obtained by iterative solution in the contract layer into a new block and broadcast it to the blockchain network, and other nodes judge the validity of the new block by KKT conditions after receiving it; Finally, the effectiveness of the proposed consensus algorithm is verified by applying it in different scenarios of microgrid energy blockchain, and the advantages of applying the blockchain technology operated by the proposed consensus algorithm in the scenario of microgrid robust optimization are summarized.