A method and system for optimizing energy system operation strategy based on dynamic simulation

Through dynamic simulation and optimization algorithms, the energy system operation strategy is optimized, the supply and demand mismatch problem caused by poor photovoltaic power generation stability is solved, and the efficient, stable and environmentally friendly operation of the energy system is achieved.

CN118659370BActive Publication Date: 2024-10-25ZHEJIANG UNIV CITY COLLEGE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411140375.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-20
Publication Date
2024-10-25
Estimated Expiration
2044-08-20

AI Technical Summary

Technical Problem

Existing energy system operation strategy optimization technology is difficult to flexibly respond to fluctuations in load power demand when faced with poor photovoltaic power generation stability, resulting in unreasonable energy distribution and possible energy shortage or overload, affecting system stability.

Method used

An energy system operation strategy optimization method based on dynamic simulation is adopted. By constructing an energy system simulation model and combining historical data and real-time data, it dynamically predicts energy demand and photovoltaic power generation, determines the best day-ahead and intra-day rolling operation strategies, and uses the whale optimization algorithm and The simulated annealing algorithm optimizes the operation strategy to ensure supply and demand matching and the lowest cost.

Benefits of technology

It achieves fast-response real-time supply and demand matching when load power demand and photovoltaic power generation are uncertain, improving the stability of the energy system and clean energy utilization, and reducing operating costs and carbon emissions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118659370B_ABST
    Figure CN118659370B_ABST
Patent Text Reader

Abstract

The present invention provides an energy system operation strategy optimization method and system based on dynamic simulation, which relates to the field of data processing technology. The method comprises: constructing an energy system simulation model. Obtaining historical energy demand data and historical photovoltaic power generation data. Dynamically predicting the energy demand for the next day and the photovoltaic power generation for the next day. Substituting the predicted value of the energy demand for the next day and the predicted value of the photovoltaic power generation for the next day into the energy system simulation model, with the goal of reducing the cost for the next day, reducing carbon emissions and improving the utilization rate of clean energy, to determine the best day-ahead operation strategy. Obtaining real-time energy demand and real-time photovoltaic power generation. Substituting the real-time energy demand and real-time photovoltaic power generation into the energy system simulation model, on the basis of the best day-ahead operation strategy, with the goal of reducing the deviation from the best day-ahead operation strategy and improving the real-time supply and demand matching, to determine the best intraday rolling operation strategy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to an energy system operation strategy optimization method and system based on dynamic simulation. Background Art

[0002] With the development of photovoltaic power generation, more and more clean energy systems containing photovoltaic power generation equipment are being used. Optimizing strategies during the operation of energy systems can ensure that energy systems can operate efficiently, reliably and economically to meet changing energy needs and environmental conditions.

[0003] At present, the optimization of energy system operation strategy is often based on photovoltaic power generation prediction technology. According to the photovoltaic power generation prediction, the operation strategy is optimized and the priority is set. Photovoltaic power generation is used first, then battery energy storage, and finally fuel cells or backup generators are used. The upper and lower limits of battery SOC are set to ensure that the battery operates within a safe range. For example, when the SOC is higher than a certain threshold, charging is stopped; when the SOC is lower than a certain threshold, discharging is started.

[0004] However, the current strategy optimization technology will inevitably face the problem of poor stability of photovoltaic power generation. The operation strategy determined in advance by the strategy optimization technology based on photovoltaic power generation prediction technology is prone to unreasonable energy allocation when facing the dual uncertainty of load power demand and photovoltaic power generation. When the actual photovoltaic power generation is insufficient, the pre-arranged power demand may not be met, and when the actual photovoltaic power generation is too much, energy waste or equipment overload may occur. At the same time, if the load demand fluctuates greatly, the pre-determined operation strategy may not be able to flexibly respond to the actual situation, resulting in a mismatch between supply and demand, making the energy system unstable. Summary of the invention

[0005] In order to solve the problem of poor stability of photovoltaic power generation that the current strategy optimization technology will inevitably face, the operation strategy determined in advance by the strategy optimization technology based on photovoltaic power generation prediction technology is easy to lead to unreasonable energy distribution when facing the dual uncertainty of load power demand and photovoltaic power generation. When the actual photovoltaic power generation is insufficient, the pre-arranged power demand may not be met, and when the actual photovoltaic power generation is excessive, energy waste or equipment overload may occur. If the load demand fluctuates greatly, the pre-determined operation strategy may not be able to flexibly respond to the actual situation, resulting in a mismatch between supply and demand, making the energy system unstable. The present invention provides an energy system operation strategy optimization method and system based on dynamic simulation.

[0006] The technical solution provided by the embodiment of the present invention is as follows:

[0007] First aspect:

[0008] An embodiment of the present invention provides an energy system operation strategy optimization method based on dynamic simulation, comprising:

[0009] S1: Build energy system simulation model;

[0010] S2: Obtain historical energy demand data and historical photovoltaic power generation data;

[0011] S3: dynamically predicting the energy demand and photovoltaic power generation for the next day based on the historical energy demand data and the historical photovoltaic power generation data;

[0012] S4: Substitute the predicted value of energy demand and photovoltaic power generation for the next day into the energy system simulation model to reduce the cost of the next day, reduce carbon emissions and increase the utilization rate of clean energy, and determine the best day-ahead operation strategy;

[0013] S5: Obtaining real-time energy demand and real-time photovoltaic power generation;

[0014] S6: Substitute the real-time energy demand and the real-time photovoltaic power generation into the energy system simulation model, and determine the optimal intraday rolling operation strategy based on the optimal day-ahead operation strategy with the goal of reducing the deviation from the optimal day-ahead operation strategy and improving the real-time supply and demand matching.

[0015] Second aspect:

[0016] An embodiment of the present invention provides an energy system operation strategy optimization system based on dynamic simulation, comprising:

[0017] processor;

[0018] A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the energy system operation strategy optimization method based on dynamic simulation as described in the first aspect is implemented.

[0019] The third aspect:

[0020] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method for optimizing the operation strategy of an energy system based on dynamic simulation as described in the first aspect is implemented.

[0021] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0022] In the present invention, the optimal day-ahead operation strategy is first determined based on the energy demand for next day and the photovoltaic power generation for next day, with the goal of reducing the cost for next day, reducing carbon emissions and increasing the utilization rate of clean energy. Then, based on the real-time energy demand and real-time photovoltaic power generation, on the basis of the optimal day-ahead operation strategy, the optimal intraday rolling operation strategy is determined with the goal of reducing the deviation from the optimal day-ahead operation strategy and improving the real-time supply and demand matching. When faced with the dual uncertainties of load power demand and photovoltaic power generation, the intraday rolling operation strategy can quickly respond to real-time changes, ensure that the energy system can operate efficiently under various circumstances, maintain supply and demand matching, and improve the stability of the energy system. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0024] Figure 1 A schematic diagram of a flow chart of an energy system operation strategy optimization method based on dynamic simulation provided by an embodiment of the present invention;

[0025] Figure 2 A schematic diagram of a method for optimizing an energy system operation strategy based on dynamic simulation provided by an embodiment of the present invention;

[0026] Figure 3 A schematic diagram of the structure of an energy system operation strategy optimization system based on dynamic simulation provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0027] The technical solution of the present invention is described below in conjunction with the accompanying drawings.

[0028] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present the concept in a specific way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.

[0029] In the embodiments of the present invention, "image" and "picture" may sometimes be used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings they intend to express are consistent.

[0030] In the embodiments of the present invention, sometimes the subscripts such as W 1It may be mistakenly written as a non-subscript form such as W1. When the difference is not emphasized, the meanings they express are the same.

[0031] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0032] Reference Manual Attached Figure 1 , showing a flow chart of an energy system operation strategy optimization method based on dynamic simulation provided by an embodiment of the present invention.

[0033] Reference Manual Attached Figure 2 , showing a structural schematic diagram of an energy system operation strategy optimization method based on dynamic simulation provided by an embodiment of the present invention.

[0034] The embodiment of the present invention provides an energy system operation strategy optimization method based on dynamic simulation, which can be implemented by an energy system operation strategy optimization device based on dynamic simulation, and the energy system operation strategy optimization device based on dynamic simulation can be a terminal or a server. The processing flow of the energy system operation strategy optimization method based on dynamic simulation can include the following steps:

[0035] S1: Build an energy system simulation model.

[0036] Optionally, the energy system includes: photovoltaic power generation equipment, batteries and hydrogen energy equipment, and the hydrogen energy equipment includes: electrolyzer, fuel cell and hydrogen storage tank.

[0037] Optionally, the energy system simulation model includes: a photovoltaic power generation equipment model, a battery model and a hydrogen energy equipment model. The hydrogen energy equipment model specifically includes an electrolyzer sub-model, a fuel cell sub-model and a hydrogen storage tank sub-model.

[0038] In the present invention, the collaborative work of photovoltaic power generation equipment, batteries and hydrogen energy equipment can be optimized through simulation models. The system can dynamically adjust the operating status of each device according to real-time data and predicted data, maximize the utilization rate of renewable energy and reduce energy waste.

[0039] Optionally, the photovoltaic power generation equipment model is specifically:

[0040]

[0041] in, I PV Represents the output current of photovoltaic power generation equipment, V PV Indicates the output voltage of the photovoltaic power generation equipment. P PV Represents the output power of photovoltaic power generation equipment. IP Represents the photocurrent generated by photovoltaic power generation equipment. I 0 represents the reverse saturation current of the diode, and exp represents the natural constant e The exponential function with base , R s represents the series resistance of the photovoltaic cell, R p represents the parallel resistance of the photovoltaic cell, a represents the diode ideality factor, V t Indicates the thermal voltage of photovoltaic power generation equipment.

[0042] The photocurrent generated by photovoltaic power generation equipment is specifically:

[0043]

[0044] in, I P,n represents the photocurrent under nominal conditions, K I represents the current temperature coefficient, Indicates the difference between the actual temperature and the nominal temperature. G Indicates the radiation intensity on the surface of photovoltaic power generation equipment. G n Indicates the nominal radiant intensity.

[0045] Optionally, the battery model is specifically:

[0046]

[0047] in, V bat Indicates the battery voltage, E bat Indicates no-load voltage, R bat Represents the internal resistance of the battery, I bat Indicates the battery current.

[0048]

[0049] in, SOC Indicates the battery charging status. t Indicates time, represents the time step, β Indicates the battery self-discharge rate, P c Indicates the charging power, P d Indicates the discharge power, or cIndicates the charging efficiency, or d represents the discharge efficiency, E c Indicates the rated capacity of the battery.

[0050] Optionally, the fuel cell sub-model uses a fuel cell stack of hydrogen and air, and the fuel cell sub-model is specifically:

[0051]

[0052] in, V fc Indicates the output voltage of the hydrogen energy device, E oc Indicates the circuit voltage, V act represents the activation voltage, V ohm represents the ohm voltage, N c represents the number of fuel cells connected in series, A represents the Tafel slope, i fc Represents the output current of the hydrogen energy equipment, i c represents the exchange current, R fc represents the fuel cell resistance.

[0053] Optionally, the electrolytic cell sub-model is specifically:

[0054]

[0055] in, n H2 represents the hydrogen production of the electrolyzer, or F is the Faraday efficiency, N represents the number of fuel cells connected in series, i e represents the electrolytic cell current, F represents the Faraday constant.

[0056] Optionally, the hydrogen storage tank model is specifically:

[0057]

[0058] in, P H2 Indicates the pressure inside the hydrogen storage tank. M H2 Indicates the amount of hydrogen in the hydrogen storage tank. R is the ideal gas constant, T Indicates the temperature inside the hydrogen storage tank. VIndicates the capacity of the hydrogen storage tank.

[0059] S2: Obtain historical energy demand data and historical photovoltaic power generation data.

[0060] S3: Based on historical energy demand data and historical photovoltaic power generation data, dynamically predict the energy demand for the next day and the photovoltaic power generation for the next day.

[0061] Specifically, the energy demand for the next day and the photovoltaic power generation for the next day can be predicted by using technologies such as long short-term memory neural network, recurrent neural network, and time series prediction model. The relevant prediction technology is already a very mature prior art, and the present invention will not elaborate on it.

[0062] S4: Substitute the predicted value of energy demand for the next day and the predicted value of photovoltaic power generation into the energy system simulation model to determine the optimal day-ahead operation strategy with the goal of reducing the cost for the next day, reducing carbon emissions and increasing the utilization rate of clean energy.

[0063] In the present invention, by substituting the predicted energy demand and photovoltaic power generation of the next day into the simulation model and determining the optimal day-ahead operation strategy, the operating efficiency and economic benefits of the energy system can be effectively improved, costs and carbon emissions can be reduced, the flexibility and reliability of the system can be enhanced, the utilization and development of renewable energy can be promoted, and ultimately both environmental and economic benefits can be achieved.

[0064] In a possible implementation manner, the operation strategy is specifically expressed as:

[0065]

[0066] in, L represents the energy demand vector of the load equipment, Y Indicates the running strategy plan. E represents the energy supply vector that supplies the equipment, L i Indicates i The energy demand of each load device, i =1,2,…, m , m Indicates the total number of load devices. E j Indicates j The energy supply of each supply device, j =1,2,…, n , n Represents the total number of supplied equipment, including photovoltaic power generation equipment, batteries and hydrogen energy equipment.

[0067] In a possible implementation, S4 specifically includes sub-steps S401 and S402:

[0068] S401: Construct a day-ahead operation objective function with the goal of reducing next-day costs, reducing carbon emissions, and increasing clean energy utilization.

[0069] Optionally, the day-ahead operation objective function is specifically:

[0070]

[0071] in, f 1 represents the objective function of the day-ahead operation, Y Indicates the running strategy plan. C Indicates the cost of the next day, Yes represents carbon emissions, or c represents the utilization rate of clean energy, m 1 Indicates the weight coefficient of the next day's cost, m 2 Represents the weight coefficient of carbon emissions, m 3 Represents the weight coefficient of clean energy utilization.

[0072] Among them, technicians in this field can set the weight coefficient of the next day's cost and the weight coefficient of the clean energy utilization rate according to actual conditions. m 1 , weight coefficient of carbon emissions m 2 And the weight coefficient of clean energy utilization m 3 The present invention does not limit the size.

[0073] In the present invention, by constructing and optimizing the day-ahead operation objective function, multiple objectives such as cost, carbon emissions and clean energy utilization can be systematically considered to improve the overall efficiency, economic benefits and environmental friendliness of the energy system. At the same time, the optimization objective function provides a quantitative basis for scientific decision-making and promotes the application of simulation technology and optimization algorithms in energy management. Through dynamic adjustment and real-time monitoring, energy allocation and operation strategies can be continuously optimized to ensure efficient operation and stability of the system.

[0074] Optionally, the next day cost is:

[0075]

[0076] in, C Indicates the cost of the next day, express t The main power grid price at the moment, express t The amount of electricity purchased by the main power grid at the moment, Nbat Indicates the number of batteries. Indicates i The unit charge and discharge cost of a battery, Indicates i Batteries t The charging and discharging power at the moment, N fc Indicates the number of hydrogen energy equipment, Indicates i Hydrogen energy equipment t The unit energy storage cost at the moment, Indicates i Hydrogen energy equipment t The energy storage power at the moment, N PV Indicates the number of photovoltaic power generation equipment, Indicates i The unit power generation cost of a photovoltaic power generation device is Indicates i Photovoltaic power generation equipment t The power generation at the moment, T Indicates the observation time, T Specifically 24 hours.

[0077] Optionally, the carbon emissions are:

[0078]

[0079] in, Yes represents carbon emissions, c j Indicates j Carbon emission coefficient of each supply equipment, P jt Indicates j Supply equipment t The power of the moment, N Indicates the number of supplied devices.

[0080] Optionally, the clean energy utilization rate is specifically:

[0081]

[0082] in, or c represents the utilization rate of clean energy, L total represents the total energy demand, E A Indicates the amount of electricity purchased by the main power grid. Q PV Represents the total amount of photovoltaic power generation.

[0083] S402: With the goal of minimizing the day-ahead operation objective function, determine the best day-ahead operation strategy through the whale optimization algorithm.

[0084] Among them, the Whale Optimization Algorithm (WOA) is a bionic optimization algorithm that imitates the bubble net hunting strategy used by humpback whales in the hunting process and can find the global optimal solution in a complex search space.

[0085] Specifically, the inverse of the objective function of the day-ahead operation is used as the fitness function of the optimization algorithm. The whale optimization algorithm is used to perform a global search to determine the suboptimal solution.

[0086] Initialize the whale population, which contains multiple whale individuals. The position of each whale individual in the search space represents a feasible day-ahead operation strategy.

[0087] Generate a random number between 0 and 1 r 1 , calculate the first coefficient A :

[0088]

[0089] in, a Represents the adaptive convergence factor.

[0090] Optionally, an adaptive convergence factor a Specifically:

[0091]

[0092] in, t Indicates the current iteration number, T Indicates the maximum number of iterations.

[0093] It should be noted that the adaptive convergence factor a As the number of iterations increases, the coefficient A This design promotes global exploration capabilities and allows the algorithm to find possible global optimal solutions in a wide search space. a Gradually decreases, making the coefficient range A This design enhances the local development capability, enabling the algorithm to more carefully optimize the currently found better solution and avoid falling into the local optimum due to excessive global exploration.

[0094] when Go to the next step. , enter the random search mechanism.

[0095] Generate random variablesp .

[0096] when When , the shrinking and encircling mechanism is entered. When the spiral mechanism is entered.

[0097] Determine the current global optimal position, and other whales move towards the global optimal position, and update their own positions through the shrinking and surrounding mechanism:

[0098]

[0099] in, X ( t +1) indicates the t + Individual whale positions at iteration 1, X best ( t ) indicates the t The global optimal position at the iteration is A represents the first coefficient, D represents the randomized distance between the individual position of the whale and the current global optimal position, C represents the second coefficient, t Indicates the current iteration number, X ( t ) indicates the t The individual whale positions at iteration .

[0100] It should be noted that the shrinking and surrounding mechanism effectively concentrates the whales around the current optimal solution. By allowing other whales to move to the current global optimal position, the convergence speed of the algorithm can be accelerated.

[0101] Generate a random number between 0 and 1 r 2 , the whale updates its position through the spiral mechanism by moving in an upward spiral and continuously shrinking the encirclement:

[0102]

[0103] in, D * represents the distance between the individual position of the whale and the current global optimal position, e represents a natural constant, b represents the logarithmic spiral constant, l Represents a random number between -1 and 1.

[0104] It should be noted that according to the random number r 2The value of , selects different spiral paths (cosine or sine) to increase path diversity. Updating the individual positions of whales through the spiral mechanism can enhance search capabilities and flexibility, accurately control the convergence process, increase the convergence speed, and enhance the robustness and adaptability of the algorithm. This mechanism enables the whale optimization algorithm to more efficiently find the optimal solution when dealing with complex multi-objective optimization problems, thereby improving production efficiency and product quality.

[0105] Based on the positions of individual whales relative to each other, they update their own positions through a random search mechanism:

[0106]

[0107] in, X rand Represents the position of a randomly selected individual whale.

[0108] It should be noted that by randomly selecting the positions of other whales for updating, the algorithm can jump out of the local area of ​​the current solution and explore a wider solution space. This can prevent individuals from falling into the local optimum, thereby improving the global search capability.

[0109] Update the global optimal position.

[0110] Perform a Cauchy mutation perturbation on the global optimal position:

[0111]

[0112] in, represents the global optimal position after the Cauchy mutation perturbation, Cauchy (0,1) represents the Cauchy operator.

[0113] It should be noted that through the Cauchy mutation perturbation, the global optimal position will produce large random jumps in the solution space, which increases the diversity of the population, prevents individuals from concentrating near the local optimal solution too early, and improves the robustness of the algorithm.

[0114] Determine whether the current number of iterations has reached the maximum number of iterations. If so, output the current day-ahead operation strategy of the whale individual with the highest fitness as the suboptimal solution. Otherwise, return to continue iterating.

[0115] Furthermore, based on the suboptimal solution, the optimal solution is determined as the best day-ahead operation strategy through a simulated annealing algorithm.

[0116] Among them, the simulated annealing algorithm (SA) is a probabilistic algorithm for global optimization problems. It simulates the physical annealing process, in which atoms move randomly at high temperatures, and the system tends to the lowest energy state after gradually cooling down, thereby finding the optimal solution.

[0117] Specifically, initialize the initial temperature T 0 , maximum number of iterations, termination temperature T m .

[0118] The whale individual with the highest fitness determined by the whale optimization algorithm is used as the current individual, and the neighborhood individuals are generated according to the suboptimal model parameters.

[0119] Compare the fitness values ​​of the current individual with those of the neighboring individuals. When the fitness value of the neighboring individual is greater than the fitness value of the current individual, use the neighboring individual to replace the current individual. When the fitness value of the neighboring individual is less than the fitness value of the current individual, replace the current individual with the replacement probability. P Replace the current individual with a neighboring individual.

[0120] Replacement probability P Specifically:

[0121]

[0122] in, P represents the replacement probability, exp represents the e The exponential function with base , X new represents the neighborhood individuals, F ( X new ) represents the fitness value of the neighborhood individual, X t Indicates t The current individual at the iteration, F ( X t ) indicates the t The fitness value of the current individual at the iteration, T Indicates the current temperature.

[0123] It should be noted that by setting the replacement probability, the simulated annealing algorithm balances the probability of accepting inferior solutions. This can achieve a balance between global search and local search and prevent the search from being too biased in one direction.

[0124] Determine whether the current number of iterations has reached the maximum number of iterations, or whether the current temperature has reached the termination temperature T m If yes, output the optimal model parameters. Otherwise, update the temperature and continue to generate neighborhood individuals for iteration.

[0125] In a possible implementation, the temperature update method is:

[0126]

[0127] in, α represents the temperature drop coefficient, T t+1 Indicates t The temperature at +1 iteration, T t Indicates t The temperature at the iteration, T 0 Indicates the initial temperature.

[0128] In the present invention, the whale optimization algorithm and the simulated annealing algorithm are combined for optimization, which can make full use of the advantages of the two algorithms, balance global search and local optimization, and significantly improve the optimization efficiency, solution quality and stability. Determine the suboptimal solution through global search, and then find the optimal solution through local optimization, which can ensure that the optimization process is more reliable and efficient, and is applicable to various complex optimization problems, especially in the optimization of energy system operation strategies, and can provide significant economic and environmental benefits.

[0129] S5: Obtain real-time energy demand and real-time photovoltaic power generation.

[0130] S6: Substitute the real-time energy demand and real-time photovoltaic power generation into the energy system simulation model. Based on the optimal day-ahead operation strategy, determine the optimal intraday rolling operation strategy with the goal of reducing the deviation from the optimal day-ahead operation strategy and improving the real-time supply and demand matching.

[0131] In the present invention, through the dynamic adjustment of real-time data and rolling optimization strategy, the operating efficiency and flexibility of the energy system can be significantly improved, the impact of prediction errors on the system can be reduced, the supply and demand balance and system stability can be ensured, the utilization rate of clean energy can be maximized, and the operating costs and carbon emissions can be reduced, ultimately realizing intelligent, efficient and environmentally friendly energy management.

[0132] In a possible implementation, S6 specifically includes sub-steps S601 and S602:

[0133] S601: Construct an intraday rolling operation objective function with the goal of reducing the deviation from the optimal day-ahead operation strategy and improving the real-time supply-demand matching.

[0134] Optionally, the intraday rolling operation objective function is specifically:

[0135]

[0136] in, f 2 represents the intraday rolling operation objective function, D represents the deviation from the optimal day-ahead operation strategy, d Indicates the real-time supply and demand matching degree, m4 The weight coefficient representing the deviation from the optimal day-ahead operation strategy, m 5 The weight coefficient that represents the real-time supply and demand matching degree.

[0137] Among them, those skilled in the art can set the weight coefficient of the deviation from the optimal day-ahead operation strategy according to the actual situation. m 4 The weight coefficient of real-time supply and demand matching m 5 The present invention does not limit the size.

[0138] Optionally, the deviation from the best day-ahead operation strategy is specifically:

[0139]

[0140] in, D represents the deviation from the optimal day-ahead operation strategy, It represents the deviation from the power purchased by the main power grid in the optimal day-ahead operation strategy. e A represents the main grid deviation penalty coefficient, represents the deviation from the energy supply of the photovoltaic device in the optimal day-ahead operation strategy, e PV represents the photovoltaic deviation penalty coefficient, represents the deviation from the energy supply of the battery in the optimal day-ahead operation strategy, e bat represents the battery deviation penalty coefficient, represents the deviation from the energy supply of the hydrogen energy plant in the optimal day-ahead operation strategy, e fc Represents the hydrogen energy equipment deviation penalty coefficient.

[0141] Optionally, the real-time supply-demand matching degree is specifically:

[0142]

[0143] in, d Indicates the real-time supply and demand matching degree, Indicates the amount of electricity purchased by the main power grid. N PV Indicates the number of photovoltaic power generation equipment, Indicates i The energy supply of each photovoltaic power generation device, N fc Indicates the number of hydrogen energy equipment, Indicates i Energy supply of hydrogen energy equipment, Nbat Indicates the number of batteries. Indicates i The energy supply of a battery, Indicates i The energy absorption of each hydrogen energy device, Indicates i The energy absorbed by each battery, R c Indicates the system load, represents the system current, L Indicates the energy demand of the load equipment.

[0144] S602: With the goal of minimizing the intraday rolling operation objective function, determine the best intraday rolling operation strategy through the whale optimization algorithm.

[0145] Specifically, the specific method of determining the optimal intraday rolling operation strategy through the whale optimization algorithm can refer to the method of determining the optimal day-ahead operation strategy through the whale optimization algorithm above. To avoid repetition, the present invention will not go into details.

[0146] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0147] In the present invention, the optimal day-ahead operation strategy is first determined based on the energy demand for next day and the photovoltaic power generation for next day, with the goal of reducing the cost for next day, reducing carbon emissions and increasing the utilization rate of clean energy. Then, based on the real-time energy demand and real-time photovoltaic power generation, on the basis of the optimal day-ahead operation strategy, the optimal intraday rolling operation strategy is determined with the goal of reducing the deviation from the optimal day-ahead operation strategy and improving the real-time supply and demand matching. When faced with the dual uncertainties of load power demand and photovoltaic power generation, the intraday rolling operation strategy can quickly respond to real-time changes, ensure that the energy system can operate efficiently under various circumstances, maintain supply and demand matching, and improve the stability of the energy system.

[0148] Reference Manual Attached Figure 3 , showing a structural schematic diagram of an energy system operation strategy optimization system based on dynamic simulation provided by the present invention.

[0149] The present invention further provides an energy system operation strategy optimization system 20 based on dynamic simulation, which is applied to the above-mentioned energy system operation strategy optimization method based on dynamic simulation, and comprises:

[0150] Processor 201;

[0151] The memory 202 stores computer-readable instructions, and when the computer-readable instructions are executed by the processor 201, the energy system operation strategy optimization method based on dynamic simulation as described in the method embodiment is implemented.

[0152] The energy system operation strategy optimization system 20 based on dynamic simulation provided by the present invention can execute the above-mentioned energy system operation strategy optimization method based on dynamic simulation and achieve the same or similar technical effects. To avoid repetition, the present invention will not go into details.

[0153] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0154] In the present invention, the optimal day-ahead operation strategy is first determined based on the energy demand for next day and the photovoltaic power generation for next day, with the goal of reducing the cost for next day, reducing carbon emissions and increasing the utilization rate of clean energy. Then, based on the real-time energy demand and real-time photovoltaic power generation, on the basis of the optimal day-ahead operation strategy, the optimal intraday rolling operation strategy is determined with the goal of reducing the deviation from the optimal day-ahead operation strategy and improving the real-time supply and demand matching. When faced with the dual uncertainties of load power demand and photovoltaic power generation, the intraday rolling operation strategy can quickly respond to real-time changes, ensure that the energy system can operate efficiently under various circumstances, maintain supply and demand matching, and improve the stability of the energy system.

[0155] It should be understood that the processor in the embodiment of the present invention may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0156] It should also be understood that the memory in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0157] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.

[0158] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.

[0159] In the present invention, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0160] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean 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 the present invention.

[0161] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0162] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0163] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0164] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0165] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0166] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0167] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the method for optimizing an energy system operation strategy based on dynamic simulation as described in the method embodiment is implemented.

[0168] A computer-readable storage medium provided by the present invention can implement the steps and effects of the energy system operation strategy optimization method based on dynamic simulation of the above method embodiment. To avoid repetition, the present invention will not go into details.

[0169] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0170] In the present invention, the optimal day-ahead operation strategy is first determined based on the energy demand for next day and the photovoltaic power generation for next day, with the goal of reducing the cost for next day, reducing carbon emissions and increasing the utilization rate of clean energy. Then, based on the real-time energy demand and real-time photovoltaic power generation, on the basis of the optimal day-ahead operation strategy, the optimal intraday rolling operation strategy is determined with the goal of reducing the deviation from the optimal day-ahead operation strategy and improving the real-time supply and demand matching. When faced with the dual uncertainties of load power demand and photovoltaic power generation, the intraday rolling operation strategy can quickly respond to real-time changes, ensure that the energy system can operate efficiently under various circumstances, maintain supply and demand matching, and improve the stability of the energy system.

[0171] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

[0172] There are a few points to note:

[0173] (1) The drawings of the embodiments of the present invention only involve structures related to the embodiments of the present invention. Other structures may refer to conventional designs.

[0174] (2) For the sake of clarity, in the drawings used to describe the embodiments of the present invention, the thickness of layers or regions is exaggerated or reduced, that is, these drawings are not drawn according to the actual scale. It is understood that when an element such as a layer, film, region or substrate is referred to as being "on" or "under" another element, the element may be "directly" "on" or "under" the other element or there may be intermediate elements.

[0175] (3) In the absence of conflict, the embodiments of the present invention and the features therein may be combined with each other to obtain new embodiments.

[0176] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. The protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for optimizing energy system operation strategy based on dynamic simulation, characterized in that: include: S1: Build energy system simulation model; S2: Obtain historical energy demand data and historical photovoltaic power generation data; S3: dynamically predicting the energy demand and photovoltaic power generation for the next day based on the historical energy demand data and the historical photovoltaic power generation data; S4: Substitute the predicted value of energy demand and photovoltaic power generation for the next day into the energy system simulation model to reduce the cost of the next day, reduce carbon emissions and increase the utilization rate of clean energy, and determine the best day-ahead operation strategy; S5: Obtaining real-time energy demand and real-time photovoltaic power generation; S6: Substitute the real-time energy demand and the real-time photovoltaic power generation into the energy system simulation model, and determine the optimal intraday rolling operation strategy based on the optimal day-ahead operation strategy with the goal of reducing the deviation from the optimal day-ahead operation strategy and improving the real-time supply and demand matching.

2. The energy system operation strategy optimization method based on dynamic simulation according to claim 1 is characterized in that: The energy system includes: photovoltaic power generation equipment, batteries and hydrogen energy equipment, and the hydrogen energy equipment includes: electrolyzer, fuel cell and hydrogen storage tank; The energy system simulation model includes: a photovoltaic power generation equipment model, a battery model and a hydrogen energy equipment model; the hydrogen energy equipment model specifically includes an electrolyzer sub-model, a fuel cell sub-model and a hydrogen storage tank sub-model.

3. The energy system operation strategy optimization method based on dynamic simulation according to claim 1 is characterized in that: The operation strategy is specifically expressed as: in, L represents the energy demand vector of the load equipment, Y Indicates the running strategy plan. E represents the energy supply vector that supplies the equipment, L i Indicates i The energy demand of each load device, i =1,2,…, m , m Indicates the total number of load devices. E j Indicates j The energy supply of each supply device, j =1,2,…, n , n Represents the total number of supply equipment, which includes: photovoltaic power generation equipment, batteries and hydrogen energy equipment.

4. The energy system operation strategy optimization method based on dynamic simulation according to claim 1 is characterized in that: The S4 specifically includes: S401: Construct a day-ahead operation objective function with the goal of reducing next-day costs, reducing carbon emissions, and increasing the utilization rate of clean energy; S402: With the goal of minimizing the day-ahead operation objective function, determine the best day-ahead operation strategy through the whale optimization algorithm.

5. The energy system operation strategy optimization method based on dynamic simulation according to claim 4 is characterized in that: The specific objective function of the day-ahead operation is: in, f 1 means running the objective function on the previous day, Y Indicates the running strategy plan. C Indicates the cost of the next day, Ce represents carbon emissions, η c represents the utilization rate of clean energy, μ 1 represents the weight coefficient of the next day's cost, μ 2 represents the weight coefficient of carbon emissions, μ 3 represents the weight coefficient of clean energy utilization rate.

6. The energy system operation strategy optimization method based on dynamic simulation according to claim 5 is characterized in that: The next day's cost is specifically: in, C Indicates the cost of the next day, express t The main power grid price at the moment, express t The amount of electricity purchased by the main power grid at the moment, N bat Indicates the number of batteries. Indicates i The unit charge and discharge cost of a battery, Indicates i Batteries t The charging and discharging power at the moment, N fc Indicates the number of hydrogen energy equipment, Indicates i Hydrogen energy equipment t The unit energy storage cost at the moment, Indicates i Hydrogen energy equipment t The energy storage power at the moment, N PV Indicates the number of photovoltaic power generation equipment, Indicates i The unit power generation cost of a photovoltaic power generation device is Indicates i Photovoltaic power generation equipment t The power generation at the moment, T Indicates the observation time, T Specifically, 24 hours; The carbon emissions are specifically: in, Ce represents carbon emissions, γ j Indicates j Carbon emission coefficient of each supply equipment, P jt Indicates j Supply equipment t The power of the moment, N Indicates the quantity of supplied equipment; The clean energy utilization rate is specifically: in, η c represents the utilization rate of clean energy, L total represents the total energy demand, E A Indicates the amount of electricity purchased by the main power grid. Q PV Represents the total amount of photovoltaic power generation.

7. The energy system operation strategy optimization method based on dynamic simulation according to claim 1 is characterized in that: The S6 specifically includes: S601: constructing an intraday rolling operation objective function with the goal of reducing the deviation from the optimal day-ahead operation strategy and improving the real-time supply-demand matching degree; S602: With the goal of minimizing the intraday rolling operation objective function, determine the best intraday rolling operation strategy through the whale optimization algorithm.

8. The energy system operation strategy optimization method based on dynamic simulation according to claim 7 is characterized in that: The intraday rolling operation objective function is specifically: in, f 2 represents the intraday rolling operation objective function, D represents the deviation from the optimal day-ahead operation strategy, δ Indicates the real-time supply and demand matching degree, μ 4 represents the weight coefficient of the deviation from the best day-ahead operation strategy, μ 5 represents the weight coefficient of real-time supply and demand matching.

9. The energy system operation strategy optimization method based on dynamic simulation according to claim 8 is characterized in that: The deviation from the optimal day-ahead operation strategy is specifically: in, D represents the deviation from the optimal day-ahead operation strategy, It represents the deviation from the power purchased by the main power grid in the optimal day-ahead operation strategy. ε A represents the main grid deviation penalty coefficient, represents the deviation from the energy supply of the photovoltaic device in the optimal day-ahead operation strategy, ε PV represents the photovoltaic deviation penalty coefficient, represents the deviation from the energy supply of the battery in the optimal day-ahead operation strategy, ε bat represents the battery deviation penalty coefficient, represents the deviation from the energy supply of the hydrogen energy plant in the optimal day-ahead operation strategy, ε fc represents the hydrogen energy equipment deviation penalty coefficient; The real-time supply-demand matching degree is specifically: in, δ Indicates the real-time supply and demand matching degree, Indicates the amount of electricity purchased by the main power grid. N PV Indicates the number of photovoltaic power generation equipment, Indicates i The energy supply of each photovoltaic power generation device, N fc Indicates the number of hydrogen energy equipment, Indicates i Energy supply of hydrogen energy equipment, N bat Indicates the number of batteries. Indicates i The energy supply of a battery, Indicates i Energy absorption of hydrogen energy equipment, Indicates i The energy absorbed by each battery, R c Indicates the system load, represents the system current, L Indicates the energy demand of the load equipment.

10. An energy system operation strategy optimization system based on dynamic simulation, characterized in that: include: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the energy system operation strategy optimization method based on dynamic simulation as described in any one of claims 1 to 9 is implemented.