Electric vehicle ordered charging method based on elite genetic algorithm
Through the orderly charging method of electric vehicles based on the elite genetic algorithm, the problems of unstable grid load and resource waste caused by disordered charging of electric vehicles are solved, and the optimization of grid load and efficient utilization of charging facilities are achieved.
Patent Information
- Application Number
- CN202410978788.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-09-20
AI Technical Summary
The disorderly charging of electric vehicles leads to unstable grid load, increases the difficulty and cost of grid regulation, and uneven utilization of charging facilities, resulting in a waste of resources.
The orderly charging method of electric vehicles based on the elite genetic algorithm is adopted, and a hierarchical control strategy is used to establish an orderly charging mathematical model and a functional zone charging characteristic model for electric vehicles to optimize the load peak-valley difference, new energy consumption rate and charging costs to form Multi-objective optimization model to guide the orderly charging plan of electric vehicles.
It achieves the stability of the grid load, optimizes the grid load structure, promotes the consumption of renewable energy, avoids waste of resources, improves the matching of the layout of charging facilities, and improves the utilization efficiency of charging facilities.
Smart Images

Figure CN118665244A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of electric vehicle charging, and in particular to an electric vehicle orderly charging and discharging method based on an elite genetic algorithm. Background Art
[0002] Under the background that the continuous development of fuel vehicles has brought huge pressure on the environment and energy, electric vehicles with clean and efficient characteristics have been developing rapidly and become high-quality flexible resources. Due to the characteristics of electric vehicles themselves and the different protocol strategies when they are connected to the grid, the charging mode of electric vehicles can be divided into disordered charging mode and ordered charging mode. In the large-scale disordered charging mode, electric vehicles are equivalent to uncontrollable loads and cannot be dispatched. The only way to maintain power balance is to predict and model their loads and then dispatch other resources in the grid. With the increase in the number of electric vehicles, disordered charging may cause a sharp increase in the load of the power grid, especially during peak power consumption periods, which may cause power grid overload and affect the safe and stable operation of the power grid. In addition, the charging demand of electric vehicles overlaps with the peak power consumption period of residents, which will further aggravate the peak-to-valley difference of the power grid and increase the difficulty and cost of power grid regulation. Disordered charging cannot effectively use valley electricity for charging, and the price of valley electricity is relatively low. Therefore, electric vehicle users who charge disorderly may pay more for charging costs. Disordered charging may lead to uneven utilization of charging stations or charging piles, with some charging facilities being overused during peak hours and some facilities being idle for a long time, which not only reduces charging efficiency but also may lead to waste of charging facilities.
[0003] Therefore, the present invention considers orderly charging of electric vehicles. Orderly charging of electric vehicles means that electric vehicles can flexibly adjust the charging time or charging power during the parking time. The orderly charging scheduling strategies of electric vehicles are currently mainly centralized control and distributed control.
[0004] Centralized control means that a unified controller at the control center collects basic information of all electric vehicles and performs unified charging scheduling for all electric vehicles connected to the grid in combination with grid source and load information. For example: Reference (Wu Chenxi, Zhang Jie, Zhang Xinyan, et al. Evaluation of peak-shaving and valley-filling level of electric vehicles considering the impact of electricity prices [J]. Power System Protection and Control, 2019, 47(17): 14-22.) estimates the charging and discharging amount of electric vehicles from the perspective of energy balance, considers the impact of electricity prices on the charging and discharging of car owners, and optimizes the charging of electric vehicles by adopting a dynamic programming method with the goal of smoothing the load curve. Reference (Zhang Liang, Yan Zheng, Feng Donghan, et al. Orderly charging strategy in electric vehicle charging stations using a two-stage optimization model [J]. Power System Technology, 2014, 38(04): 967-973) Under the premise of meeting the capacity limit of the distribution network transformer and the charging needs of users, a first-stage optimization model with the maximum revenue of the charging station as the goal and a second-stage optimization model with the maximum incentive of the grid company for the peak-shaving effect are established. The two-stage centralized optimization balances the revenue between the grid company and the charging station. Centralized control is to have a unified controller to manage all electric vehicles connected to the network, and achieve the overall optimal goal while meeting user needs. However, centralized control has many limitations that are difficult to resolve. These limitations make it challenging both in terms of control difficulty and the willingness of car owners, and it is difficult to continue in future application scenarios.
[0005] The usual mode of distributed control is that the power grid does not directly participate in the control. Distributed control strategies are more efficient than centralized control. For example, the literature (Bahrami S, Wong VW S. A potential game framework for charging PHEVs in smart grid [C]. 2015 IEEE Pacific Rim Conference on Communications, Computers and Signal Processing (PACRIM). IEEE, 2015: 28-33) uses the potential game model of EV agents to equate the charging situation of electric vehicles, and reduces the charging peak caused by EV charging through this distributed model. However, in distributed control, complex communication and coordination are required between a large number of independent control units, which increases the overall complexity of the system. Summary of the invention
[0006] The purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art, and proposes an orderly charging method for electric vehicles based on an elite genetic algorithm to guide the orderly charging of electric vehicles, adopt a hierarchical control scheduling strategy, alleviate the uncertainty of new energy output and maintain the stability of the power grid load.
[0007] To achieve the above object, the technical solution provided by the present invention is: an orderly charging method for electric vehicles based on an elite genetic algorithm, comprising the following steps:
[0008] S1: A mathematical model for orderly charging of electric vehicles is established based on the charging demand and basic travel information of electric vehicles. The distribution network layer and the charging station layer are considered to construct a system architecture for orderly charging of electric vehicles. The basic travel information includes: target charging station, time of connecting to the charging pile, time of leaving the charging pile, state of charge of the electric vehicle when connecting to the charging pile, expected state of charge of the electric vehicle when leaving the charging pile, rated discharge power, rated charging power, lower limit of the state of charge of the electric vehicle, upper limit of the state of charge of the electric vehicle and rated capacity of the battery of the electric vehicle. In the distribution network layer, a distribution network controller is configured. The distribution network controller formulates a charging plan based on the charging demand of the charging station combined with the electricity price information and the optimization target, and then the charging station controller of the charging station layer sends the instruction to each electric vehicle. In the charging station layer, a charging station controller is configured. The charging station controller obtains the charging demand and basic travel information of the electric vehicle, calculates and summarizes it, and uploads it to the distribution network controller.
[0009] S2: Based on the time when each electric vehicle connects to and leaves the charging pile in the system architecture of orderly charging of electric vehicles, the electric vehicle charging mode is divided into residential charging and work charging, and the electric vehicle charging area is divided into residential area and work area accordingly. Thus, a charging response potential analysis framework for electric vehicles in different functional areas is constructed, and the charging characteristic model of electric vehicles in different functional areas is established;
[0010] S3: Based on the mathematical model of orderly charging of electric vehicles and the characteristic models of electric vehicles in different functional areas, three objectives are considered: minimum peak-to-valley difference of load, maximum new energy consumption rate and minimum charging cost. These three objectives are weighted to obtain the objective function of orderly charging of electric vehicles, thereby establishing a multi-objective optimization model for orderly charging of electric vehicles;
[0011] S4: An elite genetic algorithm is used to solve the multi-objective optimization model of orderly charging of electric vehicles, and an orderly charging plan for each electric vehicle is obtained. Finally, the charging station controller in the system architecture of orderly charging of electric vehicles sends the orderly charging plan instructions for each electric vehicle to each electric vehicle.
[0012] Further, in step S1, the electric vehicle orderly charging mathematical model is specifically as follows:
[0013]
[0014] Where P ev (t) is the charging power of the electric vehicle at time t, T in The time when the electric vehicle is connected to the charging pile, T outThe moment when the electric car leaves the charging station;
[0015] P ev (t)≤P ev.ch
[0016] Where P ev.ch is the rated charging power of the electric vehicle;
[0017] SOC min ≤SOC(t)≤SOC max
[0018] Where SOC(t) is the state of charge of the electric vehicle at time t; SOC min SOC is the lower limit of the state of charge of electric vehicles; max The upper limit of the state of charge of the electric vehicle;
[0019] SOC(T out )≥SOC exp
[0020] In the formula, SOC(T out ) is the state of charge of the electric vehicle when it leaves the charging station, SOC exp The state of charge that the electric vehicle owner expects to have when leaving the charging station;
[0021]
[0022] In the formula, SOC(t-1) is the state of charge of the electric vehicle at the moment before time t, η ev.ch is the charging efficiency of electric vehicles, E n is the rated capacity of the electric vehicle, and -t is the time interval.
[0023] Further, in step S2, the electric vehicle charging characteristic models of different functional areas are as follows:
[0024] a. For an electric vehicle in working charging mode, the owner connects the electric vehicle to the charging pile when arriving at the work area, and leaves the charging pile when leaving the work area after get off work. The probability density function of the time when the electric vehicle in working charging mode connects to the charging pile and leaves the charging pile is as follows:
[0025] The probability density function f(t ga ) is expressed as:
[0026]
[0027] Where, t ga Indicates the time when the electric vehicle is connected to the charging pile in the working charging mode, μ ga is the mean time when the electric vehicle is connected to the charging pile in the working charging mode; σga is the standard deviation of the time when the electric vehicle is connected to the charging pile in the working charging mode;
[0028] The probability density function f(t gl ) is expressed as:
[0029]
[0030] Where, t gl Indicates the moment when the electric vehicle leaves the charging pile in working charging mode; μ gl is the mean time when the electric vehicle leaves the charging pile in the working charging mode; σ gl is the standard deviation of the time when the electric vehicle leaves the charging pile in the working charging mode;
[0031] b. For electric vehicles in residential charging mode, when the owner returns to the residential area after work, the electric vehicle connects to the charging pile, and when the owner leaves the residential area for work, the electric vehicle leaves the charging pile. The probability density function of the time when the electric vehicle connects to the charging pile and leaves the charging pile in the residential charging mode is as follows:
[0032] The probability density function f(t ha ) is expressed as:
[0033]
[0034] Where, t ha Indicates the time when the electric vehicle is connected to the charging pile in the residential charging mode; μ ha is the mean time when electric vehicles are connected to charging piles in residential charging mode, σ ha is the standard deviation of the time when electric vehicles are connected to charging piles in the residential charging mode;
[0035] The probability density function f(t hl ) is expressed as:
[0036]
[0037] Where, t hl Indicates the moment when the electric vehicle leaves the charging pile in the residential charging mode; μ hl is the mean time when electric vehicles leave the charging pile in the residential charging mode; σ hl The standard deviation of the time when electric vehicles leave the charging station in residential charging mode;
[0038] c. Probability density function of daily mileage of electric vehicles f D (d) is expressed as:
[0039]
[0040] Where d is the daily mileage of the electric vehicle, μ D is the average daily mileage of electric vehicles, σ D is the standard deviation of the daily mileage of electric vehicles.
[0041] Further, in step S3, a multi-objective optimization model for orderly charging of electric vehicles is established, and the specific steps are as follows:
[0042] S31: Based on the mathematical model of orderly charging of electric vehicles and the characteristic models of electric vehicles in different functional areas, the load peak-to-valley difference is minimized, the new energy consumption rate is highest, and the charging cost is minimized, as follows:
[0043] a. Minimum load peak-to-valley difference
[0044] Assume that the total load in the park is P z Including base load P load and electric vehicle charging load P ev , then the total load P z It is expressed as:
[0045] P z =P ev +P load
[0046] Considering the renewable energy generation in the park, the net load P in the park is expressed as:
[0047] P=P z -P x
[0048] Where P x Provide new energy output for the park;
[0049] When there are many electric vehicles charging in the park, the charging load of the electric vehicles charged in a cluster will cause a large difference between the peak and valley values of the load of the entire park, resulting in a waste of resources and harm to the operation of the power grid. Therefore, the objective function F1 with the minimum peak-valley difference rate is established as:
[0050]
[0051] Where P max is the maximum net load of the park, P min is the minimum net load of the park;
[0052] b. The highest rate of new energy consumption
[0053] Considering the new energy power generation supply charging piles in the park, the pollutant emissions of vehicles in the park can be reduced. Therefore, the new energy consumption rate in the park should reach the highest level:
[0054]
[0055] In the formula, x i is the power generation of the new energy unit in the i-th period; e i is the charging demand of the electric vehicle in the i-th period; S1={i|1≤i≤n,e i ≥x i}, indicating that the amount of renewable energy power generation during this period is less than the charging demand of electric vehicles; S2 = {i|1≤i≤n,e i <x i}, indicating that the renewable energy power generation in this time period is greater than the charging demand of electric vehicles; n is the number of time periods, and λ is the consumption rate;
[0056] In order to facilitate data analysis, the new energy consumption rate index is converted into a very small index, and its objective function F2 is expressed as:
[0057] minF2=1-λ
[0058] c. The charging cost is the lowest
[0059] The setting of time-of-use electricity prices will make some users choose to charge during the off-peak hours when the electricity price is low, which reduces the cost of purchasing electricity from the upper power grid. At the same time, it reduces the load peak and thus alleviates the pressure on the power grid. The objective function F3 for minimizing the charging cost is expressed as:
[0060]
[0061] In the formula, π i is the electricity price in period i; ω is the average cost per kilowatt-hour of renewable energy power generation;
[0062] S32: The above three objectives are weighted to obtain the objective function F of orderly charging of electric vehicles:
[0063]
[0064] In the formula, F 1,max 、F 2,max 、F 3,max is the maximum value of each objective function, μ1, μ2, μ3 are the weighted coefficients of each objective function, and satisfy μ1+μ2+μ3=1. The size of the weighted coefficient is determined according to the importance of the objective during optimization.
[0065] Further, in step S4, an elite genetic algorithm is used to solve the multi-objective optimization model of orderly charging of electric vehicles and issued to each electric vehicle. The specific steps are as follows:
[0066] S41: Start, initialization phase, preparing all parameters and settings required for the algorithm to run;
[0067] S42: Setting the fitness function, i.e., the objective function of orderly charging of electric vehicles; setting the population size, crossover probability, mutation probability, and the threshold of the number of iterations;
[0068] S43: generating an initial population according to basic travel information of the electric vehicle when it is connected to the charging pile and calculating an initial fitness function value;
[0069] S44: Check the number of iterations. If the current number of iterations is less than the set iteration threshold, execute step S45; otherwise, jump to step S47;
[0070] S45: According to the crossover probability, randomly select individuals in the population to perform crossover operations to generate new offspring individuals; after the crossover, perform gene mutation operations according to the mutation probability to increase the diversity of the population;
[0071] S46: The individuals with high fitness in the parent generation, i.e., elite individuals, are retained according to a set ratio to replace the individuals with low fitness in the offspring generation to form the next generation population, and then jump to step S44;
[0072] S47: Output the individual with the largest fitness value, that is, the orderly charging plan of the electric vehicle. At this point, the algorithm ends and the result is output;
[0073] S48: The charging station controller in the system architecture for orderly charging of electric vehicles sends an orderly charging plan instruction for each electric vehicle to each electric vehicle.
[0074] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0075] 1. In the orderly charging mode, electric vehicles are equivalent to flexible loads and equivalent energy storage. They can give full play to the characteristics of flexible loads and equivalent energy storage, become high-quality flexible resources in the power grid, promote the consumption of renewable energy, make the net load more balanced, optimize the load structure of the power grid, and play the role of "peak shaving and valley filling".
[0076] 2. Establishing electric vehicle charging characteristic models for different functional areas can more accurately meet the charging needs of electric vehicles in each region, avoid waste and over-allocation of resources, and optimize the layout of charging facilities to ensure that the charging facilities match the charging needs of electric vehicles in terms of geographical location, quantity, type, etc.
[0077] 3. The proposed elite genetic algorithm solves the multi-objective optimization model of orderly charging of electric vehicles proposed in the present invention. Compared with the traditional genetic algorithm, it has better convergence, and also performs better in the optimization effect and has good stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] Figure 1 It is a system architecture diagram for orderly charging of electric vehicles.
[0079] Figure 2 It is a framework diagram for analyzing the charging response potential of electric vehicles in different functional areas.
[0080] Figure 3 It is a flowchart of solving the multi-objective optimization model of orderly charging of electric vehicles based on elite genetic algorithm. DETAILED DESCRIPTION
[0081] The present invention will be further described below in conjunction with embodiments and drawings, but the embodiments of the present invention are not limited thereto.
[0082] This embodiment discloses an orderly charging method for electric vehicles based on an elite genetic algorithm, and the specific implementation steps are as follows:
[0083] 1) A mathematical model for orderly charging of electric vehicles is established based on the charging demand and basic travel information of electric vehicles. The distribution network layer and the charging station layer are considered to construct a system architecture for orderly charging of electric vehicles. The basic travel information includes: target charging station, time of connecting to the charging pile, time of leaving the charging pile, state of charge of the electric vehicle when connecting to the charging pile, expected state of charge of the electric vehicle when leaving the charging pile, rated discharge power, rated charging power, lower limit of the state of charge of the electric vehicle, upper limit of the state of charge of the electric vehicle and rated capacity of the battery of the electric vehicle. In the distribution network layer, a distribution network controller is configured. The distribution network controller formulates a charging plan according to the charging demand of the charging station combined with the electricity price information and the optimization target, and then the charging station controller of the charging station layer sends the instruction to each electric vehicle. In the charging station layer, a charging station controller is configured. The charging station controller obtains the charging demand and basic travel information of the electric vehicle, calculates and summarizes it, and uploads it to the distribution network controller.
[0084] 2) According to the time when each electric vehicle connects to and leaves the charging pile in the system architecture of orderly charging of electric vehicles, the electric vehicle charging mode is divided into residential charging and work charging, and the electric vehicle charging area is divided into residential area and work area accordingly. In this way, a charging response potential analysis framework for electric vehicles in different functional areas is constructed, and electric vehicle charging characteristic models for different functional areas are established.
[0085] 3) Based on the mathematical model of orderly charging of electric vehicles and the characteristic models of electric vehicles in different functional areas, three objectives are considered: minimum peak-to-valley difference in load, maximum new energy consumption rate and minimum charging cost. These three objectives are weighted to obtain the objective function of orderly charging of electric vehicles, thereby establishing a multi-objective optimization model for orderly charging of electric vehicles.
[0086] 4) An elite genetic algorithm is used to solve the multi-objective optimization model of orderly charging of electric vehicles, and an orderly charging plan for each electric vehicle is obtained. Finally, the charging station controller in the system architecture of orderly charging of electric vehicles sends the orderly charging plan instructions of each electric vehicle to each electric vehicle.
[0087] The system architecture for orderly charging of electric vehicles can be found in Figure 1 As shown in the figure, the entire system framework is divided into a distribution network layer and a charging station layer. Both the distribution network layer and the charging station layer have controllers that can communicate and calculate. The charging station layer is located in a grid-connected microgrid and is connected to the upper distribution network. The charging station controller can obtain basic travel information such as the charging needs of electric vehicles, and upload it to the distribution network controller after calculation and summary. At the distribution network layer, the distribution network controller formulates a charging plan based on the charging needs of the charging station combined with electricity price information and its own optimization goals, and then the charging station controller issues instructions to each electric vehicle. In the orderly charging mode, the charging period and power of electric vehicles can be adjusted. The mathematical model of orderly charging of electric vehicles based on the charging needs and basic travel information of electric vehicles is as follows:
[0088]
[0089] Where P ev (t) is the charging power of the electric vehicle at time t, T in The time when the electric vehicle is connected to the charging pile, T out The moment when the electric car leaves the charging station;
[0090] P ev (t)≤P ev.ch
[0091] Where P ev.ch is the rated charging power of the electric vehicle;
[0092] SOC min ≤SOC(t)≤SOC max
[0093] Where SOC(t) is the state of charge of the electric vehicle at time t; SOC min SOC is the lower limit of the state of charge of electric vehicles; max The upper limit of the state of charge of the electric vehicle;
[0094] SOC(Tout )≥SOC exp
[0095] In the formula, SOC(T out ) is the state of charge of the electric vehicle when it leaves the charging station, SOC exp The state of charge that the electric vehicle owner expects to have when leaving the charging station;
[0096]
[0097] In the formula, SOC(t-1) is the state of charge of the electric vehicle at the moment before time t, η ev.ch is the charging efficiency of electric vehicles, E n is the rated capacity of the electric vehicle, -t is the time interval, which is set to 1 hour in the present invention.
[0098] In the system architecture of orderly charging of electric vehicles, the time when each electric vehicle connects to the charging pile and leaves the charging pile is used to divide the electric vehicle charging mode into residential charging and work charging. The electric vehicle charging area is divided into residential area and work area accordingly. Thus, a charging response potential analysis framework for electric vehicles in different functional areas is constructed, and the charging characteristic model of electric vehicles in different functional areas is established. Figure 2 The specific charging characteristic models of electric vehicles in different functional areas are as follows:
[0099] a. For an electric vehicle in working charging mode, the owner connects the electric vehicle to the charging pile when arriving at the work area, and leaves the charging pile when leaving the work area after get off work. The probability density function of the time when the electric vehicle in working charging mode connects to the charging pile and leaves the charging pile is as follows:
[0100] The probability density function f(t ga ) is expressed as:
[0101]
[0102] In the formula, t ga Indicates the time when the electric vehicle is connected to the charging pile in the working charging mode, μ ga is the mean time when the electric vehicle is connected to the charging pile in the working charging mode; σ ga is the standard deviation of the time when the electric vehicle is connected to the charging pile in the working charging mode;
[0103] The probability density function f(t gl ) is expressed as:
[0104]
[0105] In the formula, t glIndicates the moment when the electric vehicle leaves the charging pile in working charging mode; μ gl is the mean time when the electric vehicle leaves the charging pile in the working charging mode; σ gl is the standard deviation of the time when the electric vehicle leaves the charging pile in the working charging mode;
[0106] b. For electric vehicles in residential charging mode, when the owner returns to the residential area after work, the electric vehicle connects to the charging pile, and when the owner leaves the residential area for work, the electric vehicle leaves the charging pile. The probability density function of the time when the electric vehicle connects to the charging pile and leaves the charging pile in the residential charging mode is as follows:
[0107] The probability density function f(t ha ) is expressed as:
[0108]
[0109] In the formula, t ha Indicates the time when the electric vehicle is connected to the charging pile in the residential charging mode; μ ha is the mean time when electric vehicles are connected to charging piles in residential charging mode, σ ha is the standard deviation of the time when electric vehicles are connected to charging piles in the residential charging mode;
[0110] The probability density function f(t hl ) is expressed as:
[0111]
[0112] In the formula, t hl Indicates the moment when the electric vehicle leaves the charging pile in the residential charging mode; μ hl is the mean time when electric vehicles leave the charging pile in the residential charging mode; σ hl The standard deviation of the time when electric vehicles leave the charging station in residential charging mode;
[0113] c. Probability density function of daily mileage of electric vehicles f D (d) is expressed as:
[0114]
[0115] Where d is the daily mileage of the electric vehicle, μ D is the average daily mileage of electric vehicles, σ D is the standard deviation of the daily mileage of electric vehicles.
[0116] Based on the mathematical model of orderly charging of electric vehicles and the characteristic models of electric vehicles in different functional areas, the three objectives of minimum peak-to-valley difference, maximum new energy consumption rate and minimum charging cost are weighted to obtain the objective function of orderly charging of electric vehicles. Thus, a multi-objective optimization model of orderly charging of electric vehicles is established. The specific steps are as follows:
[0117] S31: Taking a large-scale park with a grid-connected microgrid as the background, considering the minimum peak-to-valley difference in load, the highest new energy consumption rate, and the lowest charging cost:
[0118] a. Minimum load peak-to-valley difference
[0119] Assume that the total load in the park is P z Including base load P load and electric vehicle charging load P ev , the total load can be expressed as:
[0120] P z =P ev +P load
[0121] Considering the renewable energy generation in the park, the net load P in the park is expressed as:
[0122] P=P z -P x
[0123] Where P x Provide new energy output for the park.
[0124] When there are a large number of electric vehicles charging in the park, the charging load of the electric vehicles charged in a cluster will cause a large difference between the peak and valley values of the load of the entire park, resulting in a waste of resources and harm to the operation of the power grid. Therefore, the objective function F1 with the minimum peak-valley difference rate is established as:
[0125]
[0126] Where P max is the maximum net load of the park, P min It is the minimum net load of the park.
[0127] b. The highest rate of new energy consumption
[0128] At present, it has become a trend to supply the charging demand of electric vehicles with new energy power generation, such as rooftop photovoltaics, etc. This trend has greatly promoted the development of renewable energy. Considering the new energy power generation supply charging piles in the park, it can reduce the pollutant emissions of vehicles in the park. Therefore, the new energy consumption rate in the park should reach the highest:
[0129]
[0130] In the formula, x i is the power generation of the new energy unit in the i-th period; e i is the charging demand of the electric vehicle in the i-th period; S1={i|1≤i≤n,e i ≥x i}, indicating that the amount of renewable energy power generation during this period is less than the charging demand of electric vehicles; S2 = {i|1≤i≤n,e i <x i}, indicating that the renewable energy power generation in this time period is greater than the charging demand of electric vehicles; n is the number of time periods, and λ is the consumption rate.
[0131] In order to facilitate data analysis, the new energy consumption rate index is converted into a very small index, and its objective function F2 is expressed as:
[0132] minF2=1-λ
[0133] c. The charging cost is the lowest
[0134] As charging consumers, electric car owners hope to meet their charging needs with the least possible charging cost. The setting of time-of-use electricity prices will make some users choose to charge during the low electricity consumption period when the electricity price is lower, reducing the cost of purchasing electricity from the upper power grid. At the same time, it reduces the load peak to a certain extent, thereby alleviating the pressure on the power grid. The objective function F3 for minimizing the charging cost is expressed as:
[0135]
[0136] In the formula, π i is the electricity price in period i; ω is the average cost per kilowatt-hour of renewable energy power generation.
[0137] S32: The above three objectives are weighted to obtain the objective function of orderly charging of electric vehicles:
[0138]
[0139] In the formula, F 1,max 、F 2,max 、F 3,max is the maximum value of each objective function, μ1, μ2, μ3 are weighted coefficients of each objective function, and μ1+μ2+μ3=1. The size of the weighted coefficient can be determined according to the importance of the objective during optimization.
[0140] The elite genetic algorithm is used to solve the multi-objective optimization model of orderly charging of electric vehicles and issue charging plans to each charger. The solution process is shown in Figure 3 As shown, the specific steps are as follows:
[0141] S41: Start, initialization phase, preparing all parameters and settings required for the algorithm to run.
[0142] S42: Set the fitness function, that is, the objective function of orderly charging of electric vehicles; set the population size, crossover probability, mutation probability and iteration number threshold.
[0143] S43: Generate an initial population based on the basic travel information of the electric vehicle when it is connected to the charging pile and calculate the initial fitness function value.
[0144] S44: Check the number of iterations. If the current number of iterations is less than the set iteration threshold, execute step S45; otherwise, jump to step S47.
[0145] S45: Perform crossover and mutation. According to the crossover probability, randomly select individuals in the population to perform crossover operations to generate new offspring individuals; after the crossover, perform gene mutation operations according to the mutation probability to increase the diversity of the population.
[0146] S46: Elite selection. Individuals with higher fitness in the parent generation, i.e. elite individuals, are retained at a certain ratio to replace individuals with lower fitness in the offspring generation to form the next generation population, and then jump to step S44.
[0147] S47: Output the individual with the largest fitness value, that is, the orderly charging plan of the electric vehicle. At this point, the algorithm ends and the result is output.
[0148] S48: The charging station controller in the system architecture for orderly charging of electric vehicles sends an orderly charging plan instruction for each electric vehicle to each electric vehicle.
[0149] The above description is only a preferred embodiment of the present invention and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in this application.
Claims
1. An orderly charging method for electric vehicles based on elite genetic algorithm, characterized in that: The following steps are involved: S1: A mathematical model for orderly charging of electric vehicles is established based on the charging demand and basic travel information of electric vehicles. The distribution network layer and the charging station layer are considered to construct a system architecture for orderly charging of electric vehicles. The basic travel information includes: target charging station, time of connecting to the charging pile, time of leaving the charging pile, state of charge of the electric vehicle when connecting to the charging pile, expected state of charge of the electric vehicle when leaving the charging pile, rated discharge power, rated charging power, lower limit of the state of charge of the electric vehicle, upper limit of the state of charge of the electric vehicle and rated capacity of the battery of the electric vehicle. In the distribution network layer, a distribution network controller is configured. The distribution network controller formulates a charging plan based on the charging demand of the charging station combined with the electricity price information and the optimization target, and then the charging station controller of the charging station layer sends the instruction to each electric vehicle. In the charging station layer, a charging station controller is configured. The charging station controller obtains the charging demand and basic travel information of the electric vehicle, calculates and summarizes it, and uploads it to the distribution network controller. S2: Based on the time when each electric vehicle connects to and leaves the charging pile in the system architecture of orderly charging of electric vehicles, the electric vehicle charging mode is divided into residential charging and work charging, and the electric vehicle charging area is divided into residential area and work area accordingly. Thus, a charging response potential analysis framework for electric vehicles in different functional areas is constructed, and the charging characteristic model of electric vehicles in different functional areas is established; S3: Based on the mathematical model of orderly charging of electric vehicles and the characteristic models of electric vehicles in different functional areas, three objectives are considered: minimum peak-to-valley difference of load, maximum new energy consumption rate and minimum charging cost. These three objectives are weighted to obtain the objective function of orderly charging of electric vehicles, thereby establishing a multi-objective optimization model for orderly charging of electric vehicles; S4: An elite genetic algorithm is used to solve the multi-objective optimization model of orderly charging of electric vehicles, and an orderly charging plan for each electric vehicle is obtained. Finally, the charging station controller in the system architecture of orderly charging of electric vehicles sends the orderly charging plan instructions for each electric vehicle to each electric vehicle.
2. The orderly charging method for electric vehicles based on elite genetic algorithm according to claim 1 is characterized in that: In step S1, the electric vehicle orderly charging mathematical model is as follows: Where P ev (t) is the charging power of the electric vehicle at time t, T in The time when the electric vehicle is connected to the charging pile, T out The moment when the electric car leaves the charging station; P ev (t)≤P ev.ch Where P ev.ch is the rated charging power of the electric vehicle; SOC min ≤SOC(t)≤SOC max Where SOC(t) is the state of charge of the electric vehicle at time t; SOC min SOC is the lower limit of the state of charge of electric vehicles; max The upper limit of the state of charge of the electric vehicle; SOC(T out )≥SOC exp In the formula, SOC(T out ) is the state of charge of the electric vehicle when it leaves the charging station, SOC exp The state of charge that the electric vehicle owner expects to have when leaving the charging station; In the formula, SOC(t-1) is the state of charge of the electric vehicle at the moment before time t, η ev.ch is the charging efficiency of electric vehicles, E n is the rated capacity of the electric vehicle, and Δt is the time interval.
3. The orderly charging method for electric vehicles based on elite genetic algorithm according to claim 1, characterized in that: In step S2, the electric vehicle charging characteristic models of different functional areas are as follows: a. For an electric vehicle in working charging mode, the owner connects the electric vehicle to the charging pile when arriving at the work area, and leaves the charging pile when leaving the work area after get off work. The probability density function of the time when the electric vehicle in working charging mode connects to the charging pile and leaves the charging pile is as follows: The probability density function f(t ga ) is expressed as: Where, t ga Indicates the time when the electric vehicle is connected to the charging pile in the working charging mode, μ ga is the mean time when the electric vehicle is connected to the charging pile in the working charging mode; σ ga is the standard deviation of the time when the electric vehicle is connected to the charging pile in the working charging mode; The probability density function f(t gl ) is expressed as: Where, t gl Indicates the moment when the electric vehicle leaves the charging pile in working charging mode; μ gl is the mean time when the electric vehicle leaves the charging pile in the working charging mode; σ gl is the standard deviation of the time when the electric vehicle leaves the charging pile in the working charging mode; b. For electric vehicles in residential charging mode, when the owner returns to the residential area after work, the electric vehicle connects to the charging pile, and when the owner leaves the residential area for work, the electric vehicle leaves the charging pile. The probability density function of the time when the electric vehicle connects to the charging pile and leaves the charging pile in the residential charging mode is as follows: The probability density function f(t ha ) is expressed as: Where, t ha Indicates the time when the electric vehicle is connected to the charging pile in the residential charging mode; μ ha is the mean time when electric vehicles are connected to charging piles in residential charging mode, σ ha is the standard deviation of the time when electric vehicles are connected to charging piles in the residential charging mode; The probability density function f(t hl ) is expressed as: Where, t hl Indicates the moment when the electric vehicle leaves the charging pile in the residential charging mode; μ hl is the mean time when electric vehicles leave the charging pile in the residential charging mode; σ hl The standard deviation of the time when electric vehicles leave the charging station in residential charging mode; c. Probability density function of daily mileage of electric vehicles f D (d) is expressed as: Where d is the daily mileage of the electric vehicle, μ D is the average daily mileage of electric vehicles, σ D is the standard deviation of the daily mileage of electric vehicles.
4. The orderly charging method for electric vehicles based on elite genetic algorithm according to claim 1, characterized in that: In step S3, a multi-objective optimization model for orderly charging of electric vehicles is established, and the specific steps are as follows: S31: Based on the mathematical model of orderly charging of electric vehicles and the characteristic models of electric vehicles in different functional areas, the load peak-to-valley difference is minimized, the new energy consumption rate is highest, and the charging cost is minimized, as follows: a. Minimum load peak-to-valley difference Assume that the total load in the park is P z Including base load P load and electric vehicle charging load P ev , then the total load P z It is expressed as: P z =P ev +P load Considering the renewable energy generation in the park, the net load P in the park is expressed as: P=P z -P x Where P x Provide new energy output for the park; When there are many electric vehicles charging in the park, the charging load of the electric vehicles charged in a cluster will cause a large difference between the peak and valley values of the load of the entire park, resulting in a waste of resources and harm to the operation of the power grid. Therefore, the objective function F1 with the minimum peak-valley difference rate is established as: Where P max is the maximum net load of the park, P min is the minimum net load of the park; b. The highest rate of new energy consumption Considering the new energy power generation supply charging piles in the park, the pollutant emissions of vehicles in the park can be reduced. Therefore, the new energy consumption rate in the park should reach the highest level: In the formula, x i is the power generation of the new energy unit in the i-th period; e i is the charging demand of the electric vehicle in the i-th period; S1={i|1≤i≤n,e i ≥x i }, indicating that the amount of renewable energy power generation during this period is less than the charging demand of electric vehicles; S2 = {i|1≤i≤n,e i <x i }, indicating that the renewable energy power generation in this time period is greater than the charging demand of electric vehicles; n is the number of time periods, and λ is the consumption rate; In order to facilitate data analysis, the new energy consumption rate index is converted into a very small index, and its objective function F2 is expressed as: minF2=1-λ c. The charging cost is the lowest The setting of time-of-use electricity prices will make some users choose to charge during the off-peak hours when the electricity price is low, which reduces the cost of purchasing electricity from the upper power grid. At the same time, it reduces the load peak and thus alleviates the pressure on the power grid. The objective function F3 for minimizing the charging cost is expressed as: In the formula, π i is the electricity price in period i; ω is the average cost per kilowatt-hour of renewable energy power generation; S32: The above three objectives are weighted to obtain the objective function F of orderly charging of electric vehicles: In the formula, F 1,max 、F 2,max 、F 3,max is the maximum value of each objective function, μ1, μ2, μ3 are the weighted coefficients of each objective function, and satisfy μ1+μ2+μ3=1. The size of the weighted coefficient is determined according to the importance of the objective during optimization.
5. The orderly charging method for electric vehicles based on elite genetic algorithm according to claim 1, characterized in that: In step S4, an elite genetic algorithm is used to solve the multi-objective optimization model of orderly charging of electric vehicles and issued to each electric vehicle. The specific steps are as follows: S41: Start, initialization phase, preparing all parameters and settings required for the algorithm to run; S42: Setting the fitness function, i.e., the objective function of orderly charging of electric vehicles; setting the population size, crossover probability, mutation probability, and the threshold of the number of iterations; S43: generating an initial population according to basic travel information of the electric vehicle when it is connected to the charging pile and calculating an initial fitness function value; S44: Check the number of iterations. If the current number of iterations is less than the set iteration threshold, execute step S45; otherwise, jump to step S47; S45: According to the crossover probability, randomly select individuals in the population to perform crossover operations to generate new offspring individuals; after the crossover, perform gene mutation operations according to the mutation probability to increase the diversity of the population; S46: The individuals with high fitness in the parent generation, i.e., elite individuals, are retained according to a set ratio to replace the individuals with low fitness in the offspring generation to form the next generation population, and then jump to step S44; S47: Output the individual with the largest fitness value, that is, the orderly charging plan of the electric vehicle. At this point, the algorithm ends and the result is output; S48: The charging station controller in the system architecture for orderly charging of electric vehicles sends an orderly charging plan instruction for each electric vehicle to each electric vehicle.
