A two-tier optimization operation method considering the participation of electric vehicles in the park in new urban peak-shaving and valley-filling
By introducing a two-layer optimized operation method involving park electric vehicles into the urban power grid, electric vehicles and charging stations are used to store and release electricity, which solves the problem of wind and light curtailment caused by the intermittency of wind power and photovoltaic power generation, and reduces the risk of urban power grids. Operating costs and grid load fluctuations improve the stability and economy of the grid.
Patent Information
- Application Number
- CN202210191083.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-24
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-02-24
AI Technical Summary
Urban power grids face the problem of abandoning wind power and photovoltaic intermittent energy when consuming wind power and photovoltaic intermittent energy, which increases the difficulty of peak and frequency regulation of the system. It also needs to deal with the randomness of electric vehicle loads, which affects the safe and stable operation of the power grid.
A new urban peak-shaving and valley-filling double-layer optimization operation method involving electric vehicles in the park is proposed. By establishing a double-layer optimization dispatch model, using the CPLEX solver and the chaotic dragonfly algorithm, the peak-shaving and valley-filling goals and economic operation goals are optimized, and electric vehicles are used to optimize the peak-shaving and valley-filling objectives. Cars and charging stations store and release electricity, smoothing fluctuations in wind and photovoltaic power generation.
It effectively reduces the cost of gas-fired power generation, wind curtailment and light curtailment, while reducing power purchase, maintenance and dispatch costs, and improving the operating economy and stability of the power grid.
Smart Images

Figure CN114580278B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of energy system operation optimization, and relates to a double-layer optimization operation method that takes into account the participation of park electric vehicles in new-type urban peak shaving and valley filling. Background Art
[0002] Wind power and photovoltaic power have intermittent and anti-peak characteristics, making them difficult to be fully absorbed. At present, wind and solar power are seriously abandoned. Wind power also indirectly widens the peak-to-valley difference of load, increases the difficulty of system peak and frequency regulation, and poses a threat to the safe and stable operation of urban power grids. As the main consumption terminal of photovoltaic and wind power, towns not only have to bear the uncertainty of intermittent energy output such as wind power and photovoltaic, but also need to take into account the randomness of gradually growing loads such as electric vehicles. Therefore, it is of great significance to study the consumption of photovoltaic and wind power and other renewable energy in existing towns and coordinate to solve the randomness of the growing loads such as electric vehicles in the park, which is of great significance to the sustainable development of new towns in the future. Summary of the invention
[0003] In view of this, the purpose of the present invention is to provide a double-layer optimization operation method that takes into account the participation of park electric vehicles in new urban peak shaving and valley filling.
[0004] In order to achieve the above object, the present invention provides the following technical solutions:
[0005] A double-layer optimization operation method considering the participation of electric vehicles in a park in a new town in peak shaving and valley filling includes the following steps:
[0006] S1: Establish a two-layer optimization dispatch model for new towns under peak shaving and valley filling optimization;
[0007] S2: Initialize parameters and determine the objective function and constraints of the upper-level optimization scheduling model;
[0008] S3: Use CPLEX solver to solve the upper-level optimization scheduling model;
[0009] S4: Output the solution result of the upper-level optimization scheduling model, and determine the peak-shaving and valley-filling target allocation value of the lower-level park according to the feedback result of the lower-level park;
[0010] S4: Determine the objective function and constraints of the lower-level optimization scheduling model;
[0011] S5: Using the Chaos Dragonfly Algorithm to Solve the Lower-Level Optimization Scheduling Model;
[0012] S6: Output the optimal dispatching strategy and feed back the results to the upper town;
[0013] S7: Determine whether the new urban two-layer optimization model under peak shaving and valley filling optimization has reached the termination condition. If so, output the result; otherwise, return to step S1.
[0014] Furthermore, the new urban two-layer optimization scheduling model under the peak shaving and valley filling optimization is divided into two layers, the upper layer is the urban distribution system, and the lower layer is the urban park system; the upper layer is the minimum total cost of the regional power station under the peak shaving and valley filling constraint, and on the premise of meeting the electricity load demand, when wind power and photovoltaic power generation are in excess, the excess electricity is stored through the charging stations of the microgrids in the lower layer; when wind power and photovoltaic power generation are insufficient, the stored electricity is released by the charging stations of the microgrids in the lower layer to achieve the purpose of peak shaving and valley filling; the optimization scheduling target of the lower layer is the economy of electricity use, and the electric vehicles and batteries at the charging stations are used to schedule and optimize them to minimize the total system cost.
[0015] Furthermore, electric vehicle loads are divided into three categories: the first type of load is random charging load, which refers to electric vehicles that cannot participate in power station interaction; the second type of load is transferable charging load, which means that electric vehicles only accept charging time transfer scheduling by operators; the third type of load is dispatchable charging load, which means that electric vehicles accept two-way charging and discharging scheduling by operators.
[0016] Furthermore, the objective function of the upper optimization model includes two parts, the peak shaving and valley filling objective and the economic operation objective; the peak shaving and valley filling objective is characterized by minimizing the sum of squares of net load change rates in all adjacent time periods, and the economic conversion coefficient ω is introduced to project the peak shaving and valley filling objective into the economic dimension; the economic operation objective includes minimizing the gas power generation cost, wind abandonment cost, and solar abandonment cost, and the specific objective function expression is:
[0017]
[0018]
[0019]
[0020]
[0021] Where: F up It belongs to the comprehensive cost of regional power stations; It belongs to the cost of shaving peaks and filling valleys; It belongs to the cost of gas-fired power generation; belongs to the total cost of wind and solar abandonment; T belongs to the time section number; I G is the total number of thermal power plants in the region; I WT The number of wind farm groups; I PV belongs to the number of photovoltaic power plant groups; IMG belongs to the total number of lower-level microgrid charging stations; P net,t The net load of the new regional energy station at time t; a i 、b i 、c i is the fuel cost coefficient of the i-th gas turbine; The wind curtailment rate and solar curtailment rate of the i-th wind farm and photovoltaic power plant at time t respectively; are the active power outputs of the i-th wind farm and photovoltaic power plant at time t respectively; ρ WT , PV The on-grid electricity prices for photovoltaic and wind power respectively;
[0022] The better the peak load shaving and valley filling effect is, the smaller the net load change rate is, that is, (P net,t -P net,t-1 ) 2 The smaller the value, the net load calculation formula is:
[0023]
[0024] Where: I L is the sum of regional power station nodes; I MG is the sum of microgrids; is the active power of node i at time t; is the active power of microgrid i in period t; is the active power generated by thermal power plant i during period t; is the active power generated by wind farm i during period t; is the active power generated by photovoltaic power plant i during period t; P t MG,L is the active power of the microgrid load during period t; is the active power of charging station i in period t; P t MG,GE is the active power of renewable energy generation in the microgrid during period t.
[0025] Furthermore, the constraints of the upper optimization model include:
[0026] Regional power station power balance constraints:
[0027]
[0028] Where: P t L is the regional power station load power; P t up-down is the interaction power between the regional power station and the microgrid charging station; P t lpg It is the interactive power between the regional power station and the main grid;
[0029] The constraints for wind power generation, photovoltaic power generation and gas power generation are:
[0030]
[0031]
[0032]
[0033] Where: are the predicted values of wind power generation and photovoltaic power generation during period t, respectively; They are the upper and lower limits of the output of the gas generator set during period t respectively;
[0034] Peak shaving and valley filling constraints
[0035]
[0036] Where: They are the real-time peak-shaving and valley-filling target values of the upper regional power station and the lower microgrid during period t; are the total load forecast values of the upper regional power station and the lower microgrid during period t, respectively; are the predicted power generation values of wind farm and photovoltaic power plant in period t respectively; is the peak shaving and valley filling target value of microgrid i in period t; γ is the peak shaving and valley filling coefficient.
[0037] Furthermore, the lower objective function is based on the operating cost, including the cost of purchasing electricity from regional power stations, maintenance costs, dispatching costs, and peak-shaving and valley-filling transaction costs:
[0038]
[0039] Where: F down is the total operating cost; Q i is the actual electric energy in period t; e t is the real-time electricity price during period t; For maintenance costs; is the scheduling cost; To smooth out the peaks and fill the valleys in transaction costs;
[0040]
[0041]
[0042]
[0043] Where: c B 、c EV are the energy storage cost parameters and the electric vehicle dispatch cost, respectively; are the energy storage discharge and charging power respectively; are the dispatchable electric vehicle discharging and charging powers, respectively; To smooth out the peaks and fill the valleys in the transaction price; It is the target value for real-time peak shaving and valley filling; It is the actual value of real-time peak shaving and valley filling; It is the real-time transaction volume for peak shaving and valley filling. If it is greater than 0, it means that the real-time peak shaving and valley filling volume of the park is less than the allocated value; if it is less than 0, it means that the real-time peak shaving and valley filling volume of the park is greater than the allocated value.
[0044] Furthermore, the constraints of the lower-level optimization model include:
[0045] Dispatchable charging electric vehicle constraints:
[0046]
[0047] Where: t start ,t end ,t on ,t off They are the time when the electric vehicle is connected to the grid, the time when it is off the grid, the time when the dispatch starts, and the time when the dispatch ends; is the electric energy value of the electric vehicle during period t; They are the upper and lower limits of electric energy for electric vehicles; They are the upper and lower limits of electric vehicle discharge respectively;
[0048] Transferable charging electric vehicle constraints:
[0049]
[0050] Where: t start ,t end ,t up ,t low ,t lim They are the electric vehicle grid connection time, grid-off time, actual charging start time, actual charging end time, and limit charging start time;
[0051] Energy storage battery constraints
[0052]
[0053] Where: is the energy value of the energy storage battery during period t; They are the upper and lower limits of the energy storage battery power respectively; They are the upper and lower discharge limits of the energy storage battery respectively.
[0054] Furthermore, the chaotic dragonfly algorithm specifically includes:
[0055] Dragonfly populations follow three basic principles in their behavior: separation S i , Align A i and cohesion C i , instinctively approaching food sources F i and stay away from natural enemies E iThe update of the position of the dragonfly individual is related to these five behaviors, and the position and position update step length of the next generation of dragonflies are calculated as follows:
[0056] ΔX t+1 =(sS i +aA i +cC i +fF i +eE i )+wΔX i (18)
[0057] X t+1 =X t +ΔX i+1 (19)
[0058] Where: t represents the current iteration number; i represents the i-th dragonfly individual; X t Indicates the individual position of the current t generation population; ΔX t+1 represents the next generation population position update step length; X t+1 represents the individual position of the next generation population; s represents the separation weight; a represents the alignment weight; c represents the cohesion weight; f represents the food factor; e represents the natural enemy factor; w represents the adaptive inertia weight coefficient value;
[0059] The adaptive inertia weight method is introduced to update the weight coefficient, and the expression of the adaptive inertia weight coefficient is as follows:
[0060]
[0061] In the formula, w max 、w min are the maximum and minimum values of w respectively, J is the current fitness function value of the dragonfly individual; J avg and J min They are the average fitness function value and the minimum fitness function value of all current dragonfly individuals;
[0062] Chaotic local search is used to perform chaotic perturbations on the elite population in each iteration, guiding the algorithm to jump out of the local optimum, retaining the best molecular individuals in the population as the elite population JS in each iteration, and selecting Logistic mapping as the chaotic mapping to perform chaotic local search on the elite population in each iteration of the algorithm. The chaotic mapping sequence is shown in formula (21), and the generated chaotic sequence is returned to the new elite population through formula (22):
[0063] z j,k+1 =μz j,k (1-z j,k ),k=0,1,2...,0≤z j,0 ≤1 (21)
[0064]
[0065] Where: z j,k is the expanded chaotic variable sequence, k is determined by the number of elite populations; μ is the control variable; is the molecular individual in the current elite population; then the fitness value of the elite population after the chaotic sequence is calculated, and the elite retention operation is performed to save the optimal individual of the population.
[0066] Further, step S5 specifically includes the following steps:
[0067] S51: Initialize parameters, input algorithm and model parameters;
[0068] S52: Calculate the fitness value of the individual and determine the optimal individual X Beset Save it;
[0069] S53: Execute chaotic search, update the position of the dragonfly individual, and update the adaptive inertia weight at the same time;
[0070] S54: Calculate the fitness value and select the elite population to be retained;
[0071] S55: Determine whether the termination condition is met, if so, execute the next step; otherwise, return to step S52 to continue iteration;
[0072] S56: Output the optimal scheduling strategy.
[0073] The beneficial effects of the present invention are as follows: the double-layer optimization operation method proposed by the present invention which takes into account the participation of electric vehicles in parks in new-type urban peak-shaving and valley-filling not only takes into account the cost of gas-fired power generation, wind abandonment cost and solar abandonment cost in new-type towns, but also takes into account the power purchase cost, maintenance cost, dispatching cost and peak-shaving and valley-filling transaction cost of urban parks.
[0074] Other advantages, objectives and features of the present invention will be described in the following description to some extent, and to some extent, will be obvious to those skilled in the art based on the following examination and study, or can be taught from the practice of the present invention. The objectives and other advantages of the present invention can be realized and obtained through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be described in detail below in conjunction with the accompanying drawings, wherein:
[0076] Figure 1 This is the structural diagram of the integrated energy system;
[0077] Figure 2 This is a schematic diagram of the transferable load of electric vehicles;
[0078] Figure 3 This is a schematic diagram of dispatchable loads for electric vehicles;
[0079] Figure 4 This is a schematic diagram of peak shaving and valley filling;
[0080] Figure 5 Solve the flow chart for the two-level optimal scheduling. DETAILED DESCRIPTION
[0081] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the illustrations provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner, and the following embodiments and features in the embodiments can be combined with each other without conflict.
[0082] Among them, the drawings are only used for illustrative explanations, and they only represent schematic diagrams rather than actual pictures, and should not be understood as limitations on the present invention. In order to better illustrate the embodiments of the present invention, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of actual products. For those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted.
[0083] The same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar parts; in the description of the present invention, it should be understood that if the terms "upper", "lower", "left", "right", "front", "rear", etc. indicate the orientation or position relationship, they are based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation. Therefore, the terms describing the position relationship in the drawings are only used for illustrative purposes and cannot be understood as limiting the present invention. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0084] In view of the problems existing in the prior art, the present invention proposes a two-tier optimization operation method that considers the participation of electric vehicles in the park in the new town in peak-shaving and valley-filling. The method not only considers the cost of gas-fired power generation, wind abandonment cost and solar abandonment cost in the new town, but also takes into account the purchase cost, maintenance cost, dispatching cost and peak-shaving and valley-filling transaction cost of the town park.
[0085] The new town two-layer optimization model is shown in the attached Figure 1As shown in the figure, the overall structure is divided into two layers, the upper layer is the urban power distribution system, and the lower layer is the urban park system. The upper layer is to minimize the total cost of the regional power station under the constraint of peak shaving and valley filling. Under the premise of meeting the power load demand, when wind power and photovoltaic power generation are in excess, the excess power is stored through the charging stations of each microgrid in the lower layer. When wind power and photovoltaic power generation are insufficient, the charging stations of each microgrid in the lower layer release the stored power to achieve the purpose of peak shaving and valley filling. The optimization scheduling target of the lower layer is the economic efficiency of electricity consumption. The electric vehicles and batteries of the charging stations are used to optimize the scheduling to minimize the total cost of the system.
[0086] like Figure 2-Figure 3 As shown, the integrated energy system divides electric vehicles into three categories: the first category is random charging load, which has very high requirements on charging speed and charging time and cannot participate in power station interaction, such as taxis, electric buses, logistics vehicles and some private cars; the second category is transferable charging load, which means that electric vehicles only accept charging time transfer scheduling by operators; the third category of load is dispatchable charging load, which means that electric vehicles accept two-way charging and discharging scheduling by operators.
[0087] The present invention regards the dispatchable electric vehicle charging power, wind farm output, photovoltaic power plant output and gas power plant output as electric load, defines the difference between electric load, dispatchable electric vehicle charging power and wind farm output, photovoltaic power plant output and gas power plant output as net load, and conducts coordinated peak-shaving and valley-filling research on net load. The lower-level microgrid stores the remaining wind power and photovoltaic power generation to achieve the purpose of smoothing the net load curve. The principle diagram of the peak-shaving and valley-filling model is shown in the figure. Figure 4 shown.
[0088] Since wind power generation and photovoltaic power generation have volatility and anti-peak characteristics, when the electricity load is low, wind power generation and photovoltaic power generation are at peak times, and a large amount of wind power is difficult to absorb. The remaining wind power generation and photovoltaic power generation are stored by dispatchable charging vehicles, which improves the absorption capacity of regional power stations for green electricity, effectively increases the net load, and plays a role of "filling the valley"; when the electricity load is peak, the net load is reduced by releasing the electricity stored in the dispatchable charging vehicles, which plays a role of "peak shaving". In this way, through the charging and discharging of electric vehicles, the time and space shift of wind power generation and photovoltaic power generation is realized, and the net load curve is effectively smoothed.
[0089] The objective function of the upper optimization model consists of two parts: the peak shaving and valley filling objective and the economic operation objective. The peak shaving and valley filling objective is characterized by minimizing the sum of squares of the net load change rates in all adjacent time periods, and the economic conversion coefficient ω is introduced to project the peak shaving and valley filling objective into the economic dimension. The economic operation objective includes minimizing the gas-fired power generation cost, wind abandonment cost, and solar abandonment cost. The specific objective function expression is:
[0090]
[0091]
[0092]
[0093]
[0094] Where: F up It belongs to the comprehensive cost of regional power stations; It belongs to the cost of shaving peaks and filling valleys; It belongs to the cost of gas-fired power generation; belongs to the total cost of wind and solar abandonment; T belongs to the time section number; I G is the total number of thermal power plants in the region; I WT The number of wind farm groups; I PV belongs to the number of photovoltaic power plant groups; IMG belongs to the total number of lower-level microgrid charging stations; P net,t The net load of the new regional energy station at time t; a i 、b i 、c i is the fuel cost coefficient of the i-th gas turbine; The wind curtailment rate and solar curtailment rate of the i-th wind farm and photovoltaic power plant at time t respectively; are the active power outputs of the i-th wind farm and photovoltaic power plant at time t respectively; ρ WT , PV The on-grid electricity prices for photovoltaic and wind power respectively.
[0095] The better the peak load shaving and valley filling effect is, the smaller the net load change rate is, that is, (P net,t -P net,t-1 ) 2 The smaller the value, the net load calculation formula is:
[0096]
[0097] Where: I L is the sum of regional power station nodes; I MG is the sum of microgrids; is the active power of node i at time t; is the active power of microgrid i in period t; is the active power generated by thermal power plant i during period t; is the active power generated by wind farm i during period t; is the active power generated by photovoltaic power plant i during period t; P t MG,L is the active power of the microgrid load during period t; is the active power of charging station i in period t; P t MG,GE is the active power of renewable energy generation in the microgrid during period t.
[0098] The upper-level constraints include:
[0099] (1) Regional power station power balance constraints
[0100]
[0101] Where: P t L is the regional power station load power; P t up-down is the interaction power between the regional power station and the microgrid charging station; P t lpg It is the interaction power between the regional power station and the main grid.
[0102] (2) Power generation constraints
[0103] The constraints for wind power generation, photovoltaic power generation and gas power generation are:
[0104]
[0105]
[0106]
[0107] Where: are the predicted values of wind power generation and photovoltaic power generation during period t, respectively; They are the upper and lower limits of the output of the gas generator set during period t.
[0108] (3) Peak shaving and valley filling constraints
[0109]
[0110] Where: They are the real-time peak-shaving and valley-filling target values of the upper regional power station and the lower microgrid during period t; are the total load forecast values of the upper regional power station and the lower microgrid during period t, respectively; are the predicted power generation values of wind farm and photovoltaic power plant in period t respectively; is the peak shaving and valley filling target value of microgrid i in period t; γ is the peak shaving and valley filling coefficient.
[0111] The lower layer targets operating costs and includes three aspects, namely, the cost of purchasing electricity from regional power stations, maintenance costs, dispatching costs, and peak-shaving and valley-filling transaction costs.
[0112]
[0113] Where: F down is the total operating cost; Q iis the actual electric energy in period t; e t is the real-time electricity price during period t; For maintenance costs; is the scheduling cost; To smooth out transaction costs.
[0114]
[0115]
[0116]
[0117] Where: c B 、c EV are the energy storage cost parameters and the electric vehicle dispatch cost, respectively; are the energy storage discharge and charging power respectively; are the dispatchable electric vehicle discharging and charging powers, respectively; To smooth out the peaks and fill the valleys in the transaction price; It is the target value for real-time peak shaving and valley filling; It is the actual value of real-time peak shaving and valley filling; It is the real-time transaction volume of peak shaving and valley filling. If it is greater than 0, it means that the real-time peak shaving and valley filling volume of the park is less than the allocated value, and the peak shaving and valley filling indicator must be purchased through green certificate trading; if it is less than 0, it means that the real-time peak shaving and valley filling volume of the park is greater than the allocated value, and it can be sold through the Green Certificate Trading Center.
[0118] The lower level constraints include:
[0119] (1) Dispatchable charging electric vehicle constraints
[0120]
[0121] Where: t start ,t end ,t on ,t off They are the time when the electric vehicle is connected to the grid, the time when it is off the grid, the time when the dispatch starts, and the time when the dispatch ends; is the electric energy value of the electric vehicle during period t; They are the upper and lower limits of electric energy for electric vehicles; They are the upper and lower limits of electric vehicle discharge respectively.
[0122] (2) Restrictions on transferable charging electric vehicles
[0123]
[0124] Where: t start ,t end ,t up 、tlow 、tli m They are the electric vehicle grid-connected time, grid-off time, actual charging start time, actual charging end time, and limit charging start time.
[0125] (3) Energy storage battery constraints
[0126]
[0127] Where: is the energy value of the energy storage battery during period t; They are the upper and lower limits of the energy storage battery power respectively; They are the upper and lower discharge limits of the energy storage battery respectively.
[0128] The upper optimization model is a typical nonlinear hybrid programming problem. The unit commitment model can be established in Matlab using YALMIP modeling software, and the CPLEX solver can be used to solve the calculation. The lower scheduling model is a nonlinear optimization problem, which is optimized and solved using the dragonfly algorithm (DA) with strong global optimization ability. At the same time, the chaotic dragonfly algorithm (C-DA) is proposed to improve the defects of DA.
[0129] Dragonfly populations follow three basic principles in their behavior: separation S i , Align A i and cohesion C i At the same time, in order to survive, they instinctively move closer to the food source. i and stay away from natural enemies E i Therefore, the update of the position of the dragonfly individual is related to these five behaviors, and the position and position update step length of the next generation of dragonflies are calculated as follows:
[0130] ΔX t+1 =(sS i +aA i +cC i +fF i +eE i )+wΔX i (18)
[0131] X t+1 =X t +ΔX i+1 (19)
[0132] Where: t represents the current iteration number; i represents the i-th dragonfly individual; X t Indicates the individual position of the current t generation population; ΔX t+1 represents the next generation population position update step length; X t+1represents the individual position of the next generation population; s represents the separation weight; a represents the alignment weight; c represents the cohesion weight; f represents the food factor; e represents the natural enemy factor; and w represents the adaptive inertia weight coefficient value.
[0133] DA has good global search capabilities, but because its optimization process of each generation does not make full use of the excellent individuals of the previous generation, it affects the convergence speed of the algorithm and is prone to premature convergence. During the optimization process, the dragonfly population continues to move closer to the optimal position of the population, the population diversity gradually decreases, and it is easy to fall into the local optimum in the later stage. In order to improve the performance of DA, the present invention improves DA and proposes C-DA.
[0134] (1) In order to speed up the search and balance the global and local search capabilities of the algorithm, the adaptive inertia weight method is introduced to update the weight coefficient. The expression of the adaptive inertia weight coefficient is as follows:
[0135]
[0136] In the formula, w max 、w min are the maximum and minimum values of w respectively, J is the current fitness function value of the dragonfly individual; J avg and J min They are respectively the average fitness function value and the minimum fitness function value of all current dragonfly individuals.
[0137] (2) In order to avoid the algorithm from falling into the local optimum, chaotic local search is introduced to enhance the local search ability of DA, thereby jumping out of the local optimum and improving the accuracy of the solution. Chaotic local search is used to perform chaotic perturbations on the elite population in each iteration, guiding the algorithm to jump out of the local optimum, enhancing the global search ability of DA and the accuracy of the solution. The best molecular individuals in the population are retained as the elite population JS in each iteration, and Logistic mapping is selected as the chaotic mapping to perform chaotic local search on the elite population in each iteration of the algorithm. The chaotic mapping sequence is shown in formula (21), and the generated chaotic sequence is then returned to the new elite population through formula (22).
[0138] z j,k+1 =μz j,k (1-z j,k ),k=0,1,2...,0≤z j,0 ≤1 (21)
[0139]
[0140] Where: z j,kis an expanded chaotic variable sequence, k is determined according to the number of elite populations (i.e. k = 1 / B, B is the percentage of the number of elite populations in the total population), thus ensuring that the total number of populations remains unchanged and does not decrease with each iteration; μ is a control variable, when μ = 4, is the molecular individual in the current elite population. Then the fitness value of the elite population after the chaotic sequence is calculated, and the elite retention operation is performed to save the optimal individual of the population.
[0141] The specific optimization steps of the lower layer are as follows:
[0142] Step 1: Initialize parameters and input algorithm and model parameters.
[0143] Step 2: Calculate the fitness value of the individual and determine the optimal individual X Beset to save.
[0144] Step 3: Perform chaotic search to update the position of the dragonfly individual and the adaptive inertia weight.
[0145] Step 4: Calculate the fitness value and select the elite population to retain.
[0146] Step 5: Determine whether the termination condition is met. If so, proceed to the next step; otherwise, return to step 2 to continue iterating.
[0147] Step 6: Output the optimal scheduling strategy.
[0148] In summary, the solution process of the double-layer optimization dispatch model for peak shaving and valley filling in regional power stations containing electric vehicles is as follows: Figure 5 shown.
[0149] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution, which should be included in the scope of the claims of the present invention.
Claims
1. A double-layer optimization operation method considering the participation of electric vehicles in the park in the new town in peak shaving and valley filling, characterized by: The following steps are involved: S1: Establish a two-layer optimization dispatch model for new towns under peak shaving and valley filling optimization; S2: Initialize parameters and determine the objective function and constraints of the upper-level optimization scheduling model; S3: Use CPLEX solver to solve the upper-level optimization scheduling model; S4: Output the solution result of the upper-level optimization scheduling model, and determine the peak-shaving and valley-filling target allocation value of the lower-level park according to the feedback result of the lower-level park; S4: Determine the objective function and constraints of the lower-level optimization scheduling model; S5: Using the Chaos Dragonfly Algorithm to Solve the Lower-Level Optimization Scheduling Model; S6: Output the optimal dispatching strategy and feed back the results to the upper town; S7: Determine whether the new town double-layer optimization model under peak shaving and valley filling optimization reaches the termination condition, if so, output the result; otherwise, return to step S1; The objective function of the upper optimization model consists of two parts: the peak shaving and valley filling objective and the economic operation objective. The peak shaving and valley filling objective is characterized by minimizing the sum of squares of net load change rates in all adjacent time periods, and the economic conversion coefficient ω is introduced to project the peak shaving and valley filling objective into the economic dimension. The economic operation objective includes minimizing the gas power generation cost, wind abandonment cost, and solar abandonment cost. The specific objective function expression is: Where: F up It belongs to the comprehensive cost of regional power stations; It belongs to the cost of shaving peaks and filling valleys; It belongs to the cost of gas-fired power generation; belongs to the total cost of wind and solar abandonment; T belongs to the time section number; I G is the total number of thermal power plants in the region; I WT The number of wind farm groups; I PV belongs to the number of photovoltaic power plant groups; IMG belongs to the total number of lower-level microgrid charging stations; P net,t The net load of the new regional energy station at time t; a i , b i 、c i is the fuel cost coefficient of the i-th gas turbine; The wind curtailment rate and solar curtailment rate of the i-th wind farm and photovoltaic power plant at time t respectively; are the active power outputs of the i-th wind farm and photovoltaic power plant at time t respectively; ρ WT , PV The on-grid electricity prices for photovoltaic and wind power respectively; The better the peak load shaving and valley filling effect is, the smaller the net load change rate is, that is, (P net,t -P net,t-1 ) 2 The smaller the value, the net load calculation formula is: Where: I L is the sum of regional power station nodes; I MG is the sum of microgrids; is the active power of node i at time t; is the active power of microgrid i in period t; is the active power generated by thermal power plant i during period t; is the active power generated by wind farm i during period t; is the active power generated by photovoltaic power plant i during period t; P t MG,L is the active power of the microgrid load during period t; is the active power of charging station i in period t; P t MG,GE is the active power of renewable energy generation in the microgrid during period t.
2. The double-layer optimization operation method considering the participation of electric vehicles in the park in the new town in peak shaving and valley filling according to claim 1 is characterized by: The new urban double-layer optimization scheduling model under the peak shaving and valley filling optimization is divided into two layers, the upper layer is the urban distribution system, and the lower layer is the urban park system; the upper layer is to minimize the total cost of the regional power station under the peak shaving and valley filling constraint. On the premise of meeting the electric load demand, when wind power and photovoltaic power generation are in excess, the excess electricity is stored through the charging stations of the microgrids in the lower layer. When wind power and photovoltaic power generation are insufficient, the stored electricity is released by the charging stations of the microgrids in the lower layer to achieve the purpose of peak shaving and valley filling; the optimization scheduling target of the lower layer is the economy of electricity use, and the electric vehicles and batteries at the charging stations are used to schedule and optimize them to minimize the total system cost.
3. The double-layer optimization operation method according to claim 1 considering the participation of electric vehicles in the park in the new town in peak shaving and valley filling is characterized by: The electric vehicle load is divided into three categories: the first type of load is random charging load, which refers to electric vehicles that cannot participate in power station interaction; the second type of load is transferable charging load, which means that electric vehicles only accept the transfer scheduling of charging time by operators; The third type of load is dispatchable charging load, which means electric vehicles are subject to bidirectional charging and discharging dispatch by operators.
4. The double-layer optimization operation method according to claim 1 considering the participation of electric vehicles in the park in the new town in peak shaving and valley filling is characterized by: The constraints of the upper optimization model include: Regional power station power balance constraints: Where: P t L is the regional power station load power; P t up-down is the interaction power between the regional power station and the microgrid charging station; P t lpg It is the interactive power between the regional power station and the main grid; The constraints for wind power generation, photovoltaic power generation and gas power generation are: Where: are the predicted values of wind power generation and photovoltaic power generation during period t, respectively; They are the upper and lower limits of the output of the gas generator set during period t; Peak shaving and valley filling constraints Where: They are the real-time peak-shaving and valley-filling target values of the upper regional power station and the lower microgrid during period t; are the total load forecast values of the upper regional power station and the lower microgrid during period t, respectively; are the predicted power generation values of wind farm and photovoltaic power plant in period t respectively; is the peak shaving and valley filling target value of microgrid i in period t; γ is the peak shaving and valley filling coefficient.
5. The double-layer optimization operation method considering the participation of electric vehicles in the park in the new town in peak shaving and valley filling according to claim 1 is characterized by: The lower objective function is based on the operating cost, including the cost of purchasing electricity from regional power stations, maintenance costs, dispatching costs, and peak-shaving and valley-filling transaction costs: Where: F down is the total operating cost; Q i is the actual electric energy in period t; e t is the real-time electricity price during period t; For maintenance costs; is the scheduling cost; To smooth out the peaks and fill the valleys in transaction costs; Where: c B 、c EV are the energy storage cost parameters and the electric vehicle dispatch cost, respectively; are the energy storage discharge and charging power respectively; are the dispatchable electric vehicle discharging and charging powers, respectively; To smooth out the peak and fill the valley transaction price; It is the target value for real-time peak shaving and valley filling; It is the actual value of real-time peak shaving and valley filling; It is the real-time transaction volume for peak shaving and valley filling. If it is greater than 0, it means that the real-time peak shaving and valley filling volume of the park is less than the allocated value; if it is less than 0, it means that the real-time peak shaving and valley filling volume of the park is greater than the allocated value.
6. The double-layer optimization operation method according to claim 5 considering the participation of electric vehicles in the park in the new town in peak shaving and valley filling is characterized by: The constraints of the lower optimization model include: Dispatchable charging electric vehicle constraints: Where: t start ,t end ,t on ,t off They are the time when the electric vehicle is connected to the grid, the time when it is off the grid, the time when the dispatch starts, and the time when the dispatch ends; is the electric energy value of the electric vehicle during period t; They are the upper and lower limits of electric energy for electric vehicles; They are the upper and lower limits of electric vehicle discharge respectively; Transferable charging electric vehicle constraints: Where: t start ,t end ,t up ,t low ,t lim They are the electric vehicle grid connection time, grid-off time, actual charging start time, actual charging end time, and limit charging start time; Energy storage battery constraints Where: is the energy value of the energy storage battery during period t; They are the upper and lower limits of the energy storage battery power respectively; They are the upper and lower discharge limits of the energy storage battery respectively.
7. The double-layer optimization operation method according to claim 6, which takes into account the participation of electric vehicles in the park in the new town in peak shaving and valley filling, is characterized in that: The chaotic dragonfly algorithm specifically includes: Dragonfly populations follow three basic principles in their behavior: separation S i , Align A i and cohesion C i , instinctively approaching food sources F i and stay away from natural enemies E i The update of the position of the dragonfly individual is related to these five behaviors, and the position and position update step length of the next generation of dragonflies are calculated as follows: VX t+1 =(sS i +aA i +cC i +fF i +eE i )+wVX i (18) X t+1 =X t +VX i+1 (19) Where: t represents the current iteration number; i represents the i-th dragonfly individual; X t Indicates the individual position of the current t generation population; VX t+1 represents the next generation population position update step length; X t+1 represents the individual position of the next generation population; s represents the separation weight; a represents the alignment weight; c represents the cohesion weight; f represents the food factor; e represents the natural enemy factor; w represents the adaptive inertia weight coefficient value; The adaptive inertia weight method is introduced to update the weight coefficient, and the expression of the adaptive inertia weight coefficient is as follows: In the formula, w max 、w min are the maximum and minimum values of w respectively, J is the current fitness function value of the dragonfly individual; J avg and J min They are the average fitness function value and the minimum fitness function value of all current dragonfly individuals; Chaotic local search is used to perform chaotic perturbations on the elite population in each iteration, guiding the algorithm to jump out of the local optimum, retaining the best molecular individuals in the population as the elite population JS in each iteration, and selecting Logistic mapping as the chaotic mapping to perform chaotic local search on the elite population in each iteration of the algorithm. The chaotic mapping sequence is shown in formula (21), and the generated chaotic sequence is returned to the new elite population through formula (22): z j,k+1 =μz j,k (1-z j,k ), k=0,1,2..., 0≤z j,0 ≤1 (21) Where: z j,k is the expanded chaotic variable sequence, k is determined by the number of elite populations; μ is the control variable; is the molecular individual in the current elite population; then the fitness value of the elite population after the chaotic sequence is calculated, and the elite retention operation is performed to save the optimal individual of the population.
8. The double-layer optimization operation method according to claim 7, which takes into account the participation of electric vehicles in the park in the new town in peak shaving and valley filling, is characterized in that: Step S5 specifically includes the following steps: S51: Initialize parameters, input algorithm and model parameters; S52: Calculate the fitness value of the individual and determine the optimal individual X Beset Save it; S53: Execute chaotic search, update the position of the dragonfly individual, and update the adaptive inertia weight at the same time; S54: Calculate the fitness value and select the elite population to be retained; S55: Determine whether the termination condition is met, if so, execute the next step; otherwise, return to step S52 to continue iteration; S56: Output the optimal scheduling strategy.
