Energy demand prediction method and system for energy internet
Through the method of data-driven and mechanism model coupling, a generalized dynamic model is constructed, and the LSTM network is used to learn the load relationship of electric heating and gas, which solves the problems of nonlinear links and time scale differences in energy Internet modeling, and achieves accurate prediction of energy demand and Modeling accuracy is improved.
Patent Information
- Application Number
- CN202010000960.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-02
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-01-02
AI Technical Summary
There are uncertainties in nonlinear links, complex energy conversion relationships, and different time scales in existing energy Internet modeling, resulting in high modeling complexity, making it difficult to accurately describe the relationship between different energy forms.
Using data-driven and mechanism model coupling methods, a generalized dynamic model is constructed based on characteristic variables and historical demand data. The LSTM network is used to learn the time series relationship of electric and heating gas loads, and a node energy management optimization model is established to form equivalent loads and predict energy demands. .
It realizes the accurate dynamic relationship expression of the energy demand of energy Internet nodes, improves the modeling accuracy and prediction accuracy, and is suitable for energy Internet nodes with complex coupling relationships.
Smart Images

Figure CN113065680B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of energy internet modeling, and in particular to an energy demand prediction method and system for energy internet. Background Art
[0002] The widespread use of fossil energy has led to a series of deepening environmental crises, and the development strategy that relies on non-renewable energy will be difficult to sustain. With the rapid development of renewable energy, the energy industry is moving towards high efficiency, cleanliness and sustainability. The concept of energy Internet, which was spawned by the deep integration of energy and the Internet, has become another cutting-edge development direction after the smart grid. The purpose of the energy Internet is to transform from centralized fossil energy utilization to distributed renewable energy utilization, reflecting its irreplaceable role in achieving coordinated and complementary operation of multiple energy sources in a wide area. The key to the operation of the energy Internet is to achieve multi-source coordination and complementarity, connect multiple energy resources such as power systems, natural gas systems and heating systems, and use the substitutability between different energy sources to achieve horizontal integration.
[0003] At present, a lot of research has been done on the modeling of energy internet. The modeling process of energy internet is generally divided into the modeling of energy transmission network and the modeling of energy hub. The energy transmission network mainly includes the modeling of power transmission lines and heat / gas transmission pipelines, describing the changing relationship of energy or flow, and considering the conservation of energy and the continuity of fluid, to build the energy transmission network model for energy flow calculation. Energy hub modeling mainly focuses on the coupling elements between systems, and is used to describe the coupling relationship between systems with different energy forms, such as gas turbines, combined heat and power (CHP) units, and power to gas (P2G) devices. The modeling of energy hubs mainly builds the conversion relationship between energy input and energy output by establishing a conversion matrix, thereby forming an equivalent load connected to the energy transmission network.
[0004] There are still many problems in the current energy internet modeling process. First, there are a large number of nonlinear links in the energy internet, and there are uncertainties in wind power, photovoltaics, users and other links, so the energy internet modeling problem is highly complex; second, the energy conversion relationship is complex, and it is difficult to directly use formulas to accurately express the coupling relationship, and the use of simplified models is not accurate; finally, the time scales of different energy form systems are different, and the speed of change of thermal and natural gas systems is much smaller than that of power systems. The modeling method of a single time section is difficult to accurately describe the relationship between input and output. Summary of the invention
[0005] In order to solve the above-mentioned deficiencies in the prior art, the present invention provides an energy demand prediction method and system for energy Internet. The technical solution realizes the modeling of energy Internet based on the modeling method of data-driven and mechanism model coupling. A generalized dynamic model of basic units of energy Internet is established for generalized energy Internet load nodes including conversion relationships, photovoltaic power generation, residential electricity consumption and other links. The energy demand of the node at each time point within a period of time can be calculated based on characteristic factors such as meteorological factors, time-of-use electricity prices and user preferences, that is, the amount of electric energy, heat energy and natural gas exchanged with the external energy transmission network, and an equivalent load is formed.
[0006] The present invention provides an energy demand prediction method for an energy internet, comprising:
[0007] Obtain the characteristic variables and historical demand data of the energy Internet nodes to be predicted;
[0008] Based on the characteristic variables and historical demand data and the pre-built node generalized dynamic model, the energy demand and change trend in the future at the current time point are obtained;
[0009] Among them, the node generalization dynamic model is constructed based on the dynamic change relationship between characteristic variables and various energy demands at energy Internet nodes.
[0010] Preferably, the construction of the node generalization dynamic model includes:
[0011] Based on the historical demand data and component parameters of the energy Internet nodes, the pre-built node energy management optimization model is used to obtain the historical data of electric load, thermal load and gas load;
[0012] The historical data of the electric load, the historical data of the heat load, the historical data of the gas load, and the historical data of the characteristic variables are forward set to a set time point based on the set measurement time point to obtain an input data set, and backward set to a set time point to obtain an output data set corresponding to each energy demand;
[0013] Divide the input data set and the output data set into a training data set and a test data set;
[0014] Based on the training data set, the LSTM network is used to perform convolutional neural network learning, segmentation and splicing to determine the mapping relationship between the historical data of electric load, thermal load, gas load and historical data of characteristic variables and each energy demand;
[0015] Testing is performed based on the test data set, and mapping relationship parameters of the LSTM network are adjusted to obtain a node generalization dynamic model;
[0016] The node energy management optimization model is constructed based on the relationship between various energy demands in the energy hub model.
[0017] Preferably, the characteristic variables include: ambient temperature, light intensity, electricity price information and user preferences, and the energy demand includes electricity demand, heat demand and gas demand.
[0018] Preferably, the construction of the node energy management optimization model includes:
[0019] Establish an objective function to minimize user cost;
[0020] Construct balance equations for electricity, natural gas and heat in the energy hub model;
[0021] Constructing constraint conditions for the objective function based on the safe and stable operation of each component and the upper and lower limits of the capacity of each controllable device;
[0022] The balance equations include an electric energy balance equation, a natural gas energy balance equation and a thermal energy balance equation; the controllable devices include an air conditioning system, a cogeneration CHP unit, an electric boiler, a photovoltaic array and an electric vehicle.
[0023] Preferably, the electric energy balance equation is as shown below:
[0024]
[0025] Where: P ex,t For power exchange with the grid, P CHP,t Output of CHP unit, P PV,t is the photovoltaic output, P EV,t Exchange power for electric vehicles, P ac,k,t is the air conditioning power, P EB,t P is the thermal power consumed by the electric boiler; d,t For the uncontrollable power demand of users;
[0026] The natural gas energy balance equation is shown below:
[0027] G ex,t -G CHP,t -G d,t =0
[0028] Where: G ex,t The gas purchase flow of users, G CHP,t G is the consumption flow of CHP unit; d,t Uncontrollable natural gas demand for users;
[0029] The thermal energy balance equation is shown as follows:
[0030] H ex,t +HCHP,t +H EB,t -H d,t =0
[0031] Where: H ex,t To exchange power with the heating network, H CHP,t The heat power generated by the CHP unit, H EB,t is the thermal power output of the electric boiler, H d,t It can meet the uncontrollable heat energy demand of users.
[0032] Preferably, the historical demand data and component parameters of the energy internet nodes are based on the historical data of demand and component parameters of the energy internet nodes, and a pre-built node energy management optimization model is used to obtain the historical data of electric load, the historical data of heat load and the historical data of gas load, including:
[0033] Bringing historical demand data and component parameters of energy internet nodes into the node energy management optimization model to obtain power exchange;
[0034] The power exchange is coupled with the uncontrollable demand data to generate electrical load history data, thermal load history data and gas load history data.
[0035] Preferably, based on the training data set, the LSTM network is used to perform convolutional neural network learning, segmentation and splicing to determine the mapping relationship between the historical data of electric load, the historical data of heat load, the historical data of gas load and the historical data of characteristic variables and each energy demand, including:
[0036] Use convolutional neural networks to learn the coupling relationship and time correlation of electric, thermal and gas load time series;
[0037] The convolution sequence and the time series composed of feature variables are respectively passed through multiple long short-term memory network (LSTM) layers to obtain multiple segments of feature information;
[0038] The multiple segments of feature information are concatenated and passed through a fully connected layer to obtain the electricity demand, heat demand and gas demand.
[0039] Preferably, the number of the long short-term memory network LSTM layers is designed based on the number of feature variables.
[0040] Preferably, the input data set includes:
[0041] Time series of time-of-use electricity prices, ambient temperature, light intensity, user preferences, historical data of electric loads, historical data of thermal loads, and historical data of gas loads;
[0042] The time-of-use electricity price, ambient temperature, light intensity and user preference are respectively composed of historical data of 48 time points and historical data of 1 measurement time point;
[0043] The electric load historical data, the thermal load historical data and the gas load historical data are respectively composed of historical data of 48 time points before the measurement time point.
[0044] Preferably, the output data set includes:
[0045] Time series of electricity demand, heat demand, and gas demand;
[0046] The time series is the historical data of the measurement time point and three time points after the measurement point.
[0047] Based on the same inventive concept, the present invention also provides an energy demand prediction system for energy internet, comprising:
[0048] An acquisition module is used to obtain characteristic variables and historical demand data of energy Internet nodes to be predicted;
[0049] A calculation module, used to obtain the energy demand and change trend in the future at the current time point based on the characteristic variables and historical demand data and a pre-built node generalization dynamic model;
[0050] Among them, the node generalization dynamic model is constructed based on the dynamic change relationship between characteristic variables and various energy demands at energy Internet nodes.
[0051] Preferably, the system further comprises a construction module for constructing a node generalization dynamic model;
[0052] The building blocks include:
[0053] A data processing unit, for obtaining historical data of electric load, historical data of heat load and historical data of gas load by using a pre-built node energy management optimization model based on historical demand data and component parameters of energy Internet nodes;
[0054] A data set unit, for obtaining an input data set by forward setting time points based on a set measurement time point, and obtaining an output data set corresponding to each energy demand by backward setting time points based on the historical data of the electric load, the historical data of the heat load, the historical data of the gas load, and the historical data of the characteristic variables;
[0055] A partitioning unit, configured to partition the input data set and the output data set into a training data set and a test data set;
[0056] A training unit is used to perform convolutional neural network learning, segmentation and splicing using an LSTM network based on a training data set, and determine a mapping relationship between historical data of electric load, historical data of heat load, historical data of gas load and historical data of characteristic variables and various energy demands;
[0057] A testing unit, used to perform testing based on the test data set, and adjust the mapping relationship parameters of the LSTM network to obtain a node generalization dynamic model;
[0058] The node energy management optimization model is constructed based on the relationship between various energy demands in the energy hub model.
[0059] Compared with the closest prior art, the technical solution provided by the present invention has the following beneficial effects:
[0060] The technical solution provided by the present invention obtains the characteristic variables and historical demand data of the energy Internet node to be predicted; based on the characteristic variables and historical demand data and a pre-constructed node generalization dynamic model, the energy demand and change trend in the future at the current time point are obtained; the node generalization dynamic model in the present invention is constructed based on the dynamic change relationship between the characteristic variables and each energy demand at the energy Internet node. Through this model, the dynamic change relationship between multiple energy demands at the node under the influence of the characteristic variables can be accurately expressed, which is conducive to the development of energy Internet optimization scheduling and operation risk assessment. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 This is a flow chart of an energy demand prediction method for energy internet provided by the present invention;
[0062] Figure 2 is a flow chart of the method for constructing a model in the present invention;
[0063] Figure 3 It is a schematic diagram of a generalized energy internet node based on an energy hub of the present invention;
[0064] Figure 4 A schematic diagram of constructing a data set of the present invention;
[0065] Figure 5 It is a schematic diagram of the structure of the generalized dynamic model based on LSTM of the present invention. DETAILED DESCRIPTION
[0066] In order to better understand the present invention, the content of the present invention is further described below in conjunction with the accompanying drawings and examples.
[0067] like Figure 1 As shown, the present invention provides an energy demand prediction method for energy Internet, comprising:
[0068] S1 obtains the characteristic variables and historical demand data of the energy Internet node to be predicted;
[0069] S2 obtains the energy demand and change trend in the future at the current time point based on the characteristic variables, historical demand data and the pre-built node generalization dynamic model;
[0070] Among them, the node generalization dynamic model is constructed based on the dynamic change relationship between characteristic variables and various energy demands at energy Internet nodes.
[0071] This embodiment adopts Figure 2 The model constructed in the energy demand prediction method of the energy Internet in the present invention is introduced in detail. The method models a generalized energy Internet node, including:
[0072] S01 collects the component parameters and characteristic variable data inside the node, such as CHP unit parameters, electric boiler parameters, photovoltaic array parameters, ambient temperature, light intensity, electricity price information, user preferences, and historical demand data;
[0073] S02 establishes an objective function to minimize user costs, a node energy management optimization model with the safe and stable operation of each component and the upper and lower limits of the capacity of each controllable device as constraints, and calculates the power exchange of the controllable part;
[0074] S03 couples the calculated power exchange with the uncontrollable energy consumption to form the actual energy demand of the node, forms data output and input data sets with characteristic variables and load history data, and establishes a node generalization dynamic model based on the Long Short-Term Memory (LSTM) network;
[0075] S04 uses the training data set to train the model. The trained model can calculate the energy demand and change trend for a short period of time in the future at the current time point based on the input external factors and the historical demand data at that point, and can improve performance by improving data quality or adjusting hyperparameters.
[0076] In specific practice, the model obtained after training has fast calculation speed and high accuracy, and is suitable for modeling energy Internet nodes with complex coupling relationships.
[0077] When the prediction method provided by the present invention is implemented, the following steps are included:
[0078] Step 1: Import generalized energy internet node parameters.
[0079] First import as Figure 3 The generalized energy internet node operating parameters and measurement data shown include CHP unit parameters, electric boiler parameters, photovoltaic array parameters, electric vehicle parameters, air conditioning system parameters, ambient temperature, light intensity, electricity price information, user preferences, and historical demand data;
[0080] Step 2: Establish a generalized energy internet node energy management optimization model, including:
[0081] Step 2.1: Establish the objective function of minimizing user cost, as shown below:
[0082]
[0083] Among them, it is divided into electricity cost, gas cost and heating cost. e,t is the electricity price for each period, P ex,t Δt is the amount of electricity purchased by the user, C g is the price of natural gas per cubic meter, G ex,t Δt is the gas purchase amount of the user, C h Heat cost coefficient, H ex,t ΔtThe user consumes heat energy.
[0084] Step 2.2: Create a balanced equation, including:
[0085] Balance equations are established for the three different energy forms within the system. The electric energy balance equation is:
[0086] As shown below:
[0087]
[0088] Among them, P ex,t For power exchange with the grid, P CHP,t Output of CHP unit, P PV,t is the photovoltaic output, P EV,t Exchange power for electric vehicles, P ac, k ,t is the air conditioning power, P EB,t is the thermal power consumed by the electric boiler, P d,t It is the uncontrollable power demand of users.
[0089] The gas energy balance equation is shown in the following formula:
[0090] G ex,t -G CHP,t -G d,t =0 (3-3)
[0091] Among them, G ex,t , G CHP,t are the user gas purchase flow and CHP unit consumption flow, G d,t To meet the uncontrollable natural gas demand of users.
[0092] The thermal energy balance equation is shown as follows:
[0093] H ex,t +H CHP,t +H EB,t -H d,t =0 (3-4)
[0094] Among them, H ex,t , H CHP,t are the power exchange with the heat network and the heat power generated by the CHP unit, H EB,t is the thermal power output of the electric boiler, H d,t It can meet the uncontrollable heat energy demand of users.
[0095] The historical demand data obtained in this embodiment is uncontrollable in terms of power exchange with the controllable part, so the historical demand data is also called the user's uncontrollable energy demand.
[0096] Step 2.3: Establish controllable device constraints, including:
[0097] (1) The constraints of the air conditioning system are as follows:
[0098]
[0099]
[0100]
[0101]
[0102]
[0103] Among them, T k,t is the room temperature of air conditioner k at time t, α k is the heat dissipation coefficient, T a,t is the ambient temperature, T ac,k,t is the temperature gain of air conditioner k, C k and R k are the thermal capacitance and thermal resistance of the air conditioner, respectively, k is the air conditioning efficiency, P ac,k,t is the power used by the air conditioner, is the maximum and minimum power consumption of the air conditioner, is the set temperature range.
[0104] (2) The constraints of CHP are as follows:
[0105] P CHP,t η HE =H CHP,t (3-10)
[0106]
[0107]
[0108]
[0109] Among them, P CHP,t is the electric power generated by the CHP unit, η HE is the thermoelectric conversion ratio, H CHP,t is the heat power generated, F CHP,t is the natural gas consumption of the CHP unit, GHV is the calorific value of natural gas, η CHP is the CHP unit efficiency, and The upper and lower bounds of the unit climbing rate.
[0110] (3) The constraints of the electric boiler are as follows:
[0111] H EB,t =η EB P EB,t (t=0,1,…N T -1) (3-14)
[0112]
[0113] Among them, H EB,t is the thermal power output of the electric boiler, η EB is the conversion efficiency of the electric boiler, P EB,t The electrical power consumed by the electric boiler.
[0114] (4) The constraints of the photovoltaic array are shown in the following formula:
[0115]
[0116] Where S is the area of the solar panel, η pv is the photovoltaic array conversion coefficient, R t is the solar radiation, T PV,t is the solar panel temperature, assumed to be equal to the ambient temperature T PV,t =T a,t .
[0117] (5) The constraints of electric vehicles are shown in the following formula:
[0118]
[0119]
[0120]
[0121]
[0122] Among them, E EV,t is the power of the electric car at time t; E EV,0 is the initial charge; η c , η dE is the charging efficiency and discharging efficiency respectively; c,t , E d,t are the charging power and discharging power in a unit time period respectively; s c,t ,s d,t is a binary variable representing the charging and discharging state; E out Power consumption for travel; s is the departure time; t r Return time.
[0123] The energy Internet node operating parameters obtained in the first step are brought into the node energy management optimization model in the second step, and are solved using computer simulation software to obtain historical data on electricity load, heat load, and gas load.
[0124] Step 3: Establish a data-mechanism dual-driven generalized dynamic model of energy Internet nodes based on LSTM, including:
[0125] Based on the generalized dynamic theoretical model of energy Internet proposed in step 2, the corresponding data-driven model is constructed. It is mainly divided into two parts: data set construction and LSTM network design.
[0126] Use Figure 4 The method shown constructs input and output data sets, and the input data sets include time-of-use electricity prices, ambient temperature, light intensity, user preferences (user-set temperature), historical data of electric loads, historical data of heat loads, and historical data of gas loads. Among them, the characteristic variables such as time-of-use electricity prices, ambient temperature, light intensity, and user preferences are time series with intervals of 15 minutes, each containing 48 historical data points and 1 measurement time point, a total of 49 time points. The historical data of electric loads, historical data of heat loads, and historical data of gas loads are calculated in step 2, that is, they are obtained by superimposing the measured demand data of power exchange and uncontrollable parts, and contain a time series of 48 time points before the measurement time point. The output data is a time series containing the measurement time point and 3 time points after the point, that is, the change trend of the node within one hour. The input and output data sets need to be normalized.
[0127] Build as Figure 5 The network shown in the figure takes into account that the time series of electric, heating and gas loads not only have time correlation, but also have coupling relationships among the three. First, a layer of convolutional neural network (CNN) is used to learn the coupling relationship and time correlation. Then the convolution sequence and the time series composed of four feature variables are passed through five LSTM layers respectively, and the five segments of feature information are spliced and passed through three fully connected layers to obtain the output result, where Convolution represents a layer of convolutional neural network and Dense represents a fully connected layer.
[0128] The network uses the ADAM optimization algorithm, and the learning rate is set to 0.01; the loss function is constructed using the mean square error (MSE):
[0129]
[0130] Among them, y i is the real data in the training data set, y' i is the predicted value calculated by the network, and n is the total number of samples.
[0131] The activation function of each layer uses the leaky linear rectifier function (Leaky Rectified Linear Unit, LeakyReLU):
[0132] f(x)=max(0,x)+a i min(0,x) (3-22)
[0133] This activation function can avoid the gradient vanishing phenomenon when the input is negative. The negative semi-axis slope a of Leaky ReLU i Set to 0.01.
[0134] Step 4: Generalized dynamic model training and verification, including:
[0135] Step 4.1: The dataset is divided into 80% as training dataset and 20% as testing dataset.
[0136] Step 4.2: Forward propagation, including:
[0137] Input the input data set containing feature variables and historical data into the LSTM network, and calculate the output value of each layer. Calculate the loss function value based on the network output and the output data in the training set.
[0138] Step 4.3: Backward propagation, including:
[0139] Calculate the error signal of each layer and adjust the weight of each layer. Repeat steps 4.2 and 4.3 until the maximum number of iterations is reached.
[0140] Step 4.4: Model validation and testing, including:
[0141] Input the test data set into the program calculation output and compare it with the real samples in the test data set. According to the test set results, improve the model quality from two aspects: data quality and hyperparameter tuning such as the number of training times, batch size, and learning rate.
[0142] The technical solution provided by the present invention is aimed at the generalized energy Internet nodes composed of three energy forms of electricity, heat and gas, including complex conversion relationships and users, in order to minimize user costs, establish a node energy management optimization model, and obtain the energy exchange of the controllable part within the node; the calculation results of the node energy management optimization model are coupled with the measured data to establish a generalized dynamic model of the generalized energy Internet node based on LSTM, which can effectively extract the time correlation information in the data, and calculate the energy consumption trend in the current and future period based on the measured external characteristic variables. The constructed node energy management optimization model can describe the corresponding mechanism of the controllable part of the energy interconnection in the face of changes in external characteristic factors, and solve its energy demand, which is coupled with the measured data, considering the data more comprehensively, which is conducive to improving the prediction accuracy.
[0143] Example 2
[0144] Based on the same inventive concept, the present invention also provides an energy demand prediction system for energy internet, comprising:
[0145] An acquisition module is used to obtain characteristic variables and historical demand data of energy Internet nodes to be predicted;
[0146] A calculation module, used to obtain the energy demand and change trend in the future at the current time point based on the characteristic variables and historical demand data and a pre-built node generalization dynamic model;
[0147] Among them, the node generalization dynamic model is constructed based on the dynamic change relationship between characteristic variables and various energy demands at energy Internet nodes.
[0148] In an embodiment, the system further comprises a construction module for constructing a node generalization dynamic model;
[0149] The building blocks include:
[0150] A data processing unit, for obtaining historical data of electric load, historical data of heat load and historical data of gas load by using a pre-built node energy management optimization model based on historical demand data and component parameters of energy Internet nodes;
[0151] A data set unit, for obtaining an input data set by forward setting time points based on a set measurement time point, and obtaining an output data set corresponding to each energy demand by backward setting time points based on the historical data of the electric load, the historical data of the heat load, the historical data of the gas load, and the historical data of the characteristic variables;
[0152] A partitioning unit, configured to partition the input data set and the output data set into a training data set and a test data set;
[0153] A training unit is used to perform convolutional neural network learning, segmentation and splicing using an LSTM network based on a training data set, and determine a mapping relationship between historical data of electric load, historical data of heat load, historical data of gas load and historical data of characteristic variables and various energy demands;
[0154] A testing unit, used to perform testing based on the test data set, and adjust the mapping relationship parameters of the LSTM network to obtain a node generalization dynamic model;
[0155] The node energy management optimization model is constructed based on the relationship between various energy demands in the energy hub model.
[0156] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0157] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0158] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0159] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0160] The above are merely embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention are included in the scope of the claims of the present invention to be approved.
Claims
1. A method for predicting energy demand in energy internet. It is characterized in that include: Obtain the characteristic variables and historical demand data of the energy Internet nodes to be predicted; Based on the characteristic variables and historical demand data and the pre-built node generalized dynamic model, the energy demand and change trend in the future at the current time point are obtained; The node generalized dynamic model is constructed based on the dynamic change relationship between the characteristic variables and the energy demand at each energy Internet node; The construction of the node generalization dynamic model includes: Based on the historical demand data and component parameters of the energy Internet nodes, the pre-built node energy management optimization model is used to obtain the historical data of electric load, thermal load and gas load; The historical data of the electric load, the historical data of the heat load, the historical data of the gas load, and the historical data of the characteristic variables are forward set to a set time point based on the set measurement time point to obtain an input data set, and backward set to a set time point to obtain an output data set corresponding to each energy demand; Divide the input data set and the output data set into a training data set and a test data set; Based on the training data set, the LSTM network is used to perform convolutional neural network learning, segmentation and splicing to determine the mapping relationship between the historical data of electric load, thermal load, gas load and historical data of characteristic variables and each energy demand; Testing is performed based on the test data set, and mapping relationship parameters of the LSTM network are adjusted to obtain a node generalization dynamic model; Wherein, the node energy management optimization model is constructed based on the relationship between multiple energy demands in the energy hub model; The construction of the node energy management optimization model includes: Establish an objective function to minimize user cost; Construct balance equations for electricity, natural gas and heat in the energy hub model; Constructing constraint conditions for the objective function based on the safe and stable operation of each component and the upper and lower limits of the capacity of each controllable device; The balance equations include an electric energy balance equation, a natural gas energy balance equation and a thermal energy balance equation; the controllable devices include an air conditioning system, a cogeneration CHP unit, an electric boiler, a photovoltaic array and an electric vehicle.
2. The method according to claim 1, It is characterized in that The characteristic variables include: ambient temperature, light intensity, electricity price information and user preferences, and the energy demand includes electricity demand, heat demand and gas demand.
3. The method according to claim 1, It is characterized in that The electric energy balance equation is shown in the following formula: Where: P ex,t For power exchange with the grid, P CHP,t Output of CHP unit, P PV,t is the photovoltaic output, P EV,t Exchange power for electric vehicles, P ac,k,t is the air conditioning power, P EB,t P is the thermal power consumed by the electric boiler; d,t For the uncontrollable power demand of users; The natural gas energy balance equation is shown below: G ex,t -G CHP,t -G d,t =0 Where: G ex,t The gas purchase flow of users, G CHP,t G is the consumption flow of CHP unit; d,t Uncontrollable natural gas demand for users; The thermal energy balance equation is shown as follows: H ex,t +H CHP,t +H EB,t -H d,t =0 Where: H ex,t To exchange power with the heating network, H CHP,t The heat power generated by the CHP unit, H EB,t is the thermal power output of the electric boiler, H d,t It can meet the uncontrollable heat energy demand of users.
4. The method according to claim 1, It is characterized in that The historical demand data and component parameters of the energy internet nodes are based on the pre-built node energy management optimization model to obtain the historical data of electric load, historical data of heat load and historical data of gas load, including: Bringing historical demand data and component parameters of energy internet nodes into the node energy management optimization model to obtain power exchange; The power exchange is coupled with the uncontrollable demand data to generate electrical load history data, thermal load history data and gas load history data.
5. The method according to claim 1, It is characterized in that Based on the training data set, the LSTM network is used to perform convolutional neural network learning, segmentation and splicing to determine the mapping relationship between the historical data of electric load, the historical data of heat load, the historical data of gas load and the historical data of characteristic variables and each energy demand, including: Use convolutional neural networks to learn the coupling relationship and time correlation of electric, thermal and gas load time series; The convolution sequence and the time series composed of feature variables are respectively passed through multiple long short-term memory network (LSTM) layers to obtain multiple segments of feature information; The multiple segments of feature information are concatenated and passed through a fully connected layer to obtain the electricity demand, heat demand and gas demand.
6. The method according to claim 1, It is characterized in that The number of the long short-term memory network LSTM layers is designed based on the number of feature variables.
7. The method according to claim 2, It is characterized in that The input data set includes: Time series of time-of-use electricity prices, ambient temperature, light intensity, user preferences, historical data of electric loads, historical data of thermal loads, and historical data of gas loads; The time-of-use electricity price, ambient temperature, light intensity and user preference are respectively composed of historical data of 48 time points and historical data of 1 measurement time point; The electric load historical data, the thermal load historical data and the gas load historical data are respectively composed of historical data of 48 time points before the measurement time point.
8. The method according to claim 2, It is characterized in that The output data set includes: Time series of electricity demand, heat demand, and gas demand; The time series is the historical data of the measurement time point and three time points after the measurement point.
9. An energy demand prediction system for energy internet, It is characterized in that include: An acquisition module is used to obtain characteristic variables and historical demand data of energy Internet nodes to be predicted; A calculation module, used to obtain the energy demand and change trend in the future at the current time point based on the characteristic variables and historical demand data and a pre-built node generalization dynamic model; The node generalized dynamic model is constructed based on the dynamic change relationship between the characteristic variables and the energy demand at each energy Internet node; The system also includes a building module for building a node generalized dynamic model; The building blocks include: A data processing unit, for obtaining historical data of electric load, historical data of heat load and historical data of gas load by using a pre-built node energy management optimization model based on historical demand data and component parameters of energy Internet nodes; A data set unit, for obtaining an input data set by forward setting time points based on a set measurement time point, and obtaining an output data set corresponding to each energy demand by backward setting time points based on the historical data of the electric load, the historical data of the heat load, the historical data of the gas load, and the historical data of the characteristic variables; A partitioning unit, configured to partition the input data set and the output data set into a training data set and a test data set; A training unit is used to perform convolutional neural network learning, segmentation and splicing using an LSTM network based on a training data set, and determine a mapping relationship between historical data of electric load, historical data of heat load, historical data of gas load and historical data of characteristic variables and various energy demands; A testing unit, used to perform testing based on the test data set, and adjust the mapping relationship parameters of the LSTM network to obtain a node generalization dynamic model; Wherein, the node energy management optimization model is constructed based on the relationship between multiple energy demands in the energy hub model; The construction of the node energy management optimization model includes: Establish an objective function to minimize user cost; Construct balance equations for electricity, natural gas and heat in the energy hub model; Constructing constraint conditions for the objective function based on the safe and stable operation of each component and the upper and lower limits of the capacity of each controllable device; The balance equations include an electric energy balance equation, a natural gas energy balance equation and a thermal energy balance equation; the controllable devices include an air conditioning system, a cogeneration CHP unit, an electric boiler, a photovoltaic array and an electric vehicle.
