Distributed optimization method and device for integrated energy system considering hydrogen-mixed natural gas

Through the distributed optimization strategy based on the sub-gradient method, the multi-dimensional coupling problem between multiple micro-grids in the hybrid hydrogen natural gas integrated energy system is solved, multi-energy synergy and low-carbon emission reduction are achieved, and the private information of the micro-grid is protected.

CN118469091BActive Publication Date: 2024-10-18MARKETING SERVICE CENT OF STATE GRID JILIN ELECTRIC POWER CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410911053.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-18
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

Existing technology cannot effectively solve the multiple coupling, collaborative sharing mechanism of electric energy, hydrogen energy and thermal energy between multiple microgrids in the hybrid hydrogen and natural gas integrated energy system, and complex interest relationships and information barriers lead to energy system operation management when different microgrids interact. and privacy protection issues.

Method used

Using a distributed optimization scheduling strategy based on the subgradient method, by constructing a multi-microgrid IES model containing HCNG and an electricity-heat-hydrogen P2P low-carbon optimization model, the distributed optimization problem is split into local sub-problems for alternate iterations to achieve global optimization. And protect micronet private information.

Benefits of technology

It achieves multi-energy synergy and low-carbon emission reduction of multi-microgrid integrated energy systems, and proposes a hydrogen energy diversified utilization model and an electricity-hydrogen-heat P2P trading optimization framework, which reduces system carbon emissions and operating costs while protecting user load data. privacy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118469091B_ABST
    Figure CN118469091B_ABST
Patent Text Reader

Abstract

The invention discloses a distributed optimization method and device for an integrated energy system considering mixed hydrogen and natural gas, which belongs to the field of optimization of microgrid integrated energy systems. The method constructs an IES model of multiple microgrids containing HCNG, so that each microgrid purchases hydrogen from a microgrid whose hydrogen energy reserves reach a set value; obtains carbon emissions and carbon transaction cost information of each microgrid and electric load and heat load data of each microgrid; constructs an IES electric-heat-hydrogen P2P low-carbon optimization model of multiple microgrids containing HCNG, and minimizes the cost of the IES model of multiple microgrids containing HCNG; according to a distributed solution strategy based on a subgradient method, the distributed optimization problem of the integrated energy system is split into corresponding distributed sub-problems through a distributed optimization model based on a subgradient method; local updates and alternating iterations are performed between corresponding distributed sub-problems to complete the global optimization solution. The present invention realizes multi-energy coordination and low-carbon emission reduction of a multi-microgrid integrated energy system through a distributed optimization scheduling strategy based on a subgradient method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of microgrid integrated energy system optimization, and specifically relates to a distributed optimization method and device for an integrated energy system considering mixed hydrogen and natural gas. Background Art

[0002] In order to build a new power system, promote the large-scale development of renewable energy and reduce carbon dioxide emissions, microgrid (MG) has attracted attention from academia and industry as an important means to promote the comprehensive utilization of diversified energy and low-carbon development on the user side.

[0003] At present, relevant scholars have carried out a lot of preliminary research on the operation optimization of microgrids and integrated energy systems containing hydrogen energy. However, with the continuous development of technologies such as hydrogen production from electricity, gas blending with hydrogen, and combined heat and power (CHP), the operation optimization and energy management of multi-microgrid IES considering multiple couplings of electricity-hydrogen-HCNG (mixed hydrogen natural gas)-heat have become more complicated and require in-depth research.

[0004] At the same time, existing studies have not fully considered the multi-coupling among multiple microgrids, and the collaborative sharing mechanism of electricity, hydrogen and thermal energy. In addition, when different microgrids interact, the complex interest relations and information barriers of different subjects will bring huge challenges to the operation and management of the integrated energy system and energy sharing. If not handled properly, it is easy to leak the privacy of each subject.

[0005] Therefore, how to design a distributed optimization method for an integrated energy system that takes into account mixed hydrogen and natural gas has become an urgent problem to be solved. Summary of the invention

[0006] To this end, the present invention considers a distributed optimization method and device for an integrated energy system of mixed hydrogen and natural gas, and realizes multi-energy synergy and low-carbon emission reduction of a multi-microgrid integrated energy system through a distributed optimization scheduling strategy based on the subgradient method; through a decentralized electricity-heat-hydrogen P2P transaction distributed optimization algorithm based on the subgradient method, the distributed optimization problem of the integrated energy system is split into corresponding distributed sub-problems, and local updates and alternating iterations are performed to obtain a global optimization solution, thereby realizing the protection of the privacy information security of each MG.

[0007] In order to achieve the above object, the present invention provides the following technical solution: a distributed optimization method for an integrated energy system considering mixed hydrogen and natural gas, comprising:

[0008] Constructing a multi-microgrid IES model containing HCNG, the multi-microgrid IES model containing HCNG includes a MG hydrogen energy diversified utilization model, a microgrid carbon emission and carbon trading model, and a microgrid electricity and heat load model; through the MG hydrogen energy diversified utilization model, each microgrid purchases hydrogen from a microgrid whose hydrogen energy reserve reaches a set value; through the microgrid carbon emission and carbon trading model, obtaining carbon emission and carbon trading cost information of each microgrid; through the microgrid electricity and heat load model, obtaining electricity load and heat load data of each microgrid;

[0009] Constructing an IES electric-heat-hydrogen P2P low-carbon optimization model for multiple microgrids containing HCNG, and minimizing the cost of the IES model for multiple microgrids containing HCNG through the IES electric-heat-hydrogen P2P low-carbon optimization model for multiple microgrids containing HCNG;

[0010] A distributed optimization model based on the subgradient method is constructed. According to the distributed solution strategy based on the subgradient method, the distributed optimization problem of the integrated energy system is split into corresponding distributed sub-problems through the distributed optimization model based on the subgradient method. In the iterative optimization process, the corresponding distributed sub-problems are locally updated and alternately iterated to complete the global optimization solution.

[0011] As a preferred scheme for the distributed optimization method of the comprehensive energy system considering mixed hydrogen and natural gas, the electrolysis method of the MG system in the MG hydrogen energy diversified utilization model is PEM electrolysis; the electrolyzer model expression of the MG system is:

[0012] ;

[0013] In the formula, is the hydrogen energy produced by the EL device during period t; is the electrical energy input to EL during period t; is the electricity-to-hydrogen conversion efficiency of EL;

[0014] The MG hydrogen energy diversified utilization model also includes a gas-hydrogen-blended heat and power cogeneration model, and the expression of the gas-hydrogen-blended heat and power cogeneration model is:

[0015] ;

[0016] In the formula, is the hydrogen doping volume ratio in period t; and are the corresponding volumes of hydrogen and natural gas consumed by CHP during period t, respectively; and are the corresponding powers of hydrogen and natural gas consumed by CHP in period t; and are the corresponding calorific values ​​of hydrogen and methane respectively; and are the electrical and thermal efficiencies of CHP cogeneration, respectively; and are respectively the power generation and heat generation of CHP in period t.

[0017] As a preferred scheme for the distributed optimization method of the integrated energy system considering mixed hydrogen and natural gas, the objective function expression of the IES electric-heat-hydrogen P2P low-carbon optimization model containing HCNG multi-microgrid is:

[0018] ;

[0019] In the formula, is the total operating cost of multi-microgrid IES; N is the number of MGs; is the price of natural gas; is the CCER income of MGn; is the grid benchmark emission factor; is the power generation of PV in MGn; is the CCER price; They are the transaction costs between MGn and the large power grid and hydrogen market respectively; They are the grid electricity price and on-grid electricity price respectively; They are the electricity and hydrogen volume traded between MGn and the large power grid and hydrogen market; is the hydrogen market price; for A column vector whose nth element is 1; is a matrix that represents the topological relationship between MGs. If its elements , it indicates that there is a correlation between MGn and MGm; They are electricity, hydrogen and heat network costs respectively; and are the electricity, hydrogen and heat sold by MGn to MGm respectively; Carbon emission quota for CHP units; Carbon emission quotas for the purchase of electricity from the grid for multi-microgrid IES; They are the carbon emissions of CHP and multi-microgrid IES purchasing electricity from the grid; is the carbon trading price; The electricity usage utility of MGn users; For users The cost of discomfort.

[0020] As a preferred scheme for the distributed optimization method of the integrated energy system considering mixed hydrogen and natural gas, the original problem of the IES electric-heat-hydrogen P2P low-carbon optimization model containing HCNG multi-microgrids is converted into a distributed optimization sub-problem of each MG through the distributed optimization model based on the subgradient method:

[0021] ;

[0022] In the formula, is the price of natural gas; is the CCER income of MGn; is the hydrogen doping volume ratio in period t; The natural gas required for hydrogen-blended CHP; Carbon emission quota for CHP units; Carbon emission quotas for the purchase of electricity from the grid for multi-microgrid IES; They are the carbon emissions of CHP and multi-microgrid IES purchasing electricity from the grid; They are the transaction costs between MGn and the large power grid and hydrogen market respectively; is the carbon trading price; for A column vector whose nth element is 1; is a matrix that represents the topological relationship between MGs. If its elements , it indicates that there is a correlation between MGn and MGm; They are electricity, hydrogen and heat network costs respectively; and are the electricity, hydrogen and heat energy sold by MGn to MGm respectively; N is the number of microgrids in IES; The electricity usage utility of MGn users; For users Discomfort costs; The price of electricity, hydrogen and heat sold by MG1 to other MGs; The price of electricity, hydrogen and heat sold by MGN to other MGs; and are the electricity, hydrogen and heat sold by MG1 to MGn respectively; and are the electricity, hydrogen and heat sold by MGN to MGn respectively; The price of electricity, hydrogen and heat sold by MGn to other MGs; is the operating cost of microgrid n; is the total electricity sales of MGn; is the total amount of hydrogen sold by MGn; is the total heat sold by MGn.

[0023] As a preferred scheme for the distributed optimization method of the integrated energy system considering mixed hydrogen and natural gas, the calculation steps of the distributed optimization model based on the subgradient method are:

[0024] The grid electricity price, on-grid electricity price, utility parameters, and given error basic parameters are set to initial values; the number of iterations k is set to 0;

[0025] Each MG subproblem is solved in parallel by the corresponding computing subject to calculate the total electricity, hydrogen, and heat demand from other MGs;

[0026] Updating the Lagrange multiplier vector according to the distributed solution strategy based on the subgradient method;

[0027] Determine whether the difference between two adjacent Lagrange multiplier vectors satisfies the set error; if the difference is less than or equal to the set error, the algorithm is determined to have converged, the iteration is stopped, and the result is output; if the difference is greater than the set error, the number of iterations is increased, and each MG sub-problem is calculated and solved.

[0028] The present invention also provides a distributed optimization device for an integrated energy system considering hydrogen-mixed natural gas, which adopts the above-mentioned distributed optimization method for an integrated energy system considering hydrogen-mixed natural gas, and comprises:

[0029] A multi-microgrid IES model construction and processing module containing HCNG is used to construct a multi-microgrid IES model containing HCNG, wherein the multi-microgrid IES model containing HCNG includes a MG hydrogen energy diversified utilization model, a microgrid carbon emission and carbon trading model, and a microgrid electricity and heat load model; through the MG hydrogen energy diversified utilization model, each microgrid purchases hydrogen from a microgrid whose hydrogen energy reserves reach a set value; through the microgrid carbon emission and carbon trading model, the carbon emission and carbon trading cost information of each microgrid is obtained; through the microgrid electricity and heat load model, the electricity load and heat load data of each microgrid are obtained;

[0030] A construction and processing module for an IES electric-heat-hydrogen P2P low-carbon optimization model containing HCNG multi-microgrids, which is used to construct an IES electric-heat-hydrogen P2P low-carbon optimization model containing HCNG multi-microgrids, and minimize the cost of the IES model containing HCNG multi-microgrids through the IES electric-heat-hydrogen P2P low-carbon optimization model containing HCNG multi-microgrids;

[0031] The distributed optimization model construction and processing module based on the subgradient method is used to construct a distributed optimization model based on the subgradient method. According to the distributed solution strategy based on the subgradient method, the distributed optimization problem of the integrated energy system is split into corresponding distributed sub-problems through the distributed optimization model based on the subgradient method; in the iterative optimization process, the corresponding distributed sub-problems are locally updated and alternately iterated to complete the global optimization solution.

[0032] As a preferred scheme for the distributed optimization device of the integrated energy system considering mixed hydrogen and natural gas, in the HCNG multi-microgrid IES model construction and processing module, the electrolysis method of the MG system in the MG hydrogen energy diversified utilization model is PEM electrolysis; the electrolyzer model expression of the MG system is:

[0033] ;

[0034] In the formula, is the hydrogen energy produced by the EL device during period t; is the electrical energy input to EL during period t; is the electricity-to-hydrogen conversion efficiency of EL;

[0035] The MG hydrogen energy diversified utilization model also includes a gas-hydrogen-blended heat and power cogeneration model, and the expression of the gas-hydrogen-blended heat and power cogeneration model is:

[0036] ;

[0037] In the formula, is the hydrogen doping volume ratio in period t; and are the corresponding volumes of hydrogen and natural gas consumed by CHP during period t, respectively; and are the corresponding powers of hydrogen and natural gas consumed by CHP in period t; and are the corresponding calorific values ​​of hydrogen and methane respectively; and are the electrical and thermal efficiencies of CHP cogeneration, respectively; and are respectively the power generation and heat generation of CHP in period t.

[0038] As a preferred scheme for the distributed optimization device of the integrated energy system considering mixed hydrogen natural gas, in the construction and processing module of the IES electric-heat-hydrogen P2P low-carbon optimization model containing HCNG multi-microgrid, the objective function expression of the IES electric-heat-hydrogen P2P low-carbon optimization model containing HCNG multi-microgrid is:

[0039] ;

[0040] In the formula, is the total operating cost of multi-microgrid IES; N is the number of MGs; is the price of natural gas; is the CCER income of MGn; is the grid benchmark emission factor; is the power generation of PV in MGn; is the CCER price; They are the transaction costs between MGn and the large power grid and hydrogen market respectively; They are the grid electricity price and on-grid electricity price respectively; They are the electricity and hydrogen volume traded between MGn and the large power grid and hydrogen market; is the hydrogen market price; for A column vector whose nth element is 1; is a matrix that represents the topological relationship between MGs. If its elements , it indicates that there is a correlation between MGn and MGm; They are electricity, hydrogen and heat network costs respectively; and are the electricity, hydrogen and heat sold by MGn to MGm respectively; Carbon emission quota for CHP units; Carbon emission quotas for the purchase of electricity from the grid for multi-microgrid IES; They are the carbon emissions of CHP and multi-microgrid IES purchasing electricity from the grid; is the carbon trading price; The electricity usage utility of MGn users; For users The cost of discomfort.

[0041] As a preferred solution for the distributed optimization device of the integrated energy system considering mixed hydrogen and natural gas, in the distributed optimization model construction and processing module based on the subgradient method, the original problem of the IES electric-heat-hydrogen P2P low-carbon optimization model containing HCNG multi-microgrid is converted into a distributed optimization sub-problem of each MG through the distributed optimization model based on the subgradient method:

[0042] ;

[0043] In the formula, is the price of natural gas; is the CCER income of MGn; is the hydrogen doping volume ratio in period t; The natural gas required for hydrogen-blended CHP; Carbon emission quota for CHP units; Carbon emission quotas for the purchase of electricity from the grid for multi-microgrid IES; They are the carbon emissions of CHP and multi-microgrid IES purchasing electricity from the grid; They are the transaction costs between MGn and the large power grid and hydrogen market respectively; is the carbon trading price; for A column vector whose nth element is 1; is a matrix that represents the topological relationship between MGs. If its elements , it indicates that there is a correlation between MGn and MGm; They are electricity, hydrogen and heat network costs respectively; and are the electricity, hydrogen and heat energy sold by MGn to MGm respectively; N is the number of microgrids in IES; The electricity usage utility of MGn users; For users Discomfort costs; The price of electricity, hydrogen and heat sold by MG1 to other MGn; The price of electricity, hydrogen and heat sold by MGN to other MGs; and are the electricity, hydrogen and heat sold by MG1 to MGn respectively; and are the electricity, hydrogen and heat sold by MGN to MGn respectively; The price of electricity, hydrogen and heat sold by MGn to other MGs; is the operating cost of microgrid n; is the total electricity sales of MGn; is the total amount of hydrogen sold by MGn; is the total heat sold by MGn.

[0044] As a preferred scheme for the distributed optimization device of the integrated energy system considering mixed hydrogen and natural gas, the grid electricity price, on-grid electricity price, utility parameters, and basic parameters of given error are set to initial values; the number of iterations k is set to 0;

[0045] Each MG subproblem is solved in parallel by the corresponding computing subject to calculate the total electricity, hydrogen, and heat demand from other MGs;

[0046] Updating the Lagrange multiplier vector according to the distributed solution strategy based on the subgradient method;

[0047] Determine whether the difference between two adjacent Lagrange multiplier vectors satisfies the set error; if the difference is less than or equal to the set error, the algorithm is determined to have converged, the iteration is stopped, and the result is output; if the difference is greater than the set error, the number of iterations is increased, and each MG sub-problem is calculated and solved.

[0048] The present invention has the following advantages: constructing a multi-microgrid IES model containing HCNG, the multi-microgrid IES model containing HCNG includes a MG hydrogen energy diversified utilization model, a microgrid carbon emission and carbon trading model, and a microgrid electricity and heat load model; through the MG hydrogen energy diversified utilization model, each microgrid purchases hydrogen from a microgrid whose hydrogen energy reserve reaches a set value; through the microgrid carbon emission and carbon trading model, the carbon emission and carbon trading cost information of each microgrid is obtained; through the microgrid electricity and heat load model, the electricity load and heat load data of each microgrid are obtained; constructing a multi-microgrid IES model containing HCNG ES electric-heat-hydrogen P2P low-carbon optimization model, through the HCNG-containing multi-microgrid IES electric-heat-hydrogen P2P low-carbon optimization model, the cost of the HCNG-containing multi-microgrid IES model is minimized; a distributed optimization model based on the subgradient method is constructed, and according to the distributed solution strategy based on the subgradient method, the distributed optimization problem of the integrated energy system is split into corresponding distributed sub-problems through the distributed optimization model based on the subgradient method; in the iterative optimization process, the corresponding distributed sub-problems are locally updated and alternately iterated to complete the global optimization solution. The present invention proposes a distributed optimization scheduling strategy based on the subgradient method to achieve multi-energy synergy and low-carbon emission reduction of multi-microgrid integrated energy systems. Considering P2H, gas hydrogen blending and hydrogen energy trading, a multi-utilization mode of hydrogen energy for multi-MG systems is proposed. Based on the multi-mode utilization of hydrogen energy, the mutual assistance of electric-hydrogen-heat multi-energy, and the carbon trading mechanism, an optimization framework for the electric-heat-hydrogen P2P trading of multi-microgrid IES containing HCNG is proposed. Secondly, considering the low carbon and economical nature of IES, an optimization model of IES electric-heat-hydrogen P2P trading with HCNG multi-microgrids is constructed with the goal of minimizing the total operating cost, which takes into account multiple factors such as electric-hydrogen-HCNG-heat coupling characteristics, carbon trading, multi-energy P2P prices, and demand response mechanisms that consider user electricity utility and comfort. Subsequently, in order to meet the privacy requirements of user load data and reduce the computational burden, a decentralized electric-heat-hydrogen P2P trading distributed optimization algorithm based on the subgradient method is proposed, which splits the distributed optimization problem of the integrated energy system into corresponding distributed sub-problems, performs local updates and alternating iterations, and obtains a global optimization solution to protect the privacy information security of each MG. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.

[0050] Figure 1 This is a schematic flow chart of a distributed optimization method for an integrated energy system considering mixed hydrogen and natural gas provided in Example 1 of the present invention;

[0051] Figure 2 It is a schematic diagram of an optimization framework for electricity-hydrogen-heat P2P transactions of a multi-microgrid integrated energy system including HCNG in a distributed optimization method for an integrated energy system considering mixed hydrogen and natural gas provided in Example 1 of the present invention;

[0052] Figure 3 A flow chart of a distributed algorithm solution process based on a subgradient method in a distributed optimization method for an integrated energy system considering mixed hydrogen and natural gas provided in Example 1 of the present invention;

[0053] Figure 4 A schematic diagram of electric energy trading among multiple microgrids in a possible embodiment provided in Embodiment 1 of the present invention;

[0054] Figure 5 A schematic diagram of hydrogen energy trading among multiple microgrids in a possible embodiment provided in Embodiment 1 of the present invention;

[0055] Figure 6 This is a schematic diagram of heat energy trading between multiple microgrids in a possible embodiment provided in Embodiment 1 of the present invention;

[0056] Figure 7 This is a diagram of the architecture of a distributed optimization device for an integrated energy system taking into account mixed hydrogen and natural gas provided in Example 2 of the present invention. DETAILED DESCRIPTION

[0057] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are 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. Example 1

[0058] See also Figure 1 Embodiment 1 of the present invention provides a distributed optimization method for an integrated energy system considering mixed hydrogen and natural gas, comprising the following steps:

[0059] S1. Construct a multi-microgrid IES model containing HCNG, which includes a MG hydrogen energy diversified utilization model, a microgrid carbon emission and carbon trading model, and a microgrid electricity and heat load model; through the MG hydrogen energy diversified utilization model, each microgrid purchases hydrogen from a microgrid whose hydrogen energy reserves reach a set value; through the microgrid carbon emission and carbon trading model, obtain the carbon emission and carbon trading cost information of each microgrid; through the microgrid electricity and heat load model, obtain the electricity load and heat load data of each microgrid;

[0060] S2. Constructing an IES electric-heat-hydrogen P2P low-carbon optimization model for multiple microgrids containing HCNG, and minimizing the cost of the IES electric-heat-hydrogen P2P low-carbon optimization model for multiple microgrids containing HCNG;

[0061] S3. Construct a distributed optimization model based on the subgradient method. According to the distributed solution strategy based on the subgradient method, the distributed optimization problem of the integrated energy system is split into corresponding distributed sub-problems through the distributed optimization model based on the subgradient method. In the iterative optimization process, the corresponding distributed sub-problems are locally updated and alternately iterated to complete the global optimization solution.

[0062] In this embodiment, in step S1, the electrolysis method of the MG system in the MG hydrogen energy diversified utilization model is PEM electrolysis;

[0063] Specifically, the mainstream electrolysis forms of the IES system are alkaline electrolysis and proton exchange membrane (PEM) electrolysis. These two electrolysis modes can operate stably under intermittent fluctuating power, high current density and low voltage. Compared with alkaline electrolysis, PEM electrolysis has stronger climbing ability and is more flexible, so the present invention selects PEM technology as the system electrolysis method. The electrolytic cell model expression of the MG system is:

[0064] ;

[0065] In the formula, is the hydrogen energy produced by the EL device during period t; is the electrical energy input to EL during period t; is the electricity-to-hydrogen conversion efficiency of EL;

[0066] The MG hydrogen energy diversified utilization model also includes a gas-hydrogen cogeneration model. Specifically, the hydrogen-cogeneration model generates electricity and heat energy by burning HCNG, reducing its carbon emissions. Due to the different chemical properties of hydrogen and methane, the hydrogen mixing ratio has an impact on the combustion calorific value, power generation efficiency and heat production efficiency. The expression of the gas-hydrogen cogeneration model is:

[0067] ;

[0068] In the formula, is the hydrogen doping volume ratio in period t; and are the corresponding volumes of hydrogen and natural gas consumed by CHP during period t, respectively; and are the corresponding powers of hydrogen and natural gas consumed by CHP in period t; and are the corresponding calorific values ​​of hydrogen and methane respectively; and are the electrical and thermal efficiencies of CHP cogeneration, respectively; and are respectively the power generation and heat generation of CHP in period t.

[0069] In this embodiment, in step S1, the carbon emission and carbon trading cost information of each microgrid is obtained through the microgrid carbon emission and carbon trading model;

[0070] Specifically, considering that the government will allocate a certain proportion of carbon quotas to enterprises for free, when the carbon quota is insufficient, the enterprise can purchase it from the carbon trading market; when the carbon quota is in excess, it can sell the excess in the carbon trading market for profit. To this end, the present invention uses the baseline method to allocate the initial carbon quota free of charge, and the quota obtained by each microgrid is related to its CHP power generation and power purchase from the power grid.

[0071] Initial carbon emission quota:

[0072] Based on the baseline method, the free carbon emission quotas obtained by CHP units for power generation and electricity purchase are:

[0073] ;

[0074] In the formula, Carbon emission quota for CHP units; Carbon emission quotas for the purchase of electricity from the grid for multi-microgrid IES; is the carbon emission share per unit of electricity generation; is the CHP power generation; It is the electricity purchased by the multi-microgrid IES from the grid.

[0075] Actual carbon emissions:

[0076] The formula for calculating the actual carbon emissions of CHP units and microgrids purchasing electricity from the grid is:

[0077] ;

[0078] Where: They are the carbon emissions of CHP and multi-microgrid IES purchasing electricity from the grid; is the carbon emission coefficient of CHP; is the carbon emission coefficient of purchasing electricity from the grid.

[0079] Carbon trading costs:

[0080] Considering carbon emission quota and actual carbon emissions, the carbon trading cost of multiple MGs as follows:

[0081] ;

[0082] In the formula, The carbon trading price.

[0083] Obtaining the electric load and thermal load data of each microgrid through the microgrid electric and thermal load models;

[0084] Specifically, electric load: Each MG has a certain proportion of load that can be reduced / increased, and can flexibly perform demand response adjustments. The user's electricity utility can be expressed as:

[0085] ;

[0086] In the formula, The electricity usage utility of MGn users; The electricity consumption of MGn users; It is an electricity utility parameter, and its value is adjusted according to the user's electricity consumption behavior characteristics in each scheduling period. The larger it is, the more efficient the electricity usage will be.

[0087] The upper and lower limits of power consumption can be expressed as:

[0088] ;

[0089] In the formula, It is the upper limit of MGn's electricity consumption.

[0090] Heat load: Based on the second law of thermodynamics, the temperature and heat load model of user n in each period is derived and can be expressed as follows:

[0091] ;

[0092] In the formula, is the indoor temperature at time t; is the thermal resistance of the building; is the specific heat capacity of air; is the outdoor temperature at time t; is the heat load at time t; and are all known quantities, so, With heat load Approximately linear correlation.

[0093] User temperature discomfort cost:

[0094] The user's discomfort cost mainly depends on the indoor temperature With comfortable temperature Based on the user temperature and heat load model, the user Discomfort cost It can be expressed as:

[0095] ;

[0096] In the formula, are users at time t Set the indoor temperature For comfortable temperature Equivalent heat load; For users The sensitivity coefficient of . ( ), the larger the value, the more likely the user The more sensitive people are to the discomfort caused by indoor temperature adjustment, the lower their willingness to adjust the indoor temperature.

[0097] user Heat load The specific scope of adjustment constraints is as follows:

[0098] ;

[0099] In the formula, and For users Minimum and maximum values ​​for heat load.

[0100] In this embodiment, in step S2, a HCNG-containing multi-microgrid IES electric-heat-hydrogen P2P low-carbon optimization model is constructed, and the cost of the HCNG-containing multi-microgrid IES model is minimized through the HCNG-containing multi-microgrid IES electric-heat-hydrogen P2P low-carbon optimization model;

[0101] Specifically, the IES with HCNG multi-microgrid takes advantage of the coupling of electricity, hydrogen and heat, relieves the pressure of imbalance between supply and demand through multi-energy complementary coordinated control, improves the consumption of renewable energy, and reduces system carbon emissions. Considering the cost of hydrogen-doped CHP, carbon trading cost, transaction cost with large power grid and hydrogen market, CCER income, electricity, hydrogen, heat network costs, user energy consumption behavior, etc., the objective function is to minimize the cost of IES with HCNG multi-microgrid, and the objective function is:

[0102] ;

[0103] In the formula, is the total operating cost of multi-microgrid IES; N is the number of MGs; is the price of natural gas; is the CCER income of MGn; is the grid benchmark emission factor; is the power generation of PV in MGn; is the CCER price; They are the transaction costs between MGn and the large power grid and hydrogen market respectively; They are the grid electricity price and on-grid electricity price respectively; They are the electricity and hydrogen volume traded between MGn and the large power grid and hydrogen market; is the hydrogen market price; for A column vector whose nth element is 1; is a matrix that represents the topological relationship between MGs. If its elements , it indicates that there is a correlation between MGn and MGm; They are electricity, hydrogen and heat network costs respectively; and are the electricity, hydrogen and heat sold by MGn to MGm respectively; Carbon emission quota for CHP units; Carbon emission quotas for the purchase of electricity from the grid for multi-microgrid IES; They are the carbon emissions of CHP and multi-microgrid IES purchasing electricity from the grid; is the carbon trading price; The electricity usage utility of MGn users; For users The cost of discomfort.

[0104] The MG considered in the present invention is composed of PV, hydrogen-doped CHP, electrolyzer (EL), electric load, thermal load and energy management system (EMS). Figure 2 The multi-microgrid integrated energy system shown in the figure. Compared with the traditional integrated energy system, the gas-hydrogen blending link is added, and the electricity-hydrogen-heat P2P transaction optimization framework under the hydrogen energy multi-utilization mode is proposed.

[0105] Since each MG belongs to a different stakeholder, in order to protect the privacy of each stakeholder, the present invention adopts a distributed optimization algorithm. The optimization goal of each MG is to minimize the total operating cost. Each microgrid optimizes and solves the local sub-problem, and notifies other microgrids of the expected transaction price and volume of electricity, hydrogen, and heat. Each MG calculates the total demand for electricity, hydrogen, and heat from other MGs, updates the Lagrange multiplier vector, and calculates the difference between two adjacent Lagrange multiplier vectors until a consensus solution is reached for each MG. In distributed computing, users hope to only exchange non-sensitive boundary information. In the distributed optimization iterative process of the present invention, each MG does not need to inform other MGs of the global information. It only needs to notify other microgrids of the electricity, hydrogen, heat and prices expected to be purchased to complete the optimization.

[0106] In this embodiment, in step S3, a distributed optimization model based on the subgradient method is constructed, and according to the distributed solution strategy based on the subgradient method, the distributed optimization problem of the integrated energy system is split into corresponding distributed sub-problems through the distributed optimization model based on the subgradient method;

[0107] Specifically, the original problem is decomposed into sub-problems for solving each MG. During the iteration process, each MG only exchanges a small amount of information to update parameters and reduce the complexity of the solution. The IES electric-heat-hydrogen P2P low-carbon optimization model containing HCNG multi-microgrid is transformed into:

[0108] ;

[0109] In the formula, is the total operating cost of multi-microgrid IES; N is the number of MGs; is the price of natural gas; is the CCER income of MGn; is the hydrogen doping volume ratio in period t; The natural gas required for hydrogen-blended CHP; Carbon emission quota for CHP units; Carbon emission quotas for the purchase of electricity from the grid for multi-microgrid IES; They are the carbon emissions of CHP and multi-microgrid IES purchasing electricity from the grid; They are the transaction costs between MGn and the large power grid and hydrogen market respectively; They are the grid electricity price and on-grid electricity price respectively; They are the electricity and hydrogen volume traded between MGn and the large power grid and hydrogen market; is the hydrogen market price; for A column vector whose nth element is 1; is a matrix that represents the topological relationship between MGs. If its elements , it indicates that there is a correlation between MGn and MGm; They are electricity, hydrogen and heat network costs respectively; and are the electricity, hydrogen and heat energy sold by MGn to MGm respectively; N is the number of microgrids in IES; is the electricity utility of MG users; is the discomfort cost of users.

[0110] Since the original problem is relatively complex, the original problem is transformed into the following dual form:

[0111] ;

[0112] In the formula, The price of electricity, hydrogen and heat sold by MGn to other MGs; is the minimum operating cost of microgrid n; is the minimum operating cost of IES; is the operating cost of microgrid n; are greater than or equal to 0, among which .

[0113] Therefore, the distributed optimization sub-problem of each MG is derived as follows:

[0114] ;

[0115] In the formula, is the price of natural gas; is the CCER income of MGn; is the hydrogen doping volume ratio in period t; The natural gas required for hydrogen-blended CHP; Carbon emission quota for CHP units; Carbon emission quotas for the purchase of electricity from the grid for multi-microgrid IES; They are the carbon emissions of CHP and multi-microgrid IES purchasing electricity from the grid; They are the transaction costs between MGn and the large power grid and hydrogen market respectively; is the carbon trading price; for A column vector whose nth element is 1; is a matrix that represents the topological relationship between MGs. If its elements , it indicates that there is a correlation between MGn and MGm; They are electricity, hydrogen and heat network costs respectively; and are the electricity, hydrogen and heat energy sold by MGn to MGm respectively; N is the number of microgrids in IES; The electricity usage utility of MGn users; For users Discomfort costs; The price of electricity, hydrogen and heat sold by MG1 to other MGn; The price of electricity, hydrogen and heat sold by MGN to other MGs; and are the electricity, hydrogen and heat sold by MG1 to MGn respectively; and are the electricity, hydrogen and heat sold by MGN to MGn respectively; The price of electricity, hydrogen and heat sold by MGn to other MGs; is the operating cost of microgrid n; is the total electricity sales of MGn; is the total amount of hydrogen sold by MGn; is the total heat sold by MGn.

[0116] To solve the dual problem corresponding to the original problem, we need to find a solution that converges to the optimal solution of the problem. ,Right now .

[0117] The present invention is based on the sub-gradient method, for each At this point, MG minimizes its impact on the Lagrangian function by solving local subproblems and determining the minimum.

[0118] The Lagrange multipliers are updated as follows:

[0119] ;

[0120] Where: and respectively The update step size of electricity price, hydrogen price and heat price at the iteration.

[0121] See also Figure 3 In this embodiment, in step S3, the calculation steps of the distributed optimization model based on the subgradient method are:

[0122] Set the initial values ​​of the grid electricity price, on-grid electricity price, utility parameters, and given error basic parameters; the number of iterations Set to 0;

[0123] Each MG subproblem is solved in parallel by the corresponding computing subject to calculate the total electricity, hydrogen, and heat demand from other MGs;

[0124] Among them, the MG sub-problem: the objective function is formula (23), after the electricity-hydrogen-heat multivariate decision, the trading strategy with the large power grid, the trading strategy with the hydrogen market, the electrolysis of water hydrogen production strategy, the hydrogen-blended CHP power generation and heat production strategy, the electricity strategy, the hydrogen strategy, the temperature setting strategy, and the electricity-hydrogen-heat trading strategy with other microgrids are obtained. Each MG notifies other MGs of the expected electricity, hydrogen, and heat purchase volume and transaction price from other MGs.

[0125] Updating the Lagrange multiplier vector according to the distributed solution strategy based on the subgradient method;

[0126] Determine whether the difference between two adjacent Lagrange multiplier vectors satisfies the set error; if the difference is less than or equal to the set error, the algorithm is determined to have converged, the iteration is stopped, and the result is output; if the difference is greater than the set error, the number of iterations is increased, and each MG sub-problem is calculated and solved.

[0127] In a possible embodiment, a specific example is provided as follows:

[0128] IES electricity-hydrogen-heat P2P transaction volume on Duowei.com:

[0129] See also Figure 4 , Figure 5 , Figure 6 , which are the trading results of MG1-MG3 electric energy, hydrogen energy and thermal energy after distributed optimization.

[0130] from Figure 4-Figure 6 It can be seen that after the iteration, the electricity, hydrogen and heat transactions of each MG reach a balance, that is, the transaction balance coupling constraint is satisfied. Therefore, based on the dynamic electricity, hydrogen and heat prices, with the goal of maximizing its own benefits, each MG can decide the optimal electricity, hydrogen and heat transaction volume.

[0131] MG demand response based on dynamic electricity-hydrogen-heat prices:

[0132] Table 1 Electricity demand response ratio

[0133]

[0134] Table 2 User indoor temperature and heat load adjustment

[0135]

[0136] Table 1 shows the electricity demand response ratio, and Table 2 shows the user's indoor temperature and heat load adjustment optimization results.

[0137] Based on different utility parameters and thermal discomfort coefficients, each MG makes different proportions of electrical and thermal load adjustments.

[0138] In response to electricity demand, the ratio of optimized electricity load to initial electricity load of each microgrid is 115.0%, 110.3% and 85.0% respectively. Taking into account the cost with the large power grid, the electricity, hydrogen and heat transaction cost with other microgrids, the electricity, hydrogen and heat network cost, the electricity utility and the thermal discomfort cost, etc., in order to reduce the operating cost, the energy decision-making behavior of each MG user is different.

[0139] The present invention sets the comfort temperature to 22°C. The thermal demand response can be analyzed from the following perspectives: First, the comfort adjustment of each MG user is affected by the sensitivity coefficient: As can be seen from Table 2, MG2 has the largest thermal discomfort coefficient and the highest thermal comfort requirement, so the degree of deviation from the comfortable temperature is the lowest. MG1 has the smallest discomfort coefficient, a lower thermal comfort requirement, and the largest degree of deviation from the comfortable temperature. Secondly, the degree to which the optimized temperature of each MG user deviates from the comfortable temperature is consistent with the trend of the optimized heat load deviating from the initial heat load. For example, the degree to which the optimized heat load of MG1 deviates from the original heat load is the highest, and its optimized temperature also deviates the most from the comfortable temperature.

[0140] In summary, the present invention constructs an IES model of multiple microgrids containing HCNG, and the IES model of multiple microgrids containing HCNG includes a MG hydrogen energy diversified utilization model, a microgrid carbon emission and carbon trading model, and a microgrid electricity and heat load model; through the MG hydrogen energy diversified utilization model, each microgrid purchases hydrogen from a microgrid whose hydrogen energy reserve reaches a set value; through the microgrid carbon emission and carbon trading model, the carbon emission and carbon trading cost information of each microgrid is obtained; through the microgrid electricity and heat load model, the electricity load and heat load data of each microgrid are obtained; and the IE model of multiple microgrids containing HCNG is constructed. S electric-heat-hydrogen P2P low-carbon optimization model, through the HCNG-containing multi-microgrid IES electric-heat-hydrogen P2P low-carbon optimization model, the cost of the HCNG-containing multi-microgrid IES model is minimized; a distributed optimization model based on the subgradient method is constructed, and according to the distributed solution strategy based on the subgradient method, the distributed optimization problem of the integrated energy system is split into corresponding distributed sub-problems through the distributed optimization model based on the subgradient method; in the iterative optimization process, the corresponding distributed sub-problems are locally updated and alternately iterated to complete the global optimization solution. The present invention proposes a distributed optimization scheduling strategy based on the subgradient method to achieve multi-energy synergy and low-carbon emission reduction of multi-microgrid integrated energy systems. Considering P2H, gas hydrogen blending and hydrogen energy trading, a multi-utilization mode of hydrogen energy for multi-MG systems is proposed. Based on the multi-mode utilization of hydrogen energy, the mutual assistance of electric-hydrogen-heat multi-energy, and the carbon trading mechanism, a multi-microgrid IES electric-heat-hydrogen P2P trading optimization framework containing HCNG is proposed. Secondly, considering the low carbon and economical nature of IES, an optimization model of IES electric-heat-hydrogen P2P trading with HCNG multi-microgrids is constructed with the goal of minimizing the total operating cost, which takes into account multiple factors such as electric-hydrogen-HCNG-heat coupling characteristics, carbon trading, multi-energy P2P prices, and demand response mechanisms that consider user electricity utility and comfort. Subsequently, in order to meet the privacy requirements of user load data and reduce the computational burden, a decentralized electric-heat-hydrogen P2P trading distributed optimization algorithm based on the subgradient method is proposed, which splits the distributed optimization problem of the integrated energy system into corresponding distributed sub-problems, performs local updates and alternating iterations, and obtains a global optimization solution to protect the privacy information security of each MG.

[0141] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.

[0142] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous. Example 2

[0143] See also Figure 7 Embodiment 2 of the present invention further provides a distributed optimization device for an integrated energy system considering mixed hydrogen and natural gas, which adopts the distributed optimization method for an integrated energy system considering mixed hydrogen and natural gas of the above embodiment 1, including:

[0144] The HCNG-containing multi-microgrid IES model construction and processing module 001 is used to construct a HCNG-containing multi-microgrid IES model, which includes a MG hydrogen energy diversified utilization model, a microgrid carbon emission and carbon trading model, and a microgrid electricity and heat load model; through the MG hydrogen energy diversified utilization model, each microgrid purchases hydrogen from a microgrid whose hydrogen energy reserves reach a set value; through the microgrid carbon emission and carbon trading model, the carbon emission and carbon trading cost information of each microgrid is obtained; through the microgrid electricity and heat load model, the electricity load and heat load data of each microgrid are obtained;

[0145] The HCNG-containing multi-microgrid IES electric-heat-hydrogen P2P low-carbon optimization model construction and processing module 002 is used to construct the HCNG-containing multi-microgrid IES electric-heat-hydrogen P2P low-carbon optimization model, and minimize the cost of the HCNG-containing multi-microgrid IES model through the HCNG-containing multi-microgrid IES electric-heat-hydrogen P2P low-carbon optimization model;

[0146] The distributed optimization model construction and processing module 003 based on the subgradient method is used to construct a distributed optimization model based on the subgradient method. According to the distributed solution strategy based on the subgradient method, the distributed optimization problem of the integrated energy system is split into corresponding distributed sub-problems through the distributed optimization model based on the subgradient method; in the iterative optimization process, the corresponding distributed sub-problems are locally updated and alternately iterated to complete the global optimization solution.

[0147] In this embodiment, in the HCNG-containing multi-microgrid IES model construction and processing module 001, the electrolysis method of the MG system in the MG hydrogen energy diversified utilization model is PEM electrolysis; the electrolyzer model expression of the MG system is:

[0148] ;

[0149] In the formula, is the hydrogen energy produced by the EL device during period t; is the electrical energy input to EL during period t; is the electricity-to-hydrogen conversion efficiency of EL;

[0150] The MG hydrogen energy diversified utilization model also includes a gas-hydrogen-blended heat and power cogeneration model, and the expression of the gas-hydrogen-blended heat and power cogeneration model is:

[0151] ;

[0152] In the formula, is the hydrogen doping volume ratio in period t; and are the corresponding volumes of hydrogen and natural gas consumed by CHP during period t, respectively; and are the corresponding powers of hydrogen and natural gas consumed by CHP in period t; and are the corresponding calorific values ​​of hydrogen and methane respectively; and are the electrical and thermal efficiencies of CHP cogeneration, respectively; and are respectively the power generation and heat generation of CHP in period t.

[0153] In this embodiment, in the HCNG-containing multi-microgrid IES electric-heat-hydrogen P2P low-carbon optimization model construction and processing module 002, the objective function expression of the HCNG-containing multi-microgrid IES electric-heat-hydrogen P2P low-carbon optimization model is:

[0154] ;

[0155] In the formula, is the total operating cost of multi-microgrid IES; N is the number of MGs; is the price of natural gas; is the CCER income of MGn; is the grid benchmark emission factor; is the power generation of PV in MGn; is the CCER price; They are the transaction costs between MGn and the large power grid and hydrogen market respectively; They are the grid electricity price and on-grid electricity price respectively; They are the electricity and hydrogen volume traded between MGn and the large power grid and hydrogen market; is the hydrogen market price; for A column vector whose nth element is 1; is a matrix that represents the topological relationship between MGs. If its elements , it indicates that there is a correlation between MGn and MGm; They are electricity, hydrogen and heat network costs respectively; and are the electricity, hydrogen and heat sold by MGn to MGm respectively; Carbon emission quota for CHP units; Carbon emission quotas for the purchase of electricity from the grid for multi-microgrid IES; They are the carbon emissions of CHP and multi-microgrid IES purchasing electricity from the grid; is the carbon trading price; The electricity usage utility of MGn users; For users The cost of discomfort.

[0156] In this embodiment, in the distributed optimization model construction and processing module 003 based on the sub-gradient method, the original problem of the IES electric-heat-hydrogen P2P low-carbon optimization model containing HCNG multi-microgrid is converted into a distributed optimization sub-problem of each MG through the distributed optimization model based on the sub-gradient method:

[0157] ;

[0158] In the formula, is the price of natural gas; is the CCER income of MGn; is the hydrogen doping volume ratio in period t; The natural gas required for hydrogen-blended CHP; Carbon emission quota for CHP units; Carbon emission quotas for the purchase of electricity from the grid for multi-microgrid IES; They are the carbon emissions of CHP and multi-microgrid IES purchasing electricity from the grid; They are the transaction costs between MGn and the large power grid and hydrogen market respectively; is the carbon trading price; for A column vector whose nth element is 1; is a matrix that represents the topological relationship between MGs. If its elements , it indicates that there is a correlation between MGn and MGm; They are electricity, hydrogen and heat network costs respectively; and are the electricity, hydrogen and heat energy sold by MGn to MGm respectively; N is the number of microgrids in IES; The electricity usage utility of MGn users; For users Discomfort costs; The price of electricity, hydrogen and heat sold by MG1 to other MGs; The price of electricity, hydrogen and heat sold by MGN to other MGs; and are the electricity, hydrogen and heat sold by MG1 to MGn respectively; and are the electricity, hydrogen and heat sold by MGN to MGn respectively; The price of electricity, hydrogen and heat sold by MGn to other MGs; is the operating cost of microgrid n; is the total electricity sales of MGn; is the total amount of hydrogen sold by MGn; is the total heat sold by MGn.

[0159] The calculation steps of the distributed optimization model based on the subgradient method are:

[0160] Set the initial values ​​of the grid electricity price, on-grid electricity price, utility parameters, and given error basic parameters; the number of iterations Set to 0;

[0161] Each MG subproblem is solved in parallel by the corresponding computing subject to calculate the total electricity, hydrogen, and heat demand from other MGs;

[0162] Updating the Lagrange multiplier vector according to the distributed solution strategy based on the subgradient method;

[0163] Determine whether the difference between two adjacent Lagrange multiplier vectors satisfies the set error; if the difference is less than or equal to the set error, the algorithm is determined to have converged, the iteration is stopped, and the result is output; if the difference is greater than the set error, the number of iterations is increased, and each MG sub-problem is calculated and solved.

[0164] It should be noted that the information interaction, execution process and other contents between the modules of the above-mentioned device are based on the same concept as the method embodiment in Example 1 of the present application, and the technical effects they bring are the same as those of the method embodiment of the present application. For specific contents, please refer to the description in the method embodiment shown in the previous part of the present application, and will not be repeated here. Example 3

[0165] Embodiment 3 of the present invention provides a non-transitory computer-readable storage medium, in which a program code for a distributed optimization method for an integrated energy system considering mixed hydrogen and natural gas is stored, and the program code includes instructions for executing the distributed optimization method for an integrated energy system considering mixed hydrogen and natural gas of Embodiment 1 or any possible implementation thereof.

[0166] Computer-readable storage media can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)). Example 4

[0167] Embodiment 4 of the present invention provides an electronic device, including: a memory and a processor;

[0168] The processor and the memory communicate with each other via a bus; the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the distributed optimization method of an integrated energy system considering mixed hydrogen and natural gas in Example 1 or any possible implementation thereof.

[0169] Specifically, the processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor implemented by reading software codes stored in a memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.

[0170] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center.

[0171] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0172] Although the present invention has been described in detail above by general description and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made on the basis of the present invention. Therefore, these modifications or improvements made on the basis of not departing from the spirit of the present invention all belong to the scope of protection claimed by the present invention.

Claims

1. A distributed optimization method for an integrated energy system considering hydrogen-mixed natural gas, characterized in that: include: Constructing a multi-microgrid IES model containing HCNG, the multi-microgrid IES model containing HCNG includes a MG hydrogen energy diversified utilization model, a microgrid carbon emission and carbon trading model, and a microgrid electricity and heat load model; through the MG hydrogen energy diversified utilization model, each microgrid purchases hydrogen from a microgrid whose hydrogen energy reserve reaches a set value; through the microgrid carbon emission and carbon trading model, obtaining carbon emission and carbon trading cost information of each microgrid; through the microgrid electricity and heat load model, obtaining electricity load and heat load data of each microgrid; Constructing an IES electric-heat-hydrogen P2P low-carbon optimization model for multiple microgrids containing HCNG, and minimizing the cost of the IES model for multiple microgrids containing HCNG through the IES electric-heat-hydrogen P2P low-carbon optimization model for multiple microgrids containing HCNG; Constructing a distributed optimization model based on the subgradient method, according to the distributed solution strategy based on the subgradient method, through the distributed optimization model based on the subgradient method, the distributed optimization problem of the integrated energy system is divided into corresponding distributed sub-problems; in the iterative optimization process, the corresponding distributed sub-problems are locally updated and alternately iterated to complete the global optimization solution; The objective function expression of the IES electricity-heat-hydrogen P2P low-carbon optimization model containing HCNG multi-microgrid is: In the formula, is the total operating cost of multi-microgrid IES; N is the number of MGs; is the price of natural gas; is the volume of natural gas consumed by CHP during period t; is the CCER income of MGn; is the grid benchmark emission factor; p pvn is the power generation of PV in MGn; p ccer is the CCER price; They are the transaction costs between MGn and the large power grid and hydrogen market respectively; They are the grid electricity price and on-grid electricity price respectively; They are the electricity and hydrogen volume traded between MGn and the large power grid and hydrogen market; is the hydrogen market price; a n is an N×1 column vector, whose nth element is 1; S is a matrix representing the topological relationship between MGs. If its element S n,m =1, indicating that there is a correlation between MGn and MGm; They are electricity, hydrogen and heat network costs respectively; and are the electricity, hydrogen and heat sold by MGn to MGm; E chpL is the carbon emission quota of the CHP unit; E gridL Carbon emission quota for the purchase of electricity from the grid for multiple microgrids IES; chpP ,E gridP are the carbon emissions of CHP and multi-microgrid IES purchasing electricity from the grid; p car is the carbon trading price; The electricity usage utility of MGn users; is the discomfort cost of user n; Through the distributed optimization model based on the subgradient method, the original problem of the IES electric-heat-hydrogen P2P low-carbon optimization model containing HCNG multi-microgrids is transformed into a distributed optimization sub-problem of each MG: In the formula, is the CCER income of MGn; t is the hydrogen doping volume ratio in period t; E chpL is the carbon emission quota of the CHP unit; E gridL Carbon emission quota for the purchase of electricity from the grid for multiple microgrids IES; chpP ,E gridP are the carbon emissions of CHP and multi-microgrid IES purchasing electricity from the grid; p car is the carbon trading price; The price of electricity, hydrogen and heat sold by MG1 to other MGs; The price of electricity, hydrogen and heat sold by MGN to other MGs; and They are the electricity, hydrogen and heat sold by MG1 to other MGs; and They are electricity, hydrogen and heat sold by MGN to other MGs; The price of electricity, hydrogen and heat sold by MGn to other MGs; n is the operating cost of microgrid n; is the total electricity sales of MGn; is the total amount of hydrogen sold by MGn; is the total heat sold by MGn.

2. The distributed optimization method of the integrated energy system considering hydrogen-mixed natural gas according to claim 1 is characterized in that: The electrolysis method of the MG system in the MG hydrogen energy diversified utilization model is PEM electrolysis; the electrolyzer model expression of the MG system is: In the formula, is the hydrogen energy produced by the EL device during period t; is the electrical energy input to EL during period t; η EL is the electricity-to-hydrogen conversion efficiency of EL; The MG hydrogen energy diversified utilization model also includes a gas-hydrogen-blended heat and power cogeneration model, and the expression of the gas-hydrogen-blended heat and power cogeneration model is: 0≤e t ≤20% In the formula, e t is the hydrogen doping volume ratio in period t; is the volume of hydrogen consumed by CHP during period t; and are the corresponding powers of hydrogen and natural gas consumed by CHP in period t; and are the corresponding calorific values ​​of hydrogen and methane respectively; and are the electrical and thermal efficiencies of CHP cogeneration, respectively; and are respectively the power generation and heat generation of CHP in period t.

3. The distributed optimization method of the integrated energy system considering hydrogen-mixed natural gas according to claim 1, characterized in that: The calculation steps of the distributed optimization model based on the subgradient method are: The grid electricity price, on-grid electricity price, utility parameters, and given error basic parameters are set to initial values; the number of iterations k is set to 0; Each MG subproblem is solved in parallel by the corresponding computing subject to calculate the total electricity, hydrogen, and heat demand from other MGs; Updating the Lagrange multiplier vector according to the distributed solution strategy based on the subgradient method; Determine whether the difference between two adjacent Lagrange multiplier vectors satisfies the set error; if the difference is less than or equal to the set error, determine that the algorithm has converged, stop iteration, and output the result; If the difference is greater than the set error, the number of iterations is increased and each MG sub-problem is calculated and solved.

4. A distributed optimization device for an integrated energy system considering hydrogen-mixed natural gas, adopting a distributed optimization method for an integrated energy system considering hydrogen-mixed natural gas as claimed in any one of claims 1 to 3, characterized in that: include: A multi-microgrid IES model construction and processing module containing HCNG is used to construct a multi-microgrid IES model containing HCNG, wherein the multi-microgrid IES model containing HCNG includes a MG hydrogen energy diversified utilization model, a microgrid carbon emission and carbon trading model, and a microgrid electricity and heat load model; through the MG hydrogen energy diversified utilization model, each microgrid purchases hydrogen from a microgrid whose hydrogen energy reserves reach a set value; through the microgrid carbon emission and carbon trading model, the carbon emission and carbon trading cost information of each microgrid is obtained; through the microgrid electricity and heat load model, the electricity load and heat load data of each microgrid are obtained; A construction and processing module for an IES electric-heat-hydrogen P2P low-carbon optimization model containing HCNG multi-microgrids, which is used to construct an IES electric-heat-hydrogen P2P low-carbon optimization model containing HCNG multi-microgrids, and minimize the cost of the IES model containing HCNG multi-microgrids through the IES electric-heat-hydrogen P2P low-carbon optimization model containing HCNG multi-microgrids; The distributed optimization model construction and processing module based on the subgradient method is used to construct a distributed optimization model based on the subgradient method. According to the distributed solution strategy based on the subgradient method, the distributed optimization problem of the integrated energy system is split into corresponding distributed sub-problems through the distributed optimization model based on the subgradient method; in the iterative optimization process, the corresponding distributed sub-problems are locally updated and alternately iterated to complete the global optimization solution.

5. The distributed optimization device for the integrated energy system considering hydrogen-mixed natural gas according to claim 4 is characterized in that: In the HCNG-containing multi-microgrid IES model construction and processing module, the electrolysis method of the MG system in the MG hydrogen energy diversified utilization model is PEM electrolysis; the electrolyzer model expression of the MG system is: In the formula, is the hydrogen energy produced by the EL device during period t; is the electrical energy input to EL during period t; η EL is the electricity-to-hydrogen conversion efficiency of EL; The MG hydrogen energy diversified utilization model also includes a gas-hydrogen-blended heat and power cogeneration model, and the expression of the gas-hydrogen-blended heat and power cogeneration model is: 0≤e t ≤20% In the formula, e t is the hydrogen doping volume ratio in period t; and are the corresponding volumes of hydrogen and natural gas consumed by CHP during period t, respectively; and are the corresponding powers of hydrogen and natural gas consumed by CHP in period t; and are the corresponding calorific values ​​of hydrogen and methane respectively; and are the electrical and thermal efficiencies of CHP cogeneration, respectively; and are respectively the power generation and heat generation of CHP in period t.

6. The distributed optimization device for an integrated energy system considering hydrogen-mixed natural gas according to claim 5, characterized in that: In the HCNG-containing multi-microgrid IES electric-heat-hydrogen P2P low-carbon optimization model construction and processing module, the objective function expression of the HCNG-containing multi-microgrid IES electric-heat-hydrogen P2P low-carbon optimization model is: In the formula, is the total operating cost of multi-microgrid IES; N is the number of MGs; is the price of natural gas; is the CCER income of MGn; is the grid benchmark emission factor; p pvn is the power generation of PV in MGn; p ccer is the CCER price; They are the transaction costs between MGn and the large power grid and hydrogen market respectively; They are the grid electricity price and on-grid electricity price respectively; They are the electricity and hydrogen volume traded between MGn and the large power grid and hydrogen market; is the hydrogen market price; a n is an N×1 column vector, whose nth element is 1; S is a matrix representing the topological relationship between MGs. If its element S n,m =1, indicating that there is a correlation between MGn and MGm; They are electricity, hydrogen and heat network costs respectively; and are the electricity, hydrogen and heat sold by MGn to MGm; E chpL is the carbon emission quota of the CHP unit; E gridL Carbon emission quota for the purchase of electricity from the grid for multiple microgrids IES; chpP ,E gridP are the carbon emissions of CHP and multi-microgrid IES purchasing electricity from the grid; p car is the carbon trading price; The electricity usage utility of MGn users; is the discomfort cost of user n.

7. The distributed optimization device for an integrated energy system considering hydrogen-mixed natural gas according to claim 6, characterized in that: In the distributed optimization model construction and processing module based on the subgradient method, the original problem of the IES electric-heat-hydrogen P2P low-carbon optimization model containing HCNG multi-microgrid is converted into a distributed optimization sub-problem of each MG through the distributed optimization model based on the subgradient method: In the formula, is the price of natural gas; is the CCER income of MGn; t is the hydrogen doping volume ratio in period t; The natural gas required for hydrogen-blended CHP; E chpL is the carbon emission quota of the CHP unit; E gridL Carbon emission quota for the purchase of electricity from the grid for multiple microgrids IES; chpP ,E gridP They are the carbon emissions of CHP and multi-microgrid IES purchasing electricity from the grid; are the transaction costs between MGn and the large power grid and hydrogen market respectively; p car is the carbon trading price; a n is an N×1 column vector, whose nth element is 1; S is a matrix representing the topological relationship between MGs. If its element S n,m =1, indicating that there is a correlation between MGn and MGm; They are electricity, hydrogen and heat network costs respectively; and are the electricity, hydrogen and heat energy sold by MGn to MGm respectively; N is the number of microgrids in IES; The electricity usage utility of MGn users; is the discomfort cost of user n; The price of electricity, hydrogen and heat sold by MG1 to other MGs; The price of electricity, hydrogen and heat sold by MGN to other MGs; and are the electricity, hydrogen and heat sold by MG1 to MGn respectively; and are the electricity, hydrogen and heat sold by MGN to MGn respectively; The price of electricity, hydrogen and heat sold by MGn to other MGs; n is the operating cost of microgrid n; is the total electricity sales of MGn; is the total amount of hydrogen sold by MGn; is the total heat sold by MGn.

8. The distributed optimization device for the integrated energy system considering hydrogen-mixed natural gas according to claim 7 is characterized in that: In the distributed optimization model construction and processing module based on the subgradient method, the calculation steps of the distributed optimization model based on the subgradient method are: The grid electricity price, on-grid electricity price, utility parameters, and given error basic parameters are set to initial values; the number of iterations k is set to 0; Each MG subproblem is solved in parallel by the corresponding computing subject to calculate the total electricity, hydrogen, and heat demand from other MGs; Updating the Lagrange multiplier vector according to the distributed solution strategy based on the subgradient method; Determine whether the difference between two adjacent Lagrange multiplier vectors satisfies the set error; if the difference is less than or equal to the set error, determine that the algorithm has converged, stop iteration, and output the result; If the difference is greater than the set error, the number of iterations is increased and each MG sub-problem is calculated and solved.

Citation Information

Patent Citations

  • Electricity-gas-hydrogen series-parallel integrated energy system optimization scheduling method considering auxiliary service

    CN115619006A

  • Nash negotiation-based hydrogen-doped gas comprehensive energy multi-microgrid optimization scheduling method

    CN116050585A