Power grid control method and system
By using intelligent algorithms to optimize the optimal operating power of new energy power generation, hydrogen production load, and energy storage devices, the problem of multi-objective optimization in new power systems has been solved, and the safe, stable, and economical operation of the power grid has been achieved.
Patent Information
- Application Number
- CN202411520517.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2026-05-05
AI Technical Summary
Existing technologies cannot efficiently and stably optimize new power systems for multiple objectives, especially in complex systems that include grid power generation, wind and solar power generation, electrochemical energy storage, adjustable power loads, and water electrolysis for hydrogen production. The lack of effective control methods makes it difficult to guarantee safety and economy.
Intelligent algorithms are used to optimize the optimal operating power of new energy power generation, hydrogen production load, adjustable power load and energy storage devices. By setting piecewise constraints and penalty functions, the system can judge in real time whether the safety parameters exceed the limits, and re-optimize the solution variables to ensure grid stability and economy.
It has achieved safety, stability and economy in new energy power generation, hydrogen production, energy storage and adjustable power load in the new power system, improved the calculation speed and convergence, and ensured the safe and stable operation of the power grid.
Smart Images

Figure CN121984027A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of integrated energy system planning technology, specifically to a power grid control method and system. Background Technology
[0002] Currently, the power grid system is gradually shifting from traditional grid power generation and power load production to emerging industries such as grid power generation, new energy power generation, power load, and hydrogen production through water electrolysis. The power grid is transforming from a traditional grid-load structure into a new type of power system integrating source, grid, load, and storage.
[0003] Currently, for power system control, public power grids primarily consider wind and solar power generation and electrochemical energy storage, while regional integrated energy demonstration parks primarily consider wind and solar power generation, electrochemical energy storage, and steam heating. The control methods for both public power grids and integrated energy demonstration park power grids are largely aimed at ensuring grid safety, heating network safety, and economical operation.
[0004] Chinese patent application CN117408471A, published on January 16, 2024, discloses a variable-constraint multi-objective optimization control method and system for integrated energy parks. This method establishes mathematical models for various energy devices within the integrated energy system of the park, defines constraint objectives and related constraints, predicts energy storage battery efficiency and photovoltaic output based on weather and equipment conditions, adjusts relevant constraints in a timely manner, and finally solves the problem using Cplex, thereby improving the multi-objective optimization planning of the integrated energy system. This enhances the stability of the integrated energy system's operation while ensuring economic efficiency, environmental friendliness, and renewable energy generation.
[0005] However, in recent years, various enterprises have gradually built new power systems that integrate grid power generation, wind and solar power generation, electrochemical energy storage, adjustable power load, non-adjustable power load, and water electrolysis for hydrogen production (such as...). Figure 1 As shown in the figure, the new power grid has more controllable objects and more complex control objectives than public power grids and integrated energy demonstration parks. To ensure the safe, economical, and efficient operation of the new power grid, it is necessary to prioritize the capacity constraints of hydrogen, adjustable power loads, and electrochemical energy storage, while also considering grid security constraints. When considering the above issues, it is necessary to solve for the power generation / load of multiple types of controllable objects (wind and solar power generation, electrochemical energy storage, adjustable power loads, water electrolysis for hydrogen production, etc.). The scale of variables to be solved is enormous, and each solution requires consideration of various security constraints and calculation of power load stability, mainly power flow calculations to ensure that node voltages, branch power flows, and network losses do not exceed limits. Therefore, existing technologies lack efficient and stable control methods for multi-objective optimization of the new power system. Summary of the Invention
[0006] The purpose of this invention is to provide a power grid control method that solves the problem that existing control methods cannot achieve efficient and stable multi-objective optimization for new power systems.
[0007] The second objective of this invention is to provide a power grid control system that solves the problem that existing control systems cannot achieve efficient and stable multi-objective optimization for new power systems.
[0008] To solve the above-mentioned technical problems, the technical solution of the power grid control method of the present invention is as follows:
[0009] A power grid control method includes the following steps:
[0010] S1. Set constraints for new energy power generation device A, adjustable power load device B, electrolytic hydrogen production device C and energy storage device D within the prediction period, and initialize the population for the solution variables. The solution variables include the power generation of A, the load power of B, the hydrogen production power of C and the charging / discharging power of D.
[0011] S2. Based on the public power grid, historical data of A to D, and the solution variables in the initial population in S1, predict the safety parameters through power flow calculation. The safety parameters include the power flow of each branch, the voltage of each node, the grid loss, the hydrogen capacity of C, the energy storage capacity of D, and the load energy of B.
[0012] S3. Determine the objective function based on the optimal active power and minimum cost of power grid operation, and construct the correspondence between the penalty function and the over-limit value of safety parameters based on the safe operation of the power grid and each device.
[0013] S4. Under the constraints of the fitness function and the penalty function, the solution variables are optimized using an intelligent algorithm according to the objective function to obtain the optimal variables for achieving the objective function and then the process is executed.
[0014] S5. During execution, check in real time whether the safety parameters exceed the limit. If they do not exceed the limit, continue execution. If they exceed the limit, return to step S2 and re-optimize the solution variables for the remaining prediction period based on real-time data.
[0015] This invention improves upon existing technologies and provides a power grid control method that uses intelligent algorithms to optimize the calculation of the optimal operating power of new energy power generation, hydrogen production load, adjustable power load, and energy storage devices, achieving optimal economic efficiency for new oilfield power grids. Furthermore, the intelligent algorithm accelerates the solution process under complex constraints and multiple variables, exhibiting high calculation speed and convergence. Under the premise of ensuring capacity constraints, it further enhances the stability of the power grid and the economic benefits.
[0016] The control method of this invention ensures the safety and stability of the hydrogen production unit, the adjustable power load, the electrochemical energy storage unit, and the new power grid in the oilfield by constraining the capacity of hydrogen, the adjustable power load, the electrochemical energy storage unit, and the power flow. It realizes the monitoring and real-time control of new energy power generation, hydrogen production, energy storage, and adjustable power load in the new power system of the oilfield. The control objects are diverse, the control system structure is hierarchical, and it is easy to implement.
[0017] To further improve the accuracy of the power generation constraints for new energy power generation, the power generation data of new energy power generation devices corresponding to historical meteorological data are used to obtain the maximum power generation within the prediction period through a prediction algorithm, which serves as the constraint condition for new energy power generation device A.
[0018] To further achieve fine constraints on multiple types of controlled objects and thus ensure the safe operation of each device, preferably, based on the curves of the load power of the adjustable power load with the load energy generated by the adjustable power load device, the curves of the hydrogen production power of the water electrolysis hydrogen production device with the hydrogen capacity in the device, and the curves of the charging / discharging power of the energy storage device with the energy storage capacity, the constraints of the adjustable power load device B, the water electrolysis hydrogen production device C, and the energy storage device D are determined as segmented constraint conditions.
[0019] To further achieve real-time control of adjustable power loads and improve their safety and stability, preferably, the segmented constraint conditions of the adjustable power load device B are as follows: when the load energy of B is 0 to X1, the load power of B is a constant value Y1; when the load energy of B increases to X1 to X2, the load power of B is any value from 0 to Y2, where Y1 > Y2; when the load energy of B continues to increase to X2 to X... max At that time, the load power of B is 0.
[0020] To further achieve real-time control of hydrogen electrolysis and improve its safety and stability, preferably, the segmented constraint conditions of the hydrogen electrolysis device C are as follows: when the hydrogen capacity is 0 to V1, the hydrogen production power of C is a constant value Z1; when the hydrogen capacity increases to V1 to V2, the hydrogen production power of C is any value from 0 to Z2, where Z1 > Z2; when the hydrogen capacity continues to increase to V2 to V... max At that time, the hydrogen production power of C is 0.
[0021] To further improve the safety and stability of the energy storage device, preferably, the segmented constraint conditions of the energy storage device D are as follows: when the energy storage capacity is 0 to E1, the discharge power of D is a constant value W1, and the charging power is a constant value W2, where W1 < W2; when the energy storage capacity increases to E1 to E2, the discharge power of D is any value from 0 to W3, and the charging power is any value from 0 to W4, where W1 < W3, W4 < W2; when the energy storage capacity continues to increase to E2 to E3, the discharge power of D is any value from 0 to W3, and the charging power is any value from 0 to W5, where W5 < W4; when the energy storage capacity continues to increase to E3 to E4 ... max At that time, the discharge power of D is any value from 0 to W3, and the charging power is 0.
[0022] To further improve the economic efficiency of the power system, preferably, the expression for the objective function Y is:
[0023]
[0024] Among them, Pnei j The power output of the i-th renewable energy power generation unit in the j-th hour; Pesi j Let Pldi be the discharge power of the i-th energy storage device in the j-th hour; j Phi represents the load power of the i-th adjustable electrical load device in the j-th hour. j P represents the hydrogen production capacity of the i-th electrolytic hydrogen production unit in the j-th hour; Gridi P represents the active power of the public power grid. Gridi The efficiency of hydrogen production is calculated using power flow as parameters, which are the operating power of new energy power generation devices, energy storage devices, adjustable power load devices, and electrolytic hydrogen production devices; η is the hydrogen production efficiency of the electrolytic hydrogen production device; c 氢 The price of hydrogen; c 电j Time-of-use pricing for the power grid.
[0025] To further enhance security while maintaining system operational economy, preferably, the expression for the penalty function is:
[0026]
[0027] Where, f(P) bij f(U) is the maximum carrying capacity function for line i in the j-th hour; ij f(P) is the voltage over-limit function for node i at hour j; lossj f(V) is the function for determining the system network loss limit in the j-th hour; ij f(E) is the hydrogen capacity over-limit function for the i-th water electrolysis hydrogen production unit in the j-th hour; ijf(T) is the capacity over-limit function for the i-th energy storage device in the j-th hour; ij ) is the load energy over-limit value function of the i-th adjustable power load device in the j-th hour; k1, k2, ..., k6 are the linear proportional coefficients of each over-limit value.
[0028] To further achieve the solution of optimal operating power, preferably, the fitness function is:
[0029] P=CY
[0030] Where Y is the objective function, and C is a value one order of magnitude larger than Y;
[0031] The constrained objective function P is transformed into the unconstrained objective function F by using a penalty function:
[0032] F = G × P
[0033]
[0034] Where f is the penalty function.
[0035] The technical solution of the power grid control system of the present invention is as follows:
[0036] A power grid control system includes a data acquisition module, a calculation module, and a control command issuing module. The data acquisition module is used to collect real-time and historical data of the power grid, a new energy power generation device A, an adjustable power load device B, an electrolytic hydrogen production device C, and an energy storage device D, as well as weather forecast information.
[0037] The calculation module is used to set the constraints of A to D within the prediction period, initialize the population of solution variables, including the power generation of A, the load power of B, the hydrogen production power of C, and the charging / discharging power of D; it is used to predict safety parameters through power flow calculation based on the power grid, historical data of A to D, and solution variables in the initialized population, including the power flow of each branch, the voltage of each node, the grid loss, the hydrogen capacity of C, the energy storage capacity of D, and the load energy of B; it is used to set the objective function, fitness function, and penalty function, and optimize the solution variables through intelligent algorithms to obtain the optimal variables for achieving the objective function;
[0038] The control command issuing module is used to issue control commands for the optimal variables; it is used to determine in real time whether the safety parameters exceed the limits during the execution of control commands by the system. If the limits are not exceeded, the execution continues; if the limits are exceeded, the system returns to the calculation module to re-optimize and solve the solution variables for the remaining prediction period based on real-time data.
[0039] The power grid control system provided by this invention constructs a data acquisition module, a calculation module, and a control command issuing module. The intelligent algorithm in the calculation module optimizes and solves the optimal operating power of new energy power generation, hydrogen production load, adjustable power load, and energy storage device, and accelerates the solution process under complex constraints and multiple variables. It has high calculation speed and convergence, and ensures grid stability and economic benefits while guaranteeing capacity constraints. Attached Figure Description
[0040] Figure 1 A schematic diagram of the composition of a new power system for an oilfield;
[0041] Figure 2 This is a flowchart of the power grid control method according to Embodiment 1 of the present invention;
[0042] Figure 3 This is a schematic diagram of the segmented constraint conditions of the electric heat tracing device according to Embodiment 1 of the present invention;
[0043] Figure 4 This is a schematic diagram of the segmented constraint conditions of the water electrolysis hydrogen production device according to Embodiment 1 of the present invention;
[0044] Figure 5 This is a schematic diagram of the segmented constraint conditions of the electrochemical energy storage device according to Embodiment 1 of the present invention;
[0045] Figure 6 This is a schematic diagram of the power grid control system of the present invention. Detailed Implementation
[0046] The technical concept of the power grid control method of the present invention is as follows:
[0047] While existing technologies consider control targets such as energy storage batteries and photovoltaic power generation, which are new energy sources other than the power grid, when performing multi-objective optimization of integrated energy parks, they still fail to consider control targets such as adjustable power loads and electrolytic hydrogen production in new oilfield power systems. Furthermore, existing technologies only consider the problem of reduced battery energy storage efficiency and insufficient photovoltaic output in winter, which leads to changes in constraints. They do not consider the hydrogen capacity constraints of electrolytic hydrogen production, the energy storage capacity constraints of energy storage devices, or the grid security constraints. This results in potential risks to the safety and stability of hydrogen production devices, adjustable power loads, electrochemical energy storage devices, and the safety and stability of new oilfield power grids.
[0048] This invention fully considers the hydrogen capacity constraints of electrolytic hydrogen production and the energy storage capacity constraints of energy storage devices, as well as grid security constraints. By addressing the capacity constraints of hydrogen, adjustable power load, and electrochemical energy storage, and the power flow constraints, it ensures the safety and stability of the hydrogen production device, adjustable power load, electrochemical energy storage device, and the new power grid in the oilfield. Under the premise of ensuring capacity constraints, it uses intelligent algorithms to optimize and calculate the optimal operating power of new energy power generation, hydrogen production load, adjustable power load, and energy storage devices, thereby achieving rational allocation of power resources and ensuring the economic efficiency and safety stability of the new power system in the oilfield.
[0049] In a specific implementation, the new energy power generation device A includes a wind power generation device A1 and a photovoltaic power generation device A2.
[0050] In specific implementations, the intelligent algorithm may employ genetic algorithms, ant colony algorithms, simulated annealing, tabu search, particle swarm optimization, or differential evolution algorithms.
[0051] In a specific implementation, during the execution process, it is determined in real time whether the relevant parameters or coefficients of the power grid have changed. If they have changed, the process returns to step S2 and, based on the real-time data and the solution variables in the initialized population in S1, re-predicts the power flow of each branch, the voltage of each node, the power grid loss, the hydrogen capacity of C, the energy storage capacity of D, and the load energy of B through power flow calculation.
[0052] The embodiments of the present invention will be further described below with reference to specific examples.
[0053] An embodiment of the power grid control method of the present invention is as follows:
[0054] This embodiment uses the differential evolution algorithm as an example to illustrate the power grid control method in detail. The flowchart of the power grid control method is as follows: Figure 2 As shown.
[0055] Suppose that an oil field has a wind turbine, b photovoltaic power station, c adjustable power load, d water electrolysis hydrogen production station, and e electrochemical energy storage station.
[0056] Let the power generation of wind turbine a over 24 hours be Pw11, Pw12...Pw1 24 Pw21, Pw22…Pw2 24 ,…………,Pwa1,Pwa2…Pwa 24 The power generation of the i-th wind turbine in the j-th hour is Pwi j ;
[0057] Let the power generation of photovoltaic power station b over 24 hours be Ppv11, Ppv12...Ppv1 24 Ppv21, Ppv22...Ppv224 ,…………,Ppvb1,Ppvb2…Ppvb 24 The power generation of the i-th photovoltaic power station in the j-th hour is Ppvi j ;
[0058] Let the power absorbed by the adjustable electrical load of unit c in 24 hours, i.e., the load power, be Pld11, Pld12...Pld1. 24 ,Pld21,Pld22…Pld2 24 …Pldc1,Pldc2…Pldc 24 The load power of the i-th adjustable power load in the j-th hour is Pldi. j ;
[0059] Let the power absorbed by d electrolyzing water to produce hydrogen in 24 hours, i.e., the hydrogen production power, be Ph11, Ph12...Ph1, respectively. 24 Ph21, Ph22…Ph2 24 ,…………,Phd1,Phd2…Phd 24 The hydrogen production power of the i-th water electrolysis hydrogen production unit in the j-th hour is Phi. j ;
[0060] Let the power absorbed or released by the e-station electrochemical energy storage in 24 hours, i.e., the charging / discharging power, be Pes11, Pes12...Pes1, respectively. 24 Pes21, Pes22…Pes2 24 ,…………,Pese1,Pese2…Pese 24 The charging / discharging power of the i-th electrochemical energy storage station in the j-th hour is Pesi. j .
[0061] S1, Let the power generation capacity of wind power be Pwi. j Photovoltaic power generation Ppvi j Adjustable power load capacity (Pldi) j The load power Phi for hydrogen production via water electrolysis j The charging / discharging power of electrochemical energy storage Pesi j To solve for the variables.
[0062] Using historical meteorological data corresponding to the power generation data of wind turbine generators and photovoltaic power plants, the maximum power generation of wind turbine generator a and photovoltaic power plants b within a 24-hour prediction period is obtained through a prediction algorithm. and The aforementioned maximum power generation capacity is used as a constraint condition for wind turbine generators and photovoltaic power plants, i.e. Then the power generation of wind turbine a and photovoltaic power station b in 24 hours meets the power constraint, respectively:
[0063] Set constraints for the adjustable power load device, the water electrolysis hydrogen production device, and the electrochemical energy storage device. All three constraints are piecewise constraints.
[0064] Based on the load power variation curves of adjustable power loads such as electric heat tracing and electric water injection devices with the temperature and pressure generated by the adjustable power load device, the constraint conditions of the adjustable power load device are set in segments. When the adjustable power load device is an electric heat tracing device, the load energy of the adjustable power load device is represented by the heating temperature T. The segmented constraint conditions of the electric heat tracing device are as follows: Figure 3 As shown, specifically: when the temperature is 0 to T1, the load power of the electric heat tracing device can be set to prioritize maintaining a constant value P. LD1 , i.e., Pldi j =P LD1 When the temperature is T1 to T2, the load power of the electric heat tracing device can be 0 to P. LD2 Any value of , i.e., 0 ≤ Pldi j ≤P LD2 At temperatures of T2 to T max At this time, the load power of the electric heat tracing device can be set to prioritize maintaining a constant value of 0, i.e., Pldi j =0. It is understandable that when the adjustable power load device is an electric water injection or fracturing device, the load energy of the adjustable power load device can be represented by pressure P. The pressure P is constrained with reference to the segmented constraint condition of temperature mentioned above. Other adjustable power load devices are similar and will not be elaborated here.
[0065] Based on the hydrogen production power variation curve of the water electrolysis hydrogen production unit with the hydrogen capacity in the unit, the constraints of the water electrolysis hydrogen production unit are set in segments. The segmented constraints of the water electrolysis hydrogen production unit are as follows: Figure 4 As shown, specifically: when the hydrogen capacity of the water electrolysis hydrogen production device is 0 to V1, the hydrogen production power of the device can be set to prioritize maintaining a constant value P. H1 Phi j =P H1 When the hydrogen capacity is V1 to V2, the hydrogen production power of the hydrogen production unit can be 0 to P. H2 For any value of Phi, i.e., 0 ≤ Phi j ≤P H2 When the hydrogen capacity is V2~V max At this time, the hydrogen production power of the hydrogen production unit can be set to prioritize maintaining a constant value of 0, i.e., Phi j =0.
[0066] Based on the power-to-energy-capacity curve of the electrochemical energy storage device, the constraints of the electrochemical energy storage device are set in segments, as shown in the following figures. Figure 5 As shown, specifically: when the energy storage capacity of the electrochemical energy storage device is 0 to E1, the charging power of the energy storage device can be set to preferentially maintain a constant value P. ES1 The discharge power can be set to prioritize maintaining a constant value P. ES4 Pesi j =P ES1 Pesi j =-P ES4 When the energy storage capacity is E1 to E2, the charging power of the energy storage device can be 0 to P. ES2 For any value, the discharge power can be 0 to P. ES5 Any value of -P ES5 ≤Pesi j ≤P ES2 When the energy storage capacity is E2 to E3, the charging power of the energy storage device can be 0 to P. ES3 For any value, the discharge power can be 0 to P. ES5 Any value of -P ES5 ≤Pesi j ≤P ES3 ; with energy storage capacity of E3~E max At this time, the charging power of the energy storage device can be set to prioritize maintaining a constant value of 0, and the discharging power can be 0 to P. ES5 Any value of -P ES5 ≤Pesi j ≤0.
[0067] For solving variable Pwi j ,Ppvi j ,Pldi j Phi j Pesi j Initialize the population by randomly generating a series of values within a constrained range.
[0068] S2. Write a power flow calculation program. The basic data for power flow calculation includes historical data from the public power grid, wind turbines, photovoltaic power stations, adjustable power loads, water electrolysis for hydrogen production, and electrochemical energy storage stations. Specifically, this includes branch number, branch start and end nodes, branch resistance, reactance, and ground susceptance, branch transformer turns ratio, node number, node type, initial node voltage value, PV node mark, PV node voltage setpoint, generator active and reactive power, load active and reactive power, and the capacity of reactive power compensation equipment connected to the node. Among them, photovoltaic power stations and wind turbines are equivalent to generator nodes. Before optimization calculation, the power generation data of new energy power generation devices corresponding to historical meteorological data are used to predict the active and reactive power values of photovoltaic power stations and wind turbines based on weather conditions, and the values are input with constant values every hour for 24 hours. Electrochemical energy storage is equivalent to generator nodes when discharging and equivalent to load nodes when charging. Adjustable power load and water electrolysis for hydrogen production are equivalent to load nodes. Some switching signals are taken from the SCADA system of the power grid (the power grid formed by multiple control objects in the optimization area) in real time. If a change is detected, the basic data of power flow calculation is updated.
[0069] Based on the solution variable Pwi in the initialization population in step S1 j ,Ppvi j ,Pldi j Phi j Pesi j Power flow calculations can be used to calculate and predict 24-hour safety parameters, including power flow in each branch, node voltage, grid loss, hydrogen capacity, energy storage capacity, and temperature or pressure of adjustable power loads.
[0070] S3. Determine the objective function, which is the objective cost function Y. The objective function is set with the daily electricity consumption cost of the power grid as the target, taking into account the cost transfer caused by changes in the capacity of energy storage, hydrogen storage, and adjustable power load. The expression is:
[0071]
[0072] P Gridi =f(Pwi j ,Ppvi j Pesi j ,Pldi j ,Phi j )
[0073] Among them, Pwi j Ppvi represents the power output of the i-th wind turbine in the j-th hour. j Let Pesi be the power output of the i-th photovoltaic power generation device in the j-th hour; jLet Pldi be the discharge power of the i-th energy storage device in the j-th hour; j Let Phi be the load power of the i-th adjustable power load device in the j-th hour; j P represents the hydrogen production capacity of the i-th electrolysis hydrogen production unit in the j-th hour; Gridi P represents the active power of the public power grid. Gridi P is a function of the operating power of new energy power generation devices, energy storage devices, adjustable power load devices, and electrolytic hydrogen production devices. Gridi It is obtained through power flow calculation using the operating power of new energy power generation devices, energy storage devices, adjustable power load devices, and electrolytic hydrogen production devices as parameters; η is the weight of hydrogen produced per kWh of electricity generated by the electrolytic hydrogen production device, kg / kWh; c 氢 The price of hydrogen is in yuan / kg; c 电j The electricity price for a certain region is based on the 24-hour time-of-use pricing of the power grid, priced at yuan / kWh. Table 1 shows the time-of-use electricity price for a certain region.
[0074] Table 1. Time-of-use electricity prices for a certain region.
[0075] Low period flat period peak hours Peak hours flat period peak hours Peak hours peak hours 23:00-7:00 7:00-8:30 8:30-10:30 10:30-11:30 11:30-18:00 18:00-19:00 19:00-21:00 21:00-23:00 0.25912 0.6478 1.03648 1.01126 0.6478 1.03648 1.01126 1.03648
[0076] Determine the fitness function, which transforms the problem of finding the minimum value of the objective function Y into the problem of finding the maximum value P:
[0077] P=CY
[0078] Where C is a value one order of magnitude larger than Y. For example, if the value of Y is 2 million yuan / day, then C should be 20 million yuan / day.
[0079] A penalty function f is determined, which is related to the over-limit values of safety parameters within the prediction period. The penalty function considers overload of branch currents such as lines, over-limit voltage at nodes, over-limit grid losses, over-limit hydrogen storage, over-limit energy storage capacity, and over-limit temperature of adjustable power loads. Specifically, the penalty function is linearly related to the sum of over-limit values of power flow in each branch, the sum of over-limit values of voltage at each node, the over-limit value of grid losses, the over-limit value of hydrogen capacity, the over-limit value of energy storage capacity, and the over-limit value of adjustable power load capacity, respectively. The specific expression is as follows:
[0080]
[0081] in,
[0082]
[0083] Where, f(P) bij f(U) is the maximum carrying capacity function for line i in the j-th hour; ij f(P) is the voltage over-limit function for node i at hour j; lossjf(V) is the function for determining the system network loss limit in the j-th hour; ij f(E) is the hydrogen capacity over-limit function for the i-th water electrolysis hydrogen production unit in the j-th hour; ij f(T) is the capacity over-limit function for the i-th energy storage device in the j-th hour; ij ) is the heating temperature over-limit value function of the i-th adjustable power load device in the j-th hour; k1, k2, ..., k6 are the linear proportional coefficients of each over-limit value. The linear proportional coefficients should be gradually adjusted to the optimal value through multiple optimization calculations; other parameters are explained below.
[0084] The constrained objective function P is transformed into the unconstrained objective function F by using a penalty function:
[0085] F = G × P
[0086]
[0087] When the sum of the power flow limits of each branch is greater than the limit, or / and the sum of the voltage limits of each node is greater than the limit, or / and the sum of the grid losses is greater than the limit, or / and the sum of the hydrogen capacity limits, or / and the sum of the energy storage capacity limits, or / and the sum of the adjustable power load capacity limits, the penalty function f is larger. At this time, the value of G is smaller, and the value of F is smaller. This is contrary to the goal of requiring the maximum value of F. The differential evolution algorithm will automatically adjust the solution variables to reduce the cases where the value of F is small.
[0088] Branch power flow constraints mean that the power of a branch cannot exceed the maximum current carrying capacity of the line. Assume there are m critical lines, and the active power of line i in hour j is P. bij Its maximum carrying capacity is The condition for exceeding the limit is: Among them, P bij It is obtained from tidal current calculations.
[0089] Node voltage constraints mean that the voltage at each node of the power grid must be within a specified range. Assume there are m critical nodes or buses, and the voltage at node i in hour j is U. ij If the voltage at all nodes is specified to be between 90% and 110%, then the over-limit condition is: 0.9U. 11 ≤U 11 ≤1.1U 11 , ...0.9U ij ≤U ij ≤1.1U ij , ...0.9U m24 ≤U m24 ≤1.1U m24 .
[0090] Power grid loss constraints mean that power grid losses must be within a set range. Assume the system's network loss requirement is within... Within, the system network loss calculated according to the power flow in the j-th hour is P. lossj Then the condition for exceeding the limit is:
[0091] The conditions for exceeding the load energy limits for the hydrogen production capacity of set a (a) electrolytic hydrogen production unit, the energy storage capacity of set b (b) energy storage unit, and the load energy of set c (c) adjustable power load unit are as follows: the capacity or temperature parameters of set i in hour j must not exceed the limit. Each parameter is selected judiciously based on the actual operation of the power grid and the operational objectives. For example, if the total energy storage capacity of the electrochemical energy storage device is E, 0.1E can be taken. 0.9E can be taken; the hydrogen capacity of the water electrolysis hydrogen production device is V, V i max 0.9V is acceptable. The appropriate value can be selected based on the calculated tidal current values; Select the appropriate value based on the current carrying capacity of the critical line or transformer.
[0092] S4. Calculate the F value for each population, compare the F values for each population, and record the larger F value; record the value of each individual in the population corresponding to the larger F value, i.e., Pwi. j ,Ppvi j ,Pldi j Phi j Pesi j .
[0093] Determine if the differential evolution algorithm has completed its loop count. If so, output the wind power generation Pwi for the current 24 hours or for each hour of the remaining time. j Photovoltaic power generation Ppvi j Adjustable power load Pli j Hydrogen production power Phi via water electrolysis j Electrochemical energy storage power Pesi j If the task is not completed, proceed to the next step.
[0094] For the solution variable, i.e., Pwi j ,Ppvi j ,Pldi j Phi j Pesi j Perform mutation; for the solution variable, Pwi j ,Ppvi j ,Pldi j Phi j Pesij Perform crossover; select the result, return and recalculate the value of F in the population of the selected result, and continue the comparison and judgment loop to optimize the solution variables, obtain the optimal variables to achieve the objective function F, and execute.
[0095] S5. During execution, the safety parameters (branch power flow, node voltage, grid loss, load energy, hydrogen capacity, and energy storage capacity) are checked in real time to see if they exceed the limits. If they do not exceed the limits, execution continues. If they exceed the limits, the process immediately or / and within the next hour returns to step S2 to re-optimize the solution variables for the remaining prediction period based on real-time data.
[0096] Embodiment 1 of the power grid control system of the present invention:
[0097] The power grid control system in this embodiment is as follows: Figure 6 As shown, it includes a data acquisition module, a calculation module, and a control command issuing module. The data acquisition module is used to collect real-time data from the power grid SCADA system, real-time data from wind power, photovoltaic, adjustable power load, electrolytic hydrogen production, and energy storage devices, historical data from the power grid, wind power, photovoltaic, adjustable power load, electrolytic hydrogen production, and energy storage devices, and weather forecast information.
[0098] The calculation module includes a hydrogen capacity constraint setting module, an adjustable power load constraint setting module, and an electrochemical energy storage capacity constraint setting module, which are used to set the segmented constraint conditions for the hydrogen capacity, energy storage capacity, and load energy of the adjustable power load device within the prediction period, respectively.
[0099] It includes wind and solar power generation prediction modules, which use historical meteorological data (weather forecast information) and corresponding wind and solar power generation data to obtain the maximum power generation within the prediction period through prediction algorithms.
[0100] It includes a parameter setting module for setting constraints on wind power and photovoltaic power generation; and for setting over-limit values for branch power flow, node voltage, grid loss, hydrogen capacity, energy storage capacity, and adjustable power load.
[0101] It includes a power flow calculation module, which is used to load basic power flow calculation data, write power flow calculation programs, and calculate and predict 24-hour safety parameters. Safety parameters include power flow of each branch, node voltage, grid loss, hydrogen capacity, energy storage capacity, and temperature or pressure of adjustable power load.
[0102] It includes a multi-objective optimization intelligent algorithm calculation module for determining the objective function, fitness function, and penalty function. The penalty function is related to the over-limit values of safety parameters. Specifically, the penalty function is linearly correlated with the sum of the over-limit values of power flow in each branch, the sum of the over-limit values of voltage in each node, the over-limit value of grid loss, the over-limit value of hydrogen capacity, the over-limit value of energy storage capacity, and the over-limit value of adjustable power load capacity. The linear proportional coefficient of each over-limit value is gradually adjusted to the optimal value through multiple optimization calculations. The intelligent algorithm optimizes the solution variables to obtain the optimal variables for achieving the objective function. The solution variables include the power generation of wind power and photovoltaic power, the load power of adjustable power load, the hydrogen production power of water electrolysis hydrogen production, and the charging / discharging power of electrochemical energy storage.
[0103] It includes a control command issuing module, which includes power commands for wind power generation, photovoltaic power generation, adjustable power load, water electrolysis for hydrogen production, and electrochemical energy storage. This module issues and executes power commands and checks in real time whether the values of each parameter exceed the limits during the execution of the control commands. If the limits are not exceeded, execution continues; if the limits are exceeded, the module returns to the calculation module to re-optimize and solve the solution variables for the remaining prediction period based on real-time data.
[0104] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A power grid control method, characterized in that, Includes the following steps: S1. Set constraints for new energy power generation device A, adjustable power load device B, electrolytic hydrogen production device C and energy storage device D within the prediction period, and initialize the population for the solution variables. The solution variables include the power generation of A, the load power of B, the hydrogen production power of C and the charging / discharging power of D. S2. Based on the public power grid, historical data of A to D, and the solution variables in the initial population in S1, predict the safety parameters through power flow calculation. The safety parameters include the power flow of each branch, the voltage of each node, the grid loss, the hydrogen capacity of C, the energy storage capacity of D, and the load energy of B. S3. Determine the objective function based on the optimal active power and minimum cost of power grid operation, and construct the correspondence between the penalty function and the over-limit value of safety parameters based on the safe operation of the power grid and each device. S4. Under the constraints of the fitness function and the penalty function, the solution variables are optimized using an intelligent algorithm according to the objective function to obtain the optimal variables for achieving the objective function and then the process is executed. S5. During execution, check in real time whether the safety parameters exceed the limit. If they do not exceed the limit, continue execution. If they exceed the limit, return to step S2 and re-optimize the solution variables for the remaining prediction period based on real-time data.
2. The power grid control method as described in claim 1, characterized in that, Using historical meteorological data corresponding to the power generation data of new energy power generation devices, the maximum power generation within the prediction period is obtained through a prediction algorithm and used as a constraint condition for new energy power generation device A.
3. The power grid control method as described in claim 1, characterized in that, Based on the curves of load power variation with load energy generated by the adjustable power load device, hydrogen production power variation with hydrogen capacity in the water electrolysis hydrogen production device, and charging / discharging power variation with energy storage capacity of the energy storage device, the constraints of the adjustable power load device B, the water electrolysis hydrogen production device C, and the energy storage device D are correspondingly determined as segmented constraints.
4. The power grid control method as described in claim 3, characterized in that, The segmented constraint conditions of the adjustable power load device B are as follows: when the load energy of B is 0 to X1, the load power of B is a constant value Y1; when the load energy of B increases to X1 to X2, the load power of B is any value from 0 to Y2, where Y1 > Y2; when the load energy of B continues to increase to X2 to X... max At that time, the load power of B is 0.
5. The power grid control method as described in claim 3, characterized in that, The segmented constraint conditions of the electrolytic hydrogen production device C are as follows: when the hydrogen capacity is 0 to V1, the hydrogen production power of C is a constant value Z1; when the hydrogen capacity increases to V1 to V2, the hydrogen production power of C is any value from 0 to Z2, where Z1 > Z2; when the hydrogen capacity continues to increase to V2 to V... max At that time, the hydrogen production power of C is 0.
6. The power grid control method as described in claim 3, characterized in that, The segmented constraints of the energy storage device D are as follows: When the energy storage capacity is 0 to E1, the discharge power of D is a constant value W1, and the charging power is a constant value W2, where W1 < W2; when the energy storage capacity increases to E1 to E2, the discharge power of D is any value from 0 to W3, and the charging power is any value from 0 to W4, where W1 < W3 and W4 < W2; when the energy storage capacity continues to increase to E2 to E3, the discharge power of D is any value from 0 to W3, and the charging power is any value from 0 to W5, where W5 < W4; when the energy storage capacity continues to increase to E3 to E4 ... and the charging power is any value from 0 to W5, and the charging power is any value from 0 to W5, and the charging power is any value from 0 to W5. max At that time, the discharge power of D is any value from 0 to W3, and the charging power is 0.
7. The power grid control method as described in claim 1, characterized in that, The expression for the objective function Y is: Q Gridi =f(Thus j , Press j , Please j , Phi j ) Among them, Pnei j The power output of the i-th renewable energy power generation unit in the j-th hour; Pesi j Let Pldi be the discharge power of the i-th energy storage device in the j-th hour; j Phi represents the load power of the i-th adjustable electrical load device in the j-th hour. j P represents the hydrogen production capacity of the i-th electrolytic hydrogen production unit in the j-th hour; Gridi P represents the active power of the public power grid. Gridi The efficiency of hydrogen production is calculated using power flow as parameters, which are the operating power of new energy power generation devices, energy storage devices, adjustable power load devices, and electrolytic hydrogen production devices; η is the hydrogen production efficiency of the electrolytic hydrogen production device; c 氢 The price of hydrogen; c 电j Time-of-use pricing for the power grid.
8. The power grid control method as described in claim 1, characterized in that, The expression for the penalty function is: Where, f(P) bij f(U) is the maximum carrying capacity function for line i in the j-th hour; ij f(P) is the voltage over-limit function for node i at hour j; lossj f(V) is the function for determining the system network loss limit in the j-th hour; ij f(E) is the hydrogen capacity over-limit function for the i-th water electrolysis hydrogen production unit in the j-th hour; ij f(T) is the capacity over-limit function for the i-th energy storage device in the j-th hour; ij ) is the load energy over-limit value function of the i-th adjustable power load device in the j-th hour; k1, k2, ..., k6 are the linear proportional coefficients of each over-limit value.
9. The power grid control method as described in claim 1, characterized in that, The fitness function is: P=CY Where Y is the objective function, and C is a value one order of magnitude larger than Y; The constrained objective function P is transformed into the unconstrained objective function F by using a penalty function: F = G × P Where f is the penalty function.
10. A power grid control system, characterized in that, It includes a data acquisition module, a calculation module, and a control command issuing module. The data acquisition module is used to collect real-time and historical data of the power grid, new energy power generation device A, adjustable power load device B, electrolytic hydrogen production device C, and energy storage device D, as well as weather forecast information. The calculation module is used to set the constraints of A to D within the prediction period, initialize the population of solution variables, including the power generation of A, the load power of B, the hydrogen production power of C, and the charging / discharging power of D; it is used to predict safety parameters through power flow calculation based on the power grid, historical data of A to D, and solution variables in the initialized population, including the power flow of each branch, the voltage of each node, the grid loss, the hydrogen capacity of C, the energy storage capacity of D, and the load energy of B; it is used to set the objective function, fitness function, and penalty function, and optimize the solution variables through intelligent algorithms to obtain the optimal variables for achieving the objective function; The control command issuing module is used to issue control commands for the optimal variables; This is used to determine in real time whether safety parameters exceed limits during the execution of control commands by the system. If the limits are not exceeded, execution continues; if the limits are exceeded, the system returns to the calculation module to re-optimize and solve the solution variables for the remaining prediction period based on real-time data.
Citation Information
Patent Citations
Variable-constraint multi-objective optimization control method and system for integrated energy park
CN117408471A
