A multi-agent optimization operation method for electric-heat-hydrogen integrated energy system based on ADMM algorithm
By using the ADMM algorithm in the electric-thermal-hydrogen integrated energy system, a unified operation model of the P2H module that takes into account the electrolyzer startup characteristics is established, which solves the problems of electrolyzer startup characteristics and information privacy, and achieves distributed optimization and overall efficiency improvement of the system. .
Patent Information
- Application Number
- CN202410925118.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-11
AI Technical Summary
Existing technology cannot effectively optimize the start-up characteristics of electrolyzers in electric-thermal-hydrogen integrated energy systems, and traditional centralized optimization algorithms cannot reflect the interests of each subject, infringe on individual information privacy, and make it difficult to achieve distributed optimization.
The multi-agent optimal operation method of the electricity-thermal-hydrogen comprehensive energy system based on the ADMM algorithm is used to establish a unified operation model of the P2H module. Taking into account the startup characteristics of the electrolyzer, the ADMM algorithm is used through the micro-energy network group architecture, objective functions and constraints. Distributed solution to optimize the operation of each micro-energy network.
It achieves an accurate representation of the P2H process, reduces computational complexity, respects the interests and operational constraints of each micro-energy network, and improves the overall optimization efficiency and independent operation capabilities of the system.
Smart Images

Figure CN118469759B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of optimized operation of integrated energy systems, and in particular relates to a multi-agent optimized operation method of an electric-heat-hydrogen integrated energy system based on an ADMM algorithm. Background Art
[0002] As the scale of renewable energy expands and electric vehicles and other power equipment become more and more popular, how to effectively utilize surplus electricity has become a key issue to be solved in the energy sector. Multi-energy complementary technologies can improve the utilization rate of renewable energy to mitigate the climate impact caused by excessive carbon dioxide emissions. Power-to-Hydrogen (P2H) technology converts electrical energy into hydrogen energy through water electrolysis, which not only eliminates the problem of excess electricity, but also provides clean energy for innovative equipment such as hydrogen-powered vehicles. In addition, it also has the advantages of high energy storage efficiency, long energy storage time, and zero pollution emissions, making it a promising candidate for energy storage and energy conversion applications. However, the startup characteristics of electrolyzers remain largely unexplored. Although electrolyzers play a vital role in converting renewable energy into hydrogen through the P2H process, the initial stage of their operation, especially the startup process, has not been thoroughly studied. This also provides opportunities for further research to improve the efficiency and reliability of electrolytic cells, especially in high-penetration renewable energy systems. The traditional centralized optimization algorithm is based on all the information of the system and performs global overall optimization with the lowest total system cost. It cannot reflect the interests of various subjects in the system and is prone to infringing on the information privacy of individual subjects. Therefore, in the process of solving the model, a distributed optimization algorithm must be explored to optimize each subject separately with the lowest cost, so as to achieve a separate solution for each subject. Summary of the invention
[0003] In view of the shortcomings in the prior art, the present invention provides a multi-agent optimization operation method for an electric-heat-hydrogen integrated energy system based on the ADMM algorithm. The method takes into account the subtle startup characteristics of the electrolyzer, performs refined modeling, and realizes accurate representation of the P2H process. The ADMM algorithm is used in the solution process to reduce the computational complexity and reflect the respective interests of different subjects.
[0004] The present invention achieves the above technical objectives through the following technical means.
[0005] A multi-agent optimization operation method for an electric-heat-hydrogen integrated energy system based on an ADMM algorithm includes the following processes:
[0006] Step 1: Establish a unified operation model of P2H modules;
[0007] Step 2: Based on the micro-energy grid cluster architecture, for each micro-energy grid, establish the objective function and constraint conditions for its optimal operation, and then establish the micro-energy grid cluster optimization operation model;
[0008] Step 3: Based on the micro-energy grid cluster optimization operation model established in step 2, and based on the ADMM algorithm principle, a distributed solution is performed for each micro-energy grid.
[0009] Furthermore, in step 1, the unified operation model of the P2H module includes the operation power constraint, the startup power constraint, and the state constraint of the electrolyzer.
[0010] Furthermore, in step 2, the micro-energy grid group is an electric-heat-hydrogen integrated energy system micro-energy grid group, and multiple micro-energy grids in the micro-energy grid group exchange electricity through dedicated interconnection lines to form a dynamic interactive network; the micro-energy grid adopts a busbar design, including four energy buses: electricity, heat, hydrogen and natural gas; the micro-energy grid meets three main load types: electricity, hydrogen energy and thermal energy, and its input energy includes electricity from the power grid and other micro-energy grids, as well as natural gas purchased from natural gas companies.
[0011] Furthermore, the objective function is as follows:
[0012] (4)
[0013] in, Micro Energy Network operation and maintenance costs, Micro Energy Network The cost of purchasing natural gas, Micro Energy Network The electricity procurement cost, Micro Energy Network The cost of exchanging electricity with other micro energy grids, Micro Energy Network total cost.
[0014] Furthermore, the operation and maintenance costs are shown in equations (5) to (6):
[0015] (5)
[0016] (6)
[0017] The natural gas procurement cost is shown in formula (7):
[0018] (7)
[0019] The cost of purchasing electricity from the power grid is shown in formula (8):
[0020] (8)
[0021] The cost of electricity exchange with other micro energy grids is shown in formula (9):
[0022] (9)
[0023] in, Indicates the number of types of electrolyzers and fuel cells; Indicates the length of the scheduling cycle; Indicates the temporal resolution; represents the number of micro energy grids; , , , , , , , They represent the costs of photovoltaic power generation, wind turbines, combined heat and power units, fuel cells, electrolyzers, electric heating boilers, gas boilers, and methanation reactors respectively; Indicates the cost of batteries, heat storage tanks, hydrogen storage tanks, and gas storage tanks; , , , , , , They represent the cost coefficients of photovoltaic power generation, wind turbines, combined heat and power units, fuel cells, electric heating boilers, gas boilers, and methanation reactors respectively; , They represent the hydrogen output power cost coefficient and the startup power cost coefficient of the electrolyzer respectively; Indicates the cost coefficient of batteries, heat storage tanks, hydrogen storage tanks, and gas storage tanks; , They represent the output power of photovoltaic power generation and wind turbine respectively; , Respectively represent the output power of the cogeneration unit and the fuel cell; Indicates the starting power of the electrolyzer; , , , Respectively represent the output power of electrolyzer, electric heating boiler, gas boiler and methanation reactor; , Indicates the charging power and discharging power of the battery / heat storage tank / hydrogen storage tank / gas storage tank; , They represent natural gas price and natural gas calorific value respectively; Indicates the natural gas power purchased from the natural gas company; , Respectively represent the price of purchasing and selling electricity from the power grid; , Respectively represent the electric power purchased and sold from the grid; Indicates the price of electricity purchased from other micro-energy grids; , They represent the input and output values of power exchanged with other micro energy grids respectively; Indicates A micro energy grid; Indicates Type of electrolytic cell, Indicates time.
[0024] Furthermore, in step 2, the constraints include:
[0025] Power balance constraints, thermal power balance constraints, hydrogen power balance constraints, gas power balance constraints, power constraints for electricity purchases and sales to the power grid, power constraints for natural gas purchased from natural gas companies, efficiency constraints for system equipment, upper and lower power constraints for equipment, equipment ramping power constraints, energy storage equipment constraints, electrolyzer operation constraints, and power constraints for interactions with other micro energy grids.
[0026] Furthermore, in step 3, the specific process of performing distributed solution based on the ADMM algorithm principle is as follows:
[0027] Based on the micro-energy grid optimization operation model established in step 2, the objective function is reconstructed using the ADMM algorithm principle:
[0028] (32)
[0029] in, Micro Energy Network operation and maintenance costs, Micro Energy Network The cost of purchasing natural gas, Micro Energy Network The electricity procurement cost, Micro Energy Network The cost of exchanging electricity with other micro energy grids, Micro Energy Network Total cost; Micro Energy Network The Lagrange multiplier term of Micro Energy Network The penalty item, , As shown in the following formulas (33) to (34):
[0030] (33)
[0031] (34)
[0032] The constraints established in step 2 remain unchanged in their original form;
[0033] Then the ADMM algorithm is used to solve the model.
[0034] Furthermore, the specific process of solving the model using the ADMM algorithm is as follows:
[0035] S1: From Start; set convergence thresholds for primal and dual residuals and , initialize the dual multiplier and , initialize the penalty factor and , initialize the coordination variables and ;
[0036] S2: Solve each sub-optimization problem separately;
[0037] S3: Update coordination variables and :
[0038] (35)
[0039] S4: Calculate the original residual and the dual residual , and the convergence is evaluated based on the following formula (37):
[0040] (36)
[0041] (37)
[0042] S5: Adjust the penalty factor and :
[0043] (38)
[0044] S6: Update the dual multiplier and , and the number of iterations Increment by 1 ( ):
[0045] (39)
[0046] Repeat S2 to S6 until the required convergence standard is reached;
[0047] in, , Respectively represent Micro Energy Network Micro Energy Network At the moment The coordinated variables of the interactive power input and output values; , Respectively represent the coefficients of increase and decrease of penalty factor; , Both represent penalty factors; Indicates the penalty factor change threshold; , Both represent dual multipliers.
[0048] A system for realizing the multi-agent optimization operation method of the electric-heat-hydrogen integrated energy system based on the ADMM algorithm, comprising a P2H module unified operation model construction module, a micro-energy grid group optimization operation model construction module, and a model solving module;
[0049] The P2H module unified operation model construction module considers the startup characteristics of the electrolyzer, simulates the electricity-to-hydrogen conversion process in the electrolyzer, and establishes a P2H module unified operation model based on the micro-energy grid group with each micro-energy grid as the main body;
[0050] The micro-energy grid cluster optimization operation model construction module is based on the given micro-energy grid cluster architecture. For each micro-energy grid, the objective function and constraint conditions of its optimization operation are established, and then the micro-energy grid cluster optimization operation model is constructed;
[0051] The model solving module uses the ADMM algorithm to perform distributed solution of the micro-energy grid cluster optimization operation model.
[0052] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the multi-agent optimization operation method of the electric-thermal-hydrogen integrated energy system based on the ADMM algorithm are implemented.
[0053] The present invention has the following beneficial effects:
[0054] The present invention explores the distributed optimization operation method of a group of micro-energy grids in an electric-heat-hydrogen integrated energy system, emphasizes the complex modeling of the P2H conversion process in the electrolyzer, takes into account their subtle startup characteristics, and ensures the accurate representation of the P2H process, which is crucial for optimizing the entire energy system; the present invention establishes an optimization operation model, which regards each micro-energy grid as an independent entity and respects its personal interests and operation requirements. The model not only considers the efficiency of energy conversion, but also considers the specific operation constraints and goals of each micro-energy grid. In order to solve this distributed optimization problem, the present invention uses the ADMM algorithm, which can effectively handle large-scale optimization problems with distributed characteristics. By using the ADMM algorithm, the entire optimization problem can be decomposed into smaller sub-problems, and then solved iteratively in a distributed manner; this method not only reduces the computational complexity, but also enables each micro-energy grid to operate independently, while still contributing to the overall optimization of the entire energy system. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 This is a schematic diagram of the micro energy network group structure of the electric-heat-hydrogen integrated energy system of the present invention;
[0056] Figure 2 Schematic diagram of the internal structure of each micro energy network described in the present invention; DETAILED DESCRIPTION
[0057] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments, but the protection scope of the present invention is not limited thereto.
[0058] Embodiment 1:
[0059] The multi-agent optimization operation method of the electric-heat-hydrogen integrated energy system based on the ADMM algorithm of the present invention includes the following process:
[0060] Step 1: Establish a unified operation model of the P2H module, which takes into account the startup characteristics of the electrolyzer and realizes the refined modeling of the electrolyzer operation model;
[0061] The P2H module unified operation model establishment process is as follows:
[0062] In the field of commercial hydrogen production equipment, the basic unit is the electrolytic cell stack. However, the power output of a single electrolytic cell stack is inherently limited, usually not exceeding 10kW. Based on the inherent scalability of electrolytic cell technology, multiple battery packs can be integrated into larger modules to achieve capacities ranging from hundreds of kilowatts to megawatts. Hydrogen production systems widely used in power systems typically include many independently managed modules, each of which can be selectively started and shut down, and its output can be precisely controlled.
[0063] When starting up a P2H process, the startup delays associated with low temperature electrolysis technologies such as AEC and PEMEC tend to be minimal. However, in the case of solid oxide electrolysis cells (SOECs) that utilize high temperature electrolysis, hydrogen production does not begin until the electrolysis cell stack reaches a specific temperature threshold, and it is worth noting that the heating duration required to reach this temperature is often significant and should not be ignored.
[0064] Given the modeling context, setting Indicates A micro energy grid, Indicates Type of electrolytic cell, Indicates the time, Indicates The specific start-up delay of each electrolyzer, Indicates Micro energy network The electrolytic cell at time status, , Respectively represent Micro energy network The electrolytic cell at time The start and stop actions of the electrolyser indicate whether the electrolyser is started or stopped at a given time.
[0065] The operating power of the electrolyzer is subject to upper and lower limits, as shown in equation (1). This limit ensures that the electrolyzer operates within its safe and efficient range and prevents overuse or underuse:
[0066] (1)
[0067] in, Indicates Micro energy network The electrolytic cell at time The input power for hydrogen production is the active power input to drive the electrolysis process and produce hydrogen. Indicates Micro energy network The installed capacity of the electrolyzers; , They respectively represent the ratio of the minimum and maximum input power of the electrolyzer for hydrogen production to the installed capacity.
[0068] The startup power constraint of the electrolyzer is shown in formula (2):
[0069] (2)
[0070] in, Indicates the start-up power of the electrolyzer, which is the electrolyzer input power specifically used to start the electrolyzer. This power is consumed only during the start-up phase, usually required to heat the stack and other components to the operating temperature, and does not act on the production of hydrogen; Indicates starting power and installed capacity The ratio of Indicates Micro energy network Electrolyzer The starting action at the moment; Indicates accumulation indication.
[0071] The state constraints of the electrolytic cell are shown in formula (3):
[0072] (3)
[0073] in, Indicates Micro energy network Electrolyzer The starting action at the moment.
[0074] Step 2: Establish a micro-energy grid cluster optimization operation model. Based on the given micro-energy grid cluster architecture, for each micro-energy grid, the objective function and constraint conditions of its optimization operation are established, which are described as an optimization model.
[0075] The micro energy network group architecture is as follows:
[0076] like Figure 1 As shown, the micro energy grid group refers to the electric-heat-hydrogen integrated energy system micro energy grid group, the electric-heat-hydrogen integrated energy system (hereinafter referred to as the system) includes a group of interconnected micro energy grids, and these micro energy grids in the micro energy grid group can exchange electricity through dedicated interconnection lines to form a dynamic interactive network. Figure 1 In the figure, PV, WT, BT, EC, FC, EH, CHP, GB, GS, MR, HC, and HS represent photovoltaic power generation, wind turbine, battery, electrolyzer, fuel cell, electric heating boiler, combined heat and power unit, gas boiler, gas storage tank, methanation reactor, heat storage tank, and hydrogen storage tank, respectively; represents the total number of micro energy grids in the micro energy grid group, .
[0077] like Figure 2As shown in Figure 1, the micro energy grid adopts a bus design that includes four important energy buses: electricity, heat, hydrogen and natural gas. In this system, the primary energy supply equipment includes renewable energy power generation systems and cogeneration; EH and GB are mainly responsible for the thermal energy supply of the system. The energy conversion equipment of the system, such as EC and FC, facilitates the mutual conversion of electrical energy and hydrogen energy, the latter of which generates thermal energy during the conversion process; in addition, the converted hydrogen energy can be further refined into natural gas through MR.
[0078] The micro energy grid meets three main load types: electricity, hydrogen energy and thermal energy. Its input energy includes electricity from the power grid and other micro energy grids, as well as natural gas purchased from natural gas companies.
[0079] The process of establishing the objective function is as follows:
[0080] As shown in formula (4), for each micro-energy grid, the primary goal is to minimize the total cost, which includes four parts: operation and maintenance cost, natural gas procurement cost, electricity procurement cost, and electricity exchange cost with other micro-energy grids:
[0081] (4)
[0082] in, represents the operation and maintenance cost of the micro energy grid, represents the natural gas procurement cost of the micro energy grid, represents the electricity procurement cost of the micro energy grid, represents the electricity exchange cost between the micro energy grid and other micro energy grids, Represents the total cost of the micro energy grid.
[0083] The operation and maintenance costs are shown in equations (5) to (6):
[0084] (5)
[0085] (6)
[0086] The natural gas procurement cost is shown in formula (7):
[0087] (7)
[0088] The cost of purchasing electricity from the power grid is shown in formula (8):
[0089] (8)
[0090] The cost of electricity exchange with other micro energy grids is shown in formula (9):
[0091] (9)
[0092] in, Indicates the number of types of electrolyzers and fuel cells; Indicates the length of the scheduling cycle; Indicates the temporal resolution; represents the number of micro energy grids; , , , , , , , They represent the costs of photovoltaic power generation, wind turbines, combined heat and power units, fuel cells, electrolyzers, electric heating boilers, gas boilers, and methanation reactors respectively; Indicates the cost of batteries, heat storage tanks, hydrogen storage tanks, and gas storage tanks; , , , , , , They represent the cost coefficients of photovoltaic power generation, wind turbines, combined heat and power units, fuel cells, electric heating boilers, gas boilers, and methanation reactors respectively; , They represent the hydrogen output power cost coefficient and the startup power cost coefficient of the electrolyzer respectively; Indicates the cost coefficient of batteries, heat storage tanks, hydrogen storage tanks, and gas storage tanks; , They represent the output power of photovoltaic power generation and wind turbine respectively; , Respectively represent the output power of the cogeneration unit and the fuel cell; Indicates the starting power of the electrolyzer; , , , Respectively represent the output power of electrolyzer, electric heating boiler, gas boiler and methanation reactor; , Indicates the charging power and discharging power of the battery / heat storage tank / hydrogen storage tank / gas storage tank; , They represent natural gas price and natural gas calorific value respectively; Indicates the natural gas power purchased from the natural gas company; , Respectively represent the price of purchasing and selling electricity from the power grid; , Respectively represent the electric power purchased and sold from the grid; Indicates the price of electricity purchased from other micro-energy grids; , They respectively represent the input and output values of power exchanged with other micro energy grids.
[0093] The constraints are as follows:
[0094] The power balance constraint is shown in formula (10):
[0095] (10)
[0096] Among them, among them, , They represent the discharge and charging power of the interaction between the battery and the micro energy grid respectively; Indicates the input power of the electric heating boiler; represents the input power of the electrolyzer for hydrogen production; Indicates electrical load;
[0097] The thermal power balance is shown in formula (11):
[0098] (11)
[0099] in, , They represent the energy release and charging power of the interaction between the heat storage tank and the micro energy grid respectively; Indicates heat load; Indicates the output thermal power of the cogeneration unit; Represents the output thermal power of the fuel cell;
[0100] The hydrogen power balance is shown in formula (12):
[0101] (12)
[0102] in, , They represent the energy release and charging power of the interaction between the hydrogen storage tank and the micro energy grid respectively; represents hydrogen load; represents the input power of the fuel cell; represents the input power of the methanation reactor;
[0103] Gas power balance:
[0104] (13)
[0105] in, Indicates the input electrical power of the cogeneration unit; Indicates the input power of the gas boiler; , They represent the energy release and charging power of the interaction between the gas tank and the micro energy grid respectively;
[0106] Constraints on purchasing electricity and gas:
[0107] Constraints on power purchase and sale to the grid:
[0108] (14)
[0109] in, , Respectively represent the state of buying and selling electric energy to the grid, 0-1 variables; , Respectively represent the minimum and maximum power purchased from the grid; , Respectively represent the minimum and maximum power sold to the grid; , Respectively represent the power purchased from the grid and the power sold to the grid;
[0110] Constraints on natural gas power purchased from natural gas companies:
[0111] (15)
[0112] in, , They represent the minimum and maximum gas power purchased from the natural gas company respectively;
[0113] Equipment operating efficiency constraints:
[0114] Efficiency constraints of system equipment:
[0115] (16)
[0116] in, Indicates the output thermal power of the cogeneration unit; , They represent the power generation efficiency of the combined heat and power unit and the fuel cell respectively; , Respectively represent the efficiency of electrolyzer and electric heating boiler; , represent the efficiency of gas boiler and methanation reactor respectively; , They represent the heat-to-electricity ratio of the cogeneration unit and the fuel cell, respectively; , They represent the output electrical power and output thermal power of the fuel cell respectively; , Respectively represent the output power of electrolyzer and electric heating boiler; , Respectively represent the output power of gas boiler and methanation reactor; Indicates the input power of the electric heating boiler;
[0117] Equipment power upper and lower limits:
[0118] (17)
[0119] in, , They represent the ratio of the predicted output power of photovoltaic and wind power generation to the installed capacity respectively; , Respectively represent the installed capacity of photovoltaic and wind power generation; , They represent the installed capacity of cogeneration units and fuel cells respectively; , Respectively represent the installed capacity of electrolyzer and electric heating boiler; , Respectively represent the installed capacity of gas boiler and methanation reactor; , They represent the ratio of the minimum and maximum output power of CHP to the installed capacity respectively; , Indicates the ratio of the minimum and maximum output power of the electric heating boiler to the installed capacity; , Respectively represent the ratio of the minimum and maximum output power of the gas boiler to the installed capacity; , They represent the ratio of the minimum and maximum output power to the installed capacity of the methanation reactor respectively;
[0120] Equipment climbing power constraint:
[0121] (18)
[0122] in, , , They represent the ratio of the maximum ramping power to the installed capacity of the cogeneration unit, fuel cell, and electrolyzer, respectively;
[0123] Energy storage equipment constraints:
[0124] The following equations (19) to (21) describe the constraints associated with energy storage devices. Specifically, equation (19) summarizes the efficiency constraints during charging and discharging operations, equation (20) summarizes the upper and lower limits of charging and discharging power, and equation (21) defines the energy constraints stored by the storage device:
[0125] (19)
[0126] (20)
[0127] (twenty one)
[0128] in, , Respectively represent the charging efficiency and discharging efficiency of the battery / heat storage tank / hydrogen storage tank / gas storage tank; , Respectively represent the charging power exchange and discharging power exchange between the battery / heat storage tank / hydrogen storage tank / gas storage tank and the micro energy grid; , Respectively represent the charging state and discharging state of the battery / heat storage tank / hydrogen storage tank / gas storage tank, which are 0-1 variables; , Respectively represent the ratio of the minimum and maximum charging power to the installed capacity of the battery / heat storage tank / hydrogen storage tank / gas storage tank; , Respectively represent the ratio of the minimum and maximum discharge power to the installed capacity of the battery / heat storage tank / hydrogen storage tank / gas storage tank; , Respectively represent the ratio of the minimum and maximum energy stored in the battery / heat storage tank / hydrogen storage tank / gas storage tank to the installed capacity; , , Respectively represent the battery / heat storage tank / hydrogen storage tank / gas storage tank at time , the stored energy at the initial moment and the end moment; Indicates the self-discharge rate of the battery / heat storage tank / hydrogen storage tank / gas storage tank;
[0129] Electrolyzer operation constraints:
[0130] The upper and lower power constraints, starting power constraints, and start-stop state constraints of the EC are shown in equations (22) to (23). In addition, equation (24) stipulates that the start-stop state must be consistent at the beginning and end of each cycle, while equation (25) imposes a maximum limit on the number of starts and stops that may occur in a single cycle:
[0131] (twenty two)
[0132] (twenty three)
[0133] (twenty four)
[0134] (25)
[0135] in, , , They represent the electrolytic cell at time , the on / off status at the initial moment and the end moment, 0-1 variable; , They represent the ratio of the minimum and maximum input power to the installed capacity of the electrolyzer respectively; Indicates the installed capacity of the electrolyzer; It indicates the ratio of the starting power of the electrolyzer to the installed capacity; , They represent the maximum number of times the electrolyzer is started and shut down in one day respectively; , Respectively represent the start and shut down actions of the electrolytic cell, 0-1 variables; , Respectively represent the electrolytic cell time, The starting action at the moment;
[0136] Interaction power constraints with other micro energy grids:
[0137] The upper and lower limits of the interactive power with other micro-energy grids are shown in formula (26). At the same time, formula (27) constrains the diagonal elements of the interactive state matrix to be zero, which means that the grid cannot interact with itself. In addition, the input and output states cannot be assigned the value 1 at the same time, which means that the interactive power flows in one direction in either direction:
[0138] (26)
[0139] (27)
[0140] in, The connection topology between micro energy grids; , They represent the minimum and maximum exchange power with other micro energy grids respectively; , They represent the input and output power exchange states with other microgrids, 0-1 variables; , They represent the input and output values of power exchanged with other micro energy grids respectively; , They represent the output and input power exchange status between the micro energy grid and itself, respectively, and are 0-1 variables.
[0141] Step 3: Based on the micro-energy grid cluster optimization operation model established in step 2, and based on the principle of the Alternating Direction Method of Multipliers (ADMM) algorithm, a distributed solution is performed for each subject (i.e., each micro-energy grid). As a distributed algorithm, ADMM can systematically decompose large-scale separable optimization problems into smaller sub-problems. This method will ultimately determine the global optimal solution; this method integrates the decomposition principle of the dual ascent method with the superior convergence of the Lagrange multiplier method, and has good robustness and effectiveness.
[0142] The process of solving the problem using the ADMM algorithm is as follows:
[0143] (28)
[0144] in, is the decision variable, , express real vector of rows; is the objective function; is the coefficient matrix, ; express OK A real matrix of columns; is the coefficient vector, , express Real vector of rows.
[0145] The decision variables in equation (28) Split into two decision variables , :
[0146] (29)
[0147] in, , , , Respectively OK, real vector of rows; and is the sub-optimization objective; , is the coefficient matrix, , ; is the coefficient vector, ; express OK A real matrix of columns, express OK A real matrix with columns.
[0148] By adding a quadratic penalty term to the Lagrangian function, the augmented Lagrangian function is derived, which provides an enhanced framework for solving optimization problems:
[0149] (30)
[0150] in, is the Lagrange multiplier, ; is the penalty factor, ; represents the augmented Lagrangian function.
[0151] Alternating variables and , and update the Lagrange multiplier as shown in Equation (31) until the convergence condition is met:
[0152] (31)
[0153] in, represents the number of iterations, , , Respectively represent The values of decision variables, decision variables, and Lagrange multipliers in the iteration; , Respectively represent substitution and The augmented Lagrangian function, substituting and The augmented Lagrangian function of ; Represents the operation of taking the value of the decision variable when the objective function is minimized.
[0154] Based on the micro-energy grid optimization operation model established in step 2, the objective function is reconstructed using the ADMM algorithm principle:
[0155] (32)
[0156] in, Micro Energy Network The Lagrange multiplier term of Micro Energy Network The penalty item, , As shown in the following formulas (33) to (34):
[0157] (33)
[0158] (34)
[0159] The constraints specified in equations (10) to (27) remain unchanged in their original form;
[0160] The process of using the ADMM algorithm to solve the mathematical model is as follows:
[0161] S1: From Start; set convergence thresholds for primal and dual residuals and , initialize the dual multiplier and , initialize the penalty factor and , initialize the coordination variables and .
[0162] S2: Solve each sub-optimization problem separately;
[0163] S3: Update coordination variables and :
[0164] (35)
[0165] S4: Calculate the original residual and the dual residual , and the convergence is evaluated based on the following formula (37):
[0166] (36)
[0167] (37)
[0168] S5: Adjust the penalty factor and :
[0169] (38)
[0170] S6: Update the dual multiplier and , and the number of iterations Increment by 1 ( ):
[0171] (39)
[0172] Repeat S2 to S6 until the required convergence standard is reached.
[0173] in, , Respectively represent Micro Energy Network Micro Energy Network At the moment The coordinated variables of the interactive power input and output values; , Respectively represent the coefficients of increase and decrease of penalty factor; , Both represent penalty factors; Indicates the penalty factor change threshold; , Both represent dual multipliers.
[0174] Embodiment 2:
[0175] This embodiment provides a multi-agent optimization operation system for an electric-heat-hydrogen integrated energy system based on an ADMM algorithm, including a P2H module unified operation model construction module, a micro-energy grid group optimization operation model construction module, and a model solving module;
[0176] The P2H module unified operation model construction module takes into account the startup characteristics of the electrolyzer, accurately simulates the electric-to-hydrogen conversion process in the electrolyzer, and establishes a P2H module unified operation model based on a given micro-energy grid group, which takes each micro-energy grid as the main body and meets its individual interests and energy needs;
[0177] The micro-energy grid cluster optimization operation model construction module is based on the given micro-energy grid cluster architecture. For each micro-energy grid, the objective function and constraint conditions of its optimization operation are established, and then the micro-energy grid cluster optimization operation model is constructed;
[0178] The model solving module uses the ADMM algorithm to perform distributed solution of the micro-energy grid cluster optimization operation model.
[0179] Embodiment 3:
[0180] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the multi-agent optimization operation method of the electric-heat-hydrogen integrated energy system based on the ADMM algorithm described in Example 1 are implemented.
[0181] The embodiments are preferred implementations of the present invention, but the present invention is not limited to the above-mentioned implementations. Any obvious improvements, substitutions or modifications that can be made by those skilled in the art without departing from the essential content of the present invention belong to the protection scope of the present invention.
Claims
1. A multi-agent optimization operation method for an electric-heat-hydrogen integrated energy system based on the ADMM algorithm, characterized in that: The process includes the following: Step 1: Establish a unified operation model of P2H modules; In step 1, the unified operation model of the P2H module includes the operation power constraint, the startup power constraint, and the state constraint of the electrolyzer; Step 2: Based on the micro-energy grid cluster architecture, for each micro-energy grid, establish the objective function and constraint conditions for its optimal operation, and then establish the micro-energy grid cluster optimization operation model; Step 3: Based on the micro-energy grid cluster optimization operation model established in step 2, and based on the ADMM algorithm principle, a distributed solution is performed for each micro-energy grid; The objective function is as follows: in, represents the operation and maintenance cost of micro energy grid i, represents the natural gas procurement cost of micro energy grid i, represents the electricity procurement cost of micro energy grid i, represents the electricity exchange cost between micro energy grid i and other micro energy grids, C i represents the total cost of micro energy grid i; The operation and maintenance costs are shown in formulas (5) to (6): The natural gas procurement cost is shown in formula (7): The cost of purchasing electricity from the power grid is shown in formula (8): The cost of electricity exchange with other micro energy grids is shown in formula (9): Where K represents the number of types of electrolyzers and fuel cells; T represents the length of the scheduling cycle; Δt represents the time resolution; IMG represents the number of micro-energy grids; They represent the costs of photovoltaic power generation, wind turbines, combined heat and power units, fuel cells, electrolyzers, electric heating boilers, gas boilers, and methanation reactors respectively; Indicates the cost of batteries, heat storage tanks, hydrogen storage tanks, and gas storage tanks; They represent the cost coefficients of photovoltaic power generation, wind turbines, combined heat and power units, fuel cells, electric heating boilers, gas boilers, and methanation reactors respectively; They represent the hydrogen output power cost coefficient and the startup power cost coefficient of the electrolyzer respectively; Indicates the cost coefficient of batteries, heat storage tanks, hydrogen storage tanks, and gas storage tanks; They represent the output power of photovoltaic power generation and wind turbine respectively; Respectively represent the output power of the cogeneration unit and the fuel cell; Indicates the starting power of the electrolyzer; Respectively represent the output power of electrolyzer, electric heating boiler, gas boiler and methanation reactor; Indicates the charging power and discharging power of the battery / heat storage tank / hydrogen storage tank / gas storage tank; They represent natural gas price and natural gas calorific value respectively; Indicates the natural gas power purchased from the natural gas company; Respectively represent the price of purchasing and selling electricity from the power grid; Respectively represent the electric power purchased and sold from the grid; Indicates the price of electricity purchased from other micro-energy grids; They represent the input and output values of power exchanged with other micro-energy grids respectively; i represents the i-th micro-energy grid; k represents the k-th electrolyzer, and t represents the time; In step 3, the specific process of distributed solution based on the ADMM algorithm principle is as follows: Based on the micro-energy grid optimization operation model established in step 2, the objective function is reconstructed using the ADMM algorithm principle: in, represents the operation and maintenance cost of micro energy grid i, represents the natural gas procurement cost of micro energy grid i, represents the electricity procurement cost of micro energy grid i, represents the electricity exchange cost between micro energy grid i and other micro energy grids, C i represents the total cost of micro energy grid i; represents the Lagrange multiplier term of micro energy grid i, is the penalty term of micro energy grid i, As shown in the following formulas (33) to (34): The constraints established in step 2 remain unchanged in their original form; Then the ADMM algorithm is used to solve the model; The specific process of solving the model using the ADMM algorithm is as follows: S1: Start from m=1; set the convergence threshold ε for the original residual and the dual residual EX,pri and ε EX,dual , initialize the dual multiplier and Initialize the penalty factor and Initialize coordination variables and S2: Solve each sub-optimization problem separately; S3: Update coordination variables and S4: Calculate the original residual and the dual residual And the convergence is evaluated based on the following formula (37): S5: Adjust the penalty factor and S6: Update dual multiplier and And increase the number of iterations m by 1 (m=m+1): Repeat S2 to S6 until the required convergence standard is reached; in, They represent the coordination variables of the interactive power input and output values between micro energy grid i and micro energy grid j at time t in the mth iteration respectively; Respectively represent the coefficients of increase and decrease of penalty factor; Both represent penalty factors; EX Indicates the penalty factor change threshold; Both represent dual multipliers.
2. The multi-agent optimization operation method of the electric-heat-hydrogen integrated energy system based on the ADMM algorithm according to claim 1 is characterized in that: In step 2, the micro-energy grid group is an electric-heat-hydrogen integrated energy system micro-energy grid group, and multiple micro-energy grids in the micro-energy grid group exchange electricity through dedicated interconnection lines to form a dynamic interactive network; the micro-energy grid adopts a busbar design, including four energy buses: electricity, heat, hydrogen and natural gas; the micro-energy grid meets three main load types: electricity, hydrogen energy and thermal energy, and its input energy includes electricity from the power grid and other micro-energy grids, as well as natural gas purchased from natural gas companies.
3. The multi-agent optimization operation method of the electric-heat-hydrogen integrated energy system based on the ADMM algorithm according to claim 1 is characterized in that: In step 2, the constraints include: Power balance constraints, thermal power balance constraints, hydrogen power balance constraints, gas power balance constraints, power constraints for electricity purchases and sales to the power grid, power constraints for natural gas purchased from natural gas companies, efficiency constraints for system equipment, upper and lower power constraints for equipment, equipment ramping power constraints, energy storage equipment constraints, electrolyzer operation constraints, and power constraints for interactions with other micro energy grids.
4. A system for implementing the multi-agent optimization operation method of the electric-thermal-hydrogen integrated energy system based on the ADMM algorithm as described in claim 1, characterized in that: It includes P2H module unified operation model construction module, micro energy grid group optimization operation model construction module, and model solving module; The P2H module unified operation model construction module considers the startup characteristics of the electrolyzer, simulates the electricity-to-hydrogen conversion process in the electrolyzer, and establishes a P2H module unified operation model based on the micro-energy grid group with each micro-energy grid as the main body; The micro-energy grid cluster optimization operation model construction module is based on the given micro-energy grid cluster architecture. For each micro-energy grid, the objective function and constraint conditions of its optimization operation are established, and then the micro-energy grid cluster optimization operation model is constructed; The model solving module uses the ADMM algorithm to perform distributed solution of the micro-energy grid cluster optimization operation model.
5. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the multi-agent optimization operation method of the electric-thermal-hydrogen integrated energy system based on the ADMM algorithm described in claim 1 are implemented.
Citation Information
Patent Citations
Comprehensive energy microgrid distributed economic dispatching optimization method and system
CN113890023A
Optimization planning method for micro-energy network group containing shared energy storage system
CN116822831A
