Hydrogen-electric energy storage power demand response load optimization method and electronic device

By constructing a hydrogen-electric energy storage load optimization model and using an unconstrained transformation function for solution, the problems of accuracy and speed in load optimization of hydrogen-electric energy storage in power systems were solved, achieving overall optimal operation of the power system and safe operation of equipment.

CN117239720BActive Publication Date: 2026-11-20INST OF ECONOMIC & TECH STATE GRID HEBEI ELECTRIC POWER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311065433.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-23
Publication Date
2026-11-20
Estimated Expiration
2043-08-23

AI Technical Summary

Technical Problem

In existing technologies, research on hydrogen-electric energy storage has not covered the field of power system demand response. Furthermore, traditional algorithms are slow to solve problems and are prone to getting trapped in local optima, which affects the accuracy of load optimization and makes it impossible to effectively regulate load and hydrogen-electric energy storage, resulting in suboptimal overall power system operation.

Method used

A load optimization model considering hydrogen-electric energy storage is constructed with the goal of minimizing the operating cost of the power system. The model is reconstructed and solved using an unconstrained transformation function, taking into account the charging and discharging power of hydrogen-electric energy storage and the optimal load allocation of user equipment as decision variables, so as to achieve effective regulation of load and hydrogen-electric energy storage.

Benefits of technology

It enables the rapid and accurate determination of the charging and discharging power of hydrogen-electric energy storage and the optimal load allocation of user equipment, taking into account demand response and hydrogen-electric energy storage, thus meeting the overall optimal operation of the power system and the operational requirements of the equipment, and improving the solution speed and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117239720B_ABST
    Figure CN117239720B_ABST
Patent Text Reader

Abstract

The application is suitable for the technical field of power system electricity control and dispatching control, and provides a power demand response load optimization method considering hydrogen-electric energy storage and an electronic device. The method comprises the following steps: constructing a load optimization model considering hydrogen-electric energy storage with the minimum power system operation cost as an objective function; according to the state of power supply, performing time sequence decoupling solution on the load optimization model to determine decision variables; when the power supply is loss, taking the charging and discharging power of hydrogen-electric energy storage and the optimal load distribution of user equipment as decision variables, reconstructing the load optimization model based on the constructed unconstrained conversion function; and solving the reconstructed load optimization model. The application can simultaneously consider demand response and hydrogen-electric energy storage, realize effective regulation and control of load and hydrogen-electric energy storage, meet the operation requirements of various equipment and load and the overall safe operation of the power grid, and can improve the solution speed and accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power system power consumption control and dispatch control technology, specifically to a power demand response load optimization method and electronic equipment that considers hydrogen-electric energy storage. Background Technology

[0002] With the increasing diversification of load resources in smart grids, the "source follows load" model is gradually transforming into "source-load interaction." To better achieve a balance between supply and demand for power sources and loads, demand response is becoming increasingly important. Demand response (DR) refers to the process by which adjustable loads in a power system change their electricity demand based on electricity market prices and grid requirements, thus regulating the "peak-valley characteristics" of the grid. On the one hand, DR users can obtain certain price-based or incentive-based benefits; on the other hand, DR can maintain the supply-demand balance and stable operation of the entire power system.

[0003] In recent years, driven by the goals of "carbon peaking and carbon neutrality," the role of large-scale energy storage systems in new power systems has become increasingly prominent. Besides electrochemical energy storage, which has been extensively studied, hydrogen energy storage, with its characteristics of large scale, spanning time and space, long duration, and rapid response, is a crucial regulatory resource for future power systems. Currently, the focus of energy storage research is gradually shifting from single-storage to hybrid energy storage. Hydrogen-electric energy storage (ESHE) is a typical example of energy storage that fully utilizes hydrogen energy, and it has broad application prospects in future power systems, serving as an important means to smoothly regulate the "peak-valley characteristics" of the power grid.

[0004] However, current research on ESHE (Energy Response System) primarily focuses on its planning, configuration, and scheduling strategies, as well as its operational optimization in coordination with renewable energy generation, neglecting the field of power system demand response. Both demand response and hydrogen-electric storage are crucial tools for regulating grid operation in future new power systems. Furthermore, current technologies typically employ genetic algorithms, particle swarm optimization, or mixed-integer optimization toolkits to solve the constructed optimization models or functions. These algorithms suffer from slow solution speeds and a tendency to get trapped in local optima, impacting the final optimization results and consequently the accuracy of load optimization. Therefore, there is an urgent need for a power demand response (DR considering ESHE, DR-ESHE) load optimization method that considers hydrogen-electric storage, combined with a decoupling method that offers fast solution speeds and avoids local optima traps. This would enable effective regulation of load and hydrogen-electric storage, achieving optimal overall power system operation and meeting the operational requirements of various devices and loads, as well as ensuring the overall safe operation of the power grid. Summary of the Invention

[0005] In view of this, embodiments of this application provide a power demand response load optimization method and electronic device that considers hydrogen-electric energy storage, in order to solve the technical problem in related technologies that it is impossible to achieve effective control of load and hydrogen-electric energy storage, and thus impossible to achieve optimal overall operation of the power system.

[0006] In a first aspect, embodiments of this application provide a load optimization method for power demand response considering hydrogen-electric energy storage, comprising: taking minimizing the operating cost of the power system as the objective function, and using supply and demand balance constraints, user equipment operation constraints, hydrogen-electric energy storage operation constraints, power grid flow constraints, network loss constraints, line flow constraints, node voltage constraints, and traditional power source operation constraints as constraints, and constructing a load optimization model considering hydrogen-electric energy storage;

[0007] Based on the power supply status, the load optimization model is solved by time-series decoupling to determine the decision variables. When the power supply is in deficit, the charging and discharging power of hydrogen-electric energy storage and the optimal load allocation of user equipment are used as decision variables, and an unconstrained transformation function is constructed. The load optimization model is reconstructed based on the unconstrained transformation function. The reconstructed load optimization model is solved to determine the charging and discharging power of hydrogen-electric energy storage and the optimal load allocation of user equipment.

[0008] Secondly, embodiments of this application provide a power demand response load optimization device that considers hydrogen-electric energy storage, comprising:

[0009] The model building module is used to construct a load optimization model that considers hydrogen-electric storage, with the objective function of minimizing the operating cost of the power system and the constraints of supply and demand balance constraints, user equipment operation constraints, hydrogen-electric storage operation constraints, grid power flow constraints, network loss constraints, line power flow constraints, node voltage constraints, and traditional power source operation constraints.

[0010] The model solving module is used to perform time-series decoupling solution of the load optimization model based on the power supply status to determine decision variables. Specifically, when the power supply is in deficit, the charging and discharging power of hydrogen-electric energy storage and the optimal load allocation of user equipment are used as decision variables, and an unconstrained transformation function is constructed. The load optimization model is reconstructed based on the unconstrained transformation function. The reconstructed load optimization model is then solved to determine the charging and discharging power of hydrogen-electric energy storage and the optimal load allocation of user equipment.

[0011] Thirdly, embodiments of this application provide an electronic device, including a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the computer program, it implements the power demand response load optimization method considering hydrogen-electric energy storage as described in any of the first aspects.

[0012] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the power demand response load optimization method considering hydrogen-electric energy storage as described in any of the first aspects.

[0013] Fifthly, embodiments of this application provide a computer program product that, when run on an electronic device, causes the electronic device to execute the power demand response load optimization method considering hydrogen-electric energy storage as described in any of the first aspects above.

[0014] It is understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here.

[0015] The power demand response load optimization method and electronic device considering hydrogen-electric energy storage provided in this application have the objective function of minimizing the operating cost of the power system. A load optimization model considering hydrogen-electric energy storage is constructed. When the power supply is in deficit, the charging and discharging power of hydrogen-electric energy storage and the optimal load allocation of user equipment are used as decision variables. An unconstrained transformation function is constructed, and the load optimization model is reconstructed and solved based on the unconstrained transformation function. This allows for the simultaneous consideration of demand response and hydrogen-electric energy storage, obtaining the charging and discharging power of hydrogen-electric energy storage and the optimal load allocation of user equipment. Effective regulation of load and hydrogen-electric energy storage is achieved, thereby realizing the optimal overall operation of the power system, meeting the operational requirements of various devices and loads, and ensuring the overall safe operation of the power grid. Furthermore, reconstructing and solving the load optimization model based on the constructed unconstrained transformation function improves the solution speed and accuracy.

[0016] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this specification. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a flowchart illustrating a method for optimizing electricity demand response load considering hydrogen-electric energy storage, provided in an embodiment of this application.

[0019] Figure 2 This is a schematic diagram comparing the solution effects of an unconstrained transformation function and a penalty function provided in an embodiment of this application;

[0020] Figure 3 This is a flowchart of hydrogen-electric coordination correction in hydrogen-electric energy storage according to an embodiment of this application;

[0021] Figure 4 This is a schematic diagram of the structure of a power demand response load optimization device considering hydrogen-electric energy storage according to an embodiment of this application;

[0022] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0023] The present application will be described more clearly below with reference to specific embodiments. These embodiments will help those skilled in the art to further understand the function of the present application, but do not limit the present application in any way. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application. These all fall within the protection scope of the present application.

[0024] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0025] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0026] In the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0027] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0028] Furthermore, the term "multiple" mentioned in the embodiments of this application should be interpreted as two or more.

[0029] Hydrogen-electric energy storage comprises two core components: a hydrogen energy storage system (also known as hydrogen energy storage) and electrical energy storage (also known as electrical energy storage). The overall charge / discharge power of hydrogen-electric energy storage is Pt(ES) = Pt(H) + Pt(E), and the total amount of electricity stored in hydrogen-electric energy storage is... Among them, P t (ES) Let Pt(H) represent the charging and discharging power of the hydrogen-electric energy storage at time t, and let Pt(E) represent the charging and discharging power of the electrical energy storage in the hydrogen-electric energy storage at time t. Let Q represent the charging and discharging power of the hydrogen-electric energy storage at time t. t (ES) This represents the capacity of the hydrogen-electric energy storage at time t. This represents the equivalent energy of hydrogen storage at time t. This represents the amount of electrical energy stored at time t.

[0030] A day-ahead demand response strategy is a demand response strategy formulated one or several days in advance for the current day, mainly including contractual and pricing methods. In the power system, this application categorizes users corresponding to user equipment into Class I, Class II, and Class III users based on their willingness to participate in demand response.

[0031] One type of user is the load-adjustable and price-sensitive user, meaning the load is fully adjustable. These users dynamically adjust their equipment's electricity consumption based on electricity prices, prioritizing minimizing electricity costs while meeting their daily electricity needs. For example, many factory production facilities only need to meet the total daily operating hours to achieve the expected daily production capacity; therefore, the operating time of the production equipment can be dynamically adjusted to minimize electricity costs. This type of user is the primary user in demand response, referred to here as "response users," or a different category of users. Differential electricity prices (subsidized or penalized prices) can be set for different categories of users to achieve demand response.

[0032] Category II users are those with adjustable loads and insensitive prices, meaning users whose loads are partially adjustable. These users achieve demand response through day-ahead contract negotiations, such as certain industrial parks with adjustable loads. These users require a fixed daily electricity load (equipment) based on actual conditions before demand response; they are referred to here as "contract users," or Category II users. This involves comprehensively considering the optimal operation of the power system and the acceptability of user load control, and establishing an electricity contract through day-ahead negotiations, thus determining the start-up and shutdown status of each piece of equipment corresponding to Category II users. Simultaneously, the electricity consumption curve adjusted according to the electricity contract can be equivalently considered as a "baseline load" in price response.

[0033] The third type of user is the user with non-adjustable load, which means the user does not participate in demand response. This type of user operates according to their own electricity needs every day, and the load of their electrical equipment is always the "baseline load". Here, they are called "fixed users", which are the third type of users.

[0034] To address the problems raised in the background of this application, the inventors have discovered that hydrogen-electric energy storage and demand response can be considered simultaneously, and a load optimization model can be constructed with the goal of minimizing the operating cost of the power system. This load optimization model covers the entire day, meaning it can solve for the decision variables corresponding to 24 moments throughout the 24-hour period. This is because demand response is required when the power supply is in deficit, but not when it is not. Furthermore, there may be times of power supply deficit and times of power supply not being in deficit throughout the 24 hours of the day. Moreover, unlike traditional power demand response, the demand response considering hydrogen-electric energy storage has time-series characteristics. That is, the "model parameters when demand response is required" are affected by the "model parameters when demand response is not required." Therefore, in this application, the load optimization model considering hydrogen-electric energy storage should be constructed for the entire 24-hour period, meaning the aforementioned load optimization model covers both scenarios of power supply deficit and power supply not being in deficit.

[0035] In the actual operation of power systems containing hydrogen-electric energy storage, the charging and discharging state of the hydrogen-electric energy storage is often related to the power system's supply and demand situation. Specifically, when the power supply is insufficient, the hydrogen-electric energy storage system needs to discharge to support the power supply, which is when demand response is required. When the power supply is sufficient, the hydrogen-electric energy storage system usually charges to avoid "wasting" excess power, which is when demand response is not required. Therefore, in the load optimization model considering both scenarios (whether demand response is required), some unique constraints can be set according to the different charging and discharging states of the hydrogen-electric energy storage. That is, a load optimization model for the entire day (t = 1 to 24) can be constructed according to t ∈ TD & TC. Here, TD and TC represent the set of hydrogen-electric energy storage discharge times (when demand response is required) and the set of charging times (when demand response is not required), respectively, and TD + TC = {1, 2... 24}.

[0036] In other words, the load optimization model established in this application is an overall model covering TC and TD, focusing primarily on t∈TD. When t∈TC, the load optimization model functions as a traditional power source optimization model. Simultaneously, hydrogen-electric energy storage is incorporated as a whole into the day-ahead demand response strategy of the power system. During model solving, the load optimization model is solved separately according to different power supply states. When demand response is implemented, the charging and discharging power of hydrogen-electric energy storage and the optimal load allocation of user equipment are used as decision variables. When demand response is not implemented, the charging and discharging power of hydrogen-electric energy storage and the generation power of traditional power sources are used as decision variables. A load optimization model considering hydrogen-electric energy storage is constructed. Furthermore, based on the constructed unconstrained transformation function, the reconstructed load optimization model is solved to quickly and accurately determine the decision variables, thereby achieving effective regulation of load and hydrogen-electric energy storage, and ultimately achieving optimal overall power system operation.

[0037] The following combination Figures 1 to 3 This application provides a detailed description of the power demand response load optimization method that considers hydrogen-electric energy storage.

[0038] Figure 1 This is a schematic flowchart illustrating a power demand response load optimization method considering hydrogen-electric energy storage, provided in an embodiment of this application. Figure 1 As shown, the method in the embodiments of this application may include:

[0039] Step 101: With minimizing the operating cost of the power system as the objective function, and with constraints such as supply and demand balance constraints, user equipment operation constraints, hydrogen-electric energy storage operation constraints, power grid flow constraints, network loss constraints, line flow constraints, node voltage constraints, and traditional power source operation constraints, construct a load optimization model that considers hydrogen-electric energy storage.

[0040] Optionally, in this embodiment, the power system includes new energy sources, traditional power sources, hydrogen-electric storage, and power grid lines. Equality constraints include supply-demand balance constraints, power flow constraints, and network loss constraints; inequality constraints include user equipment operation constraints, hydrogen-electric storage operation constraints, line power flow constraints, node voltage constraints, and traditional power source operation constraints.

[0041] For example, the above-mentioned supply and demand balance constraints are the requirements for electricity supply to meet electricity demand; user equipment operation constraints are the operation requirements of the electrical equipment of demand users (i.e., various types of users) in the power system; hydrogen-electric energy storage operation constraints are the overall operation status of hydrogen-electric energy storage and the relevant operation requirements of its internal hydrogen and electricity coordination mode; grid flow constraints are the state relationship requirements for the operation of the power system; grid loss constraints indicate that the operating losses of all grid lines in the power system constitute the active power loss of the entire power system during operation; line flow constraints and node voltage constraints are constraints on the range of grid parameters during the operation of the power system; and traditional power source operation constraints are constraints on the range of power source parameters during the operation of the power system.

[0042] Optionally, in this embodiment, the user equipment includes equipment for Class I users, equipment for Class II users, and equipment for Class III users; Class I users are load-adjustable and price-sensitive users, Class II users are load-adjustable and price-insensitive users, and Class III users are load-unadjustable users.

[0043] The expression for the objective function is:

[0044]

[0045] In the formula, C new C old C ES C0 and C0 represent the unit costs of new energy power generation, traditional power generation, hydrogen-electric energy storage operation, and grid active power loss, respectively. and Let J, G, and B represent the power generation of the j-th new energy source, the power generation of the g-th traditional power source, the charging and discharging power of the hydrogen-electric energy storage, and the active power loss of the b-th power grid line at time t, respectively; J, G, and B represent the number of new energy sources, the number of traditional power sources, and the number of power grid lines, respectively; where each day is divided into 24 hours, the interval between time t and time t+1 is 1 hour, t=1,2,…,T,T=24.

[0046] For example, the expression for the supply-demand balance constraint is:

[0047]

[0048] In the formula, and Let represent the power consumption of the i-th device among users of type 1 and the power consumption of the i-th device among users of type 3 at time t, respectively. and Let A represent the baseline load of the h-th user in the two user categories at time t and the power consumption of the i-th adjustable device, respectively; I and A III H represents the number of devices for user category 1 and user category 3, respectively. II and AII-h These represent the number of users in the second category and the number of adjustable devices for the h-th user in the second category, respectively; a i,t and b h-i,t These represent the start / stop status of the i-th device in the first type of user at time t and the start / stop status of the i-th adjustable device in the h-th user in the second type of user at time t, respectively. A value of 0 indicates a disabled state and a value of 1 indicates an enabled state.

[0049] Optionally, in this embodiment, since one type of user is a "response user" with a fully adjustable load, their adjustable devices do not change over time, therefore, Category II users are those with partially adjustable loads; the adjustable equipment varies at different times. and It changes over time. The three types of users have non-adjustable loads, and their loads vary at different times. Therefore, It also changes over time.

[0050] It should be noted that in this embodiment, the i-th device of the h-th user in the first and third categories of users, as well as the i-th device of the h-th user in the second category of users, is represented by the label "i". However, in actual applications, the i-th device of the first and third categories of users, as well as the i-th device of the h-th user in the second category of users, are different devices, which is irrelevant; they are just using the same label.

[0051] For example, the expression for the user equipment operation constraint is:

[0052]

[0053] In the formula, TD and TC represent the set of discharge times (when demand response is performed) and the set of charging times (when demand response is not performed) of hydrogen-electric energy storage, respectively, and TD+TC={1,2...24}; demand response is performed when t∈TD, a i,t and b h-i,t The value of is 0 or 1. When t∈TC, no demand response is performed. In this case, optimized scheduling of traditional power sources is performed. i,t and b h-i,t The value of is only 1; This represents the minimum daily operating power consumption of the i-th device in a user group, i.e., the total power consumption required for the i-th device in a user group to maintain basic production operations throughout the day. In other words, it represents the total daily operating power consumption of each device in a user group, despite the user group's flexible operating hours being susceptible to time-series shifts due to electricity price fluctuations. Need to meet To maintain normal production and life; when the power supply is in deficit, t∈TD, otherwise, t∈TC.

[0054] In formula (3), the first inequality means that the total daily electricity consumption of the i-th device in a user group must be greater than or equal to the minimum daily operating electricity consumption; the second and third equations respectively represent the possible values ​​of the switching states of the electrical equipment participating in demand response at the discharge and charging times of hydrogen-electric energy storage.

[0055] It is important to note that in this embodiment, the load for each type of user is modeled on a per-device basis. However, since the demand response of the second-class users' devices is based on the user-provided acceptable load plan, contract negotiations for the second-class users are conducted on a per-user basis. Therefore, in the supply and demand balance constraint, both the first-class and third-class users consider power consumption based on device i. and The second category of users considers power consumption based on user h, and further divides each user's load into a non-adjustable baseline load and the i-th adjustable equipment load. and This refers to the acceptable load plan provided to user h. For example, if a user's baseline load at time t is 30kW that must be operated, and the three adjustable devices are 2kW, 3kW, and 1kW respectively, then the electrical load that the user can execute is {30kW, 31kW, 32kW, 33kW, 34kW, 35kW, 36kW}.

[0056] For example, the expression for the operational constraints of hydrogen-electric energy storage is:

[0057]

[0058]

[0059]

[0060]

[0061]

[0062] In the formulas, equations (4) and (5) represent the power exchange constraints of hydrogen-electric energy storage at the discharge and charging times, respectively; P t (H) Let P be the charge / discharge power of hydrogen energy storage in hydrogen-electric energy storage at time t. t (E) Let P be the charging and discharging power of the electrical energy stored in the hydrogen-electric energy storage at time t. t (Δ) The power supply surplus or deficit at time t; and These are the maximum discharge power of hydrogen energy storage and the maximum discharge power of electrical energy storage, respectively. and These are the maximum charging power for hydrogen energy storage and the maximum charging power for electrical energy storage, respectively. P represents the maximum active power output of the g-th conventional power source; where P t (H) P t (E) and P t (Δ) In formula (4), all numbers are negative; in formula (5), all numbers are positive. Formulas (6) and (7) represent the storage capacity constraints of hydrogen-electric energy storage, η (HC) and η (HD) η represents the charging efficiency and discharging efficiency of hydrogen energy storage, respectively. (EC) and η (ED) Q0 represents the charging efficiency and discharging efficiency of electrical energy storage, respectively. (H) and Q0 (E) Q represents the equivalent hydrogen energy storage capacity and electrical energy storage capacity at time t=24 on the previous day, respectively. t (H) and Q t (E) Let Q represent the equivalent energy of hydrogen storage and the energy of electrical storage at time t, respectively. max (H) and Q max (E) These represent the maximum capacities of hydrogen energy storage and electrical energy storage, respectively. This represents the charging and discharging power of hydrogen energy storage in hydrogen-electric energy storage at time u. α represents the charging and discharging power of the electrical energy stored in the hydrogen-electric energy storage at time u. u β represents the charge / discharge coefficient of hydrogen storage at time u. u The charge and discharge coefficient of the electric energy storage at time u is given, u = 1, 2, ..., t; Formula (8) represents the charge and discharge constraint of the hydrogen-electric energy storage inside the hydrogen-electric energy storage, and δ represents the energy coefficient for enabling hydrogen energy storage, which can be set as needed, for example, δ can be 0.8.

[0063] It should be noted that the parameters in this embodiment, unless otherwise specified as parameters from the previous day or other dates, such as Q0, are not considered valid parameters. (H) and Q0 (E) These represent the equivalent hydrogen energy storage capacity and electrical energy storage capacity at time t=24 of the previous day, respectively. Other time-related parameters are intraday parameters.

[0064] For example, the expression for power flow constraints in a power grid is:

[0065]

[0066] In the formula, n represents the node number in the power system, n = 1, 2... N, and N is the total number of nodes in the power system; and These represent the active power of renewable energy generation, traditional power generation, and load consumption at node n at time t, respectively; where, when node n is an energy storage configuration node, Let t be the charging and discharging power of the hydrogen-electric energy storage. and These represent the reactive power generated by the conventional power source and the reactive power consumed by the load at node n at time t, respectively; U n,t U represents the voltage magnitude of node n at time t. v,t G represents the voltage magnitude at node v at time t; nv and B nv The first node admittance matrix Y = [y] of the power system is represented by these two matrices respectively. nv ] N×N The real and imaginary parts of the element in the nth row and vth column, y nv =G nv +jB nv ;θ n,t and θ v,t Let represent the voltage phase angles of nodes n and v at time t, respectively.

[0067] For example, the expression for the network loss constraint is:

[0068]

[0069] In the formula, b represents the power grid line number in the power system; bX and bY represent the nodes at both ends of power grid line b, respectively; G bX,bY U is the real part of the element value of (bX, bY) in the second node admittance matrix. bX,t and θ bX,t Let U be the magnitude and phase angle of the voltage at node bX at time t, respectively. bY,t and θ bY,t Let be the magnitude and phase angle of the voltage at node bY at time t, respectively.

[0070] For example, the expressions for line power flow constraints and node voltage constraints are as follows:

[0071]

[0072] In the formula (11), the first two inequalities are the line power flow constraint and the node voltage constraint, respectively, which limit the line transmission power and the node voltage to not exceed the limits; the third equation is the formula for calculating the line power flow, P b,t P represents the active power (power flow) transmitted by power grid line b at time t. b,t The positive or negative value of P indicates the direction of power. b,min and P b,max Let P represent the lower and upper limits of the transmission power of power grid line b, respectively. b,min =0;Un,min and U n,max Let U represent the lower and upper voltage limits of node n, respectively. n,min =0.85~0.95U n,EN U n,max =1.05~1.15U n,EN U n,EN θ is the rated voltage of node n; bX Let θ be the phase angle of the voltage at node bX. bY X is the phase angle of the voltage at node bY; b Let X be the reactance of power grid line b. b ≈|Z b |,Z b =R b +jX b Let be the impedance of power line b.

[0073] For example, the expression for the operating constraints of a traditional power supply is:

[0074]

[0075] In the formula, This represents the minimum active power output of the g-th conventional power source. This represents the reactive power of the g-th conventional power source at time t. This represents the maximum reactive power output of the g-th traditional power source. When demand response is not required, i.e., t∈TC, Not less than and not higher than In other words, at time t, the generating power (active output) of the g-th traditional power source is neither less than nor greater than its minimum active output. When demand response is required, i.e., t∈TD, In other words, at time t, the generating power of the g-th traditional power source is equal to its maximum output. This applies regardless of whether demand response is implemented. In other words, at time t, the reactive power of the g-th traditional power source is equal to its maximum reactive power output.

[0076] It is important to note that when the power supply is not in deficit, demand response is not required. In this case, the charging and discharging power of the hydrogen-electric storage and the generating power of the conventional power source are the decision variables. When the power supply is in deficit, demand response is required. In this case, the charging and discharging power of the hydrogen-electric storage and the optimal load allocation of user equipment are the decision variables. The optimal load allocation of user equipment includes the optimal load allocation for Class I users and Class II users. Specifically, it includes the start-stop state of the i-th device in Class I users at time t and the start-stop state of the i-th adjustable device in the h-th user in Class II users at time t.

[0077] It should be noted that, as mentioned above, the load storage model is constructed according to t∈TD&TC. The load optimization model for time t is constructed and solved sequentially according to the time sequence t=1~24 throughout the day. When constructing the load optimization model for time t, the load optimization models for times 1 to t-1 before time t have already been solved, meaning that the charging and discharging power of the hydrogen-electric energy storage and the optimal load allocation of user equipment for times 1 to t-1 are known quantities. TD and TC together constitute the entire 24-hour period, i.e., TD+TC={1,2...24}. For example, TD = {7,8,9,15,16,17,18,19,20,21,22}, TC = {1,2,3,4,5,6,10,11,12,13,14,23,24}, where t = 1 represents 00:00 to 1:00 of the day, t = 10 represents 9:00 to 10:00 of the day, and so on, with t = 24 representing 23:00 to 24:00 of the day.

[0078] As mentioned above, in this embodiment, when the hydrogen-electric energy storage is discharging at time t, that is, when the power supply is in deficit, the part involving t∈TC in the constraint condition is not considered, and the traditional power supply is in full-power state. When the hydrogen-electric energy storage is charging at time t, that is, when the power supply is not in deficit, the part involving t∈TD in the constraint condition is not considered, and the traditional power supply is in an adjustable state.

[0079] Optionally, in this embodiment, the load optimization model is essentially a model containing discrete decision variables a. i,t and b h-i,t and continuous decision variable P t (E) (i.e. P) t (E) +P t (H) This is a mixed-integer optimization problem. Therefore, genetic algorithms, particle swarm optimization algorithms, or mixed-integer optimization toolkits can be used to solve the above load optimization model and determine the discrete decision variable 'a'. i,t and b h-i,t and continuous decision variable P t (E) Of course, other algorithms can also be used to solve the load optimization model, and no specific restrictions are imposed here. However, the above algorithms have drawbacks such as slow solution speed and easy getting trapped in local optima. To solve these drawbacks, this application further provides a decoupling method that has a fast solution speed and is less prone to getting trapped in local optima, for solving the load optimization model.

[0080] Step 102: Based on the power supply status, perform time-series decoupling solution on the load optimization model to determine the decision variables.

[0081] When the power supply is in deficit, the charging and discharging power of hydrogen-electric energy storage and the optimal load allocation of user equipment are used as decision variables. An unconstrained transformation function is constructed, and the load optimization model is reconstructed based on the unconstrained transformation function. The reconstructed load optimization model is then solved to determine the charging and discharging power of hydrogen-electric energy storage and the optimal load allocation of user equipment.

[0082] When the power supply is not in deficit, the load optimization model is solved using the charging and discharging power of hydrogen-electric energy storage and the power generation of traditional power sources as decision variables to determine the charging and discharging power of hydrogen-electric energy storage and the power generation of traditional power sources.

[0083] Optionally, in this embodiment, the power supply status includes power supply without loss and power supply with loss. Time decoupling means simplifying and solving the load optimization model sequentially for all 24 time points of the day.

[0084] Optionally, as mentioned above, the load optimization model in this embodiment involves a full-day time series and has a complex solution process. The essence of this load optimization model is a model containing discrete decision variables a. i,t and b h-i,t and continuous decision variable P t (E) (i.e. P) t (E) +P t (H) The above load optimization model is a mixed integer optimization problem involving many intermediate parameters. Although genetic algorithms, particle swarm optimization algorithms, or mixed integer optimization toolkits can be used to solve the above load optimization model, these algorithms have drawbacks such as slow solution speed and easy getting trapped in local optima.

[0085] For example, in the load optimization model, the only variable relating the discharge (demand response) and charging (non-demand response) processes of hydrogen-electric energy storage is the amount of electricity stored in the hydrogen-electric energy storage. and ) and the minimum daily operating power consumption for a certain type of user Therefore, the amount of electricity stored in hydrogen-electric energy storage can be converted into a known quantity for solving the load optimization model. For example, the amount of electricity stored in hydrogen-electric energy storage at time t-1 can be used as a known quantity to solve for the amount of electricity stored in hydrogen-electric energy storage at time t, thus achieving a decoupled solution to the aforementioned load optimization model. Furthermore, to solve the load optimization model, it is also necessary to consider the minimum daily operating electricity consumption of a certain type of user. That is, the load allocation for a certain type of user must satisfy the minimum daily operating electricity consumption of that type of user, i.e., satisfy... In unsatisfied At this time, it is necessary to adjust the load allocation for a specific type of user; that is, to determine the obtained a i,t(It should be noted that during the solution process, a) i,t Convert the variable (to a continuous variable) to determine whether the value of a is closer to 0 or closer to 1, and assign the value of a that is closer to 0. i,t Sort the values ​​in descending order to obtain a sorted sequence. Then, sort the values ​​in descending order according to the sorted sequence. i,t Set to 1 until the condition is met.

[0086] For example, in this embodiment, when determining the charging and discharging power of hydrogen-electric energy storage and the power generation power of conventional power sources, it can be based on a load optimization model, according to... and Based on the relationship between the magnitudes, a traditional power source optimization model is constructed. Using the charging and discharging power of hydrogen-electric energy storage and the power generation of traditional power sources as decision variables, the traditional power source optimization model is solved to determine the charging and discharging power of hydrogen-electric energy storage and the power generation of traditional power sources.

[0087] In some possible implementations, step 102 may include A1 to A9.

[0088] A1. Parameter Initialization. t=1, initialization parameters include: unit cost C of new energy power generation. new The unit cost C of traditional power generation old The unit cost C of hydrogen-electric energy storage operation ES The unit cost C0 of the active power loss of the power grid; the maximum active power output of the g-th traditional power source. The maximum reactive power output of the g-th traditional power source Maximum charging power of electric energy storage in hydrogen-electric energy storage Maximum discharge power Charging efficiency η (EC) and discharge efficiency η (ED) The maximum charging power of hydrogen energy storage in hydrogen-electric energy storage Maximum discharge power Charging efficiency η (HC) and discharge efficiency η (HD) The electrical energy storage capacity Q0 at time t=24 on the previous day (E) The maximum capacity of electrical energy storage Q max (E) The amount of hydrogen stored at time t=24 on the previous day, Q0 (H) The maximum capacity of hydrogen energy storage, Q max (H) The first node admittance matrix of the power system is Y = [G nv +jB nv ] N×N ; Nodes bX and bY at both ends of power line b; Lower voltage limit U at node n n,min and voltage limit U n,maxThe lower limit P of the transmission power of power grid line b b,min and transmission power limit P b,max .

[0089] A2. Obtain the parameters at time t. These parameters include: the power generation of the j-th renewable energy source at time t. Power consumption of the i-th device among users of type t at time t The baseline load of the h-th user in the second category at time t. and the power consumption of the i-th adjustable device Power consumption of the i-th device among the three types of users Minimum daily operating power consumption of the i-th device among a certain type of user Based on the grid connection locations of traditional power sources, new energy sources, hydrogen-electric energy storage, and equipment in Class I, Class II, and Class III users, the equivalent injected active power at node n in the power system at time t is obtained. And consumption parameters (or the expression of the parameters) And the reactive power generated by conventional power sources at node n in the power system at time t. Reactive power of load electricity That is, the equivalent reactive power injected at node n at time t. and consumption parameters

[0090] A3. Demand Response Execution Judgment. If the electricity supply is not incurring a loss, no demand response is required; if the electricity supply is incurring a loss, a demand response is required.

[0091] Optionally, the expression for power supply is:

[0092]

[0093] In the formula, P t (Δ) Let P be the power supply surplus or deficit at time t. t (Δ) A value less than 0 indicates that the power supply is in deficit at time t, P t (Δ) A value greater than or equal to 0 indicates that the power supply at time t is not in deficit; Let J represent the power generation of the j-th renewable energy source at time t, and J represent the number of renewable energy sources. This represents the maximum active power output of the g-th traditional power source, where G represents the number of traditional power sources. and Let A represent the load of the i-th device in user group 1, user group 2, and user group 3 at time t, respectively. I AII and A III Let represent the number of devices in the first, second, and third user categories, respectively; where each day is divided into 24 hours, the interval between time t and time t+1 is 1 hour, t = 1, 2, ..., T, T = 24.

[0094] Optionally, in this embodiment, if P t (Δ) If ≥0, it indicates that the power supply is not in deficit. In this case, execute A4~A5. If P t (Δ) If the value is less than 0, it indicates that the power supply is in deficit, and A6 to A8 should be executed in this case.

[0095] A4. Scenario 1: If Then P t (H) =P t (E) =P t (ES) =0, based on the objective function, supply and demand balance constraints, power flow constraints, network loss constraints, line power flow constraints and node voltage constraints in the load optimization model, the first traditional power source optimization model is constructed, that is, the traditional power source optimization model is constructed according to formulas (1) to (2) and formulas (9) to (11), and a is set. i,t =b h-i,t =1, as well as As the first new constraint, it only considers the case where t∈TC in the load optimization model.

[0096] For example, a first conventional power optimization model includes:

[0097] Objective function:

[0098]

[0099] Supply and demand balance constraints:

[0100]

[0101] Power flow constraints:

[0102]

[0103] Network loss constraints:

[0104]

[0105] Line power flow constraints and node voltage constraints:

[0106]

[0107] First new constraint:

[0108]

[0109] Subsequently, algorithms such as genetic algorithms or particle swarm optimization are used to solve the above-mentioned optimization model of the first traditional power source to determine the power generation capacity of the traditional power source and obtain the charging and discharging power P of the hydrogen-electric energy storage at time t. t (ES) Power generation of each traditional power source at time t

[0110] Scenario 2: If and but P t (ES) =P t (Δ) .

[0111] Scenario 3: If and but Based on the objective function, supply and demand balance constraints, power flow constraints, network loss constraints, line power flow constraints, and node voltage constraints in the load optimization model, a second traditional power source optimization model is constructed. That is, the traditional power source optimization model is constructed according to formulas (1) to (2) and formulas (9) to (11), and a is set. i,t =b h-i,t =1, as well as As a second newly added constraint.

[0112] For example, a second conventional power optimization model includes:

[0113] Objective function:

[0114]

[0115] Supply and demand balance constraints:

[0116]

[0117] Power flow constraints:

[0118]

[0119] Network loss constraints:

[0120]

[0121] Line power flow constraints and node voltage constraints:

[0122]

[0123] Second new constraint:

[0124]

[0125] Subsequently, algorithms such as genetic algorithms or particle swarm optimization are used to solve the above-mentioned second traditional power source optimization model to determine the power generation capacity of the traditional power source and obtain the charging and discharging power P of the hydrogen-electric energy storage at time t. t (ES) Power generation of each traditional power source at time t

[0126] in, These represent the equivalent energy of hydrogen storage and the energy of electrical storage at time t-1, respectively. It should be noted that in this embodiment, it is impossible for [the following to occur]. The situation.

[0127] A5. Based on the charging and discharging power P of the hydrogen-electric energy storage determined in A4. t (ES) Based on the operating principles of hydrogen-electric energy storage, the charging and discharging power P of hydrogen energy storage in hydrogen-electric energy storage is determined. t (H) The charging and discharging power P of electrical energy storage t (E) And calculate the equivalent energy of hydrogen storage based on the charging and discharging power of hydrogen storage, that is... And calculate the equivalent energy storage capacity based on the charging and discharging power of the energy storage, i.e. Then, output P t (ES) (including P) t (H) and P t (E) ), Q t (H) and Q t (E) If t > 24, then output all values. P t (ES) (including P) t (H) and P t (E) ), and Otherwise, execute t = t + 1 and return A2.

[0128] A6. The load optimization model is simplified to obtain the simplified load optimization model. The simplified load optimization model includes a simplified objective function and simplified constraints. The simplified constraints include the first constraint, the second constraint, the third constraint, and the fourth constraint.

[0129] A7. Construct an unconstrained transformation function, reconstruct the simplified load optimization model based on the unconstrained transformation function, and solve the reconstructed load optimization model to obtain the charging and discharging power of hydrogen-electric energy storage and the optimal load allocation of user equipment, that is, to obtain the charging and discharging power P of hydrogen-electric energy storage at time t. t (ES) (including P) t (H) and P t (E) The start / stop status of the i-th device in a user group at time t. i,t The start / stop status b of the i-th adjustable device in the h-th user of the second type of user at time t. h-i,t .

[0130] A8. Based on the charging and discharging power P of hydrogen energy storage in hydrogen-electric energy storage as determined in A7. t (H) Calculate the equivalent energy of hydrogen storage, i.e. And based on the charging and discharging power P of the electrical energy storage determined in A7 t (E) Calculate the equivalent energy of electrical energy storage, i.e. Then, output 'a'. i,t b h-i,t P t (ES) , and If t > 24, then execute A9; otherwise, execute t = t + 1 and return to A2.

[0131] A9. Check if the condition is met. If satisfied Then determine the obtained a i,t Is the value closer to 0 or closer to 1 in a? i,t When the value of a is closer to 0, a i,t Set to 0; otherwise, set a. i,t Set it to 1. Similarly, determine the obtained b. h-i,t Is the value closer to 0 or closer to 1 in b? h-i,t When the value of b is closer to 0, h-i,t Set to 0; otherwise, set b. h-i,t Set to 1. Complete the setting of a. i,t and b h-i,t The discretization is due to the reconstruction of the simplified load optimization model in A7 based on the unconstrained transformation function, and the solution of the reconstructed load optimization model, which affects a. i,t and b h-i,t Since a continuous variable transformation was performed, the obtained a needs to be analyzed. i,t and b h-i,t Discretize the values. Then output all values ​​of 'a'.i,t b h-i,t P t (ES) , and

[0132] If not satisfied Then determine the obtained a i,t Is the value closer to 0 or closer to 1, and assign the value of a that is closer to 0? i,t Sort the values ​​in descending order to obtain a sorted sequence. Then, sort the values ​​of a in the order described above. i,t Set to 1 until the condition is met. Then stop a i,t Set to 1 and output all 'a's. i,t b h-i,t P t (ES) , and

[0133] In one possible implementation, when simplifying the load optimization model in step A6 above, only the case where t∈TD in the load optimization model can be considered, and the following settings can be made: and At the same time, P in the equality constraint t (ES) Q t (H) Q t (E) , and P b,t Substituting the expressions into the objective function and / or the corresponding constraints, the formulas (1) to (12) in the load optimization model are simplified to obtain the simplified load optimization model, which includes the simplified objective function and the simplified constraints.

[0134] For example, the simplified expression of the objective function is as follows:

[0135]

[0136] The expression for the first constraint is:

[0137]

[0138] The expression for the second constraint is:

[0139]

[0140] The expression for the third constraint is:

[0141]

[0142] The expression for the fourth constraint is:

[0143]

[0144] In the formula, This represents the equivalent injected active power at node n at time t. This represents the equivalent injected reactive power at node n at time t.

[0145] Even after simplifying the load optimization model, the simplified model remains a mixed-integer optimization problem. Solving this simplified model using genetic algorithms, particle swarm optimization, or mixed-integer optimization toolkits still suffers from drawbacks such as slow solution speed and susceptibility to local optima. To overcome these shortcomings, the constrained mixed-integer model can be transformed into an unconstrained continuous variable model, which can then be solved.

[0146] In one possible implementation, when constructing the unconstrained transformation function in step A7 above, and reconstructing the simplified load optimization model based on the unconstrained transformation function, it may include B1 to B4.

[0147] B1. Construct an unconstrained transformation function.

[0148] For example, the expression for an unconstrained transformation function is:

[0149]

[0150] In the formula, f(x) is the unconstrained transformation function, x is the independent variable, and ω, m, k, and λ are constants. ω is greater than or equal to 1 and can be set according to actual needs. m and k are odd numbers greater than or equal to 3, and the larger the values ​​of m and k, the better the effect of f(x), but the more complex the solution of the reconstructed load optimization model becomes. For ease of solution, m = k = 3 is chosen here. λ is greater than the order of magnitude of all parameters in the simplified load optimization model and can be set according to actual needs.

[0151] Optionally, the above unconstrained transformation function is applied in the unconstrained transformation as follows: for constraints of the form x≤c, the corresponding constraint condition is transformed into min f(cx) and added to the objective function; for constraints of the form x≥c, the corresponding constraint condition is transformed into min f(xc) and added to the objective function.

[0152] For example, refer to Figure 2The unconstrained transformation function f(x) in this embodiment is compared with the penalty function g(x) in related technologies in terms of function effect and solution time for the unconstrained objective function, where g(x) = [0.5tanh(αx) + 0.5][(x + β)]. γ -β γ ]. Reference Figure 2 In (a), it can be seen that the value of the function f(x) on the left increases rapidly when x < 0, effectively transforming the constraint terms that exceed the range into infinity, which is basically the same as the effect of the function g(x) on the right when x > 0. However, referring to Figure 2 In (b), it can be seen that when the functions f(x) and g(x) simultaneously process the constraint d3≤x≤d4, and choose to minimize the same unconstrained objective function min d1+d2... 2 When solving for +f(x-d3)+f(d4-x), the solution time for variable d2 can be reduced by more than 40% compared to the solution time for function g(x).

[0153] B2. Based on the unconstrained transformation function, the first constraint, the second constraint, and the fourth constraint in the simplified load optimization model are transformed into the first newly added objective function, the second newly added objective function, and the fourth newly added objective function.

[0154] For example, this embodiment first performs an unconstrained transformation on the first constraint condition. The first term of the first constraint condition, representing an equality constraint, is transformed into P. t (E) +P t (H) The expression form, and replace P in the simplified objective function. t (E) +P t (H) The second discrete variable equality constraint is transformed into the continuous variable form f(x), that is, a... i,t ,b h-i,t ={0,1} is continuous and can be transformed into 0≤a i,t ≤1 and 0≤b h-i,t ≤1, and transform it into an unconstrained optimization objective min{f(a i,t )+f(b h-i,t )+f(1-a i,t )+f(1-b h-i,t )}. Meanwhile, in order to make a i,t and b h-i,t To get closer to 0 or 1, add another unconstrained optimization objective min{f(a i,t )f(1-a i,t )+f(b h-i,tf(1-b) h-i,t Thus, the discrete variable equality constraint is transformed into a continuous variable unconstrained objective. As mentioned earlier, the continuous variable a is obtained in subsequent calculations. i,t and b h-i,t Then, according to a i,t Is the value closer to 0 or closer to 1 for a? i,t Discretize, and according to b h-i,t Is the value closer to 0 or closer to 1 for b? h-i,t Discretization can be performed by referring to the relevant descriptions in the foregoing embodiments, which will not be repeated here.

[0155] Therefore, after performing an unconstrained transformation on the first constraint, the expression for the first newly added objective function is obtained as follows:

[0156] min TargI={f(a i,t )+f(b h-i,t )+f(1-a i,t )+f(1-b h-i,t )+f(a i,t )f(1-a i,t )+f(b h-i,t f(1-b) h-i,t )} (19)

[0157] Optionally, in this embodiment, when performing the unconstrained transformation of the second constraint, the first and second inequality constraints in the second constraint are transformed into unconstrained forms according to f(x). The unconstrained optimization objectives after the transformation of the first and second inequality constraints are as follows:

[0158] and

[0159]

[0160] Next, the third and fourth inequality constraints in the second constraint condition are transformed into unconstrained constraints according to the form f(x). Since the third and fourth inequality constraints are conditional inequality constraints, they cannot be directly transformed into unconstrained constraints. Therefore, the third and fourth inequality constraints are first transformed into:

[0161]

[0162] Then, formula (26) is transformed into the form f(x) without constraints, resulting in:

[0163]

[0164] Therefore, after unconstraining the second constraint, the expression for the second newly added objective function is obtained as follows:

[0165]

[0166] For example, in this embodiment, when performing an unconstrained transformation on the third constraint, since the first and second equality constraints in the third constraint are both equality constraints of the power flow equation, and the power flow equation is relatively complex, and the first node admittance matrix and the equivalent injected active power at each node are known variables, the voltage amplitude U of each node in the power system can be calculated according to the power flow calculation methods of power system calculation, such as the Newton-Raphson method, manual calculation method, etc. n,t and voltage phase angle θ n,t Thus, the voltage values ​​(U) at both ends of each power grid line can be obtained. bX,t and U bY,t ) and voltage phase angle (θ) bX,t and θ bY,t ), and U bX,t U bY,t θ bX,t and θ bY,t As a decision variable P t (ES) Substitute the known parameters into the simplified objective function. It is important to note that U... bX,t U bY,t θ bX,t and θ bY,t The expressions for the parameters all contain only P. t (ES) An unknown parameter can form a sequence containing only P. t (ES) Function U of variables bX,t =z1(P t (ES) ), U bY,t =z2(P t (ES) ), θ bX,t =z3(P t (ES) ), θ bY,t =z4(P t (ES) The method of obtaining it is: in the power flow calculation of the power system, P is... t (ES) First, consider them as "known parameters" and substitute them into the calculation formula of the power flow calculation method to form a result containing P. t (ES) The expressions z1 to z4.

[0167] Optionally, in this embodiment, when performing an unconstrained transformation on the fourth constraint, the first and second inequality constraints in the fourth constraint are transformed into an unconstrained form according to f(x), resulting in the expression for the newly added fourth objective function:

[0168]

[0169] B3. Based on the simplified objective function, the third constraint, the first newly added objective function, the second newly added objective function, and the fourth newly added objective function, the load optimization model is reconstructed to obtain the reconstructed objective function, which serves as the reconstructed load optimization model.

[0170] For example, the expression for the refactoring objective function is:

[0171]

[0172] B4. Solve the reconstructed load optimization model to obtain the decision variables.

[0173] Optionally, after obtaining the reconstruction objective function, this embodiment can use engineering optimization algorithms such as genetic algorithms or convex optimization algorithms to solve the reconstruction objective function, thereby obtaining the decision variable a. i,t b h-i,t and P t (ES) .

[0174] In this embodiment, after simplifying the load optimization model, the simplified load optimization model is transformed from a mixed integer constrained model to a continuous variable unconstrained model based on the constructed unconstrained transformation function. Solving the continuous variable unconstrained model can improve the solution speed and accuracy, and the solution process is less likely to get trapped in local optima. Thus, the charging and discharging power of hydrogen-electric energy storage and the optimal load allocation of user equipment can be accurately obtained, ensuring that the load and hydrogen-electric energy storage can be effectively controlled in the future.

[0175] Furthermore, as mentioned above, hydrogen-electric energy storage comprises two core components: hydrogen energy storage and electrical energy storage. Electrical energy storage and its model are based on traditional electrochemical energy storage devices and their models, while hydrogen energy storage consists of a hydrogen storage device, a hydrogen fuel cell stack, and a water electrolysis hydrogen production pool (alkaline water electrolysis, proton exchange membrane water electrolysis, solid oxide water electrolysis, etc.). The charge-discharge model for hydrogen energy storage is as follows:

[0176]

[0177] In the formula, Q t (H) This represents the equivalent energy of hydrogen storage at time t. and η represents the charging and discharging states of hydrogen energy storage at time t, respectively, where a value of 1 indicates charging or discharging, and a value of 0 indicates no charging or discharging; (EC) and η (ED) P represents the charging efficiency and discharging efficiency of electrical energy storage, respectively. t (HC) and P t (HD) Let P represent the charging power and discharging power of hydrogen energy storage at time t, respectively. Furthermore, P can be... t (HC) and P t (HD) The charging and discharging power P of hydrogen energy storage is unified. t (H) To simplify, that is, P t (H) This represents the charging and discharging power of hydrogen energy storage in hydrogen-electric energy storage at time t, when P t (H) A value greater than 0 indicates charging, when P t (H) A value less than 0 indicates discharge. Simultaneously, after simplification, α... t This represents the charge / discharge coefficient of hydrogen storage at time t, when P t (H) >0 α t =η (HC) When Pt(H) < 0, α t =1 / η (HD) Typically, a day is divided into 24 hours, with the interval between time t and time t+1 being 1 hour, where t = 1, 2, ..., T, and T = 24.

[0178] For hydrogen-electric energy storage, the coordinated operation of hydrogen and electrical energy storage is crucial for its operation. Electrical energy storage has higher charge and discharge efficiency, while hydrogen energy storage has lower high-power operating costs. Therefore, electrical energy storage is preferred in hydrogen-electric energy storage, and hydrogen energy storage is activated when the capacity of electrical energy storage reaches a certain level. The specific operating principles of hydrogen-electric energy storage are as follows:

[0179] The charging process of hydrogen-electric energy storage: P t (ES) >0, where P t (ES) This represents the charging and discharging power of the hydrogen-electric energy storage at time t, meaning the actual power exchanged between the hydrogen-electric energy storage and the power grid is greater than 0. At this time, when... Less than And P t (ES) Greater than At that time, the electrical energy storage operates at maximum power, with hydrogen energy storage serving as a supplement. This represents the amount of electrical energy stored at time t. Indicates the maximum capacity of electrical energy storage. This indicates the maximum charging power of the electrical energy storage, and δ represents the energy coefficient for enabling hydrogen energy storage, which can be set as needed; for example, δ can be 0.8. When... Less than And P t (ES) Less than At that time, all charging is done by electrical energy storage. Greater than At that time, the electric energy storage and hydrogen energy storage work together to complete the charging process, each contributing 50% of the power.

[0180] The discharge process of hydrogen-electric energy storage: P t (ES) <0, meaning the actual power exchanged between hydrogen-electric storage and the power grid is less than 0. At this time, when Greater than And -P t (ES) Greater than At that time, the electrical energy storage operates at maximum power, with hydrogen energy storage serving as a supplement. Greater than And -P t (ES) Less than At that time, all discharge is achieved through electrical energy storage. When Less than At that time, the electric energy storage and hydrogen energy storage work together to complete the discharge, each undertaking 50% of the power.

[0181] For example, in accordance with the above operating principles, hydrogen-electric energy storage should also meet the following constraints during operation:

[0182]

[0183] Furthermore, as mentioned above, when constructing the load optimization model, hydrogen-electric energy storage is considered as a whole in the objective function, meaning only the charging and discharging power of hydrogen-electric energy storage is considered. However, the coordination between hydrogen and electrical energy storage within the hydrogen-electric energy storage system affects its operation, and consequently, the charging and discharging power of hydrogen, electrical, and the overall energy storage. Therefore, it is necessary to construct constraints (i.e., constraints) on the internal and external operating states of hydrogen-electric energy storage from a macroscopic perspective, based on its charging and discharging power, state of charge and discharge, and energy storage capacity (including electrical energy storage capacity). This ensures that the charging and discharging power P of hydrogen-electric energy storage determined in the load optimization model is within acceptable limits. t (ES) It can meet the balance between supply and demand and the economic efficiency of operation, and ensure that the charging and discharging power of hydrogen energy storage and the charging and discharging power of electric energy storage can meet the internal coordination of hydrogen-electric energy storage.

[0184] However, formulas (4) to (8) in the aforementioned embodiments of hydrogen-electric energy storage operation constraints cannot fully quantify the above-mentioned hydrogen-electric energy storage operation principles, resulting in P obtained after solving the load optimization model. t (H) and P t (E) This cannot guarantee the internal coordination of hydrogen-electric energy storage. Therefore, in the load optimization model, P is... t (ES) Instead of P t (H) and P t (E) As a decision variable, and at the same time, when determining P t (ES) After that, P can also be used t (ES) As a boundary, i.e. according to P t (ES) and the operating principles of hydrogen-electric energy storage. t (H) and P t (E) The correction, known as the hydrogen-electric coordination correction for hydrogen-electric energy storage, is used to determine the final corrected P. t (H) and P t (E) .

[0185] In one possible implementation, step 103 may be included after step 102.

[0186] Step 103: Based on the charging and discharging power of hydrogen-electric energy storage in the decision variables, determine the discharge power of hydrogen energy storage and the discharge power of electric energy storage, or the charging power of hydrogen energy storage and the charging power of electric energy storage.

[0187] In other words, after A4, the charging and discharging power of hydrogen energy storage and the charging and discharging power of electric energy storage are determined based on the charging and discharging power of hydrogen-electric energy storage in the decision variables. After A7, the charging and discharging power of hydrogen energy storage and the charging and discharging power of electric energy storage are corrected based on the charging and discharging power of hydrogen-electric energy storage in the decision variables.

[0188] For example, refer to Figure 3 Step 103 may include C1 and C2.

[0189] C1. When the power supply is in deficit (at this time P) t (ES) When <0), the amount of electrical energy stored in hydrogen-electric energy storage is Q. t (E) ≤(1-δ)Q max (E)At that time, the discharge power of the electrical energy storage is determined to be... The discharge power of hydrogen energy storage is determined to be In hydrogen-electric energy storage, the amount of energy stored is Q. t (E) >(1-δ)Q max (E) At that time, if The discharge power of the electrical energy storage is then determined to be... The discharge power of hydrogen energy storage is determined to be like The discharge power of the stored energy is then determined to be P. t (ES) .

[0190] C2. When the power supply is not in deficit (at this time P) t (ES) When ≥0), the amount of electrical energy stored in hydrogen-electric energy storage is Q. t (E) >δQ max (E) At that time, the charging power of the energy storage is determined to be... The charging power of hydrogen energy storage is determined to be In hydrogen-electric energy storage, the amount of energy stored is Q. t (E) ≤δQ max (E) At that time, if The charging power of the energy storage is then determined to be... The charging power of hydrogen energy storage is determined to be like The charging power of the energy storage is then determined to be P. t (ES) .

[0191] Among them, Q t (E) Q represents the amount of electricity stored in the electrical system. max (E) P is the maximum capacity of electrical energy storage. t (ES) The charging and discharging power of hydrogen-electric energy storage, and These are the maximum discharge power of hydrogen energy storage and the maximum discharge power of electrical energy storage, respectively. and These represent the maximum charging power of hydrogen energy storage and the maximum charging power of electrical energy storage, respectively, with δ being the energy coefficient for activating hydrogen energy storage.

[0192] In this embodiment, based on the charging and discharging power of hydrogen-electric energy storage and the operating principles of hydrogen-electric energy storage, the discharge power of hydrogen energy storage and electric energy storage is determined so that hydrogen-electric energy storage operates according to the discharge power of hydrogen energy storage and electric energy storage, satisfying both supply and demand balance and operational economy, while also satisfying the internal coordination of hydrogen-electric energy storage.

[0193] The power demand response load optimization method considering hydrogen-electric energy storage provided in this application constructs a load optimization model with the objective of minimizing the operating cost of the power system. When there is a power supply shortage, the charging and discharging power of hydrogen-electric energy storage and the optimal load allocation of user equipment are used as decision variables. An unconstrained transformation function is constructed, and the load optimization model is reconstructed and solved based on the unconstrained transformation function. This method can obtain the charging and discharging power of hydrogen-electric energy storage and the optimal load allocation of user equipment while simultaneously considering demand response and hydrogen-electric energy storage, thereby achieving effective regulation of load and hydrogen-electric energy storage. As a result, the overall operation of the power system is optimized, meeting the operational requirements of each device and load and ensuring the safe operation of the overall power grid. At the same time, reconstructing and solving the load optimization model based on the constructed unconstrained transformation function can improve the solution speed and accuracy.

[0194] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0195] Figure 4 This is a schematic diagram of a power demand response load optimization device considering hydrogen-electric energy storage, provided in one embodiment of this application. Figure 4 As shown, the power demand response load optimization device considering hydrogen-electric energy storage provided in this embodiment may include: a model building module 201 and a model solving module 202.

[0196] Among them, the model building module 201 is used to construct a load optimization model considering hydrogen-electric energy storage with the objective function of minimizing the operating cost of the power system and the constraints of supply and demand balance constraints, user equipment operation constraints, hydrogen-electric energy storage operation constraints, power grid flow constraints, network loss constraints, line flow constraints, node voltage constraints, and traditional power source operation constraints.

[0197] The model solving module 202 is used to perform time-series decoupling solution of the load optimization model according to the power supply status to determine the decision variables. Specifically, when the power supply is in deficit, the charging and discharging power of hydrogen-electric energy storage and the optimal load allocation of user equipment are used as decision variables, and an unconstrained transformation function is constructed. The load optimization model is reconstructed based on the unconstrained transformation function. The reconstructed load optimization model is solved to determine the charging and discharging power of hydrogen-electric energy storage and the optimal load allocation of user equipment.

[0198] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0199] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. For example... Figure 5 As shown, the electronic device 300 of this embodiment includes a processor 310 and a memory 320, wherein the memory 320 stores a computer program 321 that can run on the processor 310. When the processor 310 executes the computer program 321, it implements the steps in any of the above-described method embodiments, for example... Figure 1 Steps 101 to 102 are shown. Alternatively, when processor 310 executes computer program 321, it implements the functions of each module / unit in the above-described device embodiments, for example... Figure 4 The functions of modules 201 to 202 are shown.

[0200] For example, computer program 321 may be divided into one or more modules / units, one or more of which are stored in memory 320 and executed by processor 310 to complete this application. The one or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of computer program 321 in electronic device 300.

[0201] Those skilled in the art will understand that Figure 5 This is merely an example of an electronic device and does not constitute a limitation on the electronic device. It may include more or fewer components than shown, or combinations of certain components, or different components, such as input / output devices, network access devices, buses, etc.

[0202] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.

Claims

1. A method for optimizing power demand response load considering hydrogen-electric energy storage, characterized in that, include: With the objective function of minimizing the operating cost of the power system, and with constraints such as supply and demand balance constraints, user equipment operation constraints, hydrogen-electric storage operation constraints, power grid flow constraints, network loss constraints, line flow constraints, node voltage constraints, and traditional power source operation constraints, a load optimization model considering hydrogen-electric storage is constructed. Based on the power supply status, the load optimization model is solved by time-series decoupling to determine the decision variables. When the power supply is in deficit, the charging and discharging power of hydrogen-electric energy storage and the optimal load allocation of user equipment are used as decision variables, and an unconstrained transformation function is constructed. The load optimization model is then reconstructed based on the unconstrained transformation function. The reconstructed load optimization model is solved to determine the charging and discharging power of hydrogen-electric energy storage and the optimal load allocation of user equipment. When the power supply is not in deficit, the load optimization model is solved using the charging and discharging power of hydrogen-electric energy storage and the power generation of traditional power sources as decision variables to determine the charging and discharging power of hydrogen-electric energy storage and the power generation of traditional power sources. The power system includes new energy sources, traditional power sources, hydrogen-electric energy storage, and power grid lines; Before constructing the unconstrained transformation function and reconstructing the load optimization model based on the unconstrained transformation function, the following steps are also included: The load optimization model is simplified to obtain a simplified load optimization model; the simplified load optimization model includes a simplified objective function and simplified constraints, and the simplified constraints include a first constraint, a second constraint, a third constraint, and a fourth constraint. The construction of the unconstrained transformation function, and the reconstruction of the load optimization model based on the unconstrained transformation function, includes: Construct an unconstrained transformation function; based on the unconstrained transformation function, perform unconstrained transformation on the first constraint, second constraint, and fourth constraint in the simplified load optimization model to obtain a first newly added objective function, a second newly added objective function, and a fourth newly added objective function; according to the simplified objective function, the third constraint, the first newly added objective function, the second newly added objective function, and the fourth newly added objective function, reconstruct the load optimization model to obtain a reconstructed objective function, which serves as the reconstructed load optimization model; The expression for the unconstrained transformation function is: In the formula, f(x) is an unconstrained transformation function. x As the independent variable, ω , m , k and λ is a constant, where, ω Greater than or equal to 1 m and k For odd numbers greater than or equal to 3, λ It is orders of magnitude greater than all parameters in the simplified load optimization model.

2. The power demand response load optimization method considering hydrogen-electric energy storage according to claim 1, characterized in that, The method of solving the load optimization model using the charging and discharging power of hydrogen-electric energy storage and the power generation of traditional power sources as decision variables to determine the charging and discharging power of hydrogen-electric energy storage and the power generation of traditional power sources includes: Based on the aforementioned load optimization model, according to and Based on the size relationship, a traditional power supply optimization model is constructed; Using the charging and discharging power of hydrogen-electric energy storage and the power generation of traditional power sources as decision variables, the optimization model of traditional power sources is solved to determine the charging and discharging power of hydrogen-electric energy storage and the power generation of traditional power sources. in, Q t-1 (H) and Q t-1 (E) Let t-1 represent the equivalent energy of hydrogen storage and the energy of electrical storage, respectively. Q max (H) and Q max (E) These represent the maximum capacities of hydrogen energy storage and electrical energy storage, respectively; each day is divided into 24 hours. t The interval between time t and time t+1 is 1 hour, where t = 1, 2, ... T , T =24.

3. The power demand response load optimization method considering hydrogen-electric energy storage according to claim 2, characterized in that, The traditional power supply optimization model includes a first traditional power supply optimization model and a second traditional power supply optimization model; the user equipment includes equipment for Class I users, equipment for Class II users, and equipment for Class III users; the load optimization model is based on... and Based on the magnitude relationship, a traditional power supply optimization model is constructed, including: like Based on the objective function, supply-demand balance constraint, power flow constraint, network loss constraint, line power flow constraint, and node voltage constraint in the load optimization model, a first traditional power source optimization model is constructed, and the following settings are made: a i,t = b h-i,t =1, , as well as As the first new constraint in the first traditional power optimization model; like and Then, based on the objective function, supply-demand balance constraint, power flow constraint, network loss constraint, line power flow constraint, and node voltage constraint in the load optimization model, a second traditional power source optimization model is constructed, and the following settings are made: a i,t = b h-i,t =1, , as well as As a second newly added constraint in the second traditional power supply optimization model; in, express t The charging and discharging power of hydrogen-electric energy storage at any given time. express t Time of the first g The reactive power of a traditional power supply Indicates the first g The maximum reactive power output of a traditional power supply express t Time of the first g The power generation capacity of a traditional power source Indicates the first g The maximum active power output of a traditional power supply P t (Δ) for t The profit and loss of electricity supply at all times and These represent the maximum charging power of hydrogen energy storage and the maximum charging power of electric energy storage, respectively. a i,t and b h-i,t These represent the first user in a certain category. i The device is t The start / stop status at any time and the second type of user h The first among the users i An adjustable device t The start / stop status at any time, with a value of 0 indicating a stopped state and a value of 1 indicating an enabled state.

4. The power demand response load optimization method considering hydrogen-electric energy storage according to claim 1, characterized in that, The user equipment includes equipment for Class I users, Class II users, and Class III users; wherein, Class I users are load-adjustable and price-sensitive users, Class II users are load-adjustable and price-insensitive users, and Class III users are load-non-adjustable users; the power system includes new energy sources, traditional power sources, hydrogen-electric energy storage, and power grid lines; The simplified objective function is expressed as follows: The expression for the first constraint is: The expression for the second constraint is: The expression for the third constraint is: The expression for the fourth constraint is: In the formula, C new , C old , C ES and C 0 represents the unit cost of new energy power generation, traditional power generation, hydrogen-electric energy storage operation, and grid active power loss, respectively. P t (H) for t The charging and discharging power of hydrogen energy storage in hydrogen-electric energy storage at any given time. P t (E) for t The charging and discharging power of electrical energy storage in hydrogen-electric energy storage at any given time. express t Time of the first j The power generation capacity of a new energy source Indicates the first g The maximum active power output of a traditional power source; b Indicates the sequence number of the power grid line in the power system. B Indicates the number of power grid lines. J and G These represent the quantity of new energy sources and the quantity of traditional power sources, respectively. b X and b Y represents the power grid line. b The nodes at both ends; G bX,bY In the admittance matrix of the second node ( b X, b The real part of the element value of Y, U bX,t and θ bX,t They are respectively t Time Node b The voltage amplitude and phase angle of X, U bY,t and θ bY,t They are respectively t Time Node b The amplitude and phase angle of the voltage of Y; and They represent t The first type of user at any time i The power consumption of each device and the third type of user i The power consumption of each device and These represent the first among the two types of users. h Individual users t Baseline load at time and the first i The power consumption of an adjustable device A I and A III These represent the number of devices for user category 1 and user category 3, respectively. H II and A II-h These represent the number of users in the second category and the number of users in the second category, respectively. h The number of adjustable devices per user; a i,t and b h-i,t These represent the first user in a certain category. i The device is t The start / stop status at any time and the second type of user h The first among the users i An adjustable device t The start / stop status at any time, with a value of 0 indicating a stopped state and a value of 1 indicating an enabled state; and These are the maximum discharge power of hydrogen energy storage and the maximum discharge power of electrical energy storage, respectively. η (HD) This indicates the discharge efficiency of hydrogen energy storage. η (ED) This indicates the discharge efficiency of electrical energy storage. Q t-1 (H) and Q t-1 (E) They represent t respectively - The equivalent energy of hydrogen storage and the energy of electrical storage at moment 1. Q t (H) and Q t (E) They represent t The equivalent energy of hydrogen storage and the energy of electrical storage at any given time. Q max (E) Indicates the maximum capacity of electrical energy storage. δ Indicates the energy coefficient for activating hydrogen energy storage; n Indicates the node number in the power system. n =1,2 ...N , N This represents the total number of nodes in the power system. Represents a node n In t The equivalent injected active power at each moment, Represents a node n In t Equivalent reactive power injection at any given time. U n,t Represents a node n exist t Voltage amplitude at time 10:00 U v,t Represents a node v exist t Voltage amplitude at time 10:00 G nv and B nv The first node admittance matrix Y of the power system is represented by [[ y nv ] N×N The Middle n Line number v The real and imaginary parts of a column element. y nv = G nv +j B nv , θ n,t and θ v,t They represent t Time Node n and v The voltage phase angle; θ bX For nodes b The phase angle of the voltage of X, θ bY For nodes b The phase angle of the voltage of Y, P b , max Indicates power grid lines b The upper limit of transmission power, U n , min Represents a node n The lower limit of voltage, U n , min =0.85~0.95 U n , EN , U n , EN For nodes n Rated voltage, X b For power grid lines b The reactance; whereby each day is divided into 24 hours, t The interval between time t and time t+1 is 1 hour, where t = 1, 2, ... T , T =24.

5. The power demand response load optimization method considering hydrogen-electric energy storage according to claim 1, characterized in that, The expression for the first newly added objective function is: min TargI={f(a i,t )+f(b h-i,t )+f(1-a i,t )+f(1-b h-i,t )+f(a i,t )f(1-a i,t )+f(b h-i,t )f(1-b h-i,t )} The expression for the second newly added objective function is: The expression for the fourth newly added objective function is: The expression for the reconstruction objective function is: 。 6. The power demand response load optimization method considering hydrogen-electric energy storage according to any one of claims 1 to 5, characterized in that, After determining the decision variables, the process also includes: Based on the charging and discharging power of hydrogen-electric energy storage in the decision variables, determine the discharge power of hydrogen energy storage and the discharge power of electric energy storage, or the charging power of hydrogen energy storage and the charging power of electric energy storage. The step of determining the discharge power of hydrogen energy storage and the discharge power of electric energy storage, or the charging power of hydrogen energy storage and the charging power of electric energy storage, based on the charging and discharging power of hydrogen-electric energy storage in the decision variables, includes: When the power supply is insufficient, the amount of energy stored in the hydrogen-electric energy storage system... Q t (E) ≤(1- δ ) Q max (E) At that time, the discharge power of the electrical energy storage is determined to be max{0.5}. P t (ES) , The discharge power of the hydrogen energy storage is determined to be max{0.5}. P t (ES) , }; The amount of electrical energy stored in the hydrogen-electric energy storage Q t (E) >(1- δ ) Q max (E) At that time, if - P t (ES) > Then the discharge power of the energy storage is determined to be... The discharge power of the hydrogen energy storage is determined to be max{ P t (ES) - , };like- P t (ES) ≤ Then the discharge power of the energy storage is determined to be... P t (ES) ; When the power supply is not deficient, the amount of energy stored in the hydrogen-electric energy storage system is [amount missing]. Q t (E) > δQ max (E) At that time, the charging power of the energy storage is determined to be max{0.5}. P t (ES) , The charging power of the hydrogen energy storage is determined to be max{0.5}. P t (ES) , }; The amount of electrical energy stored in the hydrogen-electric energy storage Q t (E) ≤ δQ max (E) At that time, if P t (ES) > Then the charging power of the energy storage is determined to be... The charging power of the hydrogen energy storage is determined to be max{ P t (ES) - , };like P t (ES) ≤ Then the charging power of the energy storage is determined to be... P t (ES) ; in, Q t (E) For electrical energy storage, Q max (E) This is the maximum capacity of electrical energy storage. P t (ES) The charging and discharging power of hydrogen-electric energy storage, and These are the maximum discharge power of hydrogen energy storage and the maximum discharge power of electrical energy storage, respectively. and These are the maximum charging power for hydrogen energy storage and the maximum charging power for electrical energy storage, respectively. δ The energy coefficient for enabling hydrogen energy storage.

7. An electronic device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, characterized in that, When the processor executes the computer program, it implements the power demand response load optimization method considering hydrogen-electric energy storage as described in any one of claims 1 to 6.