A multi-energy collaborative prediction method for energy systems based on neural networks
By establishing mathematical models and constraint equations for multiple energy sources, and using neural network algorithms for multi-objective control, the problem of uneven energy coordination in the existing technology is solved, and the uniform use of energy and economical operation of the system are achieved.
Patent Information
- Application Number
- CN202210458787.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-27
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-04-27
AI Technical Summary
Existing technology fails to effectively coordinate the use of multiple energy sources, resulting in uneven coordination in energy use.
By establishing the power conversion model, generator energy model, natural gas consumption mathematical model and constraint equation, mathematical model of condenser, clean energy collection unit constraint equation, mathematical model of energy storage equipment, energy output constraint equation and energy power balance constraint equation , use the neural network algorithm to set the objective function and the number of iterations, perform multi-objective control of energy, and establish a dynamic balance between energy input and output.
It achieves effective control and uniform use of multiple energy sources, ensures a dynamic balance between energy consumption and generation, and improves energy utilization efficiency and economical operation of the system.
Smart Images

Figure CN114862004B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of energy management technology, and in particular to a multi-energy collaborative prediction method for an energy system based on a neural network. Background Art
[0002] In order to cope with the energy crisis, the world has vigorously promoted the development of energy Internet. The correlation and complementarity between various energy sources have become increasingly deep. What methods to use to improve the utilization efficiency of comprehensive energy, reduce the carbon emissions of the system and reduce the operating costs of the system have become issues that need to be considered in the comprehensive energy system. The comprehensive energy system including wind turbines, cogeneration systems, energy storage equipment and other energy supply units has broken the traditional mode of independent operation and planning of energy. The realization of mutual coordination, coupling and complementarity among multiple energy sources will become the only way for the future development of energy in human society. Therefore, in the process of energy production, conversion and use, the optimal scheduling and economic operation of the comprehensive energy system have received attention from experts and scholars at home and abroad.
[0003] Patent publication number CN112966857A discloses a multi-energy collaborative optimization method and system for a data center. The invention provides a multi-energy collaborative optimization method and system for a data center, and relates to the technical field of data center energy system optimization. The invention first obtains the data network load based on the network load prediction model; then classifies the data network load and determines the priority of its processing order; and constructs a multi-energy collaborative optimization model of the data center based on a data center comprehensive energy system including a waste heat recovery unit; finally, solves the multi-energy collaborative optimization model, and optimizes the data center based on the solution results. The invention realizes the collaborative optimization scheduling of data network loads and multiple energy sources in the data center, realizes the tiered utilization of energy, and at the same time recycles and reuses the waste heat resources of the data center, reduces the energy consumption of the data center, and improves the energy utilization efficiency.
[0004] Patent publication number CN106356902A discloses an energy management method suitable for a multi-energy collaborative integrated energy network in an energy internet. The invention uses scenario generation technology to express the uncertainty of prediction variables such as the output of renewable energy power generation equipment, electric and thermal load demand, and real-time energy market price fluctuations based on the constraints of the multi-energy flow energy balance and equipment operation of the multi-energy collaborative integrated energy network of the applied energy internet, and establishes a stochastic programming model with the lowest total energy cost and full absorption of distributed power output. The model predictive control principle is used to achieve rolling optimization, and the management strategy is solved using a two-layer accelerated solution structure including an input layer and a solution layer to ensure that energy management has the ability to quickly solve online.
[0005] At present, the problem of multi-energy coordination has not established separate mathematical models and constraints for various energy sources. Instead, they are managed in a unified way. This has caused unbalanced coordination in energy use, which is a problem that needs to be solved urgently. Summary of the invention
[0006] In order to overcome the shortcomings and deficiencies of the prior art, the present invention provides a multi-energy collaborative prediction method for an energy system based on a neural network.
[0007] The technical solution adopted by the present invention is that the method comprises the following steps:
[0008] Step S1: Establishment of energy mathematical model; including establishment of power conversion model, generator energy model and constraint equation, natural gas consumption mathematical model and constraint equation, condensing machine mathematical model, clean energy collection unit constraint equation, energy storage device mathematical model, energy output constraint equation, energy power balance constraint equation;
[0009] Step S2: Establishing the objective function of the energy mathematical model;
[0010] Step S3: using the neural network algorithm to set the number of iterations and initial parameters of the objective function;
[0011] Step S4: Initialize the neural network algorithm, check whether the parameter individuals meet the conditions and whether the number is sufficient, calculate the congestion of energy in the objective function, determine the number of solutions, and update the objective function;
[0012] Step S5: In the updated objective function, the types of energy are selected according to the consumption size, and the remaining energy sources are updated according to the consumption, and Gaussian variation is added to the newly arranged energy;
[0013] Step S6: Calculate the objective function value, determine the energy consumption per unit time, update the objective function, and when the energy consumption is greater than the energy generation, update the energy types one by one;
[0014] Step S7: Repeat steps S4, S5, and S6 until the set number of iterations is reached.
[0015] Furthermore, the power conversion model in step S1 is expressed as:
[0016] A a,t =δ a B a,t / C d
[0017] Among them, δ a Indicates the power conversion coefficient, B a,t Indicates the amount of electricity consumed during conversion, C drepresents the heat generated during the conversion, t represents the time, A a,t Indicates the result of the transformation.
[0018] Furthermore, the generator energy model and constraint equation in step S1 are expressed as follows:
[0019]
[0020]
[0021]
[0022] Where: D e,f Indicates the power generated by the generator, Indicates the power generation efficiency of the generator, D e,g Indicates the fuel consumption of the generator, D e,h represents the heat generation efficiency of the generator, represents the heat generation coefficient of the generator, Indicates the minimum value of the generator power. Indicates the maximum power generated by the generator.
[0023] Furthermore, the natural gas consumption mathematical model and constraint equation in step S1 are expressed as follows:
[0024]
[0025]
[0026] Where: D i,h Indicates the heat energy generated by consuming natural gas. Denotes the consumption coefficient, D i,g represents the natural gas consumption, Indicates the minimum value of natural gas consumption, Indicates the maximum value of natural gas consumption.
[0027] Furthermore, the mathematical model of the condensing machine in step S1 is expressed as:
[0028]
[0029] in, Indicates the output power of the condensing unit, G j Indicates the refrigeration coefficient of the condenser, Indicates the input electrical power of the condensing machine.
[0030] Furthermore, the constraint equation of the clean energy collection unit in step S1 is expressed as:
[0031] 0≤M n ≤Mn,o
[0032] 0≤M p ≤M p,o
[0033] Among them, M n Represents daily wind power generation, M p Represents daily photovoltaic power generation, M n,o Indicates the daily average maximum value of wind power generation, M p,o Indicates the daily average maximum value of photovoltaic power generation.
[0034] Furthermore, the mathematical model of the energy storage device in step S1 is expressed as:
[0035]
[0036]
[0037] Among them: r Indicates the discharge power of the energy storage device; Indicates the energy consumption of charging and discharging at time (t-1); represents the charging power of the energy storage device, Indicates the discharge power of the energy storage device; represents the charge factor of the energy storage device, represents the discharge coefficient of the energy storage device, Indicates the minimum storage capacity of the energy storage device, Indicates the maximum storage capacity of the energy storage device.
[0038] Furthermore, the energy output constraint equation in step S1 is expressed as:
[0039] 0≤R v ≤R v,o
[0040] 0≤R w ≤R w,o
[0041] Among them, R v Indicates the power output, R v,o Represents the maximum value of the daily average power output, R w Represents the output of clean energy, R w,0 It represents the maximum value of the daily average clean energy output;
[0042] Step S1 The energy power balance constraint equation is expressed as:
[0043] D e +R v +M n +Mp +Z y =Q t +E k +W u
[0044] Among them, D e Represents the amount of electricity generated by the generator, R v Indicates the amount of electricity delivered by the power grid, M n Indicates the amount of electricity generated by wind power, M p represents the amount of electricity generated by photovoltaic power generation, Z y Indicates the storage capacity of the energy storage device, Q t Indicates the amount of electricity consumed by power conversion, E k Indicates the power consumed by the condenser, W u Indicates the average value of the power output;
[0045] Furthermore, the objective function of the energy mathematical model in step S2 is expressed as:
[0046]
[0047] Among them, minX1 represents the minimum value of the objective function, n represents the natural gas content per unit time, m represents the total energy, s represents the amount of electricity per unit time, and Y v represents the natural gas price per unit time, Y x represents the electricity price per unit time, T u Indicates the total amount of natural gas purchased per unit time, T w represents the total amount of electricity purchased per unit time, Z b Represents the maintenance cost of all equipment per unit time.
[0048] Furthermore, the objective function is updated in step S4, and the expression is:
[0049] A n (i)=|F·R q (i)-R n (i)|
[0050] R q (i+1)=R q (i)-W·A
[0051] Among them, A n (i) represents the target energy consumption, i represents the current iteration number, W and F represent the consumption coefficient, and R n (i) Expressed as the amount of energy consumed, R q (i+1) represents the energy not consumed after iteration, R q (i) represents the amount of energy not consumed, and A represents the predicted amount of energy.
[0052] Beneficial effects:
[0053] The present invention proposes a multi-energy collaborative prediction method for an energy system based on a neural network. Firstly, by establishing separate mathematical models and constraint equations for multiple energy sources, it is ensured that the total amount of energy can be effectively controlled. Then, an objective function of energy control is established, and a neural network algorithm is used to perform multi-objective control of the objective function, so that the output of energy can be controlled at any time. Finally, a dynamic balance between energy input and output is established in an iterative manner. The proposed method is simple to understand and easy to operate, and can effectively control the consumption of multiple energy sources. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 It is a general step flow chart of the present invention;
[0055] Figure 2 This is a model architecture diagram of the present invention. DETAILED DESCRIPTION
[0056] It should be noted that, in the absence of conflict, the embodiments and features described in the embodiments of the present application may be combined with each other. The present application is further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0057] like Figure 1 and Figure 2 As shown in the figure, a multi-energy collaborative prediction method for energy systems based on neural networks is proposed.
[0058] The technical solution adopted by the present invention is that the method comprises the following steps:
[0059] Step S1: Establishment of energy mathematical model; including establishment of power conversion model, generator energy model and constraint equation, natural gas consumption mathematical model and constraint equation, condensing machine mathematical model, clean energy collection unit constraint equation, energy storage device mathematical model, energy output constraint equation, energy power balance constraint equation; the purpose of establishing energy mathematical model is to effectively control the energy content, so as to better coordinate multiple energy sources and ensure more uniform use of energy.
[0060] Step S2: Establish the objective function of the energy mathematical model; calculate the energy consumption and equipment maintenance costs through the objective function, and later control the energy consumption by controlling the parameters in the objective function.
[0061] Step S3: Use the neural network algorithm to set the number of iterations and initial parameters of the objective function; the number of iterations can be set according to time, the fastest iteration can be once an hour, and the slowest iteration can be once a month as needed. The initial parameters are the initial values of the energy mathematical model in step S1 and the initial values of the objective function in step S2. The initial parameters can be updated according to each iteration as needed, or they can be kept the same all the time.
[0062] Step S4: Initialize the neural network algorithm, check whether the parameter individuals meet the conditions and whether the number is sufficient, calculate the congestion of energy in the objective function, solve the mathematical model of energy using the neural network algorithm, determine the number of solutions, and update the objective function based on the solutions;
[0063] Step S5: In the updated objective function, select the type of energy according to the size of the consumption, and update the arrangement of the remaining energy according to the consumption, and add Gaussian mutation to the newly arranged energy; Gaussian mutation operation is to replace the original gene value with a random number that conforms to the normal distribution with a mean of variance when the energy arrangement is updated. From the characteristics of the normal distribution, it can be seen that Gaussian mutation also focuses on searching a local area near the original individual. Gaussian mutation includes adding a random value from the Gaussian distribution to each element of the individual's vector to create a new offspring. Gaussian mutation can better predict energy consumption.
[0064] Step S6: Calculate the objective function value, determine the energy consumption per unit time, and update the objective function. When the energy consumption is greater than the energy generation, update the energy types one by one. The purpose of the update is to control the energy consumption ratio and the degree of dependence on different energy sources in real time, and provide a reliable basis for energy coordination.
[0065] Step S7: Repeat steps S4, S5, and S6 until the set number of iterations is reached. The purpose of the repetition is to update the objective function using the energy consumption.
[0066] In step S1, the power conversion model is expressed as:
[0067] A a,t =δ a B a,t / C d
[0068] Among them, δ a Indicates the power conversion coefficient, B a,t Indicates the amount of electricity consumed during conversion, C d represents the heat generated during the conversion, t represents the time, A a,t Indicates the result of the transformation.
[0069] In step S1, the generator energy model and constraint equations are expressed as:
[0070]
[0071]
[0072]
[0073] Where: D e,f Indicates the power generated by the generator. Indicates the power generation efficiency of the generator, D e,g Indicates the fuel consumption of the generator, D e,h represents the heat generation efficiency of the generator, represents the heat generation coefficient of the generator, Indicates the minimum value of the generator power. Indicates the maximum power generated by the generator.
[0074] In step S1, the natural gas consumption mathematical model and constraint equation are expressed as follows:
[0075]
[0076]
[0077] Where: D i,h Indicates the heat energy generated by consuming natural gas. Denotes the consumption coefficient, D i,g represents the natural gas consumption, Indicates the minimum value of natural gas consumption, Indicates the maximum value of natural gas consumption.
[0078] The mathematical model of the condensing machine in step S1 is expressed as:
[0079]
[0080] in, Indicates the output power of the condensing unit, G j Indicates the refrigeration coefficient of the condenser, Indicates the input electrical power of the condensing machine.
[0081] In step S1, the constraint equation of the clean energy collection unit is expressed as:
[0082] 0≤M n ≤M n,o
[0083] 0≤M p ≤M p,o
[0084] Among them, M n Represents daily wind power generation, M p Represents daily photovoltaic power generation, M n,o Indicates the daily average maximum value of wind power generation, M p,o Indicates the daily average maximum value of photovoltaic power generation.
[0085] The mathematical model of the energy storage device in step S1 is expressed as:
[0086]
[0087]
[0088] Among them: r Indicates the discharge power of the energy storage device; Indicates the energy consumption of charging and discharging at time (t-1); represents the charging power of the energy storage device, Indicates the discharge power of the energy storage device; represents the charge factor of the energy storage device, represents the discharge coefficient of the energy storage device, Indicates the minimum storage capacity of the energy storage device, Indicates the maximum storage capacity of the energy storage device.
[0089] In step S1, the energy output constraint equation is expressed as:
[0090] 0≤R v ≤R v,o
[0091] 0≤R w ≤R w,o
[0092] Among them, R v Indicates the power output, R v,o Represents the maximum value of the daily average power output, R w Represents the output of clean energy, R w,0 It represents the maximum value of the daily average clean energy output;
[0093] In step S1, the energy power balance constraint equation is expressed as:
[0094] D e +R v +M n +M p +Z y =Q t +E k +W u
[0095] Among them, D e Represents the amount of electricity generated by the generator, R v Indicates the amount of electricity delivered by the power grid, M n Indicates the amount of electricity generated by wind power, M p represents the amount of electricity generated by photovoltaic power generation, Z y Indicates the storage capacity of the energy storage device, Q t Indicates the amount of electricity consumed by power conversion, E k Indicates the power consumed by the condenser, W u Indicates the average value of the power output;
[0096] The objective function of the energy mathematical model in step S2 is expressed as:
[0097]
[0098] Among them, minX1 represents the minimum value of the objective function, n represents the natural gas content per unit time, m represents the total energy, s represents the amount of electricity per unit time, and Y v represents the natural gas price per unit time, Y x represents the electricity price per unit time, T u Indicates the total amount of natural gas purchased per unit time, T w represents the total amount of electricity purchased per unit time, Z b Represents the maintenance cost of all equipment per unit time.
[0099] The neural network consists of n input nodes, m hidden layer nodes and k output nodes. The hidden layer nodes are neural network functions, expressed as:
[0100]
[0101] Among them, the center vector of the jth node of the neural network is C j =[C j1 , C j2 , …, C jn ] T , j=1, 2, ..., m.
[0102] Assume that the basis width vector of the network is B = [b1, b2, ..., b m ] T , bj is the basis width parameter of node j, and is a number greater than zero. The weight from the input layer to the hidden layer of the neural network is 1, and the weight vector from the hidden layer to the output layer is W = [w1, w2, ..., w m ] T , then the neural network output is
[0103] y m (k) = W TH=w1h1+w2h2+…+w m h m
[0104] The output weight w in the neural network j , hidden unit center c j and width b j The value of has a great influence on the prediction performance of the neural network prediction model. The value of w is set according to the effect of each iteration. j , c j , b j data.
[0105] In step S4, the objective function is updated and expressed as:
[0106] A n (i)=|F·R q (i)-R n (i)|
[0107] R q (i+1)=R q (i)-W·A
[0108] Among them, A n (i) represents the target energy consumption, i represents the current iteration number, W and F represent the consumption coefficient, and R n (i) Expressed as the amount of energy consumed, R q (i+1) represents the energy not consumed after iteration, R q (i) represents the amount of energy not consumed, and A represents the predicted amount of energy.
[0109] The present invention proposes a multi-energy collaborative prediction method for an energy system based on a neural network. Firstly, by establishing separate mathematical models and constraint equations for multiple energy sources, it is ensured that the total amount of energy can be effectively controlled. Then, an objective function of energy control is established, and a neural network algorithm is used to perform multi-objective control of the objective function, so that the output of energy can be controlled at any time. Finally, a dynamic balance between energy input and output is established in an iterative manner. The proposed method is simple to understand and easy to operate, and can effectively control the consumption of multiple energy sources.
[0110] Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various equivalent changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A multi-energy collaborative prediction method for energy systems based on neural networks, characterized in that ,The steps of the method include: Step S1: Establishment of energy mathematical model; including establishment of power conversion model, generator energy model and constraint equation, natural gas consumption mathematical model and constraint equation, condensing machine mathematical model, clean energy collection unit constraint equation, energy storage device mathematical model, energy output constraint equation, energy power balance constraint equation; Step S2: Establishing the objective function of the energy mathematical model; Step S3: using the neural network algorithm to set the number of iterations and initial parameters of the objective function; Step S4: Initialize the neural network algorithm, check whether the parameter individuals meet the conditions and whether the number is sufficient, calculate the congestion of energy in the objective function, determine the number of solutions, and update the objective function; Step S5: In the updated objective function, the types of energy are selected according to the order of consumption, and the remaining energy sources are updated according to the order of consumption, and Gaussian variation is added to the newly arranged energy sources; Step S6: Calculate the objective function value, determine the energy consumption per unit time, update the objective function, and when the energy consumption is greater than the energy generation, update the energy types one by one; Step S7: Repeat steps S4, S5, and S6 until the set number of iterations is reached.
2. A method for multi-energy collaborative prediction of energy systems based on neural networks as claimed in claim 1, characterized in that: Step S1: Power conversion model, the expression is: A a,t =d a B a,t / C d Among them, δ a Indicates the power conversion coefficient, B a,t Indicates the amount of electricity consumed during conversion, C d represents the heat generated during the conversion, t represents the time, A a,t Indicates the result of the transformation.
3. The method for multi-energy collaborative prediction of energy systems based on neural networks according to claim 1, characterized in that: Step S1: Generator energy model and constraint equation, the expression is: Where: D e,f Indicates the power generated by the generator. Indicates the power generation efficiency of the generator, D e,g Indicates the fuel consumption of the generator, D e,h represents the heat generation efficiency of the generator, represents the heat generation coefficient of the generator, Indicates the minimum value of the generator power. Indicates the maximum power generated by the generator.
4. The method for multi-energy collaborative prediction of energy systems based on neural networks according to claim 1, characterized in that: Step S1: Natural gas consumption mathematical model and constraint equation, the expression is: Where: D i,h Indicates the heat energy generated by consuming natural gas. Denotes the consumption coefficient, D i,g represents the natural gas consumption, Indicates the minimum value of natural gas consumption, Indicates the maximum value of natural gas consumption.
5. The method for multi-energy collaborative prediction of energy systems based on neural networks according to claim 1, characterized in that: The mathematical model of the condensing machine in step S1 is expressed as: in, Indicates the output power of the condensing unit, G j Indicates the refrigeration coefficient of the condenser, Indicates the input electrical power of the condensing machine.
6. The method for multi-energy collaborative prediction of energy systems based on neural networks according to claim 1, characterized in that: Step S1: Constraint equation of clean energy collection unit, expressed as: 0≤M n ≤M n,o 0≤M p ≤M p,o Among them, M n Represents daily wind power generation, M p Represents daily photovoltaic power generation, M n,o Indicates the daily average maximum value of wind power generation, M p,o Indicates the daily average maximum value of photovoltaic power generation.
7. The method for multi-energy collaborative prediction of energy systems based on neural networks according to claim 1, characterized in that: Step S1: The mathematical model of the energy storage device is expressed as: Among them: r Indicates the discharge power of the energy storage device; represents the energy consumption of charging and discharging at time (t-1); represents the charging power of the energy storage device, Indicates the discharge power of the energy storage device; represents the charge factor of the energy storage device, represents the discharge coefficient of the energy storage device, Indicates the minimum storage capacity of the energy storage device, Indicates the maximum storage capacity of the energy storage device.
8. The method for multi-energy collaborative prediction of energy systems based on neural networks according to claim 1, characterized in that: Step S1: Energy output constraint equation, expressed as: 0≤R v ≤R v,o 0≤R w ≤R w,o Among them, R v Indicates the power output, R v,o Represents the maximum value of the daily average power output, R w Represents the output of clean energy, R w,0 It represents the maximum value of the daily average clean energy output; Step S1 The energy power balance constraint equation is expressed as: D e +R v +M n +M p +Z y =Q t +E k +W u Among them, D e Represents the amount of electricity generated by the generator, R v Indicates the amount of electricity delivered by the power grid, M n Indicates the amount of electricity generated by wind power, M p represents the amount of electricity generated by photovoltaic power generation, Z y Indicates the storage capacity of the energy storage device, Q t Indicates the amount of electricity consumed by power conversion, E k Indicates the power consumed by the condenser, W u Indicates the average value of the electrical output.
9. The method for multi-energy collaborative prediction of energy systems based on neural networks according to claim 1, characterized in that: Step S2: The objective function of the energy mathematical model is expressed as: Among them, minX1 represents the minimum value of the objective function, n represents the natural gas content per unit time, m represents the total energy, s represents the amount of electricity per unit time, and Y v represents the natural gas price per unit time, Y x represents the electricity price per unit time, T u Represents the total amount of natural gas purchased per unit time, T w represents the total amount of electricity purchased per unit time, Z b Indicates the maintenance cost of all equipment per unit time.
10. The method for multi-energy collaborative prediction of energy systems based on neural networks according to claim 1, characterized in that: The step S4 updates the objective function, which is expressed as: A n (i)=|F·R q (i)-R n (i)| R q (i+1)=R q (i)-W·A Among them, A n (i) represents the target energy consumption, i represents the current iteration number, W and F represent the consumption coefficient, and R n (i) Expressed as the amount of energy consumed, R q (i+1) represents the energy not consumed after iteration, R q (i) represents the amount of energy not consumed, and A represents the predicted amount of energy.
