A microgrid equivalent modeling method based on optimal power flow
Through the microgrid equivalent modeling method based on optimal power flow, the problem of internal uncertainty and decentralized wind and solar energy access in the microgrid is solved, and the equivalence and optimal dispatch of the microgrid are realized, which is suitable for multi-microgrid collaboration. operation and distribution network dispatching, improving the solving efficiency and prediction accuracy of the power flow optimization model.
Patent Information
- Application Number
- CN202111132232.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-27
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-09-27
AI Technical Summary
Uncertain loads within the microgrid and access to dispersed wind and solar and other clean energy sources make it difficult to establish an effective equivalent model of tie lines, which affects the distribution network's day-ahead scheduling of microgrids and the coordinated operation of multiple microgrids.
The microgrid equivalent modeling method based on optimal power flow is used to predict the historical parameters of load and power supply, establish an uncertain probability distribution model, use the Monte Carlo method to generate a variety of operating scenarios, optimize the power flow model to solve the power flow fluctuation curve, and Equivalent models are formed through data fitting and translation, which are used for power and frequency scheduling of microgrids.
It realizes the equivalence of microgrids, facilitates day-ahead power allocation of distribution networks and coordinated regulation of multiple microgrids, improves the solving efficiency of power flow optimization models in microgrids, ensures the global optimal solution, and improves the accuracy of predictions. and economical.
Smart Images

Figure CN113794201B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of power grid modeling, and in particular relates to a microgrid equivalent modeling method based on optimal power flow. Background Art
[0002] In order to achieve carbon peak and carbon neutrality, more and more distributed energy sources (DGs) will be connected to the grid in the future. However, the output of wind power and photovoltaics is highly random, and the installation locations are also dispersed, making it difficult to centrally consume clean energy such as wind and solar power. In view of this, microgrids came into being.
[0003] like Figure 1 As shown in the figure, the microgrid is usually composed of wind turbines, photovoltaic generators, loads, distributed energy storage and controllable units. It is a system that connects the source, load, storage and control unit together. Although it has the advantages of high reliability, high wind and solar power consumption rate and easy connection, the individual capacity of the microgrid is limited, and the distribution network is often required to provide power and frequency support for the microgrid. Since the microgrid has both uncertain loads and dispatching resources such as energy storage and controllable units, how to establish the equivalent model of the microgrid's interconnection line is of great significance for the day-ahead dispatch of the distribution network and the coordinated operation of multiple microgrids, and it is also a difficult problem that needs to be solved at present. Summary of the invention
[0004] The purpose of the present invention is to overcome the above-mentioned problems existing in the prior art and to provide a microgrid equivalent modeling method based on power spectrum density and optimal power flow, which is suitable for coordinated regulation among multiple microgrids and scheduling between microgrids and distribution networks.
[0005] To achieve the above objectives, the present invention provides the following technical solutions:
[0006] A microgrid equivalent modeling method based on optimal power flow includes the following steps in sequence:
[0007] Step A: forecast the load, wind power and photovoltaic output for the next day based on the historical operating parameters of the load and power supply in the microgrid;
[0008] Step B: firstly establish an uncertain probability distribution model on the source side based on the errors of load, wind power and photovoltaic prediction, and then use the Monte Carlo method to perform multiple sampling on the uncertain probability distribution model to generate multiple operation scenarios in the microgrid;
[0009] Step C, using the established microgrid internal power flow optimization model to optimize and solve the generated multiple operation scenarios respectively, and obtain the power flow fluctuation curve on the microgrid interconnection line under each operation scenario;
[0010] Step D: First, perform data fitting on the power flow fluctuation curve on the microgrid interconnection line under each operation scenario to obtain an interconnection line power fluctuation curve, and then translate the fluctuation curve up and down so that the operation area formed by the translation covers more than 99% of the operation points. The fluctuation curve and the upper and lower boundaries of the operation area are the equivalent model of the microgrid.
[0011] In step B, the uncertainty probability distribution model of the source side is:
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018] In the above formula, , , They respectively indicate that the prediction errors of load, wind power and photovoltaic output follow normal distribution, , , are the standard deviations of the prediction errors of load, wind power, and photovoltaic output, respectively. for t The load output forecast value at the time, is the error ratio of load output prediction, is the error coefficient of wind power output prediction, , are the error proportions of wind power and photovoltaic output prediction, , They are t The wind power and photovoltaic output forecast values at the moment, The installed capacity of wind power.
[0019] In step C, the microgrid internal power flow optimization model takes the lowest operating cost of the microgrid as the objective function:
[0020]
[0021]
[0022]
[0023]
[0024]
[0025] In the above formula, T is the total number of hours in a day, is the interval between adjacent moments, , They are t The unit price of electricity purchased and sold by the microgrid to the distribution network at any given moment. , They are t The power of the microgrid purchasing and selling electricity to the distribution network at any time, and , , are the number of controllable units and energy storage batteries in the microgrid, , They are t Moment i Controllable units, i The output power of each energy storage battery, for t Moment i Unit fuel cost per controllable unit, , Respectively i The equivalent maintenance and environmental costs of each controllable unit, , Respectively i The maintenance and depreciation costs of each energy storage battery, is the number of segmented lines after the segmented linearization of the unit fuel cost quadratic curve of each controllable unit, for t Moment i The output power of the controllable unit is k The value on the segment line, For the i Controllable unit k The slope of the segmented line, For the i The minimum unit fuel cost on the first segment line of a controllable unit, for t Moment i The output power of the controllable unit is k The 0-1 state variable of the segment line, if t Moment i The output power value of the controllable unit is located at k segmented line area, then =1, if not, then =0, For the i Controllable unitk The minimum output power on the segment line, For the i The minimum output power of the first segment line of a controllable unit.
[0026] The constraints of the power flow optimization model in the microgrid include:
[0027] Microgrid power flow balance constraints:
[0028]
[0029] In the above formula, , , They are t Active power of wind power, photovoltaic power and load at all times;
[0030] Distributed power generation output constraints:
[0031]
[0032]
[0033] In the above formula, , They are t The wind power and photovoltaic output forecast values at the moment;
[0034] Energy storage battery constraints:
[0035]
[0036]
[0037]
[0038] In the above formula, , They are t Moment i The discharge and charging power of each energy storage battery, , Respectively i The upper limit of the discharge and charging power of each energy storage battery, for t Moment i The sum of the discharge and charging power of each energy storage battery, , They are t Moment i The storage energy and charge of each energy storage battery, For the i The storage capacity rating of each energy storage battery, , Respectively i The lower and upper limits of the charge during the charging and discharging process of each energy storage battery. , Respectively i The charge of each energy storage battery at the previous moment and the last moment of the day, T is the total number of hours in a day, , are the discharge and charging efficiencies of the energy storage battery, , They are t Moment i A 0-1 state variable for discharging and charging the energy storage battery, express t Moment i The energy storage battery discharges, express t Moment i Charging of energy storage batteries, The upper limit of the number of charge and discharge state changes;
[0039] Controllable unit output constraints:
[0040]
[0041]
[0042] In the above formula, , Respectively i The lower and upper limits of the output of the controllable units, , Respectively i The maximum downward climbing rate and the maximum upward climbing rate of each controllable unit;
[0043] Tie line power capacity constraints:
[0044]
[0045]
[0046]
[0047] In the above formula, is the maximum active power that the tie line can transmit, for t The power flowing into the microgrid on the interconnection line at any time.
[0048] In step C, the optimization solution refers to the flow optimization model in the microgrid being regulated by energy storage batteries, controllable units and time-of-use electricity prices to obtain the flow fluctuation curve on the microgrid interconnection line. :
[0049]
[0050] In the above formula, It is the power flow optimization model in the microgrid. , , , , , They are energy storage batteries, controllable units, load output, photovoltaic output, wind power output and time-of-use electricity price model.
[0051] The step A uses the ARIMA model to predict the load power, wind power and photovoltaic output of the next day, and includes the following steps in sequence:
[0052] Step A1: First, obtain the historical load output data, wind speed and light intensity data in the microgrid, and then use the ARIMA model to analyze the historical load output data, wind speed and light intensity data in turn. The ADF test is performed on the data after each difference:
[0053]
[0054] In the above formula, for t Historical data at all times, is the difference operator, for d The data after order difference, d is the difference order of the time series;
[0055] Step A2: Stop the difference when the probability of the sequence being a stationary sequence is 99%, thereby determining d value;
[0056] Step A3: Determine the lag order of the time series in the prediction model by using the Akaike Information Criterion AIC and the Bayesian Information Criterion BIC p , the lag order of the forecast model error q ;
[0057] Step A4: Use the determined d , p , q Values to build a prediction model:
[0058]
[0059]
[0060] In the above formula, for t The predicted value of the data at time is the coefficient of the autocorrelation regression equation, for t White noise at the moment, is the coefficient of the moving regression equation;
[0061] Step A5: Check whether the residuals meet the random and normal distribution test. If so, determine the ARIMA model. d , p , q value, and obtain the data prediction value. If not, return to step A3;
[0062] Step A6: Convert the predicted values of wind speed and light intensity into wind power and photovoltaic output using the following formula:
[0063]
[0064]
[0065] In the above formula, , They are t The predicted output values of wind power and photovoltaic power at the moment, , are the installed capacity of wind power and photovoltaic power respectively. is the ambient wind speed, , , are the cut-in wind speed, rated wind speed and cut-out wind speed of wind power respectively. , are the light intensity and the maximum light intensity under natural conditions, respectively.
[0066] In step D, time is used as the input layer, the mean value of the power flow fluctuation curve on the microgrid interconnection line under each operation scenario is used as the output layer, and the RBF neural network is used for fitting, wherein:
[0067] The output layer data of the RBF neural network fitting is:
[0068]
[0069]
[0070] In the above formula, y is the output data of the fitting, is the weight from the hidden layer to the output layer, h is the number of nodes in the hidden layer, is the variance, is the center of the Gaussian function, x is the input layer data, i.e. time, is the Euclidean norm, P is the total number of samples in the input layer, d is the expected output of the sample.
[0071] Compared with the prior art, the present invention has the following beneficial effects:
[0072] 1. A microgrid equivalent modeling method based on optimal power flow of the present invention first predicts the load, wind power and photovoltaic output of the next day according to the historical operating parameters of the load and power supply in the microgrid, and then establishes an uncertain probability distribution model on the source side based on the prediction error, and uses the Monte Carlo method to perform multiple sampling on the uncertain probability distribution model to generate a variety of operating scenarios in the microgrid, and then uses the established power flow optimization model in the microgrid to optimize and solve the generated multiple operating scenarios respectively, and obtain the power flow fluctuation curve on the microgrid interconnection line under each operating scenario, and then each power flow fluctuation curve is data fitted to obtain a interconnection line fluctuation curve, and finally the fluctuation curve is translated up and down so that the operating area formed by the translation covers more than 99% of the operating points, and the upper and lower boundaries of the fluctuation curve and the operating area are the equivalent model of the microgrid. This method equates the microgrid to a load interval, which is convenient for the day-ahead power allocation and scheduling of the upper distribution network, so that it is suitable for coordinated regulation between multiple microgrids, scheduling between microgrids and distribution networks, and day-ahead-intraday economic optimization of microgrids.
[0073] 2. The present invention provides a microgrid equivalent modeling method based on optimal power flow. The second-order calculation model of the unit fuel cost of the controllable unit is converted into a linear model by using a piecewise linearization method, and a 0-1 state variable is introduced to convert the mathematical model of the energy storage battery into a linear model, so that the power flow optimization model in the microgrid belongs to a mixed integer linear programming model, which can be solved using the solver provided by Matlab. This design can not only effectively improve the efficiency of solving the power flow optimization model in the microgrid, but also ensure the global optimal solution.
[0074] 3. The present invention provides a microgrid equivalent modeling method based on optimal power flow, which uses the ARIMA model to predict the load power, wind power and photovoltaic output of the next day. The model takes into account the autocorrelation of data at different times in the time series and the error of prediction at different times. Compared with conventional prediction models such as moving average method, gray prediction model, neural network prediction model and chaotic time series model, it has the advantages of simple model, less original data required and small prediction error. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] Figure 1 This is a schematic diagram of the microgrid structure.
[0076] Figure 2 It is a flow chart of the present invention.
[0077] Figure 3 Flowchart for ARIMA forecasting model.
[0078] Figure 4 This is the wind and solar load fluctuations for the next day predicted by the ARIMA model in Example 1.
[0079] Figure 5 It is a schematic diagram of the piecewise linearization of the second-order mathematical model of controllable unit cost.
[0080] Figure 6 Schematic diagram of the microgrid equivalent model.
[0081] Figure 7 Schematic diagram of RBF neural network structure.
[0082] Figure 8 This is the microgrid equivalent model fitted in Example 1. DETAILED DESCRIPTION
[0083] The present invention will be further described below in conjunction with the accompanying drawings and specific implementation methods.
[0084] The present invention , , The value can be determined based on references in the literature or based on the average error of the ARIMA model predicted data.
[0085]
[0086] In the above model, the photovoltaic output model , Wind power output model , load output model The time-of-use electricity price model is obtained by the above-mentioned forecast data + forecast error Given by the upper power grid, the energy storage battery model , controllable unit model That is the constraint model of energy storage battery and controllable unit.
[0087] because It cannot be directly described by mathematical formulas. It will be affected by energy storage, time-of-use electricity prices, etc., as well as the objective function. The present invention uses Monte Carlo to sample the uncertain probability distribution model of wind and solar loads to generate scenarios, and then obtains the optimized interconnection line power flow fluctuation curve by solving the power flow optimization model in the microgrid.
[0088] The present invention adopts RBF neural network to simulate the power flow fluctuation curve on the microgrid interconnection line under various operation scenarios, and has a better fitting effect.
[0089] Embodiment 1:
[0090] See also Figure 2 , a microgrid equivalent modeling method based on optimal power flow. Figure 1 Take the microgrid shown in the figure (containing 100% renewable energy distributed generation, the rated capacities of wind and solar loads are 450kW, 650kW and 750kW respectively, the rated capacity of the controllable unit is 250kW, the rated capacity and rated power of energy storage are 300kWh and 100kW) as the object, and follow the steps below in sequence:
[0091] 1. See Figure 3 First, obtain the historical load output data, wind speed and light intensity data in the microgrid, and then use the ARIMA model to analyze the historical load output data, wind speed and light intensity data in turn. The ADF test is performed on the data after each difference to determine whether the sequence is stable:
[0092]
[0093] In the above formula, for t Historical data at all times, is the difference operator, for d The data after order difference, d is the difference order of the time series;
[0094] 2. Stop the difference when the probability of the sequence being a stationary sequence is 99%, thus determining d value;
[0095] 3. Determine the lag order of the time series in the prediction model through the Akaike Information Criterion AIC and the Bayesian Information Criterion BIC p , the lag order of the forecast model error q :
[0096]
[0097]
[0098] In the above formula, k is the number of model parameters, L is the likelihood function, n is the sample size, RSS is the residual sum of squares;
[0099] 4. Use certain d ,p , q Values to build a prediction model:
[0100]
[0101]
[0102] In the above formula, for t The predicted value of the data at time is the coefficient of the autocorrelation regression equation, for t White noise at the moment, is the coefficient of the moving regression equation;
[0103] 5. Check whether the residuals meet the random and normal distribution test. If so, determine the ARIMA model. d , p , q value, and obtain the data prediction value. If not, return to step 3;
[0104] 6. Convert the predicted values of wind speed and light intensity into wind power and photovoltaic output using the following formula:
[0105]
[0106]
[0107] In the above formula, , They are t The predicted output values of wind power and photovoltaic power at the moment, , are the installed capacity of wind power and photovoltaic power respectively. is the ambient wind speed, , , are the cut-in wind speed, rated wind speed and cut-out wind speed of wind power respectively. , are light intensity and maximum light intensity under natural conditions, respectively;
[0108] The wind and solar load fluctuations predicted in this embodiment for the next day are as follows: Figure 4 As shown;
[0109] 7. Establish uncertain probability distribution models for load, wind power and photovoltaic power:
[0110]
[0111]
[0112]
[0113]
[0114]
[0115]
[0116] In the above formula, , , They respectively indicate that the prediction errors of load, wind power and photovoltaic output follow normal distribution, , , are the standard deviations of the prediction errors of load, wind power, and photovoltaic output, respectively. for t The load output forecast value at the time, is the error ratio of load output prediction, is the error coefficient of wind power output prediction, , are the error proportions of wind power and photovoltaic output prediction, , They are t The wind power and photovoltaic output forecast values at the moment, is the installed capacity of wind power;
[0117] In this embodiment, the prediction error ratios of wind and solar loads are 8%, 6%, and 5% respectively;
[0118] 8. Use the Monte Carlo method to sample the uncertain probability distribution model 1000 times to generate multiple operating scenarios within the microgrid;
[0119] 9. Construct a microgrid internal power flow optimization model with the lowest operating cost of the microgrid as the objective function, with microgrid power flow balance constraints, distributed power output constraints, energy storage battery constraints, controllable unit output constraints and tie line power capacity constraints:
[0120]
[0121]
[0122]
[0123]
[0124]
[0125]
[0126]
[0127]
[0128]
[0129]
[0130]
[0131]
[0132]
[0133]
[0134]
[0135]
[0136] In the above formula, T is the total number of hours in a day, is the interval between adjacent moments, , They are t The unit price of electricity purchased and sold by the microgrid to the distribution network at any given moment. , They are t The power of the microgrid purchasing and selling electricity to the distribution network at any time, and , , are the number of controllable units and energy storage batteries in the microgrid, , They are t Moment i Controllable units, i The output power of each energy storage battery, for t Moment i Unit fuel cost per controllable unit, , Respectively i The equivalent maintenance and environmental costs of each controllable unit, , Respectively i The maintenance and depreciation costs of each energy storage battery, The number of segmented lines after the segmented linearization of the unit fuel cost quadratic curve of each controllable unit (see Figure 5 ), for t Moment iThe output power of the controllable unit is k The value on the segment line, For the i Controllable unit k The slope of the segmented line, For the i The minimum unit fuel cost on the first segment line of a controllable unit, for t Moment i The output power of the controllable unit is k The 0-1 state variable of the segment line, if t Moment i The output power value of the controllable unit is located at k segmented line area, then =1, if not, then =0, For the i Controllable unit k The minimum output power on the segment line, For the i The minimum output power of the first segment line of a controllable unit, , , They are t Active power of wind power, photovoltaic power and load at all times, , They are t The wind power and photovoltaic output forecast values at the moment, , They are t Moment i The discharge and charging power of each energy storage battery, , Respectively i The upper limit of the discharge and charging power of each energy storage battery, for t Moment i The sum of the discharge and charging power of each energy storage battery, , They are t Moment i The storage energy and charge of each energy storage battery, For the i The storage capacity rating of each energy storage battery, , Respectively i The lower and upper limits of the charge during the charging and discharging process of each energy storage battery. is the interval between adjacent moments, , Respectivelyi The charge of each energy storage battery at the previous moment and the last moment of the day, , are the discharge and charging efficiencies of the energy storage battery, , They are t Moment i The discharge and charge 0-1 state variables of the energy storage battery, express t Moment i The energy storage battery discharges, express t Moment i Charging of energy storage batteries, is the upper limit of the number of charge and discharge state changes, , Respectively i The lower and upper limits of the output of the controllable units, , Respectively i The maximum downward climbing rate and the maximum upward climbing rate of each controllable unit, is the maximum active power that the tie line can transmit, for t The power flowing into the microgrid on the interconnection line at any time;
[0137] 10. See Figure 6 Based on the established microgrid internal power flow optimization model, the generated multiple operation scenarios are regulated and optimized through energy storage, controllable units and time-of-use electricity prices, and the power fluctuation curves on the microgrid interconnection lines under each operation scenario are obtained. :
[0138]
[0139] In the above formula, It is the power flow optimization model in the microgrid. , , , , , They are energy storage battery, electricity price, controllable unit, photovoltaic output, wind power output and load output model;
[0140] 11. See Figure 7 , taking time as the input layer and the mean value of the power fluctuation curve on the microgrid interconnection line under each operation scenario as the output layer, the RBF neural network is used for fitting to obtain a interconnection line power fluctuation curve, where,
[0141] The activation function of the hidden layer is:
[0142]
[0143] The output layer data of the RBF neural network fitting is:
[0144]
[0145] The variance of the Gaussian radial basis function is:
[0146]
[0147] In the above formula, y is the output data of the fitting, is the weight from the hidden layer to the output layer, h is the number of nodes in the hidden layer, is the variance, is the center of the Gaussian function, x is the input layer data, i.e. time, is the Euclidean norm, P is the total number of samples in the input layer, d is the expected output of the sample;
[0148] 12. Shift the obtained fluctuation curve up and down so that the operation area formed by the translation covers more than 99% of the operation points. The fluctuation curve and the upper and lower boundaries of the operation area are the equivalent model of the microgrid. The results are shown in Figure 8 .
Claims
1. A microgrid equivalent modeling method based on optimal power flow, characterized by: The modeling method comprises the following steps in sequence: Step A: forecast the load, wind power and photovoltaic output for the next day based on the historical operating parameters of the load and power supply in the microgrid; Step B: firstly establish an uncertain probability distribution model on the source side based on the errors of load, wind power and photovoltaic prediction, and then use the Monte Carlo method to perform multiple sampling on the uncertain probability distribution model to generate multiple operation scenarios in the microgrid; Step C: Optimize and solve the generated multiple operation scenarios respectively by using the established microgrid internal power flow optimization model to obtain the power flow fluctuation curve on the microgrid interconnection line under each operation scenario, wherein the microgrid internal power flow optimization model takes the lowest operation cost of the microgrid as the objective function: In the above formula, c t,buy 、c t,sell are the unit prices of electricity purchased and sold by the microgrid to the distribution network at time t, P t,buy , P t,sell are the power purchased and sold by the microgrid to the distribution network at time t, and P t,buy ·P t,sell =0,N M 、N DS are the number of controllable units and energy storage batteries in the microgrid, are the output power of the ith controllable unit and the ith energy storage battery at time t, c fuel,t,i is the unit fuel cost of the ith controllable unit at time t, c M,i 、c E,i are the equivalent maintenance and environmental costs of the ith controllable unit, c DS,i 、c d,i are the maintenance and depreciation costs of the i-th energy storage battery, L M is the number of segmented lines after the segmented linearization of the unit fuel cost quadratic curve of each controllable unit, is the value of the output power of the i-th controllable unit on the k-th segment line at time t, is the slope of the kth segment line of the ith controllable unit, is the minimum unit fuel cost on the first segment line of the i-th controllable unit, is the 0-1 state variable of the output power of the i-th controllable unit at the k-th segment line at time t. If the output power value of the i-th controllable unit at time t is located in the k-th segment line area, then If not, then is the minimum output power of the i-th controllable unit on the k-th segment line; The constraints of the power flow optimization model in the microgrid include: Microgrid power flow balance constraints: In the above formula, P t WT , P t PV , are the active powers of wind power, photovoltaic power and load at time t respectively; Distributed power generation output constraints: In the above formula, are the predicted output values of wind power and photovoltaic power at time t respectively; Energy storage battery constraints: In the above formula, are the discharge and charge powers of the i-th energy storage battery at time t, are the upper limits of the discharge and charging power of the i-th energy storage battery, is the sum of the discharge and charging power of the i-th energy storage battery at time t, E t,i , SOC t,i are the stored energy and charge of the i-th energy storage battery at time t, E i,max is the storage capacity rating of the i-th energy storage battery, SOC i,min , SOC i,max are the lower and upper limits of the charge during the charging and discharging process of the i-th energy storage battery, Δt is the interval between adjacent moments, and SOC i,t=0 , SOC t,t=T are the charge of the i-th energy storage battery at the previous moment and the last moment of the day, T is the total number of moments, η d , η c are the discharge and charging efficiencies of the energy storage battery, are the discharge and charge 0-1 state variables of the i-th energy storage battery at time t, represents the discharge of the i-th energy storage battery at time t, Indicates the charging of the i-th energy storage battery at time t, N limit The upper limit of the number of charge and discharge state changes; Controllable unit output constraints: In the above formula, are the lower and upper limits of the output of the ith controllable unit, are the maximum downward climbing rate and the maximum upward climbing rate of the i-th controllable unit respectively; Tie line power capacity constraints: P t,buy -P t,sell =P t Line In the above formula, is the maximum active power that the tie line can transmit, P t Line is the power flowing into the microgrid on the interconnection line at time t; The optimization solution refers to the flow optimization model in the microgrid being regulated by energy storage, controllable units and time-of-use electricity prices to obtain the flow fluctuation curve f(P Line ): f(P Line )=f cor (f(P DESS ),f(P M ),f(P L ),f(P PV ),f(P WT ),f(c t )) In the above formula, f cor () is the power flow optimization model in the microgrid, f(P DESS )、f(P M )、f(P L )、f(P PV )、f(P WT )、f(c t ) are energy storage battery, electricity price, controllable unit, photovoltaic output, wind power output and load output model respectively; Step D: First, the power flow fluctuation curve on the microgrid interconnection line under each operation scenario is fitted to obtain an interconnection line power fluctuation curve, and then the fluctuation curve is translated up and down so that the operation area formed by the translation covers more than 99% of the operation points. The fluctuation curve and the upper and lower boundaries of the operation area are the equivalent model of the microgrid.
2. The microgrid equivalent modeling method based on optimal power flow according to claim 1 is characterized in that: In step B, the uncertain probability distribution model of the source side is: L~N(0,σ L (t, L t )) W~N(0,σ W (t,P WT )) H~N(0,σ H ((t,P PV )) s L (t,L t )=k L L t 0 H (t,P PV )=k H P PV In the above formula, L~N(), W~N(), H~N() respectively indicate that the prediction errors of load, wind power and photovoltaic output follow normal distribution, σ L (t,L t ),σ W (t,P WT ),σ H (t,P PV ) are the standard deviations of the prediction errors of load, wind power and photovoltaic output, respectively. t is the load output forecast value at time t, k L is the error ratio of load output prediction, α is the error coefficient of wind power output prediction, k W , k H are the error proportions of wind power and photovoltaic output prediction, P WT , P PV are the wind power and photovoltaic output forecast values at time t, P WT,N The installed capacity of wind power.
3. A microgrid equivalent modeling method based on optimal power flow according to claim 1 or 2, characterized in that: The step A uses the ARIMA model to predict the load power, wind power and photovoltaic output of the next day, and includes the following steps in sequence: Step A1: First, obtain the historical load output data, wind speed and light intensity data in the microgrid, and then use the ARIMA model to perform 0, 1, 2, ..., d-order differences on the historical load output data, wind speed and light intensity data, and perform ADF test on the data after each difference: In the above formula, X t is the historical data at time t, is the difference operator, is the data after d-order difference, d is the difference order of the time series; Step A2, stop the difference when the probability of the sequence being a stationary sequence is 99%, thereby determining the d value; Step A3, determining the lag order p of the time series in the prediction model and the lag order q of the prediction model error by using the Akaike information criterion AIC and the Bayesian information criterion BIC; Step A4: Construct a prediction model using the determined d, p, and q values: In the above formula, is the data prediction value at time t, φ i is the coefficient of the autocorrelation regression equation, μ t is the white noise at time t, θ i is the coefficient of the moving regression equation; Step A5: Check whether the residual meets the random and normal distribution test. If so, determine the d, p, and q values of the ARIMA model and obtain the data prediction value. If not, return to step A3. Step A6: Convert the predicted values of wind speed and light intensity into wind power and photovoltaic output using the following formula: In the above formula, P WT , P PV are the predicted output values of wind power and photovoltaic power at time t, P WT,N is the installed capacity of wind power, v is the ambient wind speed, v ci 、v n 、v co are the cut-in wind speed, rated wind speed and cut-out wind speed of wind power respectively, I, I max are the light intensity and the maximum light intensity under natural conditions, respectively.
4. The microgrid equivalent modeling method based on optimal power flow according to claim 1 is characterized in that: In step D, time is used as the input layer, the mean value of the power flow fluctuation curve on the microgrid interconnection line under each operation scenario is used as the output layer, and the RBF neural network is used for fitting, wherein: The output layer data of the RBF neural network fitting is: In the above formula, y is the output data of the fitting, w i is the weight from the hidden layer to the output layer, h is the number of nodes in the hidden layer, σ is the variance, C i is the center of the Gaussian function, x is the input layer data, i.e., time, ||·|| is the Euclidean norm, P is the total number of samples in the input layer, and d is the expected output of the sample.
