A method for optimizing the operation of an electric-hydrogen integrated energy system based on master-slave game

By using the master-slave game model and genetic algorithm in the electricity-hydrogen integrated energy system, the distribution of hydrogen and the price of hydrogen are optimized, which solves the problem of insufficient system economy in the existing technology and achieves efficient distribution of hydrogen and improvement of system economic benefits. promote.

CN113553770BActive Publication Date: 2024-09-10STATE GRID JIANGSU ELECTRIC POWER CO LTD CHANGZHOU BRANCH +2
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing electricity-hydrogen comprehensive energy system optimization method mainly targets the lowest system operating cost, and fails to effectively consider the optimal distribution of hydrogen and the optimal hydrogen sales price, resulting in insufficient system economy and failure to fully utilize the relationship between multiple entities. strategy optimization and interest coordination.

Method used

An optimization method based on the master-slave game is used to design the basic architecture of the electric-hydrogen integrated energy system, and a master-slave game model of one master and two slaves is established. The genetic algorithm is used to solve the problem. With the electric-hydrogen integrated energy system operator as the leader, energy storage Behavior and hydrogen sales behavior act as a follower to optimize hydrogen distribution and hydrogen sales price to improve the overall economic benefits of the system.

Benefits of technology

It achieves the optimal distribution of hydrogen and the optimization of hydrogen sales price, improves the overall economic benefits of the integrated energy system of electricity and hydrogen, can absorb excess wind power, realize peak shaving and valley filling through high-pressure hydrogen storage equipment and fuel cells, and improves the system's efficiency. Economical and sustainable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113553770B
    Figure CN113553770B
Patent Text Reader

Abstract

The present invention proposes an optimization operation method of an electric-hydrogen integrated energy system based on a master-slave game, and the method includes the following steps: step 1, designing the basic architecture of the electric-hydrogen integrated energy system and constructing an integrated production and marketing structure; step 2, establishing a master-slave game model of one master and two slaves; step 3, conditionally constraining the electric-hydrogen integrated energy system; step 4, solving the master-slave game model of one master and two slaves established in step 2 using a genetic algorithm. Beneficial effects of the present invention: The electric-hydrogen integrated energy system of the present invention can absorb excess wind power; hydrogen can be compressed and stored in a high-pressure hydrogen storage device to supply energy to hydrogen loads, and when the wind power output is insufficient, hydrogen can be used through a fuel cell to generate electricity to supplement the grid, and used for distributed power supply to reduce peaks and fill valleys.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an optimized operation method of an electric-hydrogen integrated energy system based on master-slave game, and belongs to the field of power system planning and dispatching. Background Art

[0002] Energy transformation oriented towards clean development is an issue of widespread concern in the international community. Hydrogen is considered to be an important transitional energy in energy transformation. The Electric Hydrogen Integrated Energy System (EHIES) with hydrogen energy storage can be used for energy conversion, so that the one-way coupling of electricity and hydrogen can be transformed into a two-way coupling. Therefore, the reasonable optimization of the EHIES operation method can promote the coordination and cooperation of electricity and hydrogen, which is also of great significance for promoting energy transformation and has become a hot topic in current research.

[0003] At present, domestic and foreign scholars have conducted a lot of research on the optimized operation of EHIES. EHIES uses hydrogen energy storage to convert electrical energy into hydrogen, and hydrogen into electrical energy, across energy fields. Existing studies have optimized operations with the minimum total cost of system operation as the objective function, and demonstrated the feasibility of large-scale application of hydrogen energy storage in the future. Hydrogen energy storage is used as an energy storage system and applied to microgrids coupled with multiple energy sources, verifying that hydrogen energy storage can reduce the cost of the entire life cycle. Modeling is carried out with the economy considering energy conversion losses and environmental costs as the objective function to optimize the system. The integrated energy system is optimized with the goal of minimizing the total operating cost of the system.

[0004] Existing research is mainly aimed at minimizing system operating costs, using hydrogen energy storage to convert electricity into hydrogen, and then hydrogen into electricity, for cross-energy storage and peak-shaving. With the continuous reform of the electricity market, simply considering hydrogen energy storage as energy storage to play the role of peak-shaving will reduce the economy of the system. Since the hydrogen produced by water electrolysis has a higher purity and the industrial hydrogen load bid is higher, the benefits brought by direct hydrogen sales can be considered on the basis of the original electricity trading.

[0005] In the context of energy marketization, EHIES can conduct energy transactions such as direct hydrogen sales and energy storage according to its own interests. How to optimally allocate hydrogen and set the hydrogen selling price has become a new research hotspot for EHIES optimization operation. Existing studies have used traditional multi-objective optimization methods to solve the problem with the minimum comprehensive basic investment cost and operating cost, but it is not conducive to revealing the main contradictions of the model and the coupling of control variables. The master-slave game can solve the contradictions of the model by dividing the variables, and study how multiple subjects can optimize strategies, so that the traditional method can be transformed towards the direction of multi-subject and multi-objective. Existing studies have analyzed the The operation mechanism of the integrated energy system composed of hydrogen energy storage energy system operators, energy producers, load aggregators and energy storage providers is proposed. A master-slave game model involving four parties is proposed, but only the direct sale of hydrogen can improve the income level of energy system operators. The master-slave game is used to model the grid-connected power through hydrogen energy storage regulation to maximize the benefits of wind farms. The above research only considers the game between the integrated energy system operator and other system entities, and does not involve the optimal allocation of hydrogen and the optimal hydrogen selling price. In order to improve the overall economic benefits of EHIES, according to the game idea, the hydrogen selling behavior (Hydrogen Selling Behavior, HSB) and energy storage behavior (Energy Storage Behavior, ESB) are set as virtual players of the electric hydrogen integrated energy system operator (EHIESO). Considering that EHIESO and ESB, HSB are two unequal participants in a situation where their interests influence each other, the master-slave game theory is used to optimize the operation of EHIES. Summary of the invention

[0006] The present invention proposes an optimization operation method for an electric-hydrogen integrated energy system based on master-slave game, which aims to improve the overall economic benefits of the electric-hydrogen integrated energy system and achieve optimal hydrogen distribution.

[0007] The technical solution of the present invention is: a method for optimizing the operation of an electric-hydrogen integrated energy system based on master-slave game, the method comprising the following steps:

[0008] Step 1: Design the basic architecture of the electric-hydrogen integrated energy system and build an integrated production and marketing structure;

[0009] Step 2: Establish a master-slave game model with one master and two slaves;

[0010] Step 3: Condition the electric-hydrogen integrated energy system;

[0011] Step 4: Use genetic algorithm to solve the master-slave game model of one master and two slaves established in step 2.

[0012] Beneficial effects of the present invention:

[0013] The electric hydrogen integrated energy system (EHIES) of the present invention can absorb excess wind power; hydrogen can be compressed and stored in high-pressure hydrogen storage equipment to supply energy to hydrogen-consuming loads. When the wind power output is insufficient, hydrogen can be used through fuel cells to generate electricity to supplement the grid and be used for distributed power supply to reduce peak power and fill valley power. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Attached Figure 1 This is the structural diagram of the electric-hydrogen integrated energy system.

[0015] Attached Figure 2 Schematic diagram of the master-slave game.

[0016] Attached Figure 3 Flowchart for improving genetic algorithm.

[0017] Attached Figure 4 Flowchart for solving the game model.

[0018] Attached Figure 5 To predict wind power.

[0019] Attached Figure 6 To predict the power of electric load and hydrogen load.

[0020] Attached Figure 7 This is the result of multiple solutions of the Pareto method.

[0021] Attached Figure 8 Comparison of EHIESO benefits of different plans.

[0022] Attached Fig. 9 The changes in hydrogen reserves during the high-pressure hydrogen storage equipment period.

[0023] Attached Fig.10 Comparison of hydrogen sales prices between Scheme 1 and Scheme 3. DETAILED DESCRIPTION

[0024] A method for optimizing the operation of an electric-hydrogen integrated energy system based on master-slave game, the method comprising the following steps:

[0025] Step 1: Design the basic architecture of the electric-hydrogen integrated energy system and build an integrated production and marketing structure;

[0026] Step 2: Establish a master-slave game model with one master and two slaves;

[0027] Step 3: Condition the electric-hydrogen integrated energy system;

[0028] Step 4: Use genetic algorithm to solve the master-slave game model of one master and two slaves established in step 2.

[0029] The basic structure of the electric-hydrogen integrated energy system in step 1 includes a wind turbine, an electric load, an electrolyzer, a compressor, a fuel cell, a hydrogen load, and a high-pressure hydrogen storage device, wherein an electrolyzer-high-pressure hydrogen storage device-fuel cell device model is established between the electrolyzer, the high-pressure hydrogen storage device, and the fuel cell; the electric load is provided by the wind turbine, the fuel cell, and the external power grid; the excess wind power output is delivered to the electrolyzer; the electrolyzer obtains hydrogen by electrolyzing water, a part of the hydrogen is stored in the high-pressure hydrogen storage device after passing through the compressor, and the hydrogen in the high-pressure hydrogen storage device is used to supply power to the electric load through the fuel cell, thereby playing a role in peak shaving and valley filling; the other part of the hydrogen is sold to the hydrogen load after passing through the compressor to improve the economy; the basic structure of the electric-hydrogen integrated energy system is as follows Figure 1 shown.

[0030] The electrolyzer adopts an alkaline electrolyzer, and the electrolyte is a 30% NaOH solution; the alkaline electrolyzer can adapt to occasions such as intermittent fluctuating power, high pressure, high current density, and low voltage when producing hydrogen, and the operation is reliable and stable; the high-pressure hydrogen storage device is preferably a hydrogen storage tank; an electrolyzer-high-pressure hydrogen storage device-fuel cell device model is established between the electrolyzer, the high-pressure hydrogen storage device, and the fuel cell.

[0031] The electrolyzer-high-pressure hydrogen storage device-fuel cell device model includes electrolyzer hydrogen production and fuel cell power generation constraints, hydrogen storage and hydrogen sales constraints, hydrogen state constraints in the high-pressure hydrogen storage device, and fuel cell grid-connected inverter active and reactive power constraints.

[0032] The constraints of hydrogen production by the electrolyzer and power generation by the fuel cell are as shown in equations (1) and (2); the constraints of hydrogen storage and sales are as shown in equations (3)-(5); the state constraints of hydrogen in the high-pressure hydrogen storage device are as shown in equations (6)-(7); the active and reactive power constraints of the fuel cell grid-connected inverter are as shown in equation (8);

[0033]

[0034]

[0035]

[0036]

[0037]

[0038]

[0039]

[0040]

[0041] Where PP2G,t and P HE,t are the power consumption of hydrogen production by electrolysis and the power generated by the grid-connected inverter of the fuel cell at time t; α P2G is the hydrogen production loss coefficient; β HE is the power generation loss coefficient; They are the hydrogen production, hydrogen consumption and hydrogen sales at time t respectively; and are the upper and lower limits of the power required for hydrogen production, respectively; and are the upper and lower limits of the fuel cell power generation respectively; and The upper and lower limits of hydrogen sales volume; is the hydrogen storage capacity of the high-pressure hydrogen storage device at time t; and are the upper and lower limits of the hydrogen storage capacity in the high-pressure hydrogen storage equipment; Q HE,t is the reactive power generated by the fuel cell grid-connected inverter; S HE,t It is the maximum apparent power of the fuel cell grid-connected inverter.

[0042] The electric-hydrogen integrated energy system of the present invention can absorb excess wind power and is an environmentally friendly and highly efficient energy system. In the actual electricity market, the terminal utilization of hydrogen energy storage is diversified. Not only can hydrogen be used to generate electricity through fuel cells when wind power output is insufficient to supplement the grid and be used for distributed power supply to reduce peaks and fill valleys, but it can also directly supply energy to hydrogen loads.

[0043] The master-slave game model of one master and two followers in step 2 includes three basic elements, which are participants, strategies, and benefits / payments; the participants include leaders and followers; the leader is the operator of the electric-hydrogen integrated energy system, and the leader's strategy is the hydrogen selling price of the electric-hydrogen integrated energy system operator. The goal of the leader's strategy is to maximize the profit of the electric-hydrogen integrated energy system operator from hydrogen selling. The strategy formulated by the electric-hydrogen integrated energy system operator is the basis for the followers to formulate strategies; the followers include two followers, which are energy storage behavior and hydrogen selling behavior, respectively. The follower strategy includes energy storage behavior strategy The energy storage behavior and hydrogen sales behavior strategies are used, the hydrogen purchasing power and electricity selling power in each period are used as the energy storage behavior strategy, and the hydrogen load response in each period is used as the hydrogen sales behavior strategy. The energy storage behavior and hydrogen sales behavior are regarded as two virtual players of the electric-hydrogen integrated energy system operator; the energy storage behavior strategy and the hydrogen sales behavior strategy adjust the revenue / payment functions of the energy storage behavior and the hydrogen sales behavior respectively, and feed back the revenue / payment functions of the energy storage behavior and the hydrogen sales behavior under their respective strategies to the leader; the leader influences the follower strategy through its own strategy, thereby indirectly determining its own revenue function. The leader is in a dominant position in the entire game process.

[0044] The expression of the master-slave game model of one master and two slaves is: G = {L; Ω; I}; in the expression, G is the set of master-slave game models of one master and two slaves, L is the participant, Ω is the strategy, and I is the income / payment:

[0045]

[0046] In formula (9), L EHIESO , L ESB , L HSB They are the participants of the electric-hydrogen integrated energy system operator, energy storage behavior, and hydrogen sales behavior; Ω EHIESO ,Ω ESB ,Ω HSB The game strategy set corresponding to the participants of the electric-hydrogen integrated energy system operator, energy storage behavior, and hydrogen sales behavior; I EHIESO ,I ESB ,I HSB are the revenue / payment functions corresponding to the participants of the electric-hydrogen integrated energy system operator, energy storage behavior, and hydrogen sales behavior; G is a set of master-slave game models with one master and two slaves.

[0047] The follower strategy affects the hydrogen selling price of the electric-hydrogen integrated energy system operator, and also affects the profit function of the electric-hydrogen integrated energy system operator; the goal of the profit function of the electric-hydrogen integrated energy system operator is to maximize the hydrogen selling profit of the electric-hydrogen integrated energy system operator.

[0048] The objective of the payment function of the hydrogen selling behavior is to minimize the hydrogen use cost; the objective of the revenue function of the energy storage behavior is to maximize the difference between the electricity selling revenue and the hydrogen purchase cost.

[0049] The method proposed in the present invention seeks to optimize the overall benefits of the system, and regards the energy storage behavior and the hydrogen sales behavior as two virtual players and followers of the game, and the operator of the electric hydrogen integrated energy system is the leader; the master-slave architecture game fully considers the relationship and interaction between the leader and the follower. The specific game diagram is as follows: Figure 2 shown.

[0050] Before using the master-slave game idea to solve the problem, the present invention first sorts out the basic ideas of the game and clarifies the focus of each participant. Due to the randomness of wind power and the adjustability of terminal utilization, how to reasonably optimize the operation to absorb wind power and adjust the hydrogen selling price to maximize the profit of energy sales is the focus of the operators of the electric-hydrogen integrated energy system; how to reasonably adjust the electric-hydrogen integrated energy system operator's own hydrogen purchase, electricity selling power, and hydrogen load response in each time period according to different hydrogen selling prices to improve economic benefits within an acceptable energy consumption experience is a key issue of energy storage behavior and hydrogen sales behavior; it can be seen that the electric-hydrogen integrated energy system operator, energy storage behavior, and hydrogen sales behavior belong to different interest entities and there is no agreement between them. Each has different strategies and benefit / payment functions, but the benefit / payment functions are affected by the other party's strategies. It is a typical master-slave game problem.

[0051] The step 3 imposes conditional constraints on the electric-hydrogen integrated energy system, specifically comprising the following steps:

[0052] Step 3-1: Establish relevant objective functions, which include the benefit / payment function corresponding to each participant;

[0053] Step 3-2: Establish system constraints to constrain the electric hydrogen integrated energy system (EHIES).

[0054] In the master-slave game model of one master and two followers, maximizing the benefit or minimizing the payment of each participant is the goal pursued by each participant in the game. It is a function of strategy. Reasonable construction of the benefit / payment function has a great influence on the solution of the master-slave game model of one master and two followers; the benefit / payment functions corresponding to the participants in step 3-1 include the leader game benefit function and the follower benefit / payment function.

[0055] The leader in the leader game payoff function refers to the operator of the electric-hydrogen integrated energy system. The game strategy set of the operator of the electric-hydrogen integrated energy system is The maximum profit of selling hydrogen is obtained through the leader game profit function, I EHIESO Refers to the profit of selling hydrogen. The leader game profit function is shown in formula (10):

[0056]

[0057] In the formula, For the proceeds from the sale of hydrogen; Cost of purchasing electricity from external power grid; is the selling price of hydrogen; is the power of hydrogen after compression; They are respectively the electricity purchase price and electricity sales price from the external power grid, the electricity purchase volume and electricity sales volume from the external power grid; t=1 is taken as a time scale, where △t is the sampling step.

[0058] The follower revenue / payment function includes a payment function for hydrogen selling behavior (HSB) and a revenue function for energy storage behavior (ESB).

[0059] The hydrogen selling behavior (HSB) is affected by the hydrogen selling price of the operator of the electric-hydrogen integrated energy system. The game strategy set of hydrogen selling behavior (HSB) is is the hydrogen load response, through the payment function I of hydrogen selling behavior HSB The minimum cost of hydrogen energy is obtained, and the payment function of hydrogen selling behavior (HSB) is shown in formula (11):

[0060]

[0061] In the formula, The cost of purchasing energy; for the cost of discomfort; is the amount of hydrogen purchased from EHIESO, the operator of the electric-hydrogen integrated energy system; μ h When calculating the discomfort cost, the hydrogen load response amount is calculated based on the hydrogen load that can be reduced. Considering that the discomfort cost is a quadratic function of the hydrogen load response, the amount of hydrogen purchased from the operator of the electric-hydrogen integrated energy system The difference between the predicted hydrogen load and the hydrogen load response is as follows (12). The amount of hydrogen purchased from the electric hydrogen integrated energy system operator EHIESO and the hydrogen load response both have upper limits:

[0062]

[0063] In the formula, is the predicted value of hydrogen load.

[0064] The energy storage behavior (ESB) is affected by the hydrogen selling price of the electric-hydrogen integrated energy system operator. The game strategy set of energy storage behavior is in The power of purchasing hydrogen for each period of time, is the electricity sold in each period; considering the intermittent nature of wind power, there will be a situation where supply is less than demand in the electric hydrogen integrated energy system EHIES, at this time, energy storage behavior needs to discharge to supplement electricity; the excess hydrogen energy will be stored to make the system run safely and stably; so the target of the revenue function of energy storage behavior (ESB) is the profit of energy storage behavior I ESB Maximum, as shown in formula (13):

[0065]

[0066] In the formula, For the revenue from electricity sales, For the cost of purchasing hydrogen, The market electricity price.

[0067] The system constraints established in step 3-2 include: 1) high-pressure hydrogen storage equipment-fuel cell system constraints; 2) electrolyzer and fuel cell output regulation EHIES balance; 3) electricity purchase price constraints of the operator of the electric-hydrogen integrated energy system.

[0068] The high-pressure hydrogen storage device-fuel cell system constraint is used to impose certain device constraints on the system composed of the high-pressure hydrogen storage device-fuel cell. The high-pressure hydrogen storage device-fuel cell system constraint is specifically shown in equations (14)-(16):

[0069]

[0070]

[0071] E e (0) = E e (T) (16);

[0072] In the formula, Hydrogen charging efficiency; is the discharge efficiency; E e (t) is the real-time storage capacity; is the maximum reserve; is the minimum reserve ratio; the high-pressure hydrogen storage device-fuel cell must ensure that the reserve is consistent at the beginning and end of the daily cycle, so formula (16) is used to constrain the capacity at the beginning of the next cycle.

[0073] The output of the electrolyzer and fuel cell is regulated by the EHIES balance, as shown in formula (17):

[0074]

[0075] In the formula, The power load forecast;

[0076] The power purchase price constraints of the electric-hydrogen integrated energy system operator are specifically as shown in equations (18) and (19):

[0077]

[0078]

[0079] In the formula, is the minimum market electricity price.

[0080] In order to ensure that the electricity load in the electric hydrogen integrated energy system EHIES is not traded separately with the outside world, the electricity purchase price of the hydrogen integrated energy system operator should be within a certain range, that is, satisfying equations (18) and (19).

[0081] The necessary and sufficient conditions for the existence of a unique equilibrium solution of the master-slave game are: 1. The leader's game payoff function is non-empty and continuous for its strategy set; 2. The follower's payoff / payment function is a continuous quasi-concave function of its strategy set; in the present invention, the operator of the electric-hydrogen integrated energy system is the leader and its strategy set is The first term in its game payoff function is related to the hydrogen selling price, which is a continuous function of the strategy. As a follower, the second term of its payment function is related to its strategy and is in the form of a quadratic function. Taking the second-order partial derivative of the variables, a constant greater than 0 can be obtained. The first and second terms in the payoff function of the energy storage behavior are respectively related to the strategy set The payoff function of the energy storage behavior is a continuous quasi-concave function of its strategy set; in summary, the master-slave game proposed in the present invention has a unique equilibrium solution, proving that the master-slave game with one master and two slaves has a Stackelberg equilibrium.

[0082] The step 4 uses a genetic algorithm to solve the master-slave game model of one master and two slaves established in step 2, by introducing information entropy into the genetic algorithm to calculate the initial population and designing a fitness function to solve the model, specifically including the following steps: step 4-1 adds an information entropy threshold to form an improved genetic algorithm based on the genetic algorithm; step 4-2 solves the Stackelberg equilibrium.

[0083] The step 4-1 adds an information entropy threshold to form an improved genetic algorithm based on the genetic algorithm, and specifically includes:

[0084] 1) Use information entropy to initialize the population. In order to make the initial population evenly distributed in the solution space and avoid concentrated distribution in local areas of the solution space, the process includes the following steps:

[0085] a) Step 1: Set the critical entropy value S0;

[0086] b) Step 2: Randomly generate individuals in the population;

[0087] c) Step 3: Generate an individual each time in the same way and calculate the entropy value S with the existing individuals; if S>S0, then accept this individual; otherwise, reject it; in this case, regenerate a new individual and calculate the entropy value S until the condition S>S0 is met;

[0088] d) Step 4: Repeat steps b)-c) until the number of individuals reaches the specified initial population number;

[0089] 2) Use information entropy to redesign the fitness function. In the genetic algorithm, calculate the fitness function value of each individual, and obtain the distribution characteristic function through statistical analysis. Then, obtain the probability of different solutions, and calculate the information entropy according to formula (20). Finally, determine the diversity degree of the population.

[0090]

[0091] In the above formula, I represents all individuals; P i represents the probability of the occurrence of the ith individual.

[0092] Based on the above analysis, the steps of improving the genetic algorithm based on information entropy in the present invention are as follows: Figure 3 .

[0093] When forming the initial population, the traditional genetic algorithm is prone to produce identical individuals and converge to the local optimum due to its strong randomness and irregularity. If the optimization is performed by increasing the number of initial populations, the overall optimization speed of the algorithm will be slowed down. In order to maintain the diversity of each generation of populations and optimize the new population retention method, on the basis of the genetic algorithm, an information entropy threshold is added to reduce the similarity coefficient between the generated initial populations to a certain extent, and more efficiently search for as many feasible solutions as possible in a limited space, so as to obtain the optimal solution of the model in a shorter time.

[0094] The present invention adopts a genetic algorithm with information entropy introduced to solve the EHIES optimization operation problem, and introduces Rosenbrock, Rastrigin and Schaffer functions to verify the effectiveness of the genetic algorithm with information entropy introduced.

[0095] The Rosenbrock function is characterized by few known conditions and in (x1,...,x n )=(1,…,1), so it is difficult to find the optimal solution; the Rastrigin function is a nonlinear function and there are a large number of points where the derivative on the left side of x0 is less than 0 and the derivative on the right side is greater than 0. In particular, a global minimum point can be found at x0; the Schaffe function is characterized by a multi-peak distribution and a global maximum point can be found at the origin.

[0096] The step 4-2 solves the Stackelberg equilibrium, and the process of solving the game model is as follows Figure 4 As shown, it specifically includes: solving the sub-game equilibrium by solving the improved genetic algorithm.

[0097] Combining the two stages of the master-slave game, the steps of the improved genetic algorithm solution are as follows:

[0098] 1) First, generate the corresponding hydrogen selling price population, i.e. the first stage decision;

[0099] 2) Under various groups, followers search for the best strategy based on the price and use the improved genetic algorithm to obtain the optimal strategy under the current hydrogen selling price, which is the second stage decision;

[0100] 3) After the follower completes the optimization, it can summarize the information of hydrogen purchase power, electricity sales power, and hydrogen load response. At this time, the EHIESO benefit function, that is, the fitness function in the genetic algorithm, can also be obtained;

[0101] 4) According to the fitness function, the price population is selected, crossed and mutated to generate the next generation of hydrogen selling price population, and then jump to step 1) until the Stackelberg equilibrium is reached and the algorithm iteration is exited.

[0102] The subgame equilibrium is achieved when the decision-making in the second stage is optimal. When the optimal price strategies found by two consecutive generations of the upper genetic algorithm are the same and the decision-making in the first stage is optimal, it can be considered that all entities have achieved the optimal state in each stage.

[0103] In order to verify the effectiveness of the present invention, different optimization methods of the electric-hydrogen integrated energy system are used for comparison in the same application scenario. Figure 1 The electric-hydrogen integrated energy system is used as an example. Matlab R2014a is used to compile the algorithm program, and the matpower toolbox is called to perform power flow calculation. The simulation computer processor is Intel(R) Core(TM) i5-10210U CPU@1.60GHz, and the memory is 8GB. The number of individuals in the genetic algorithm population is N. pop =100; the wind power forecast output for each period is as follows Figure 5 , the predicted electricity load and hydrogen load power are as follows Figure 6 .

[0104] The final calculation results of the present invention show that the optimization operation method of the electric-hydrogen integrated energy system based on master-slave game can effectively improve the overall economic benefits of the system. At the same time, the improved information entropy genetic algorithm has strong optimization ability, solution accuracy and stability.

[0105] In order to verify the effectiveness of the proposed method, this paper will conduct simulation comparisons from the following three schemes:

[0106] a) Scheme 1: A multi-objective optimization model is established with the goals of maximizing the profit of hydrogen sales of EHIESO, maximizing the profit of energy storage behavior, and minimizing the cost of hydrogen use by HSB, and the Pareto method is used to solve it;

[0107] b) Scheme 2: With EHIESO as the leader and ESB as the follower, HSB is not considered, a master-slave game model is established, and an improved genetic algorithm is used to solve it;

[0108] c) Solution 3: The method for optimizing the operation of the electric-hydrogen integrated energy system based on the master-slave game of the present invention is adopted, with EHIESO as the leader, the hydrogen selling price as the strategy, and the hydrogen selling profit as the revenue function; ESB and HSB are followers, and the hydrogen purchasing power, electricity selling power, and hydrogen load response in each time period are used as strategies to adjust the profits of electricity selling and hydrogen purchasing to maximize and the hydrogen cost to minimize, a master-slave game model is established, and an improved genetic algorithm is used to solve it.

[0109] In scheme 1, in order to avoid the result error caused by ignoring the competitive relationship between various benefit / payment functions, a multi-iteration direction Pareto solution set dynamic update strategy is adopted to select the optimal solution from the Pareto non-inferior solution set; Figure 7 The optimal solution results of Scheme 1 and Scheme 3 show the relationship between the Pareto solution set and the Stackelberg equilibrium solution. The two solutions are similar but different because the process of selecting the optimal particle is highly random in the process of solving the model using the Pareto method, so the result of the non-inferior solution is not unique. Scheme 3 is modeled on the basis of the master-slave structure game idea. On the basis of proving the existence of the Stackelberg equilibrium solution, considering that the leader and the follower are iterating independently, the two will not change their strategies separately, so the only Stackelberg equilibrium solution is obtained. At this time, the profit of EHIESO is 672.65 yuan, the profit of ESB is 85.51 yuan, and the cost of HSB is 898.90 yuan.

[0110] In order to analyze the impact of HSB as a virtual player participating in the master-slave game on the economic efficiency of EHIESO, the profit function results of EHIESO under Scheme 2 and Scheme 3 are compared. The comparison results are shown in the figure below. Figure 8 As shown, from Figure 8 It can be seen that both Scheme 2 and Scheme 3 eventually converge to a fixed profit value, which is the equilibrium solution of the master-slave game. It also proves the existence of the equilibrium solution. Compared with Scheme 2 without considering HSB, Scheme 3 has higher economic benefits, up 32%, mainly because HSB is taken into account. The distribution of hydrogen enables EHIES to have the right to adjust the price. When the three-party game of EHIESO, HSB and ESB is taken into account, the hydrogen purchase power, electricity sales power and hydrogen load response in each period will affect the current hydrogen sales price, and the benefit / payment function will be optimized according to its own strategy. Therefore, HSB and ESB, as followers, have a promoting effect on improving the economy of the system.

[0111] For ESB, its strategy is to purchase hydrogen power and sell electricity power. The changes in the daily hydrogen storage capacity of high-pressure hydrogen storage equipment can be seen in Fig. 9 ;from Fig. 9It can be seen that in the time periods of 0:00-8:00, 9:00-12:00, and 23:00-24:00, EHIES consumes excess wind power and produces hydrogen by electrolyzers. At this time, the high-pressure hydrogen storage equipment has been in a hydrogen storage state; in the time period of 12:00-19:00, EHIES uses fuel cells to convert part of the hydrogen energy into electricity for sale; in the time periods of 8:00-9:00 and 19:00-23:00, the excess hydrogen is considered to be sold directly. The sale of hydrogen can increase the overall economic benefits. Therefore, the participation of HSB promotes the coupling of electricity and hydrogen, and the profit from hydrogen sales also increases the increase in EHIESO's revenue.

[0112] The price of hydrogen sold by EHIESO at each hour is Fig.10 As shown in the figure, the difference in hydrogen prices is particularly large during peak hours (11:00-13:00, 17:00-2:00). Under the optimal operation mode, the peak hydrogen price increases from 1.106 yuan / (kW*h) in Scheme 1 to 1.165 yuan / (kW*h) in Scheme 3.

[0113] In the grid-connected EHIES, making full use of hydrogen sales and ESB can provide a more flexible hydrogen sales price strategy, which will play a positive role in guiding hydrogen and electricity loads to participate in the electricity market, improving economy and shaving peaks and filling valleys.

[0114] The optimization results of different schemes are shown in Table 1 below:

[0115]

[0116] Table 1

[0117] In Table 1, compared with Scheme 1, Scheme 3 has an increase of 48.72% in EHIESO profit, a decrease of 71.65% in ESB profit, but a decrease of 74.39% in HSB cost. This is because the solution obtained by the Pareto method in Scheme 1 has a strong randomness. Compared with Scheme 2, Scheme 3 has an increase of 32.02% in EHIESO profit, a decrease of 13.58% in ESB profit, but a decrease of 35.3% in HSB cost. This is because HSB participates in the game. Although HSB consumes part of the hydrogen, it also enhances the initiative of EHIESO, improves the overall economic benefits of the system, and enjoys greater room for price regulation.

[0118] The comparison between the improved genetic algorithm in the present invention and the traditional genetic algorithm is shown in Tables 2 to 4.

[0119] Tables 2 to 4 show the test results of three unconstrained Rosenbrock, Rastrigin and Schaffer functions when the number of iterations is 300, where the crossover probability is 0.8, the mutation probability is 0.1, and the information entropy threshold S0 is 0.7; Table 2 shows the results of the Rosenbrock function; Table 3 shows the results of the Rastrigin function; Table 4 shows the results of the Schaffe function.

[0120] algorithm Best solution Average solution The standard deviation of the optimal solution Traditional genetic algorithm 2.912 6.658 3.453 Improved genetic algorithm 2.491 3.721 1.945

[0121] Table 2

[0122] algorithm Best solution Average solution The standard deviation of the optimal solution Traditional genetic algorithm 7.077 12.721 17.062 Improved genetic algorithm 2.619 7.346 2.921

[0123] Table 3

[0124] algorithm Best solution Average solution The standard deviation of the optimal solution Traditional genetic algorithm 0.247 60.584 181.152 Improved genetic algorithm 0.142 24.268 36.002

[0125] Table 4

[0126] From the above experimental test results, it can be seen that the traditional genetic algorithm converges quickly, but its convergence speed and convergence accuracy are lower than the information entropy game genetic algorithm. For the function value of the initial population, the information entropy game genetic algorithm produces a better fitness function than the traditional genetic algorithm, indicating that the method based on information entropy can increase population diversity and optimize the initial population.

Claims

1. A method for optimizing the operation of an electric-hydrogen integrated energy system based on master-slave game, characterized in that The steps include: Step 1: Design the basic framework of the electric-hydrogen integrated energy system and build an integrated production and marketing structure; Step 2: Establish a master-slave game model with one master and two slaves; Step 3: Condition the electric-hydrogen integrated energy system; Step 4, using a genetic algorithm to solve the master-slave game model of one master and two slaves established in step 2; The basic structure of the electric-hydrogen integrated energy system includes wind turbines, power loads, electrolyzers, compressors, fuel cells, hydrogen loads, and high-pressure hydrogen storage equipment, wherein an electrolyzer-high-pressure hydrogen storage equipment-fuel cell device model is established between the electrolyzers, high-pressure hydrogen storage equipment, and fuel cells; the power load is provided by wind turbines, fuel cells, and external power grids; the excess wind power output is delivered to the electrolyzers; the electrolyzers obtain hydrogen by electrolyzing water, a portion of the hydrogen is stored in the high-pressure hydrogen storage equipment after passing through a compressor, and the hydrogen in the high-pressure hydrogen storage equipment supplies power to the power load through the fuel cell, thereby playing a role in peak shaving and valley filling; the other portion of the hydrogen is sold to the hydrogen load after passing through a compressor; The electrolyzer-high-pressure hydrogen storage device-fuel cell device model includes constraints on hydrogen production by the electrolyzer and power generation by the fuel cell, constraints on hydrogen storage and sales, constraints on the state of hydrogen in the high-pressure hydrogen storage device, and constraints on active and reactive power of the fuel cell grid-connected inverter; The constraints of hydrogen production by the electrolyzer and power generation by the fuel cell are as shown in equations (1) and (2); the constraints of hydrogen storage and sales are as shown in equations (3)-(5); the state constraints of hydrogen in the high-pressure hydrogen storage device are as shown in equations (6)-(7); the active and reactive power constraints of the fuel cell grid-connected inverter are as shown in equation (8); Where P P2G,t and P HE,t are the power consumption of hydrogen production by electrolysis and the power generated by the grid-connected inverter of the fuel cell at time t; α P2G is the hydrogen production loss coefficient; β HE is the power generation loss coefficient; They are the hydrogen production, hydrogen consumption and hydrogen sales at time t respectively; and are the upper and lower limits of the power required for hydrogen production, respectively; and are the upper and lower limits of the fuel cell power generation respectively; and The upper and lower limits of hydrogen sales volume; is the hydrogen storage capacity of the high-pressure hydrogen storage device at time t; and are the upper and lower limits of the hydrogen storage capacity in the high-pressure hydrogen storage equipment; Q HE,t is the reactive power generated by the fuel cell grid-connected inverter; S HE,t is the maximum apparent power of the fuel cell grid-connected inverter; Δt is the sampling step length; The expression of the master-slave game model of one master and two slaves is: G = {L; Ω; I}; in the expression, G is the set of master-slave game models of one master and two slaves, L is the participant, Ω is the strategy, and I is the income / payment: In formula (9), L EHIESO , L ESB , L HSB They are the participants of the electric-hydrogen integrated energy system operator, energy storage behavior, and hydrogen sales behavior; Ω EHIESO ,Ω ESB ,Ω HSB The game strategy set corresponding to the participants of the electric-hydrogen integrated energy system operator, energy storage behavior, and hydrogen sales behavior; I EHIESO ,I ESB ,I HSB are the revenue / payment functions corresponding to the participants of the electric-hydrogen integrated energy system operator, energy storage behavior, and hydrogen sales behavior; G is a set of master-slave game models with one master and two slaves.

2. According to claim 1, a method for optimizing the operation of an electric-hydrogen integrated energy system based on master-slave game, characterized in that The master-slave game model of one master and two followers includes three basic elements, which are participants, strategies, and benefits / payments; the participants include leaders and followers; the leader is the operator of the electric-hydrogen integrated energy system, the leader's strategy is the hydrogen selling price of the electric-hydrogen integrated energy system operator, and the goal of the leader's strategy is to maximize the hydrogen selling profit of the electric-hydrogen integrated energy system operator. The strategy formulated by the electric-hydrogen integrated energy system operator is the basis for the followers to formulate strategies; the followers include two followers, which are energy storage behavior and hydrogen selling behavior, respectively. The follower strategies include energy storage behavior strategy and hydrogen selling behavior strategy, using the hydrogen purchase power and electricity selling power in each time period as the energy storage behavior strategy, and using the hydrogen load response amount in each time period as the hydrogen selling behavior strategy. The energy storage behavior and hydrogen selling behavior are regarded as two virtual players of the electric-hydrogen integrated energy system operator; the energy storage behavior strategy and the hydrogen selling behavior strategy respectively adjust the benefit / payment functions of the energy storage behavior and the hydrogen selling behavior, and feed back the benefit / payment functions of the energy storage behavior and the hydrogen selling behavior under their respective strategies to the leader; the leader influences the follower strategy through its own strategy, thereby indirectly determining its own benefit function, and the leader is in a dominant position in the entire game process.

3. The method for optimizing the operation of an electric-hydrogen integrated energy system based on master-slave game according to claim 1 is characterized in that The step 3 imposes conditional constraints on the electric-hydrogen integrated energy system, specifically comprising the following steps: Step 3-1, establish relevant objective functions, the relevant objective functions include the corresponding benefit / payment function of each participant; the corresponding benefit / payment function of the participant includes the leader game benefit function and the follower benefit / payment function; Step 3-2: Establish system constraints to constrain the electric-hydrogen integrated energy system; The leader in the leader game payoff function refers to the operator of the electric-hydrogen integrated energy system. The game strategy set of the operator of the electric-hydrogen integrated energy system is The maximum profit of selling hydrogen is obtained through the leader game profit function, I EHIESO Refers to the profit of selling hydrogen. The leader game profit function is shown in formula (10): In the formula, For the proceeds from the sale of hydrogen; Cost of purchasing electricity from external power grid; is the selling price of hydrogen; is the power of hydrogen after compression; They are respectively the electricity purchase price from external power grid, electricity sales price, electricity purchase quantity from external power grid, and electricity sales quantity; t=1 is taken as a time scale.

4. The method for optimizing the operation of an electric-hydrogen integrated energy system based on master-slave game according to claim 3 is characterized by: The follower revenue / payment function includes a payment function for hydrogen sales and a revenue function for energy storage; The hydrogen selling behavior is affected by the hydrogen selling price of the operator of the electric-hydrogen integrated energy system. The game strategy set of hydrogen selling behavior is is the hydrogen load response, through the payment function I of hydrogen selling behavior HSB The minimum cost of hydrogen energy is obtained, and the payment function of hydrogen sales behavior is shown in formula (11): In the formula, The cost of purchasing energy; for the cost of discomfort; is the amount of hydrogen purchased from EHIESO, the operator of the electric-hydrogen integrated energy system; μ h When calculating the discomfort cost, the hydrogen load response amount is calculated based on the hydrogen load that can be reduced. Considering that the discomfort cost is a quadratic function of the hydrogen load response, the amount of hydrogen purchased from the operator of the electric-hydrogen integrated energy system is the difference between the predicted value of hydrogen load and the response value of hydrogen load, as shown in the following formula (12). Both the amount of hydrogen purchased from the operator of the electric-hydrogen integrated energy system and the response value of hydrogen load have upper limits: In the formula, is the predicted value of hydrogen load; The energy storage behavior is affected by the hydrogen selling price of the operator of the electric-hydrogen integrated energy system. The game strategy set of energy storage behavior is in The power of purchasing hydrogen for each period of time, is the electricity sales power in each period; the target of the revenue function of energy storage behavior is the profit of energy storage behavior I ESB Maximum, as shown in formula (13): In the formula, For the revenue from electricity sales, For the cost of purchasing hydrogen, The market electricity price.

5. The method for optimizing the operation of an electric-hydrogen integrated energy system based on master-slave game according to claim 1 is characterized in that The step 4 uses a genetic algorithm to solve the master-slave game model of one master and two slaves established in step 2, and specifically includes the following steps: step 4-1, on the basis of the genetic algorithm, adding an information entropy threshold to form an improved genetic algorithm; step 4-2 solves the Stackelberg equilibrium; The step 4-1 adds an information entropy threshold to form an improved genetic algorithm based on the genetic algorithm, and specifically includes: 1) Use information entropy to initialize the population. The process includes the following steps: a) Step 1: Set the critical entropy value S0; b) Step 2: Randomly generate individuals in the population; c) Step 3: Generate an individual each time in the same way and calculate the entropy value S with the existing individuals; if S>S0, then accept this individual; otherwise, reject it; in this case, regenerate a new individual and calculate the entropy value S until the condition S>S0 is met; d) Step 4: Repeat steps b)-c) until the number of individuals reaches the specified initial population number; 2) Use information entropy to redesign the fitness function. In the genetic algorithm, calculate the fitness function value of each individual, and obtain the distribution characteristic function through statistical analysis. Then, obtain the probability P of different solutions, and calculate the information entropy H according to formula (20). Finally, determine the diversity degree of the population. In the above formula, I represents all individuals; P i represents the probability of the occurrence of the ith individual.

6. The method for optimizing the operation of an electric-hydrogen integrated energy system based on master-slave game according to claim 5 is characterized by: The step 4-2 solves the Stackelberg equilibrium, specifically including: solving the sub-game equilibrium by solving the improved genetic algorithm, the specific steps are as follows: 1) First, generate the corresponding hydrogen selling price population, i.e. the first stage decision; 2) Under various groups, followers search for the best strategy based on the price and use the improved genetic algorithm to obtain the optimal strategy under the current hydrogen selling price, which is the second stage decision; 3) After the follower completes the optimization, it summarizes the information of hydrogen purchase power, electricity sales power, and hydrogen load response, and then obtains the EHIESO profit function, which is the fitness function in the genetic algorithm; 4) According to the fitness function, the price population is selected, crossed and mutated to generate the next generation of hydrogen selling price population, and then jump to step 1) until the Stackelberg equilibrium is reached and the algorithm iteration is exited.