The microgrid trading market can effectively solve the problem of in-situ consumption of distributed energy and reduce the impact of distributed generation (DG) on the grid. However, the traditional microgrid trading model has some shortcomings, such as high operation cost and poor security. Therefore, in this paper, a microgrid market trading model was developed using consortium blockchain technology and Nash game equilibrium theory. Firstly, blockchain container is used to authenticate the users who want to participate in the transaction. Then, the pricing system collects and integrates transaction requests submitted by users, then formulates transaction pricing strategy of microgrid using Nash equilibrium theory. Finally, the price, trading volume, and user information are submitted to the blockchain container for transaction matching to achieve the transaction. After the transaction is completed, its related information is recorded in the hyperledger and the dispatch system is called. The scene simulation was implemented on Fabric 1.1 platform and the results analyzed. Results show that the trading model proposed in this paper greatly reduces the cost of electricity purchase and improves the benefits of electricity sales. Besides, the model is far more capable of handling transactions than the models based on Bitcoin and Ethereum.
Effectively forecasting energy demand and energy structure helps energy planning departments formulate energy development plans and react to the opportunities and challenges in changing energy demands. In view of the fact that the rolling grey model (RGM) can weaken the randomness of small samples and better present their characteristics, as well as support vector regression (SVR) having good generalization, we propose an ensemble model based on RGM and SVR. Then, the inertia weight of particle swarm optimization (PSO) is adjusted to improve the global search ability of PSO, and the improved PSO algorithm (APSO) is used to assign the adaptive weight to the ensemble model. Finally, in order to solve the problem of accurately predicting the time-series of primary energy consumption, an adaptive inertial weight ensemble model (APSO-RGM-SVR) based on RGM and SVR is constructed. The proposed model can show higher prediction accuracy and better generalization in theory. Experimental results also revealed outperformance of APSO-RGM-SVR compared to single models and unoptimized ensemble models by about 85% and 32%, respectively. In addition, this paper used this new model to forecast China’s primary energy demand and energy structure.