K-CNN-BiLSTM-based two-stage low-carbon economic dispatching method for cogeneration type micro-grid
The K-CNN-BiLSTM model and K-Nearest Neighbor algorithm are used to fill in the missing data, combined with the stepped carbon trading and demand response mechanism, to solve the problem of the impact of missing data in microgrid dispatching and achieve more accurate wind and solar power prediction and optimized dispatch. Improves the operational stability and economy of the system.
Patent Information
- Application Number
- CN202410583606.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2024-09-06
AI Technical Summary
Existing technologies fail to effectively handle the impact of missing data on the prediction model in microgrid dispatch, resulting in reduced prediction accuracy and a large difference between the day-ahead dispatch plan and the actual operating status.
The K-CNN-BiLSTM model is used to fill in the missing parts of the historical data through the K-nearest neighbor algorithm, a two-stage wind and solar power prediction model is established, and a stepped carbon trading mechanism and incentive-based demand response are introduced in the day-ahead dispatching stage, combined with model predictive control Carry out intra-day rolling optimization scheduling, and use MATLAB to call the CPLEX solver for optimization and solving.
It improves the stability and economy of system operation, reduces the impact of prediction errors on system operation, and enhances the robustness and environmental protection of the system.
Smart Images

Figure CN118611034A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power system optimization dispatching, and in particular to a two-stage low-carbon economic dispatching method for a combined heat and power microgrid based on K-CNN-BiLSTM. Background Art
[0002] Compared with traditional microgrids, combined heat and power microgrids have higher energy supply reliability, can realize the cascade utilization of energy, can effectively improve energy utilization and reduce environmental pollution. However, wind and solar output have random fluctuations. With the access of a high proportion of renewable energy, the system needs to comprehensively consider the impact of many issues such as uncertainty, new energy consumption rate and supply and demand benefit balance during operation. Therefore, studying the optimization and scheduling of microgrids is of great significance to improving energy utilization efficiency and promoting the sustainable development of energy.
[0003] The article "Research on Typical Daily Dispatching of Multi-energy Parks Based on Improved DDPG" in Volume 46, Issue 5 of Power System Technology aims at optimizing the economic efficiency of microgrid operation, solves the model using optimization algorithms, and improves the operating efficiency of the system. The article "Dynamic Dispatching of Hybrid Energy Microgrids Based on Strategy Driven" in Volume 44, Issue 7 of Acta Energiae Solaris Sinica combines the two levels of dispatching strategy and dispatching incentives, and proposes a dynamic dispatching method under multiple modes.
[0004] The above studies only considered the day-ahead dispatch plan of the system, and the day-ahead forecast data is relatively rough, resulting in a large difference between the final dispatch result and the actual operating status. In response to the above problems, the article "Dynamically Corrected Hierarchical Optimal Dispatch of Cogeneration Microgrids" in Volume 42, Issue 3 of the Proceedings of the CSEE proposes a dynamically corrected hierarchical optimal dispatch strategy based on the short-term and ultra-short-term microgrid optimal dispatch model. The article "Microgrid Time Domain Rolling Optimal Dispatch Based on Differentiated Demand Response Model Predictive Control" in Volume 45, Issue 8 of Power System Technology combines the model predictive control (MPC) theory in intraday dispatch and proposes a multi-time scale optimal dispatch strategy based on model predictive control. Although it effectively reduces the adverse effects of prediction errors on system operation, the final dispatch plan is still constrained by prediction accuracy.
[0005] The article "A two-layer optimization scheduling decision-making method for regional integrated energy systems driven by hybrid data and models" in Volume 46, Issue 10 of "Power System Technology" proposes a two-layer optimization scheduling strategy that combines data and models. Taking the day-ahead scheduling plan as a reference, the convolutional neural network and gated recurrent unit are combined to solve the intraday scheduling stage, and the optimal two-stage scheduling result is obtained.
[0006] Most of the research experiments in the above literature are based on complete historical data and do not consider missing data sets. In real situations, any missing data in the original data may greatly reduce the prediction accuracy of the prediction model. Summary of the invention
[0007] The purpose of the present invention is to overcome the above-mentioned shortcomings and provide a two-stage low-carbon economic dispatching method for a combined heat and power microgrid based on K-CNN-BiLSTM to solve the problems raised in the background technology.
[0008] In order to solve the above technical problems, the technical solution adopted by the present invention is: a two-stage low-carbon economic dispatching method for a combined heat and power microgrid based on K-CNN-BiLSTM, comprising the following steps:
[0009] Step 1: Establish a mathematical model of the combined heat and power microgrid;
[0010] Step 2: Establish a two-stage K-CNN-BiLSTM wind and solar power prediction model;
[0011] Step 3: Based on the short-term wind and solar power forecast results, establish a day-ahead optimization dispatch model: In the day-ahead dispatch stage, introduce a step-by-step carbon trading mechanism and incentive-based demand response, and establish a day-ahead low-carbon economic dispatch model with the minimum total system operating cost as the objective function;
[0012] Step 4: Based on the ultra-short-term wind and solar power forecast results, establish an intraday optimization scheduling model: In the intraday scheduling stage, with the goal of tracking the day-ahead scheduling plan, propose an intraday rolling optimization scheduling strategy based on model predictive control;
[0013] Step 5: Use MATLAB to call the CPLEX solver to optimize and solve the system.
[0014] Furthermore, in step 1, a mathematical model of the combined heat and power unit, electric boiler, gas boiler, battery and heat storage tank is established; specifically, as follows:
[0015] (1) Cogeneration unit model
[0016]
[0017] Where: P e,MT (t), P h,WHB (t) are the electric and thermal output power of the cogeneration unit; h e is the gas turbine electrical conversion efficiency; h e-h is the electric-to-heat ratio of the CHP unit; h CHP is the heat conversion efficiency of the CHP unit; P MT (t) is the total output power of the micro gas turbine;
[0018] (2) Electric boiler model
[0019] P h,EB (t) = h EB P e,EB (t)
[0020] Where: P h,EB (t), P e,EB (t) are the heat generation and power consumption of the electric boiler at time t; h EB is the thermoelectric conversion efficiency;
[0021] (3) Gas boiler model
[0022] P h,GB (t) = h GB P GB (t)
[0023] Where: P h,GB (t) is the heating power of the gas boiler at time t; h GB is the heating efficiency of the gas boiler; P GB (t) is the power consumption of natural gas;
[0024] (4) Battery model
[0025]
[0026] Where: P bat (t) is the battery storage capacity at time t; S oc (t) is the battery charge state at time t; E bat is the rated capacity of the battery; P e,cha (t), P e,dis (t) are the charging and discharging power of the battery at time t; h e,cha 、h e,dis are the charge and discharge efficiency of the battery respectively;
[0027] (5) Heat storage tank model
[0028]
[0029] Where: P heat (t) is the heat storage tank heat at time t; H oc (t) is the heat storage state of the heat storage tank at time t; E heat is the rated capacity of the heat storage tank; P h,cha (t), P h,dis (t) are the heat storage and release power of the heat storage tank at time t; h h,cha 、h h,dis are the heat storage and release efficiencies of the heat storage tank respectively.
[0030] Furthermore, in step 2, the missing parts of the historical data are first filled using the K-NN algorithm, and then the complete data is normalized and divided into a training set and a test set; the details are as follows:
[0031] (1) K-NN algorithm
[0032] The calculation formula is:
[0033]
[0034]
[0035] Where: x i is the missing data value; d n is the Euclidean distance between two points; w n is the weighted average; x n is the nth nearest neighbor value; n is the number of nearest neighbors;
[0036] (2) Data normalization
[0037] The calculation formula is as follows:
[0038]
[0039] Where x is the actual value vector; x max and x min are the maximum and minimum values of x respectively; x' is a normalized vector.
[0040] Furthermore, in step 2, based on the complete data filled by the K-NN algorithm, a CNN model is established, and the convolution layer and the maximum pooling layer in the CNN model are used to extract and reduce the data features in the training set; the details are as follows:
[0041] CNN Model
[0042]
[0043] In the formula, C and P are the output states of the convolutional layer and the pooling layer respectively; H is the output feature vector of the CNN structure; w c and w s are the weight matrices of the convolutional layer and the fully connected layer respectively; b c 、b p and b s They are the bias vectors of the convolutional layer, pooling layer, and fully connected layer respectively; is the convolution operation; f(·) is the activation function of the convolution layer, which takes the Relu function; δ(·) is the pooling method, which takes the maximum pooling; For the fully connected layer activation function, select the Sigmoid function.
[0044] Furthermore, in step 2, the important feature data extracted by CNN is input into the BiLSTM network for bidirectional time series feature extraction. In order to improve the generalization ability of the model and reduce the risk of overfitting, a dropout layer is connected before and after the BiLSTM layer, and the dropout value is 0.2; finally, the data processed by the Dropout layer is passed to the fully connected (Dense) layer to complete the training of the model and use the test set to verify the model; the details are as follows:
[0045] BiLSTM Model
[0046]
[0047] Where: Perform LSTM operations forward and backward respectively; are the bidirectional connection weight matrices respectively; are the forward and backward power prediction values respectively; h t+1 、h t-1 are the power prediction values at the previous moment and the next moment respectively; x t is the input feature vector; b t is the bias for the output layer.
[0048] Furthermore, in step 3, the day-ahead scheduling plan cycle is set to 24h, the time scale is set to 1h, and the scheduling plan for the next day's 24h is calculated one day in advance. Based on the short-term wind and solar power forecast results, the day-ahead optimization scheduling objective function is established with the goal of minimizing the total system operating cost; the details are as follows:
[0049] The day-ahead objective function is:
[0050]
[0051] In the formula, C DR,sell subsidizing the costs of demand response; is the tiered carbon trading cost; C om C is the equipment operation and maintenance cost; gird The cost of purchasing and selling electricity; C so is the pollutant emission cost; C gas The cost of purchasing gas;
[0052] (1) Tiered carbon trading mechanism
[0053] The daily carbon emissions trading volume in the carbon market is:
[0054] E market =E gain -E real
[0055] Where: E gain is the daily carbon emission quota; Ereal is the actual daily carbon emissions;
[0056] The formula for calculating the tiered carbon trading cost is:
[0057]
[0058] In the formula: λ is the carbon trading base price; d is the carbon trading quota; α is the carbon price growth rate;
[0059] (2) Incentive Demand Response Subsidy
[0060]
[0061] Where: k represents the load type; μ k Subsidize the price for users; ΔP k,load,total (t) represents the total power of the kth type of load participating in demand response at time t.
[0062] Furthermore, in step 4, the intraday rolling scheduling plan cycle is set to 4h, the time scale is set to 15min, and 96 rolling optimizations are performed in one day. Based on the ultra-short-term wind and solar power forecast results, the intraday optimization scheduling objective function is established with the goal of minimizing the deviation between the output vector of the intraday plan and the day-ahead optimization scheduling plan; the details are as follows:
[0063] (1) Intraday objective function
[0064] minf 2 =||YY ref || Q 2 +||U|| R 2
[0065] Where: Y and Y ref are the output vector and the reference vector, Y ref is the output value of each device in the day-ahead scheduling plan; Q is the error coefficient matrix; R is the control coefficient matrix; m is the number of control time domain periods; U is the control vector.
[0066] (2) Feedback correction link
[0067] P(t+Dt)=P real (t+Dt)
[0068] Where: P(t+Dt) is the initial power of the group during optimization; P real (t+Dt) is the actual power of the unit.
[0069] Beneficial effects of the present invention: First, the present invention adopts the K-nearest neighbor algorithm to interpolate the historical missing data of wind and solar power, eliminates the influence of data missing on prediction accuracy, and establishes a two-stage power prediction model based on K-CNN-BiLSTM; secondly, in the day-ahead scheduling stage, a stepped carbon trading mechanism and load-side incentive demand response are introduced, with the economy of the system as the goal, comprehensively considering the system power generation cost and benefit, and establishing a day-ahead low-carbon economic scheduling model with the minimum total operating cost of the system as the objective function; in the intraday scheduling stage, with the goal of tracking the day-ahead scheduling plan, an intraday rolling optimization scheduling strategy based on model predictive control is proposed to eliminate the power fluctuation caused by the day-ahead wind and solar power prediction error, and improve the stability of system operation; the method proposed in the present invention can effectively improve the economy, environmental protection and robustness of system operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 is a flow chart of the steps of the present invention;
[0071] Figure 2 It is a diagram of multi-time scale scheduling steps;
[0072] Figure 3 This is a graph to fill in the missing data of wind farm power for one month;
[0073] Figure 4 This is a graph to fill in the missing data of photovoltaic power for one month;
[0074] Figure 5 This is the wind power day-ahead forecast result diagram;
[0075] Figure 6 This is the wind power daily forecast result diagram;
[0076] Figure 7 This is the result diagram of the demand response quantity of electric and heating loads;
[0077] Figure 8 This is a graph comparing carbon trading emissions;
[0078] Fig. 9 The electric power balance diagram is the result of the day-ahead optimization dispatch;
[0079] Fig.10 The thermal power balance diagram of the day-ahead optimization scheduling result;
[0080] Fig.11 The electric power balance diagram is the result of the daily optimal dispatch;
[0081] Fig.12 This is the thermal power balance diagram of the intra-day optimal scheduling result. DETAILED DESCRIPTION
[0082] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0083] like Figure 1-12 As shown in FIG. 1 , a two-stage low-carbon economic dispatch method for a combined heat and power microgrid based on K-CNN-BiLSTM includes the following steps:
[0084] Step 1: Establish mathematical models of combined heat and power units, electric boilers, gas boilers, batteries and heat storage tanks, as follows:
[0085] (1) Cogeneration unit model
[0086]
[0087] Where: P e,MT (t), P h,WHB (t) are the electric and thermal output power of the cogeneration unit; h e is the gas turbine electrical conversion efficiency; h e-h is the electric-to-heat ratio of the CHP unit; h CHP is the heat conversion efficiency of the CHP unit; P MT (t) is the total output power of the micro gas turbine.
[0088] (2) Electric boiler model
[0089] P h,EB (t) = h EB P e,EB (t)
[0090] Where: P h,EB (t), P e,EB (t) are the heat generation and power consumption of the electric boiler at time t; h EB is the thermoelectric conversion efficiency.
[0091] (3) Gas boiler model
[0092] P h,GB (t) = h GB P GB (t)
[0093] Where: P h,GB (t) is the heating power of the gas boiler at time t; h GB is the heating efficiency of the gas boiler; P GB (t) is the power consumed by natural gas.
[0094] (4) Battery model
[0095]
[0096] Where: P bat (t) is the battery storage capacity at time t; S oc(t) is the battery charge state at time t; E bat is the rated capacity of the battery; P e,cha (t), P e,dis (t) are the charging and discharging power of the battery at time t; h e,cha 、h e,dis are the charge and discharge efficiencies of the battery respectively.
[0097] (5) Heat storage tank model
[0098]
[0099] Where: P heat (t) is the heat storage tank heat at time t; H oc (t) is the heat storage state of the heat storage tank at time t; E heat is the rated capacity of the heat storage tank; P h,cha (t), P h,dis (t) are the heat storage and release power of the heat storage tank at time t; h h,cha 、h h,dis are the heat storage and release efficiencies of the heat storage tank respectively.
[0100] The prediction process is shown in Figure 1 .
[0101] Step 2: First, use the K-NN algorithm to fill in the missing parts of the historical data, and then normalize the complete data and divide it into training set and test set. The details are as follows:
[0102] (1) K-NN algorithm
[0103] Using the core idea of the K-NN algorithm, by calculating the Euclidean distance between the missing data in the data set and the complete data in the training set, the n values with the shortest distance are selected as the missing neighbor data and the weighted average of these n data is used as the missing data to fill in the missing data. The calculation formula is:
[0104]
[0105]
[0106] Where: x i is the missing data value; d n is the Euclidean distance between two points; w n is the weighted average; x n is the nth neighbor value; n is the number of nearest neighbors.
[0107] (2) Data normalization
[0108] The calculation formula is:
[0109]
[0110] Where x is the actual value vector; x max and x min are the maximum and minimum values of x respectively; x' is a normalized vector.
[0111] As an improved feedforward neural network, CNN is mainly composed of convolutional layers and pooling layers. The convolutional layer extracts data features by using cross-correlation and mathematical convolution operators, and the pooling layer is used to reduce data dimensions, retain important information, and reduce computational complexity.
[0112] Step 2: Based on the complete data filled by the K-NN algorithm, a CNN model is established, and the convolution layer and maximum pooling layer in the CNN model are used to extract and reduce the data features in the training set. The details are as follows:
[0113] CNN Model
[0114]
[0115] In the formula, C and P are the output states of the convolutional layer and the pooling layer respectively; H is the output feature vector of the CNN structure; w c and w s are the weight matrices of the convolutional layer and the fully connected layer respectively; b c 、b p and b s They are the bias vectors of the convolutional layer, pooling layer, and fully connected layer respectively; is the convolution operation; f(·) is the activation function of the convolution layer, which takes the Relu function; δ(·) is the pooling method, which takes the maximum pooling; For the fully connected layer activation function, select the Sigmoid function.
[0116] BiLSTM takes into account past and future information and can complete both forward and reverse training. Facing the uncertainty of wind and solar power sequences and the correlation between previous and subsequent data, it is helpful to capture the complete information in the input sequence.
[0117] Step 2: Input the important feature data extracted by CNN into the BiLSTM network for bidirectional time series feature extraction. In order to improve the generalization ability of the model and reduce the risk of overfitting, a dropout layer is connected before and after the BiLSTM layer, and the dropout value is 0.2. Finally, the data processed by the Dropout layer is passed to the fully connected (Dense) layer to complete the model training and use the test set to verify the model. The details are as follows:
[0118] BiLSTM Model
[0119]
[0120] Where: Perform LSTM operations forward and backward respectively; are the bidirectional connection weight matrices respectively; are the forward and backward power prediction values respectively; h t+1 、h t-1 are the power prediction values at the previous moment and the next moment respectively; x t is the input feature vector; b t is the bias for the output layer.
[0121] The multi-time scale scheduling steps are shown in Figure 2 .
[0122] Step 3: Set the day-ahead scheduling cycle to 24 hours and the time scale to 1 hour. Calculate the next day's 24-hour scheduling plan one day in advance. Based on the short-term wind and solar power forecast results, and with the lowest total system operating cost as the goal, establish the day-ahead optimization scheduling objective function and constraints. The details are as follows:
[0123] The day-ahead objective function is:
[0124]
[0125] In the formula, C DR,sell subsidizing the costs of demand response; is the tiered carbon trading cost; C om C is the equipment operation and maintenance cost; gird The cost of purchasing and selling electricity; C so is the pollutant emission cost; C gas The cost of purchasing gas.
[0126] Specifically, the above costs are:
[0127] (1) Tiered carbon trading mechanism
[0128] To accelerate the realization of the "dual carbon" goals and promote the sustainable development of energy.
[0129] The daily carbon emissions trading volume in the carbon market is:
[0130] E market =E gain -E real
[0131] Where: E gain is the daily carbon emission quota; E real is the actual daily carbon emissions.
[0132] The formula for calculating the tiered carbon trading cost is:
[0133]
[0134] In the formula: λ is the carbon trading base price; d is the carbon trading quota; α is the carbon price growth rate.
[0135] (2) Incentive Demand Response
[0136] The power supply company encourages users to actively change their electricity consumption patterns by signing contracts with them, and subsidizes users at a certain price. The demand response subsidy cost is:
[0137]
[0138] Where: k represents the load type; μ k Subsidize the price for users; ΔP k,load,total (t) represents the total power of the kth type of load participating in demand response at time t.
[0139] (3) Operation and maintenance costs of each device
[0140]
[0141] Where: C bat , C mt , C whb , C eb , C gb , C heat They are the operation and maintenance costs of batteries, micro gas turbines, waste heat boilers, electric boilers, gas boilers and heat storage tank equipment.
[0142] (4) Microgrid power purchase and sales costs
[0143]
[0144] Where: C buy is the electricity purchase price; C sell is the electricity selling price; P grid,buy (t) is the power purchased by the microgrid at time t; P grid,sell (t) is the power sold by the microgrid at time t.
[0145] (5) Pollutant emission costs
[0146]
[0147] Where: m CHP 、m gb 、m grid are the pollutant emission cost coefficients of CHP units, gas boilers and microgrid interactions; H CHP , H gb , H grid They are the pollutant emission coefficients of CHP units, gas boilers and microgrid interactions.
[0148] (6) Gas purchase cost
[0149]
[0150] Where: C g is the natural gas price; a, b, c are the combustion coefficients respectively.
[0151] Specifically, in the day-ahead optimization scheduling model, the constraints mainly include the following aspects:
[0152] a) Electric heating power balance power
[0153] P PV (t)+P WT (t)+P grid,buy (t)+P e,dis (t) = P e,EB (t)+P e,load,0 (t)+P grid,sell (t)+DP e,load,total (t)+P e,cha (t)
[0154] P h,MT (t)+P h,WHB (t)+P h,EB (t)+P h,GB (t)+P h,dis (t) = P h,load,0 (t)+DP h,load,total (t)+P h,cha (t)
[0155] Where: P PV (t) is the predicted photovoltaic power at time t; P WT (t) is the predicted power of the wind turbine at time t; P e,load,0 (t) is the electric power before participating in demand response; P h,load,0 (t) is the thermal power before participating in demand response.
[0156] b) Battery output constraints
[0157]
[0158] Where: P e,dis,max , P e,cha,max are the maximum charging and discharging power of the battery at time t; I e,dis (t), I e,cha (t) are 0-1 state variables, 1 indicates the battery is in a charging state, otherwise it is in a discharging state; S OC,max , S OC,min are the maximum and minimum state of charge of the battery at time t respectively.
[0159] c) Heat storage tank output constraints
[0160]
[0161] Where: P h,dis,max , P h,cha,max are the maximum heat storage and release power of the heat storage tank at time t; I h,dis (t), I h,cha (t) are 0-1 state variables, 1 means the heat storage tank is in the heat storage state, otherwise it is in the heat release state; H OC,max , H OC,min are the maximum and minimum values of the heat storage state of the heat storage tank at time t respectively.
[0162] d) Tie line power constraints
[0163]
[0164] Where: P grid,max is the maximum interactive power of the tie line; I buy (t), I sell (t) are 0-1 state variables, 1 means electricity purchase state, otherwise it means electricity sale state; P grid (t) is the interconnection power of the tie line.
[0165] e) Demand-side response constraints
[0166]
[0167] Where: P k,load (t) is the power after participating in demand response.
[0168] f) User satisfaction constraints
[0169] In order to balance the relationship between the economic benefits of the power system and user experience, the Integrated Consumer Satisfaction Index (ICSI) is used to characterize user satisfaction with electricity consumption.
[0170]
[0171] Where: I min represents the minimum comprehensive consumer satisfaction index; P k,i Represents the total power of the electrical load at time t.
[0172] Step 4: The intraday rolling scheduling plan cycle is set to 4 hours, the time scale is set to 15 minutes, and 96 rolling optimizations are performed in one day. Based on the ultra-short-term wind and solar power forecast results, the intraday optimization scheduling objective function is established with the goal of minimizing the deviation between the output vector of the intraday plan and the day-ahead optimization scheduling plan. The details are as follows:
[0173] (1) Intraday objective function
[0174] Based on the rolling optimization scheduling strategy of MPC, the change of electric heat charging and discharging of the battery and heat storage tank in CHP-MG is used as the control vector; by adjusting the size of the control vector, the deviation between the output vector of the intraday plan and the day-ahead optimization scheduling plan is minimized. The established objective function is as follows:
[0175] minf 2 =||YY ref || Q 2 +||U|| R 2
[0176] Specifically, in the above formula:
[0177]
[0178] Where: Y and Y ref are the output vector and the reference vector, Y ref is the output value of each device in the day-ahead scheduling plan; Q is the error coefficient matrix; R is the control coefficient matrix; m is the number of control time domain periods; U is the control vector.
[0179] (2) Feedback correction link
[0180] In order to further reduce the impact of errors caused by two-stage forecasting, a feedback correction mechanism is added to the intraday rolling optimization scheduling to achieve closed-loop control of the system. The feedback correction link is as follows:
[0181] P(t+Dt)=P real (t+Dt)
[0182] Where: P(t+Dt) is the initial power of the group during optimization; P real (t+Dt) is the actual power of the unit.
[0183] In the intraday optimization scheduling model, the constraints are the same as those in the day-ahead optimization scheduling model.
[0184] Step 5: Use MATLAB to call the CPLEX solver to optimize and solve the system.
[0185] To verify the effectiveness of the proposed method, a one-month ultra-short-term historical wind and solar output data collected in a certain place in China is taken as an example. The sampling time interval is 15 minutes, and there are 2880 groups of data. The first 70% is taken as the training set, and the last 30% is taken as the test set. The data features include wind speed, wind direction, temperature and wind power in the wind farm; temperature, total radiation, humidity and photovoltaic power in the photovoltaic field. The wind and solar power results after data filling using the K-NN algorithm are shown in Figure 3 and Figure 4.
[0186] The two-stage prediction results of wind and solar power are shown in Figure 5 and Figure 6 .
[0187] The demand response amount of electric and heating loads is shown in Figure 7 .
[0188] pass Figure 8 It can be found that the load side reduces or transfers some of the electric and thermal loads during peak hours to valley and normal hours by participating in demand response, thus achieving the "peak shaving and valley filling" of the load. By encouraging the user side to participate in demand response, it can not only effectively reduce the operating cost of the microgrid, but also better cope with the impact of source and load uncertainty.
[0189] The comparison results of carbon emissions under different carbon trading mechanisms are as follows: Figure 8 shown.
[0190] Compared with not considering carbon trading and traditional carbon trading, the carbon emissions of the stepped carbon trading mechanism were reduced by 14.59% and 22.88% respectively, which can effectively reduce the carbon emissions of system operation and reduce pollution to the environment.
[0191] The results of the day-ahead optimization scheduling are shown in Fig. 9 and 10 .
[0192] The results of intraday optimization scheduling are shown in Fig.11 and 12 .
[0193] The above embodiments are only preferred technical solutions of the present invention and should not be regarded as limiting the present invention. The protection scope of the present invention shall be the technical solutions recorded in the claims, including equivalent replacement solutions of the technical features in the technical solutions recorded in the claims. That is, equivalent replacement improvements within this scope are also within the protection scope of the present invention.
Claims
1. A two-stage low-carbon economic dispatching method for a combined heat and power microgrid based on K-CNN-BiLSTM, characterized by: The steps include: Step 1: Establish a mathematical model of the combined heat and power microgrid; Step 2: Establish a two-stage K-CNN-BiLSTM wind and solar power prediction model; Step 3: Based on the short-term wind and solar power forecast results, establish a day-ahead optimization dispatch model: In the day-ahead dispatch stage, introduce a step-by-step carbon trading mechanism and incentive-based demand response, and establish a day-ahead low-carbon economic dispatch model with the minimum total system operating cost as the objective function; Step 4: Based on the ultra-short-term wind and solar power forecast results, establish an intraday optimization scheduling model: In the intraday scheduling stage, with the goal of tracking the day-ahead scheduling plan, propose an intraday rolling optimization scheduling strategy based on model predictive control; Step 5: Use MATLAB to call the CPLEX solver to optimize and solve the system.
2. A two-stage low-carbon economic dispatching method for a combined heat and power microgrid based on K-CNN-BiLSTM according to claim 1, characterized in that: In step 1, mathematical models of combined heat and power units, electric boilers, gas boilers, batteries and heat storage tanks are established; the details are as follows: (1) Cogeneration unit model Where: P e,MT (t), P h,WHB (t) are the electric and thermal output power of the cogeneration unit; h e is the gas turbine electrical conversion efficiency; h e-h is the electric-to-heat ratio of the CHP unit; h CHP is the heat conversion efficiency of the CHP unit; P MT (t) is the total output power of the micro gas turbine; (2) Electric boiler model P h,EB (t)=h EB P e,EB (t) Where: P h,EB (t), P e,EB (t) are the heat generation and power consumption of the electric boiler at time t; h EB is the thermoelectric conversion efficiency; (3) Gas boiler model P h,GB (t)=h GB P GB (t) Where: P h,GB (t) is the heating power of the gas boiler at time t; h GB is the heating efficiency of the gas boiler; P GB (t) is the power consumption of natural gas; (4) Battery model Where: P bat (t) is the battery storage capacity at time t; S oc (t) is the battery charge state at time t; E bat is the rated capacity of the battery; P e,cha (t), P e,dis (t) are the charging and discharging power of the battery at time t; h e,cha 、h e,dis are the charging and discharging efficiency of the battery respectively; (5) Heat storage tank model Where: P heat (t) is the heat storage tank heat at time t; H oc (t) is the heat storage state of the heat storage tank at time t; E heat is the rated capacity of the heat storage tank; P h,cha (t), P h,dis (t) are the heat storage and release power of the heat storage tank at time t; h h,cha 、h h,dis are the heat storage and release efficiencies of the heat storage tank respectively.
3. A two-stage low-carbon economic dispatching method for a combined heat and power microgrid based on K-CNN-BiLSTM according to claim 1, characterized in that: In step 2, the missing parts of the historical data are first filled using the K-NN algorithm, and then the complete data is normalized and divided into a training set and a test set; the details are as follows: (1) K-NN algorithm The calculation formula is: Where: x i is the missing data value; d n is the Euclidean distance between two points; w n is the weighted average; x n is the nth nearest neighbor value; n is the number of nearest neighbors; (2) Data normalization The calculation formula is as follows: Where x is the actual value vector; x max and x min are the maximum and minimum values of x respectively; x' is a normalized vector.
4. A two-stage low-carbon economic dispatching method for a combined heat and power microgrid based on K-CNN-BiLSTM according to claim 1, characterized in that: In step 2, based on the complete data filled by the K-NN algorithm, a CNN model is established, and the convolution layer and maximum pooling layer in the CNN model are used to extract and reduce the data features in the training set; the details are as follows: CNN Model In the formula, C and P are the output states of the convolutional layer and the pooling layer respectively; H is the output feature vector of the CNN structure; w c and w s are the weight matrices of the convolutional layer and the fully connected layer respectively; b c 、b p and b s They are the bias vectors of the convolutional layer, pooling layer, and fully connected layer respectively; is the convolution operation; f(·) is the activation function of the convolution layer, which takes the Relu function; δ(·) is the pooling method, which takes the maximum pooling; For the fully connected layer activation function, select the Sigmoid function.
5. A two-stage low-carbon economic dispatching method for a combined heat and power microgrid based on K-CNN-BiLSTM according to claim 1, characterized in that: In step 2, the important feature data extracted by CNN is input into the BiLSTM network for bidirectional time series feature extraction. In order to improve the generalization ability of the model and reduce the risk of overfitting, a dropout layer is connected before and after the BiLSTM layer, and the dropout value is 0.
2. Finally, the data processed by the Dropout layer is passed to the fully connected (Dense) layer to complete the model training and use the test set to verify the model. The details are as follows: BiLSTM Model Where: Perform LSTM operations forward and backward respectively; are the bidirectional connection weight matrices respectively; are the forward and backward power prediction values respectively; h t+1 、h t-1 are the power prediction values at the previous moment and the next moment respectively; x t is the input feature vector; b t is the bias for the output layer.
6. A two-stage low-carbon economic dispatching method for a combined heat and power microgrid based on K-CNN-BiLSTM according to claim 1, characterized in that: In step 3, the day-ahead scheduling plan cycle is set to 24 hours, the time scale is set to 1 hour, and the scheduling plan for the next day's 24 hours is calculated one day in advance. Based on the short-term wind and solar power forecast results, the day-ahead optimization scheduling objective function is established with the goal of minimizing the total system operating cost; the details are as follows: The day-ahead objective function is: In the formula, C DR,sell Subsidize the cost of demand response; C co2 is the tiered carbon trading cost; C om is the equipment operation and maintenance cost; C gird The cost of purchasing and selling electricity; C so is the pollutant emission cost; C gas The cost of purchasing gas; (1) Tiered carbon trading mechanism The daily carbon emissions trading volume in the carbon market is: AND market =And gain -AND real Where: E gain is the daily carbon emission quota; E real is the actual daily carbon emissions; The formula for calculating the tiered carbon trading cost is: In the formula: λ is the carbon trading base price; d is the carbon trading quota; α is the carbon price growth rate; (2) Incentive Demand Response Subsidy Where: k represents the load type; μ k Subsidize the price for users; ΔP k,load,total (t) represents the total power of the kth type of load participating in demand response at time t.
7. A two-stage low-carbon economic dispatching method for a combined heat and power microgrid based on K-CNN-BiLSTM according to claim 1, characterized in that: In step 4, the intraday rolling scheduling plan cycle is set to 4h, the time scale is set to 15min, and 96 rolling optimizations are performed in one day. Based on the ultra-short-term wind and solar power forecast results, the intraday optimization scheduling objective function is established with the goal of minimizing the deviation between the output vector of the intraday plan and the day-ahead optimization scheduling plan; the details are as follows: (1) Intraday objective function minf2=||Y-Y ref || Q 2 +||U|| R 2 Where: Y and Y ref are the output vector and the reference vector, Y ref is the output value of each device in the day-ahead scheduling plan; Q is the error coefficient matrix; R is the control coefficient matrix; m is the number of control time domain periods; U is the control vector. (2) Feedback correction link P(t+Dt)=P real (t+Dt) Where: P(t+Dt) is the initial power of the group during optimization; P real (t+Dt) is the actual power of the unit.
Citation Information
Cited By
New energy combination prediction and optimization method in novel power system based on multiple neural networks
CN119514596A
A new energy combination prediction and optimization method in a new power system based on a multi-neural network
CN119514596B
