Electric vehicle orderly charging and discharging scheduling method, storage medium and equipment
By establishing a two-layer optimized scheduling model and using Monte Carlo sampling, IGDT, and CDO algorithms to optimize the charging and discharging scheduling of electric vehicles, the problem of existing technologies being unable to comprehensively consider the demands of the power supply side and the user side is solved. This achieves the optimization of the net load peak-valley difference and electricity costs, and improves the stability and reliability of the system.
Patent Information
- Application Number
- CN202410668082.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-05-28
AI Technical Summary
Existing methods for orderly charging and discharging of electric vehicles cannot comprehensively consider the needs of both the power supply side and the user side, and cannot minimize the peak-valley difference of net load within the region or the overall electricity cost for vehicle owners. At the same time, the system's safety and reliability are poor.
A two-layer optimization scheduling model is established based on the regional net load peak-valley difference and the comprehensive electricity cost of users. The Monte Carlo sampling method, IGDT method and CDO algorithm are used for solution. The scheduling strategy is optimized by combining the PO algorithm. Different objectives are coordinated through fuzzy membership function to achieve efficient and reliable charging and discharging scheduling.
It reduces the fluctuation of net load peak-valley difference in the microgrid area, controls the overall electricity cost of EV users, effectively manages the uncertainty in the charging and discharging process, improves the stability and reliability of the system, quickly optimizes calculations, and coordinates the trade-offs between different objectives.
Smart Images

Figure CN118645988B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electric vehicle energy management technology, and in particular to an orderly charging and discharging scheduling method for electric vehicles. Background Technology
[0002] The optimized, orderly charging and discharging scheduling of electric vehicles (EVs) is crucial for the stable operation of power systems. With the rapid increase in the number of EVs, their impact on the power grid is becoming increasingly significant. The randomness and volatility of EV charging and discharging demands pose challenges to the load balance and operational stability of the power grid. Therefore, how to effectively schedule and optimize the charging and discharging of EVs to ensure the smooth operation of the power system has become a hot research topic.
[0003] Currently, the main methods for orderly charging and discharging scheduling of electric vehicles include demand response scheduling and intelligent charging management. Demand response scheduling, based on users' charging needs, adjusts the use of charging stations to achieve orderly charging and discharging of electric vehicles. This scheduling method relies heavily on user cooperation and significantly impacts user experience. While intelligent charging management enables remote monitoring and centralized management of charging piles, it relies on accurate data support and efficient algorithms. Current intelligent charging management, such as the electric vehicle bidirectional charging intelligent management system disclosed in Chinese Patent Publication No. CN117048408A, collects the working status of each intelligent charging pile in real time, identifies each working target intelligent charging pile based on its working status, and establishes bidirectional communication between the target intelligent charging pile and the corresponding charging vehicle to collect charging data from the charging vehicle and working data from the target intelligent charging pile. By parsing the two sets of data, corresponding charging information and working information are obtained. Then, based on the charging information, the appropriate charging mode for the charging vehicle is determined, and the power supply mode of the target intelligent charging pile is adjusted when necessary to adapt to the needs of the charging vehicle. However, this method cannot comprehensively consider the needs of the power supply side and the user side, and cannot minimize the net load peak-valley difference within the area and minimize the overall electricity cost for vehicle owners. At the same time, the system's safety and reliability are poor. Summary of the Invention
[0004] Purpose of the invention: The purpose of this invention is to provide an efficient, reliable, robust, and highly intelligent method for the orderly charging and discharging scheduling of electric vehicles.
[0005] Technical Solution: The present invention provides an orderly charging and discharging scheduling method for electric vehicles. Based on the regional net load peak-valley difference and the comprehensive electricity cost of users, a two-layer optimal scheduling model is established. The two-layer optimal scheduling model is solved using the PO algorithm. Specifically, the method includes the following steps:
[0006] S1: The Monte Carlo sampling method is used to determine the response of the orderly scheduling strategy for EV users in this area. Based on system stability and economy, a two-layer optimization scheduling model of distribution layer and user layer is constructed and the corresponding objective function is established.
[0007] S2: The IGDT method is used to simulate the uncertainty of the dispatchable demand response power of EV vehicles, and a deviation coefficient is introduced to construct a risk avoidance strategy model.
[0008] S3: The robustness factor in the risk aversion strategy model is optimized using the CDO algorithm;
[0009] S4: Perform fuzzy normalization on the two objective functions in the two-layer optimal scheduling model, and transform the solution into the solution of the deviation coefficient. Use the PO algorithm to solve the two-layer optimal scheduling model.
[0010] Furthermore, in S1, the Monte Carlo sampling method is used to randomly sample the grid connection status of all EV vehicles in the studied microgrid area to determine the responsiveness of the orderly scheduling strategy for EV users in the area. The power required for charging and discharging EVs under the orderly scheduling strategy is:
[0011]
[0012] In the formula, R(t) represents the response degree of the ordered scheduling policy for EV users at time t; R c (t), R f (t) represents the charging and discharging response of the ordered scheduling strategy for EV users at time t; S represents the total number of EV vehicles in the microgrid area; N c (t), N f (t) represents the number of EVs charging and discharging when EV users respond to the ordered scheduling strategy; P D (t), P L (t) represents the total load power at time t under disordered and ordered strategies, respectively; P L,c (t), P L,f (t) represents the power required for charging and discharging EV vehicles under the ordered strategy; P i c (t), P i f (t) represents the rated charging and discharging power of the i-th vehicle, respectively; h s (t) = 1 indicates that the EV vehicle is in a charging state at this time; h s (t) = 0 indicates that the EV vehicle is stationary at this time.
[0013] Furthermore, in S1, a distribution layer model is established in the main grid dispatch center for grid-side optimization. The distribution layer model takes minimizing the peak-to-valley difference fluctuation of the regional net load as its first objective function.
[0014] F1=min(P j,max (t)-P j,min (t))
[0015] P j (t)=P L (t)+P EV (t)
[0016] In the formula, P j (t) represents the net load of the region at time t; P L (t), P EV (t) represents the base load and total EV charging / discharging power at time t, respectively;
[0017] The user-layer model uses the minimum overall electricity cost for car owners as its second objective function.
[0018]
[0019] In the formula, N c,t and N f,t These represent the number of EVs charged and discharged within time t; P c,n (t) and P f,n (t) represents the charging and discharging power of EV at time t; p c,t and p f,t The charging and discharging charges of EV at time t are respectively; ξ c and ξ f These represent the charging and discharging efficiencies of EVs, respectively; C b The battery loss caused by EV discharge; Δt is the length of the unit control time period.
[0020] Furthermore, the power distribution layer model satisfies the following constraints during the optimization process:
[0021] (1) Power balance constraint
[0022] P S (t)=P L (t)+P EV (t)
[0023] In the formula, P S (t) represents the power supply value from the substation to the charging pile at time t; P EV (t) represents the total charging and discharging power of the EV at time t; P L (t) represents the base load at time t;
[0024] (2) EV charging and discharging power constraints
[0025] P S (t) min ≤P EV (t)≤P S(t) max
[0026] In the formula, P S (t) min and P S (t) max These represent the minimum and maximum power supply values from the substation to the charging pile, respectively; P EV (t) represents the total charging and discharging power of the EV at time t;
[0027] (3) Constraints on the state of charge of a single EV
[0028] SOC min ≤SOC(t)≤SOC max
[0029] In the formula, SOC(t) represents the total state of charge of the EV at time t; SOC min SOC max These represent the minimum and maximum values of the state of charge, respectively.
[0030] Furthermore, the user layer model satisfies the following constraints during the optimization process:
[0031] (1) Charging and discharging power constraints of a single EV
[0032]
[0033] In the formula, P c,n (t) and P f,n (t) represents the charging and discharging power of EV at time t, respectively; ξ c and ξ f These are the charging and discharging efficiency of EVs, respectively. and These represent the maximum charging and discharging power of the EV during normal operation.
[0034] (2) Constraints on the charging and discharging time of a single EV
[0035] T in,n ≤T n ≤T out,n
[0036] In the formula, T n The time period for implementing orderly control strategies; T in,n T out,n These represent the times when the nth EV connects to and leaves the power grid.
[0037] (3) Constraint on the battery charge expectation of a single EV owner
[0038] α n ≤SOC n (t out,n )
[0039] In the formula, α n The expected state of charge (SOC) of the EV set for vehicle owner n. n (t out,n ) represents the state of charge of the nth EV when it leaves the grid.
[0040] Furthermore, in S2, the IGDT method is used to simulate the uncertainty of the dispatchable demand response power of EV vehicles, coordinate the charging and discharging power of electric vehicles, reduce the fluctuation of regional net load peak-valley difference and the comprehensive electricity cost for vehicle owners. The uncertainty model optimized by IGDT is as follows:
[0041]
[0042] In the formula, f(x,ν) is the objective function; x is the decision variable; m max The maximum value of the dispatchable demand response power of EV vehicles after introducing the deviation coefficient χ of the uncertainty is defined; υ is the input parameter; h(x,ν) and g(x,ν) are the equality and inequality constraints, respectively.
[0043] The expression for decision variable x:
[0044]
[0045] In the formula, denoted as t, where is the predicted value of the dispatchable demand response power of EV vehicles during time period t; x is the actual value of the dispatchable demand response power of EV vehicles during time period t; and χ is the deviation coefficient of the uncertainty.
[0046] Let the decision variables be x0 and x1, and establish an optimization model for the uncertainties of EV vehicles:
[0047]
[0048] In the formula, O(x1,x)=0 and P(x0,x1)≤0 are equality and inequality constraints, respectively; x0 and x1 are two different decision variables.
[0049] A risk-avoidance strategy is adopted to seek the maximum uncertainty that the system can withstand while satisfying the objective function constraints, in order to improve the robustness of the model and the system's ability to avoid risks. The risk-avoidance strategy model based on IGDT is as follows:
[0050]
[0051] In the formula, F1 * F represents the maximum increase in dispatch costs due to uncertainties that the power grid can tolerate; b (1+κ)F is the baseline value for scheduling cost. b The expected value of scheduling costs for risk avoidance; κ is the robustness level factor; PS (t) represents the power supply value from the substation to the charging pile at time t; Let be the predicted value of the dispatchable demand response power of EV vehicles in time period t; let x be the actual value of the dispatchable demand response power of EV vehicles in time period t; Δχ and ΔF1 are the deviation coefficient and the fluctuation of operating costs, respectively. This is the marginal deviation coefficient.
[0052] Furthermore, in S3, the gradient descent process of α, β, and γ particles is calculated and transformed into a mathematical model, thereby optimizing important parameters in the risk aversion strategy model.
[0053] Calculate the gradient descent factor v when alpha particles attack humans. α :
[0054] v α =0.25·(X) α (t)-ρ α ·Δ α )
[0055]
[0056] x h =r 2 ·π
[0057] S α =log(rand(1:16,000))
[0058] Δ α =|A α ·X α (t)-X T (t)|
[0059] A α =r 2 ·π
[0060] In the formula, X α (t) represents the current position of the α particle; ρ α For the propagation of alpha particles; Δ α x is the difference between the human body position and the alpha particle position. h The area of a circular region where people move around, S α Let Δ be the velocity of the alpha particle. α A is the difference between the position of the alpha particle and the total position. α Let X be the circular area of the alpha particle propagation. T This is the average of all positions;
[0061] Calculate the gradient descent factor v when a beta particle attacks a human. β :
[0062] vβ =0.5·(X) β (t)-ρ β ·Δ β )
[0063]
[0064] x h =r 2 ·π
[0065] S β =log(rand(1:270,000))
[0066] Δ β =|A β ·X β (t)-X T (t)
[0067] A β =r 2 ·π
[0068] In the formula, X β (t) represents the current position of the β particle, ρ β For the propagation of β particles, Δ β x is the difference between the human body position and the β particle position. h The area of a circular region where people move around, S β Let Δ be the velocity of the β particle. β A is the difference between the position of the β particle and the total position. β Let X be the circular area of the propagation of the β particle. T This is the average of all positions;
[0069] Calculate the gradient descent factor v of gamma particles attacking humans. γ :
[0070] ν γ =(X γ (t)-ρ γ ·Δ γ )
[0071]
[0072] x h =r 2 ·π
[0073] S γ =log(rand(1:300,000))
[0074] Δ γ =|A γ ·X γ (t)-X T(t)|
[0075] A γ =r 2 ·π
[0076] In the formula, X γ (t) represents the current position of the γ particle, ρ γ For the propagation of γ particles, Δ γ x is the difference between the human body position and the gamma particle position. h The area of a circular region where people move around, S γ Let Δ be the velocity of the γ particle. γ A is the difference between the position of the γ particle and the total position. γ Let X be the circular area of the propagation of the gamma particle. T This is the average of all positions;
[0077] The average total velocity of these particles is calculated using the equations of motion:
[0078]
[0079] The CDO algorithm uses the attack methods of three radiating particles (α, β, and γ) to obtain the optimal value of the robustness factor κ in the risk avoidance strategy model, thereby optimizing the performance of the risk avoidance strategy model.
[0080] Furthermore, S4 includes the following steps:
[0081] S41: Normalize the two objective functions using fuzzy membership functions:
[0082]
[0083] In the formula, F 1,min F 2,min and F 1,min +ρ1F 1,min F 2,min +ρ2F 2,min These represent the optimal values for overall operating costs and load demand fluctuations, as well as the highest and lowest values that the microgrid can accept, respectively; the elasticity satisfaction coefficients under different conditions are ρ1 and ρ2; y1(F1) and y2(F2) are the objective functions for satisfaction with overall operating costs and load fluctuations, respectively;
[0084] S42: Transform the solution of F1 in the objective function into the solution of the deviation coefficient χ:
[0085]
[0086] In the formula, ρ3 represents the elasticity satisfaction; χ is the deviation coefficient; χ maxy3(F3) is the maximum deviation coefficient; y3(F3) is the objective function for optimizing the overall operating cost satisfaction.
[0087] S43: The overall satisfaction F, which is the weighted average of the two satisfaction levels y2(F2) and y3(F3) assigned weight coefficients λ1 and λ2 respectively, is expressed as:
[0088]
[0089] In the formula, λ1, λ2 and y2(F2), y3(F3) are the weight coefficients and the objective functions of the two satisfaction levels being optimized, respectively;
[0090] S44: The PO parrot optimizer is used to solve the two-layer optimization model. The PO algorithm solves the optimization problem by simulating the key behaviors of a well-trained parrot, including the following steps:
[0091] The solution for the two-layer optimization model is initialized using the following formula:
[0092] X i 0 =lb+rand(0,1)*(ub-lb)
[0093] In the formula, rand(0,1) represents a random number in the range [0,1]; lb and ub are the upper and lower limits of the solution of the objective function for overall satisfaction, respectively.
[0094] The foraging behavior process can be represented as follows:
[0095]
[0096] In the formula, Indicates the current solution; This indicates the solution for subsequent updates; X represents the mean of the solutions; best This represents the current optimal solution; t is the number of iterations; Max iter The maximum number of iterations is given; Levy(dim) is the functional form of the Levy distribution, where dim represents the dimension.
[0097] The functional formula for calculating the Levy distribution is:
[0098]
[0099] In the formula, μ is the expected value of the Levy distribution; σ is the standard deviation of the Levy distribution; ν is the standard deviation of the Levy distribution; μ ~ N(0,dim) and ν ~ N(0,dim) indicate that μ and ν follow a normal distribution; γ is the exponent of the Levy distribution; and Γ is the gamma function.
[0100] The process of dwelling behavior can be represented as:
[0101]
[0102] In the formula, ones(1,dim) represents a vector of all 1s with dimension dim;
[0103] The process of communication behavior can be represented as:
[0104]
[0105] In the formula, P is a probability value randomly generated within the range [0, 1].
[0106] The process of shyness can be represented as follows:
[0107]
[0108] The PO algorithm continuously simulates the parrot's foraging behavior, dwelling behavior, communication behavior, and shyness behavior to ultimately obtain the optimal solution of the two-layer optimization model.
[0109] The present invention provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs that can be executed by one or more processors to implement the steps of the above-described orderly charging and discharging scheduling method for electric vehicles.
[0110] A storage device according to the present invention includes a controller, a memory, a computer program stored in the memory and executable by the controller, and a data bus for implementing communication between the controller and the memory, wherein when the computer program is executed by the controller, it implements the steps of the orderly charging and discharging scheduling method for electric vehicles as described above.
[0111] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: (1) Reduce peak-valley difference fluctuation: The present invention uses the Monte Carlo method to randomly sample the grid connection status of all EV vehicles in the microgrid area, determine the responsiveness of the orderly scheduling strategy for EV users, help reduce the peak-valley difference fluctuation of net load in the microgrid area, and improve the stability of the grid; (2) Control comprehensive electricity cost: The present invention adopts the EV charging and discharging hierarchical optimization scheduling strategy, establishes a two-layer optimization scheduling model, effectively controls the comprehensive electricity cost of EV users, and makes them more economical and efficient in the charging and discharging process; (3) Effectively manage uncertainty: The present invention takes into account the uncertainty of EV users' response to the orderly scheduling strategy, and uses the IGDT method to simulate the uncertainty of the schedulable demand response power of EV vehicles. (3) Risk avoidance strategy ensures that the system can withstand the greatest uncertainty while meeting the objective function constraints; (4) Fast optimization calculation: This invention accelerates the model optimization calculation speed by using the Chernobyl disaster optimizer (CDO) to find a better solution in a shorter time; (5) Efficient coordination of different objectives: This invention normalizes the two contradictory objective functions of regional net load peak-valley difference and user comprehensive electricity cost by using fuzzy membership function, effectively coordinating the trade-offs between different objectives, so that the system can better balance operating costs and load fluctuations; (6) Comprehensive improvement of global search capability: This invention solves the two-layer optimization model by using the parrot optimizer (PO) to obtain global search capability, thereby finding a better solution. Attached Figure Description
[0112] Figure 1 This is a flowchart of the method system of the present invention;
[0113] Figure 2 This is a schematic diagram of the two-layer optimized scheduling model for EV charging and discharging according to the present invention. Detailed Implementation
[0114] The technical solution of the present invention will be further described below with reference to the accompanying drawings.
[0115] The present invention provides an orderly charging and discharging scheduling method for electric vehicles, as shown in the figure, comprising:
[0116] S1: The Monte Carlo method is used to randomly sample the grid connection status of all EV vehicles in the studied microgrid area to determine the responsiveness of the orderly scheduling strategy for EV users in the area. Based on system stability and economy, a two-layer optimal scheduling model for EV charging and discharging is established, and the corresponding objective function is constructed.
[0117] S11: In view of the current acceptance of parking lot charging mode by electric vehicle (EV) users and their actual needs, the Monte Carlo method is used to randomly sample the grid connection status of all EV vehicles in the microgrid area under study to determine the responsiveness of the orderly scheduling strategy for EV users in the area.
[0118] Based on the sampling results, EV users responding to scheduling information released by the upper-level main grid management center are clustered and divided into different EV user groups for control. Following an ordered charging and discharging strategy, EVs are connected to the grid for charging and discharging within specified time periods. This achieves unified management of the off-grid time for subgroups and differentiated control of off-grid time, reducing scheduling difficulty while avoiding a surge in load at the end of the charging period. The power required for EV charging and discharging in the ordered strategy is:
[0119]
[0120] In the formula, R(t) represents the response degree of the ordered scheduling policy for EV users at time t; R c (t), R f (t) represents the charging and discharging response of the ordered scheduling strategy for EV users at time t; S represents the total number of EV vehicles in the microgrid area; N c (t), N f (t) represents the number of EVs charging and discharging when EV users respond to the ordered scheduling strategy; P D (t), P L (t) represents the total load power at time t under disordered and ordered strategies, respectively; P L,c (t), P L,f (t) represents the power required for charging and discharging EV vehicles under the ordered strategy; P i c (t), P i f (t) represents the rated charging and discharging power of the i-th vehicle, respectively; h s (t) = 1 indicates that the EV vehicle is in a charging state at this time; h s (t) = 0 indicates that the EV vehicle is stationary at this time.
[0121] S12: In order to minimize the fluctuation of the net load peak-valley difference in the region and control the comprehensive electricity cost of EV users, a hierarchical optimization scheduling strategy for EV charging and discharging is adopted, and a two-layer optimization scheduling model is established.
[0122] The model comprises a distribution layer and a user layer. The distribution layer consists of the main grid dispatch center and substations. When a vehicle connects to a charging station, the charging device obtains the initial state of charge from the vehicle and transmits it to the substation. The substation, based on the charging expectations provided by the vehicle owner, optimizes the charging cost and transmits the optimal charging and discharging plan to the main grid dispatch center. Upon receiving the charging and discharging plans from each substation, the main grid dispatch center adjusts the plans based on the load values required for EV charging and discharging within the microgrid area, ensuring the lowest possible overall electricity cost for vehicle owners, thus minimizing the fluctuation of the regional net load peak-to-valley difference. After repeated transmission and iteration, the main grid dispatch center transmits the final optimized charging and discharging plan to the substations. Upon receiving the charging and discharging plan from the main grid dispatch center, the substation immediately delivers power to the corresponding charging station and executes the charging and discharging plan.
[0123] S13: Based on the two-layer optimization model, establish two objective functions. Since power supply is configured according to the maximum demand of users, a large amount of power generation and supply capacity is idle during off-peak periods, increasing the cost of power generation and supply. Therefore, the distribution layer model takes minimizing the fluctuation of the peak-to-valley difference in regional net load as the first objective function:
[0124] F1=min(P j,max (t)-P j,min (t))
[0125] P j (t)=P L (t)+P EV (t)
[0126] In the formula, P j (t) represents the net load of the region at time t; P L (t), P EV (t) represents the base load and total EV charging and discharging power at time t, respectively.
[0127] The following are several constraints that the power distribution layer model needs to satisfy during the optimization process:
[0128] (1) Power balance constraint
[0129] P S (t)=P L (t)+P EV (t)
[0130] In the formula, P S (t) represents the power supply value from the substation to the charging pile at time t; P EV (t) represents the total charging and discharging power of the EV at time t; P L (t) represents the base load at time t.
[0131] (2) EV charging and discharging power constraints
[0132] P S (t) min ≤P EV (t)≤P S (t) max
[0133] In the formula, P S (t) min and P S (t) max These represent the minimum and maximum power supply values from the substation to the charging pile, respectively; P EV (t) represents the total charging and discharging power of the EV at time t.
[0134] (3) Constraints on the state of charge of a single EV
[0135] SOC min ≤SOC(t)≤SOC max
[0136] Where SOC(t) is the total state of charge of EV at time t; SOC min SOC max These represent the minimum and maximum values of the state of charge, respectively.
[0137] S14: The purpose of EV users participating in vehicle-to-grid interaction is to reduce the overall electricity costs for car owners. Car owners utilize time-of-use pricing mechanisms, charging during off-peak hours and releasing electricity during peak hours, taking advantage of the difference in electricity consumption between peak and off-peak periods to save on charging costs. Dividing a day (24 hours) into 24 time periods with a 1-hour cycle, the user-layer model uses minimizing the overall electricity costs for car owners as its second objective function.
[0138]
[0139] In the formula, N c,t and N f,t These represent the number of EVs charged and discharged within time t; P c,n (t) and P f,n (t) represents the charging and discharging power of EV at time t; p c,t and p f,t The charging and discharging charges of EV at time t are respectively; ξ c and ξ f These represent the charging and discharging efficiencies of EVs, respectively; C b The battery loss caused by EV discharge; Δt is the length of the unit control time period.
[0140] The user-layer model needs to meet the following constraints during the optimization process:
[0141] (1) Charging and discharging power constraints of a single EV
[0142]
[0143] In the formula, P c,n (t) and P f,n (t) represents the charging and discharging power of EV at time t, respectively; ξ c and ξ f These are the charging and discharging efficiency of EVs, respectively. and These represent the maximum charging and discharging power for normal EV operation.
[0144] (2) Constraints on the charging and discharging time of a single EV
[0145] T in,n ≤T n ≤T out,n
[0146] In the formula, T n The time period for implementing orderly control strategies; T in,n T out,n These represent the times when the nth EV connects to and leaves the power grid.
[0147] (3) Constraint on the battery charge expectation of a single EV owner
[0148] α n ≤SOC n (t out,n )
[0149] In the formula, α n The expected state of charge (SOC) of the EV set for vehicle owner n. n (t out,n ) represents the state of charge of the nth EV when it leaves the grid.
[0150] S2: Considering the uncertainty of the orderly scheduling strategy for EV user responses, the grid connection of EV vehicles will affect the stable operation of the power grid. This invention proposes to use the IGDT method to simulate the uncertainty of the dispatchable demand response power of EV vehicles. A risk avoidance strategy is adopted to seek the maximum uncertainty that the system can withstand while satisfying the constraints of the objective function.
[0151] S21: The IGDT method is used to simulate the uncertainty of the dispatchable demand response power of EV vehicles to coordinate the charging and discharging power of electric vehicles, thereby reducing the fluctuation of regional net load peak-to-valley differences and the overall electricity costs for vehicle owners. The uncertainty model optimized by IGDT is as follows:
[0152]
[0153] In the formula, f(x,ν) is the objective function; x is the decision variable; m maxThe maximum value of the dispatchable demand response power of EV vehicles after introducing the deviation coefficient χ of the uncertainty is defined; υ is the input parameter; h(x,ν) and g(x,ν) are the equality and inequality constraints, respectively.
[0154] The expression for decision variable x:
[0155]
[0156] In the formula, denoted as t, where is the predicted value of the dispatchable demand response power of EV vehicles during time period t; x is the actual value of the dispatchable demand response power of EV vehicles during time period t; and χ is the deviation coefficient of the uncertainty.
[0157] Let the decision variables be x0 and x1, and establish an optimization model for the uncertainties of EV vehicles:
[0158]
[0159] In the formula, O(x1,x)=0 and P(x0,x1)≤0 are equality and inequality constraints, respectively; x0 and x1 are two different decision variables.
[0160] S22: Excessive fluctuations in the peak-to-valley difference of regional net load can adversely affect system stability and make it difficult to meet the cost-saving expectations of EV users. This invention adopts a risk avoidance strategy to seek the maximum uncertainty that the system can withstand while satisfying the objective function constraints, so as to improve the robustness of the model and the system's ability to avoid risks.
[0161] The risk aversion strategy model built based on IGDT is as follows:
[0162]
[0163] In the formula, F1 * F represents the maximum increase in dispatch costs due to uncertainties that the power grid can tolerate; b (1+κ)F is the baseline value for scheduling cost. b The expected value of scheduling costs for risk avoidance; κ is the robustness level factor; P S (t) represents the power supply value from the substation to the charging pile at time t; Let be the predicted value of the dispatchable demand response power of EV vehicles in time period t; let x be the actual value of the dispatchable demand response power of EV vehicles in time period t; Δχ and ΔF1 are the deviation coefficient and the fluctuation of operating costs, respectively. This is the marginal deviation coefficient.
[0164] The risk aversion strategy model introduces a robustness factor κ and a marginal deviation coefficient. The goal is to maximize the uncertain parameter, which is then transformed into maximizing the deviation coefficient χ.
[0165] S3: To accelerate the model optimization calculation, this invention employs the Chernobyl Catastrophic Optimizer (CDO) to optimize key parameters of the risk aversion strategy model. The gradient descent process of α, β, and γ particles is calculated and transformed into a mathematical model, thereby optimizing key parameters in the risk aversion strategy model.
[0166] S31: Calculate the gradient descent factor v when alpha particles attack humans. α :
[0167] v α =0.25·(X) α (t)-ρ α ·Δ α )
[0168]
[0169] x h =r 2 ·π
[0170] S α =log(rand(1:16,000))
[0171] Δ α =|A α ·X α (t)-X T (t)
[0172] A α =r 2 ·π
[0173] In the formula, X α (t) represents the current position of the α particle; ρ α For the propagation of alpha particles; Δ α This represents the difference between the human body's position and the alpha particle's position. h The area of a circular region where people move around, S α Δ is the velocity of the alpha particle; α A is the difference between the position of the alpha particle and the total position. α X is the circular area of the alpha particle propagation zone. T This represents the average value of all positions.
[0174] Calculate the gradient descent factor v when a beta particle attacks a human. β :
[0175] v β =0.5·(X) β (t)-ρ β ·Δ β )
[0176]
[0177] x h =r 2 ·π
[0178] S β =log(rand(1:270,000))
[0179] Δ β =|A β ·X β (t)-X T (t)
[0180] A β =r 2 ·π
[0181] In the formula, X β (t) represents the current position of the β particle; ρ β For the propagation of β particles; Δ β x is the difference between the human body's position and the β particle's position. h Area of a circular region where people move around; S β Δ is the velocity of the β particle; β A is the difference between the position of the β particle and the total position. β X is the circular area of the propagation zone of the β particles; T This represents the average value of all positions.
[0182] Calculate the gradient descent factor v of gamma particles attacking humans. γ :
[0183] ν γ =(X γ (t)-ρ γ ·Δ γ )
[0184]
[0185] x h =r 2 ·π
[0186] S γ =log(rand(1:300,000))
[0187] Δ γ =|A γ ·X γ (t)-X T (t)
[0188] A γ =r 2 ·π
[0189] In the formula, X γ(t) represents the current position of the γ particle; ρ γ For the propagation of gamma particles; Δ γ The difference between the human body's position and the gamma particle's position; x h The area of a circular region where people move around, S γ The velocity of the γ particle; Δ γ A is the difference between the position of the γ particle and the total position. γ X is the circular area of the propagation zone of the gamma particle; T This represents the average value of all positions.
[0190] S32: Calculate the average total velocity of these particles based on the equations of motion:
[0191]
[0192] The CDO algorithm uses the attack methods of three radiating particles (α, β, and γ) to obtain the optimal value of the robustness factor κ in the risk avoidance strategy model, thereby optimizing the performance of the risk avoidance strategy model.
[0193] S4: To reconcile the contradiction between the peak-valley difference in regional net load and the comprehensive electricity cost for users, fuzzy membership functions are used to normalize the two objective functions of operating costs and load fluctuations. The solution to F1 is transformed into the solution of the deviation coefficient χ, and the two-layer optimization model is solved using the Parrot Optimizer (PO). S41: The fuzzy membership function normalization method is as follows:
[0194]
[0195] Among them, F 1,min F 2,min and F 1,min +ρ1F 1,min F 2,min +ρ2F 2,min These represent the optimal values for overall operating costs and load demand fluctuations, as well as the highest and lowest values that the microgrid can accept, respectively; the elasticity satisfaction coefficients under different conditions are ρ1 and ρ2; y1(F1) and y2(F2) are the objective functions for satisfaction with overall operating costs and load fluctuations, respectively.
[0196] The solution to F1 in the objective function is transformed into the solution to the deviation coefficient χ:
[0197]
[0198] In the formula, ρ3 represents the elasticity satisfaction; χ is the deviation coefficient; χ max y3(F3) is the maximum deviation coefficient; y3(F3) is the objective function for optimizing the overall operating cost satisfaction.
[0199] Then, the two satisfaction levels y2(F2) and y3(F3) are assigned weight coefficients λ1 and λ2 respectively, and the weighted average is calculated to obtain the overall satisfaction level F, which can be expressed as:
[0200]
[0201] In the formula, λ1, λ2 and y2(F2), y3(F3) are the weight coefficients and the objective functions for the two satisfaction levels being optimized, respectively.
[0202] S42: The Parrot Optimizer (PO) is used to solve the two-layer optimization model. The PO algorithm solves the optimization problem by simulating the key behaviors of a well-trained parrot. The specific implementation process of the PO algorithm is as follows:
[0203] First, initialize the solution of the two-layer optimization model, as shown in the following formula:
[0204] X i 0 =lb+rand(0,1)*(ub-lb)
[0205] Where rand(0,1) represents a random number in the range [0,1]; lb and ub are the upper and lower limits of the solution of the objective function for overall satisfaction, respectively.
[0206] The foraging behavior process can be represented as follows:
[0207]
[0208] In the formula, Indicates the current solution; This indicates the solution for subsequent updates; X represents the mean of the solutions; best This represents the current optimal solution; t is the number of iterations; Max iter is the maximum number of iterations; Levy(dim) is the functional form of the Levy distribution, where dim represents the dimension.
[0209] The functional formula for calculating the Levy distribution is:
[0210]
[0211] In the formula, μ is the expected value of the Levy distribution; σ is the standard deviation of the Levy distribution; ν is the standard deviation of the Levy distribution; μ~N(0,dim) and ν~N(0,dim) indicate that μ and ν follow a normal distribution; γ is the exponent of the Levy distribution; and Γ is the gamma function.
[0212] The process of dwelling behavior can be represented as:
[0213]
[0214] In the formula, ones(1,dim) represents a vector of all 1s with dimension dim.
[0215] The process of communication behavior can be represented as:
[0216]
[0217] In the formula, P is a probability value randomly generated within the range [0, 1].
[0218] The process of shyness can be represented as follows:
[0219]
[0220] The PO algorithm continuously simulates the foraging behavior, dwelling behavior, communication behavior, and shyness behavior of parrots to obtain the optimal solution of the two-layer optimization model. The optimization model enables the minimization of the net load peak-valley difference fluctuation and the overall electricity cost for users within the region.
Claims
1. A method for orderly charging and discharging scheduling of electric vehicles, characterized in that, A two-level optimal scheduling model is established based on the regional net load peak-valley difference and the comprehensive electricity cost of users. The two-level optimal scheduling model is solved using the PO parrot optimizer algorithm, specifically including the following steps: S1: The Monte Carlo sampling method is used to determine the response of the orderly scheduling strategy for EV users in this area. Based on system stability and economy, a two-layer optimization scheduling model of distribution layer and user layer is constructed and the corresponding objective function is established. S2: The uncertainty of the dispatchable demand response power of EV vehicles is simulated by using the IGDT information gap decision theory method, and a deviation coefficient is introduced to construct a risk avoidance strategy model. S3: The robustness factor in the risk aversion strategy model is optimized using the CDO Chernobyl disaster optimizer algorithm; S4: Fuzzy normalization is performed on the two objective functions in the two-layer optimal scheduling model. The weighted summation of the load fluctuation satisfaction objective function and the optimized comprehensive operating cost satisfaction objective function is used to obtain the comprehensive satisfaction objective function. The solution of the comprehensive satisfaction objective function is transformed into the solution of the deviation coefficient. The PO parrot optimizer algorithm is used to solve the two-layer optimal scheduling model.
2. The electric vehicle orderly charging and discharging scheduling method according to claim 1, characterized in that, In step S1, the Monte Carlo sampling method is used to randomly sample the grid connection status of all EV vehicles in the studied microgrid area to determine the responsiveness of the orderly scheduling strategy for EV users in the area. The power required for charging and discharging of EVs under the orderly scheduling strategy is: ; ; ; In the formula, R(t) represents the response degree of the ordered scheduling policy for EV users at time t; R c (t), R f (t) represents the charging and discharging response of the ordered scheduling strategy for EV users at time t; S represents the total number of EV vehicles in the microgrid area; N c (t), N f (t) represents the number of EVs charging and discharging when EV users respond to the ordered scheduling strategy; P D (t), P L (t) represents the total load power at time t under disordered and ordered strategies, respectively; P L,c (t), P L,f (t) represents the power required for charging and discharging EV vehicles under the ordered strategy; , h represents the rated charging and discharging power of the i-th vehicle, respectively; s (t) = 1 indicates that the EV vehicle is in a charging state at this time; h s (t) = 0 indicates that the EV vehicle is stationary at this time.
3. The electric vehicle orderly charging and discharging scheduling method according to claim 2, characterized in that, In step S1, a distribution layer model is established in the main grid dispatch center for grid-side optimization. The distribution layer model takes minimizing the peak-valley difference fluctuation of the regional net load as its first objective function. ; ; In the formula, P j (t) represents the net load of the region at time t; P B (t), P EV (t) represents the base load and total EV charging / discharging power at time t, respectively; The user-layer model uses the minimum overall electricity cost for car owners as its second objective function. ; In the formula, N c,t and N f,t These represent the number of EVs charged and discharged within time t; P c,n (t) and P f,n (t) represents the charging and discharging power of EV at time t; p c,t and p f,t The charging and discharging charges of EV at time t are respectively; ξ c and ξ f These represent the charging and discharging efficiencies of EVs, respectively; C b The battery loss caused by EV discharge; Δt is the length of the unit control time period.
4. The electric vehicle orderly charging and discharging scheduling method according to claim 3, characterized in that, The power distribution layer model satisfies the following constraints during the optimization process: (1) Power balance constraint P S (t)=P B (t)+P EV In equation (t), P S (t) represents the power supply value from the substation to the charging pile at time t; P EV (t) represents the total charging and discharging power of the EV at time t; P B (t) represents the base load at time t; (2) EV charging and discharging power constraint P S (t) min ≤P EV (t)≤P S (t) max In the formula, P S (t) min and P S (t) max These represent the minimum and maximum power supply values from the substation to the charging pile, respectively; P EV (t) represents the total charging and discharging power of the EV at time t; (3) State of Charge (SOC) constraint for a single EV min ≤SOC(t)≤SOC max In the formula, SOC(t) represents the total state of charge of the EV at time t; SOC min SOC max These are the minimum and maximum values of the state of charge, respectively.
5. The electric vehicle orderly charging and discharging scheduling method according to claim 3, characterized in that, The user layer model satisfies the following constraints during the optimization process: (1) Charging and discharging power constraints of a single EV ; (2) Constraints on the charging and discharging time of a single EV ; In the formula, T n The time period for implementing orderly control strategies; T in,n T out,n These represent the times when the nth EV enters and leaves the power grid, respectively. (3) Constraint on the battery charge expectation of a single EV owner ; In the formula, α n The expected state of charge (SOC) of the EV set for vehicle owner n. n (t out,n ) represents the state of charge of the nth EV when it leaves the grid.
6. The electric vehicle orderly charging and discharging scheduling method according to claim 5, characterized in that, In S2, the IGDT (Information Gap Decision Theory) method is used to simulate the uncertainty of the dispatchable demand response power of EV vehicles, coordinate the charging and discharging power of electric vehicles, reduce the fluctuation of regional net load peak-valley difference and the comprehensive electricity cost of vehicle owners. The uncertainty model optimized by the IGDT method is as follows: ; In the formula, f(x,ν) is the objective function; x is the decision variable; m max The maximum value of the dispatchable demand response power of EV vehicles after introducing the deviation coefficient χ of the uncertainty; υ is the input parameter; h(x,ν) and g(x,ν) are the equality and inequality constraints, respectively; The expression for decision variable x: ; In the formula, is the predicted value of the dispatchable demand response power of EV vehicles in time period t; x is the actual value of the dispatchable demand response power of EV vehicles in time period t; χ is the deviation coefficient of the uncertainty. Let the decision variables be x0 and x1, and establish an optimization model for the uncertainties of EV vehicles: ; In the formula, O(x1,x)=0 and P(x0,x1)≤0 represent equality and inequality constraints, respectively; x0 and x1 are two different decision variables; a risk aversion strategy is adopted to seek the maximum uncertainty that the system can withstand while satisfying the objective function constraints, so as to improve the robustness of the model and the system's ability to avoid risks. The risk aversion strategy model constructed based on the IGDT information gap decision theory method is as follows: ; In the formula, F represents the maximum increase in dispatch costs due to uncertainties that the power grid can tolerate; b (1+κ)F is the baseline value for scheduling cost. b The expected value of scheduling costs for risk avoidance; κ is the robustness level factor; P S (t) represents the power supply value from the substation to the charging pile at time t; Let be the predicted value of the dispatchable demand response power of EV vehicles in time period t; let x be the actual value of the dispatchable demand response power of EV vehicles in time period t; Δχ and ΔF1 are the deviation coefficient and the fluctuation of operating costs, respectively. This is the marginal deviation coefficient.
7. The electric vehicle orderly charging and discharging scheduling method according to claim 1, characterized in that, In S3, the gradient descent process of α, β, and γ particles is calculated and transformed into a mathematical model, thereby optimizing important parameters in the risk aversion strategy model. Calculate the gradient descent factor v when alpha particles attack humans. α : ; ; ; ; ; ; In the formula, X α (t) represents the current position of the α particle; ρ α For the propagation of alpha particles; Δ α The position of the alpha particle after correction of the propagation area. Compared with the average of total locations The difference between them, x h The area of a circular region where people move around, S α Let A be the velocity of the alpha particle. α Let X be the circular area of the alpha particle propagation. T This represents the average of all positions; rand(0,1) represents a random number in the range [0,1]. Calculate the gradient descent factor v when a beta particle attacks a human. β : ; ; ; ; ; ; In the formula, X β (t) represents the current position of the β particle, ρ β Let Δ be the propagation parameter of the β particle. β The position of the β particle after correction of its propagation area. Compared with the average of total locations The difference between them, x h The area of a circular region where people move around, S β Let A be the velocity of the β particle. β Let X be the circular area of the propagation of the β particle. T The average value of all positions is given by , and rand(0,1) represents a random number in the range [0,1]. Calculate the gradient descent factor v of gamma particles attacking humans. γ : ; ; ; ; ; ; In the formula, X γ (t) represents the current position of the γ particle, ρ γ For the propagation of γ particles, Δ γ The position of the gamma particle after correction of the propagation area Compared with the average of total locations The difference between them, x h The area of a circular region where people move around, S γ Let A be the velocity of the γ particle. γ Let X be the circular area of the propagation of the gamma particle. T The average value of all positions is given by , and rand(0,1) represents a random number in the range [0,1]. The average total velocity of these particles is calculated using the equations of motion: ; The CDO (Chenobyl Catastrophic Optimizer) algorithm uses three radiating particles (α, β, and γ) to attack the risk avoidance strategy model, thereby optimizing the model's performance.
8. The electric vehicle orderly charging and discharging scheduling method according to claim 3, characterized in that, S4 includes the following steps: S41: Normalize the two objective functions using fuzzy membership functions: ; ; In the formula, , and , These represent the optimal values for overall operating costs and load demand fluctuations, as well as the highest and lowest values that the microgrid can accept, respectively; the elasticity satisfaction coefficients under different conditions are ρ1 and ρ2; y1 (F1) and y2 (F2) are the objective functions for satisfaction with overall operating costs and load fluctuations, respectively; S42: Transform the solution of F1 in the objective function into the solution of the deviation coefficient χ: ; In the formula, ρ3 represents the elasticity satisfaction; χ is the deviation coefficient; χ max y3 is the maximum deviation coefficient; y3 (F3) is the objective function for optimizing the overall operating cost satisfaction. S43: The overall satisfaction F, which is the weighted average of two satisfaction levels y2 (F2) and y3 (F3) assigned weight coefficients λ1 and λ2 respectively, is expressed as: ; In the formula, λ1, λ2 and y2 (F2), y3 (F3) are the weight coefficients and the objective functions of the two satisfaction levels being optimized, respectively; S44: The PO parrot optimizer algorithm is used to solve the two-layer optimization model. The PO parrot optimizer algorithm solves the optimization problem by simulating the key behaviors of a well-trained parrot, including the following steps: The solution for the two-layer optimization model is initialized using the following formula: ; In the formula, rand(0,1) represents a random number in the range [0,1]; lb and ub are the upper and lower limits of the solution of the overall satisfaction objective function, respectively; The foraging behavior process is represented as follows: ; ; In the formula, Indicates the current solution; This indicates the solution for subsequent updates; X represents the mean of the solutions; best This represents the current optimal solution; t is the iteration number; This represents the maximum number of iterations. It is a function of the Levy distribution, where dim represents the dimension; The functional formula for calculating the Levy distribution is: ; In the formula, and Let be the normally distributed random variables used to generate the Levy random step size, respectively satisfying and ; Levy distribution index A defined scaling factor; Γ is the Levy distribution index; Γ is the gamma function; dim is the dimension of the optimization variable; The process of dwelling behavior is represented as follows: ; In the formula, ones(1,dim) represents a vector of all 1s with dimension dim; The communication process can be represented as follows: ; In the formula, P is a probability value randomly generated within the range [0,1]. The process of shyness can be represented as follows: ; The PO parrot optimizer algorithm continuously simulates the foraging behavior, dwelling behavior, communication behavior, and shyness behavior of parrots to ultimately obtain the optimal solution of the two-layer optimization model.
9. A storage medium for computer-readable storage, characterized in that, The storage medium stores one or more programs, which can be executed by one or more processors to implement the steps of the electric vehicle orderly charging and discharging scheduling method according to any one of claims 1 to 8.
10. A storage device, characterized in that, The storage device includes a controller, a memory, a computer program stored in the memory and executable by the controller, and a data bus for enabling communication between the controller and the memory, wherein the computer program, when executed by the controller, implements the steps of the electric vehicle orderly charging and discharging scheduling method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Bidirectional charging intelligent management system for electric vehicle
CN117048408A
IGDT-based active distribution network scheduling method
CN110165666A
Alternating current charging pile and charging system based on ordered charging management
CN114537189A
