A method for dispatching urban and rural electric buses based on mobile battery packs
Through the urban and rural electric bus dispatching method based on mobile battery packs, the problems of short driving range and long charging time of electric bus vehicles are solved, and electric bus vehicles can be charged while driving, reducing operating costs and service interruptions, and improving efficiency. System operating efficiency.
Patent Information
- Application Number
- CN202210317495.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-29
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-03-29
AI Technical Summary
Urban and rural electric bus vehicles have short driving range, long charging time, and high operating costs, resulting in service interruptions and low system operation efficiency.
An urban and rural electric bus dispatching method based on mobile battery packs is adopted. By defining electric bus line parameters, calculating the minimum number of vehicles and charging strategies, optimizing charging time and energy consumption, and combining with a multi-stage algorithm to optimize the number and location of mobile battery packs, electric buses can be realized The car charges while driving.
It increases the continuous operation time of electric bus vehicles, reduces the number of vehicles required on the line, reduces operating costs, improves charging freedom and system operating efficiency, and avoids service interruptions due to insufficient power.
Smart Images

Figure CN114611993B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method for dispatching urban and rural electric public buses, and belongs to the field of electric public bus operation management. Background Art
[0002] As an emerging public transportation tool, electric buses are gradually being used in urban and rural bus routes. However, pure electric buses still have limitations such as short driving range and long charging time. Urban and rural bus routes have the characteristics of large departure intervals, long travel time and scattered stations. Electric buses are prone to service interruptions due to insufficient power during operation. The traditional charging strategy is to use charging piles to charge the bus after returning to the station. In this case, the charging time is long, which affects the operating efficiency of the bus system and may increase the number of buses required for the route.
[0003] In order to solve the problem of short driving range and long charging time of electric vehicles, a portable mobile battery pack for electric vehicles has been invented. Bus companies can charge the mobile battery pack during the low electricity price period at night. During the day, when the bus is low on power, the mobile battery pack can be hung in a fixed position on the rear side of the electric vehicle, so that the electric bus can be charged while driving, saving charging time and improving system operation efficiency.
[0004] However, existing studies have not considered integrating mobile battery packs with urban and rural electric bus operations. Summary of the invention
[0005] The purpose of the present invention is to solve the problems of short driving range, long charging time and high operating cost of existing urban and rural electric buses, and to propose an urban and rural electric bus dispatching method based on a mobile battery pack.
[0006] A method for dispatching urban and rural electric buses based on mobile battery packs. The specific process is as follows:
[0007] Step 1: Definition and expression of urban and rural electric bus route parameters;
[0008] Step 2: Calculate the minimum number of electric buses required to meet the line operation needs;
[0009] Step 3: Set up the electric bus charging strategy;
[0010] Step 4: Calculate the charging time of the electric bus;
[0011] Step 5: Calculate the remaining power of the electric bus;
[0012] Step 6: Calculate the energy consumption of electric bus operation;
[0013] Step 7: Calculate the travel time of the electric bus;
[0014] Step 8: Based on steps 1 to 7, establish an optimization model;
[0015] Step 9: Solve the optimization model and output the optimal solution of the model.
[0016] The beneficial effects of the present invention are:
[0017] The present invention proposes an urban and rural electric bus dispatching method based on a mobile battery pack to solve the defects of short driving range, long charging time and high operating cost of urban and rural electric buses, thereby increasing the continuous operation time of electric buses, thereby reducing the number of vehicles required for the route and reducing the operating cost of bus companies.
[0018] There are often supermarkets and convenience stores near bus stops where urban and rural bus routes pass through villages and towns. Bus companies can place mobile battery packs in supermarkets and convenience stores near the stops. When the bus arrives at these stops and the battery is low, the bus driver hangs the mobile battery pack on the back of the bus for charging. When returning to the stop again, the mobile battery pack is returned. It can be seen that the use of mobile battery packs to charge urban and rural buses can greatly increase the freedom of charging without affecting the normal operation of urban and rural bus routes, thereby solving the defect of short driving range of urban and rural electric buses, avoiding service interruptions caused by insufficient power during operation, and saving the operating costs of the lines.
[0019] The present invention proposes a method for dispatching urban and rural electric buses based on mobile battery packs, which solves the problems of service interruption caused by insufficient power during the operation of urban and rural electric buses, long charging time and short driving range. The implementation steps are to define basic parameters and model optimization variables, calculate the minimum number of electric buses that meet the needs of line operation, set electric bus charging strategies, calculate the charging time of electric buses, calculate the remaining power of electric buses, calculate the operating energy consumption of electric buses, calculate the travel time of electric buses for executing shifts, and take the minimum operating energy consumption of electric buses and the minimum number of mobile battery packs throughout the day as the goal, and take the scheduling and charging scheduling scheme of electric buses and the location of mobile battery packs as decision variables to establish an optimization model, and establish a multi-stage algorithm to optimize the number and location of mobile battery packs and combine and solve the scheduling of electric buses. The urban and rural bus dispatching method proposed by the present invention can not only reduce the number of vehicles required for the operation of urban and rural bus lines and save the operating costs of the lines, but also save charging time, increase the degree of freedom of charging, and improve the operating efficiency of the system. The present invention combines mobile battery packs with the operation of urban and rural electric buses, which is of great significance for enriching and improving the dispatching scheme of urban and rural buses. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION
[0021] Specific implementation method 1: This implementation method is a method for dispatching urban and rural electric buses based on a mobile battery pack. The specific process is as follows:
[0022] Step 1: Definition and expression of urban and rural electric bus route parameters;
[0023] Step 2: Calculate the minimum number of electric buses required to meet the line operation needs;
[0024] Step 3: Set up the electric bus charging strategy;
[0025] Step 4: Calculate the charging time of the electric bus;
[0026] Step 5: Calculate the remaining power of the electric bus;
[0027] Step 6: Calculate the energy consumption of electric bus operation;
[0028] Step 7: Calculate the travel time of the electric bus;
[0029] Step 8: Based on steps 1 to 7, establish an optimization model;
[0030] Step 9: Solve the optimization model and output the optimal solution of the model.
[0031] Specific implementation method 2: This implementation method is different from the specific implementation method 1 in that the parameters of the urban and rural electric bus routes in step 1 are defined and expressed; the specific process is as follows:
[0032] An electric bus line has I stations in one direction of travel (upward or downward) (i.e., the number of stations in a single trip of a bus line);
[0033] It is defined that the electric bus starts from station 1 and goes to terminal station I as the upward direction; the opposite direction is the downward direction;
[0034] Let i represent the bus stop, 1≤i≤I;
[0035] Assume that an electric bus line is equipped with M mobile battery packs and K electric buses in all directions;
[0036] M mobile battery packs are placed at the same bus stop on the electric bus line. The bus stop where the mobile battery pack is placed is numbered as i. γ ; There are N upward directions every day u There are N flights in the down direction d flights; Upward flight number n u (n u =1,2,...,Nu ), Downward flight number n d (n d =1,2,...,N d ) are arranged in ascending order of departure time;
[0037] Arrange all N shifts in the day according to 1, 2, ..., n u ,...,N u ,...,N u +n d ,...,N, where:
[0038] N=N u +N d (1)
[0039] Using 0-1 variables represents the relationship between vehicle k (k = 1, 2, 3, ..., K) and shift n (n = 1, 2, ..., N). If vehicle k performs shift n, then is 1, otherwise is 0;
[0040] Use 0-1 variable y i represents the relationship between the mobile battery pack and site i. If the mobile battery pack is located at site i, then y i is 1, otherwise y i is 0;
[0041] Using 0-1 variables Indicates that vehicle k arrives at station i during shift n γ Does it need to be charged? is 1, otherwise is 0;
[0042] is the set of trips served by electric bus k, C k The number of trips performed for electric bus k;
[0043] According to the timetable, At time t, electric bus k is executing trip n and arrives at station i γ , where shift n is also the g-th shift that electric bus k performs on that day (for example, there are 8 buses on a bus route, and these 8 buses need to perform 80 shifts in total throughout the day, The meanings are as follows: n=15, k=2 means that the electric bus 2 performs shift 15, which is the number among the 80 shifts to be performed throughout the day; g=2 means that shift 15 is the second shift performed by the electric bus 2);
[0044] E is the number of passengers arriving at station i during N shiftsγ The time is arranged in ascending order. If the up and down trains arrive at station i γ The time of the up train is the same, and the up train arrives at station i γ The moments are arranged first;
[0045] 0-1 variables Indicates the usage status of mobile battery pack m at time t. If mobile battery pack m is occupied, is 0; otherwise is 1;
[0046] tm represents the end time when the mobile battery pack m is occupied;
[0047] t m The initial value is 0.
[0048] The other steps and parameters are the same as those in the first embodiment.
[0049] Specific implementation method three: This implementation method is different from specific implementation methods one or two in that the minimum number of electric buses that meet the line operation requirements is calculated in step two; the specific process is:
[0050] According to the travel time and departure interval in the up and down directions of the line, the minimum number of electric buses K that meets the line operation needs is calculated:
[0051]
[0052] Where: T s T is the travel time of the upward direction of the line, in minutes; x is the travel time of the downline service, in min; H is the departure interval of the line, in min; ceil is the upward rounding function.
[0053] The other steps and parameters are the same as those in the first or second embodiment.
[0054] Specific implementation method 4: This implementation method is different from any one of the specific implementation methods 1 to 3 in that the electric bus charging strategy is set in step 3; the specific process is:
[0055] The charging of electric buses with charging needs is arranged according to the principle of first come first served, that is, according to the order of the elements in the set E. Check whether the electric bus k needs to be charged at this time; if it needs to be charged, select Mobile battery pack for charging electric bus at station i γ The number of mobile battery packs M placed at station i is large enough and the electric bus γTake the mobile battery pack m to charge the electric bus, and return the mobile battery pack m to the station i after use γ ;
[0056] Electric bus k performs trip n and arrives at station i γ The SOC is The shift n is also the g-th shift that the electric bus k performs on that day; SOC1 and SOC2 are the upper and lower SOC thresholds for determining whether the electric bus needs to be charged;
[0057] when When it is less than SOC2, it needs to be charged, that is:
[0058]
[0059] when When SOC is greater than 1, no charging is required; if shift n is the last shift C performed by electric bus k k , no need to charge, that is:
[0060]
[0061] when When in the range [SOC2, SOC1], charging is possible.
[0062] The other steps and parameters are the same as those in Specific Embodiments 1 to 3.
[0063] Specific implementation method 5: This implementation method is different from any one of the specific implementation methods 1 to 4 in that the charging time of the electric bus is calculated in step 4; the specific process is:
[0064] The state of the mobile battery pack m at any time As shown below:
[0065]
[0066] The end time t when the mobile battery pack m is occupied m Iterative formula and remaining capacity SOC of mobile battery pack m m The calculation formulas are shown in formula (6) and formula (7); if SOC m = 0, and t m Set to ∞;
[0067]
[0068] Where: For electric buses Time until the next arrival at station i γThe travel time is in min;
[0069]
[0070] Where: τ k,g (n) is the charging time of the electric bus k when it starts charging during the execution of shift n, where shift n is also the g-th shift executed by the electric bus k on that day, in minutes;
[0071] The ratio of the remaining power of the mobile battery pack m to the power consumed by the electric bus k is β, and the calculation formula is as follows:
[0072]
[0073] Where: B is the battery capacity of the electric bus, in kWh, V is the battery capacity of the mobile battery pack, in kWh;
[0074] The charging time τ of electric bus k when it starts charging during shift n k,g (n) The calculation formula is as follows:
[0075]
[0076] Where: P is the charging power of the mobile battery pack (kW).
[0077] (The initial charge value of the mobile battery pack is known, namely SOC m The initial value is a fixed value of 1. When calculating the charging time of an electric bus, the given SOC m Substitute the value into formula (9) to obtain τ k,g (n), in the subsequent calculation process, the previously calculated τ k,g Substitute (n) into formula (7) to obtain SOC m , calculated iteratively in sequence.)
[0078] The other steps and parameters are the same as those in Specific Embodiments 1 to 4.
[0079] Specific implementation method 6: This implementation method is different from any one of the specific implementation methods 1 to 5 in that the remaining power of the electric bus is calculated in step 5; the specific process is:
[0080] Since the bus driver is at the stop i γ Take the mobile battery pack m to charge the electric bus, and return the mobile battery pack m to the station i after use γ ; Therefore, the charging time τ of electric bus k when it starts charging during the execution of shift n k,g (n) is divided into the charging time during the operation of shift n Charging time during shift n' operation Two parts, where shift n is also the g-th shift performed by electric bus k on the day, and shift n' is the g+1-th shift performed by electric bus k on the day;
[0081] The calculation formula is as follows:
[0082]
[0083] Where: For electric bus k, the trip n starts from station i γ The travel time to station I, in minutes; For electric bus k, the trip n starts from station i γ The travel time to station 1, in minutes;
[0084] The calculation formula is as follows:
[0085]
[0086] The electric bus k performs the trip n' and leaves the station i γ The calculation formula of SOC is as shown in formula (12);
[0087]
[0088] Where: SOC k,g+1 (n') is the battery SOC (%) when the electric bus k leaves the starting station for the trip n';
[0089] The trip n' performed by electric bus k runs from station 1 to station i γ The energy consumption required, in kWh; The trip n' performed by electric bus k runs from station I to station i γ The energy consumption required, in kWh; shift n' is also the g+1th shift performed by electric bus k on that day;
[0090] The calculation formula of the battery SOC when the electric bus k leaves the starting station for the shift n' is as shown in formula (13), where the shift n' is also the g+1th shift performed by the electric bus k on that day;
[0091]
[0092] Where: For electric bus k, the trip n starts from station i γThe energy consumption required to run to site 1, in kWh; For electric bus k, the trip n starts from station i γ Energy consumption required to run to site I, in kWh.
[0093] The other steps and parameters are the same as those in Specific Implementation Methods 1 to 5.
[0094] Specific implementation method 7: This implementation method is different from any one of the specific implementation methods 1 to 6 in that the energy consumption of the electric bus is calculated in step 6; the specific process is:
[0095] The estimated formula for the running energy consumption of the electric bus k between station i and station j during the shift n is as shown in formula (14), where the shift n is also the g-th shift performed by the electric bus k on that day;
[0096]
[0097] Where: and is the regression coefficient estimator; The mileage of the electric bus k between the stations i and j during the trip n, in km; is the observed value of the curb weight of the electric bus k between stations i and j during the trip n, in kg; is the travel time of electric bus k from station i to station j in trip n, in min; is the absolute value of the difference between the average ambient temperature between stations i and j corresponding to the shift n performed by electric bus k and the optimal operating temperature of the electric bus, in °C; is the average ambient temperature between stops i and j during trip n performed by electric bus k, in °C; is the optimal operating temperature between stations i and j for the electric bus k on shift n, in °C; shift n is also the g-th shift performed by the electric bus k on that day;
[0098] The observed value of the curb weight of the electric bus k during the trip n between stations i and j The calculation formula is as shown in formula (15);
[0099]
[0100] Where: Z is the curb weight of the electric bus, in kg; is the mass of passengers on the electric bus between stations i and j during the trip n performed by the electric bus k, in kg; Z M is the weight of the mobile battery pack, in kg;
[0101] In step 7, the travel time of the electric bus is calculated; the specific process is:
[0102] The travel time T of trip n performed by electric bus k k,g The calculation formula of (n) is as follows:
[0103]
[0104] Where: The travel time of electric bus k for trip n from station i to station i+1, in minutes.
[0105] The other steps and parameters are the same as those in Specific Embodiments 1 to 6.
[0106] Specific implementation eight: This implementation is different from one of the specific implementations one to seven in that in step eight, an optimization model is established based on steps one to seven; the specific process is as follows:
[0107] The goal is to minimize the energy consumption of electric buses throughout the day and the number of mobile battery packs. y i Build a model for the decision variables to optimize the vehicle scheduling and charging scheduling plan, that is, the set of shifts A(k) executed by electric bus k, the charging plan D, and the site i where the mobile battery pack is placed γ And the minimum number of mobile battery packs M.
[0108]
[0109] min M (18)
[0110]
[0111]
[0112]
[0113]
[0114]
[0115]
[0116] Where: W is the energy consumption of electric bus k in full-day operation; is the energy consumption required for the electric bus k to run between station i and station i+1 in trip n, in kWh; M is the number of mobile battery packs; W k,g(n) is the energy consumption of electric bus k for the operation of shift n, in kWh; t k,g (n) is the departure time of the electric bus k at the departure station; t k,g+1 (n') is the departure time of the electric bus k at the departure station for the trip n'; k,g (n) is the distance between the starting time of the trip n executed by the electric bus k and the starting station of the trip n, in meters;
[0117] Formula (17) represents minimizing the energy consumption of electric bus k throughout the day;
[0118] Formula (18) represents minimizing the number of mobile battery packs M;
[0119] Formula (19) indicates that there is only one electric bus serving each shift;
[0120] Formula (20) indicates that the mobile battery pack is placed at only one bus stop;
[0121] Formula (21) represents the power constraint that should be met during the operation and dispatch of electric buses, that is, to ensure that the remaining power of the electric bus k when the g-th shift leaves the starting station is greater than the power required for the electric bus to run the g-th shift;
[0122] Formula (22) indicates that vehicle scheduling should satisfy the constraints of the operation schedule, that is, the starting time of the g+1th shift of electric bus k is not less than the sum of the starting time of the gth shift and the travel time of the gth shift;
[0123] Formula (23) represents the idle distance constraint, which means that the g-th trip of electric bus k starts at the starting station of the corresponding up / down trip;
[0124] Formula (24) represents the decision variable y i It is a 0-1 variable.
[0125] The objective function in (17) Calculated by formula (14), yes A special form of represents the energy consumption of the trip between station i and station i+1, It represents the energy consumption of the trip between station i and station j, when j is i+1 and are equal, both represent the energy consumption of the trip between station i and station i+1. j can also be i+2, i+3, etc. represents the energy consumption of the trip between station i and station i+2 or i+3, and Are not equal. In formula (14) It needs to be calculated by formula (15) and formula (16). The calculation results of formula (15) and formula (16) are determined by the decision variables.
[0126] The other steps and parameters are the same as those in Specific Embodiments 1 to 7.
[0127] Specific implementation method 9: This implementation method is different from any one of specific implementation methods 1 to 8 in that the optimization model is solved in step 9 and the optimal solution of the model is output; the specific process is as follows:
[0128] A multi-stage algorithm is used to solve the optimization model;
[0129] Firstly, the implicit enumeration method is used to determine the placement of the mobile battery pack. Secondly, the genetic algorithm with elite retention strategy is used to solve the electric bus vehicle dispatching and charging scheduling problems under the feasible placement of specific mobile battery packs. Finally, the minimum number of mobile battery packs under the optimal vehicle dispatching and charging scheme is obtained by optimization.
[0130] Step 1: Determine the mobile battery pack placement location i by implicit enumeration method; there are a total of I feasible locations for mobile battery pack placement in the model;
[0131] Step 2: For each feasible mobile battery pack placement location, use genetic algorithm to solve the optimal vehicle scheduling and charging plan;
[0132] Step 3: Return the optimal vehicle dispatching scheme and charging scheme corresponding to the feasible locations of different mobile battery packs to the implicit enumeration method;
[0133] Step 4: Compare the objective function values of all feasible locations for placing mobile battery packs; select the best solution, output the optimal location for placing the mobile battery pack and the corresponding optimal vehicle scheduling solution and charging solution;
[0134] Step 5: Search for the SOC of the mobile battery pack under the optimal vehicle scheduling and charging scheme. If it is not 1, it means that it has been used by the electric bus. The number of mobile battery packs whose SOC is not 1 is the minimum number of mobile battery packs under the optimal vehicle scheduling and charging scheme M. * .
[0135] Output the optimal solution of the model:
[0136] Output the optimal vehicle scheduling and charging scheduling plan, that is, the set of shifts A(k) executed by electric bus k * 、Charging solution D * And the site where the mobile battery pack is placed γ * and the minimum number of mobile battery packs M * .
[0137] The other steps and parameters are the same as those in Specific Embodiments 1 to 8.
[0138] Specific implementation method 10: This implementation method is different from the specific implementation methods 1 to 9 in that, in Step 2, a genetic algorithm is used to solve the optimal vehicle scheduling plan and charging plan for each feasible mobile battery pack placement position; the specific process is:
[0139] Step 2.1: Initialize variables and population; the process is:
[0140] Real number coding is used. There are N shifts in the timetable. Each chromosome represents the scheduling scheme with different arrangements of 1-K. Inserting S represents the charging start event, and inserting G represents the charging end event. After removing the charging start event and the charging end event, the gene value of chromosome position n is k, indicating that shift n is executed by electric bus k.
[0141] For example, chromosome [235S 16485G…] indicates that electric bus 2 performs shift 1, electric bus 3 performs shift 2, and electric bus 5 performs shift 3, and in the process of performing shift 3, it stops at station i. γ The mobile battery pack is taken away for charging. Electric bus 1 performs shift 4, electric bus 6 performs shift 5, electric bus 4 performs shift 6, electric bus 8 performs shift 7, and electric bus performs shift 8. During the execution of shift 8, at station i γ Return the mobile battery pack.
[0142] Set the population size to R and the maximum number of iterations to Q; use the greedy algorithm to generate an initial good feasible solution and randomly generate an initial feasible solution consisting of x1, x2, ..., x r ,...,x R , let the current number of iterations q be 0.
[0143] Step 2.1.1: Set the population size to R, the maximum number of iterations to Q, and the current number of iterations q to 0. Select electric bus 1 to serve shift 1. If electric bus 1 meets the constraints of serving shift 2 (Formulas (21), (22), and (23)), then electric bus 1 will continue to serve shift 2. Otherwise, add electric bus 2 to serve shift 2. Add the electric buses that have already performed the shift task to the set {F}. Select the electric bus in {F} that meets the constraints to serve the next shift. If there is no electric bus that meets the constraints, add electric bus k to serve the next shift and add it to the set {F}. Generate a better feasible solution for the initial vehicle scheduling.
[0144] The constraints are formulas (21), (22), and (23);
[0145] Step 2.1.2: Randomly insert charging events; the process is:
[0146] Inserting S indicates the charging start event, and inserting G indicates the charging end event;
[0147] Step 2.1.3: Generate a better initial feasible solution based on Step 2.1.1 and Step 2.1.2;
[0148] Step 2.2: Calculate the fitness value of the initial feasible solution generated in Step 2.1.3;
[0149] The fitness value is calculated through the fitness function ( Medium r Elite Solution e and non-elite solutions c , r is taken as 1-R, R is the population size);
[0150] Fitness function The objective function of the initial feasible solution generated in Step 2.1.3 The inverse of (Formula (17)):
[0151]
[0152]
[0153] The feasible solution corresponding to the maximum fitness value is taken as the elite solution x e , and are retained; the rest are non-elite solutions x c ;
[0154] Using roulette to solve non-elite c The selection probability of an individual is proportional to the value of its fitness function, and it is retained after selection;
[0155]
[0156] In the formula, is the individual's selection probability;
[0157] Step 2.3: If q = Q, go to Step 3 and replace the optimal solution of the current group (elite solution x e ) is approximately the optimal solution; if q<Q, go to Step 2.4;
[0158] Step 2.4: Copy the elite solution x in the current group e Initialize and generate q+1 generation population;
[0159] Step 2.5: Crossover; the process is:
[0160] With crossover probability P c Solution for non-elites c Perform single-point crossover, that is, randomly set a crossover point in the chromosome, and the genetic structures of the two individuals after this point are exchanged to generate two new individuals;
[0161] A solution is an individual, and the genetic structure is the structure encoded by the chromosome described in Step 2.1, for example [23 5S 16485G…];
[0162] Step 2.6: Mutation; the process is:
[0163] With mutation probability P m The population after crossover is mutated, that is, one or more gene points on each chromosome are set as the mutation starting point, and the mutation end point with the same number as the mutation point is randomly selected, and the gene at the mutation starting point is deleted from the original position and inserted after the mutation end point;
[0164] Step 2.7: q=q+1, update the population, and return to Step 2.2.
[0165] The other steps and parameters are the same as those in Specific Embodiments 1 to 9.
[0166] The present invention may also have many other embodiments. Without departing from the spirit and essence of the present invention, those skilled in the art may make various corresponding changes and modifications based on the present invention, but these corresponding changes and modifications should all fall within the scope of protection of the claims attached to the present invention.
Claims
1. A method for dispatching urban and rural electric public buses based on mobile battery packs, characterized in that: The specific process of the method is: Step 1: Definition and expression of urban and rural electric bus route parameters; Step 2: Calculate the minimum number of electric buses required to meet the line operation needs; Step 3: Set up the electric bus charging strategy; Step 4: Calculate the charging time of the electric bus; Step 5: Calculate the remaining power of the electric bus; Step 6: Calculate the energy consumption of electric bus operation; Step 7: Calculate the travel time of the electric bus; Step 8: Based on steps 1 to 7, establish an optimization model; Step 9: Solve the optimization model and output the optimal solution of the model; The definition and expression of urban and rural electric bus line parameters in step 1; the specific process is: An electric bus line has I stations in one direction of operation; It is defined that the electric bus starts from station 1 and goes to terminal station I as the upward direction; the opposite direction is the downward direction; Let i represent the bus stop, 1≤i≤I; Assume that an electric bus line is equipped with M mobile battery packs and K electric buses in all directions; M mobile battery packs are placed at the same bus stop on the electric bus line. The bus stop where the mobile battery pack is placed is numbered as i. γ ; There are N upward directions every day u There are N flights in the down direction d flights; Upward flight number n u (n u =1,2,...,N u ), Downward flight number n d (n d =1,2,...,N d ) are arranged in ascending order of departure time; Arrange all N shifts in the day according to 1, 2, ..., n u ,...,N u ,...,N u +n d ,...,N, where: N=N u +N d (1) Using 0-1 variables represents the relationship between vehicle k (k = 1, 2, 3, ..., K) and shift n (n = 1, 2, ..., N). If vehicle k performs shift n, then is 1, otherwise is 0; Use 0-1 variable y i represents the relationship between the mobile battery pack and site i. If the mobile battery pack is located at site i, then y i is 1, otherwise y i is 0; Using 0-1 variables Indicates that vehicle k arrives at station i during shift n γ Does it need to be charged? is 1, otherwise is 0; is the set of trips served by electric bus k, C k The number of trips performed for electric bus k; According to the timetable, At time t, electric bus k is executing trip n and arrives at station i γ , where shift n is also the g-th shift performed by electric bus k on that day; E is the number of passengers arriving at station i during N shifts γ The time is arranged in ascending order. If the up and down trains arrive at station i γ The time of the up train is the same, and the up train arrives at station i γ The moments are arranged first; 0-1 variables Indicates the usage status of mobile battery pack m at time t. If mobile battery pack m is occupied, is 0; otherwise is 1; t m Indicates the end time when the mobile battery pack m is occupied; t m The initial value is 0; In step 2, the minimum number of electric buses required to meet the line operation needs is calculated; the specific process is: According to the travel time and departure interval in the up and down directions of the line, the minimum number of electric buses K that meets the line operation needs is calculated: Where: T s T is the travel time of the upward direction of the line, in minutes; x is the travel time of the down-bound train on the line, in min; H is the departure interval of the line, in min; ceil is the upward rounding function; In step 3, the electric bus charging strategy is set; the specific process is: The charging of electric buses with charging needs is arranged according to the principle of first come first served, that is, according to the order of the elements in the set E. Check whether the electric bus k needs to be charged at this time; if it needs to be charged, select The mobile battery pack of 1 charges the electric bus; the electric bus is at station i γ Take the mobile battery pack m to charge the electric bus, and return the mobile battery pack m to the station i after use. γ ; Electric bus k performs trip n and arrives at station i γ The SOC is The shift n is also the g-th shift that the electric bus k performs on that day; SOC1 and SOC2 are the upper and lower SOC thresholds for determining whether the electric bus needs to be charged; when When it is less than SOC2, it needs to be charged, that is: when When SOC is greater than 1, no charging is required; if shift n is the last shift C performed by electric bus k k , no need to charge, that is: when When in the interval [SOC2, SOC1], charging is possible; In step eight, an optimization model is established based on steps one to seven; the specific process is as follows: minM(18) Where: W is the energy consumption of electric bus k in full-day operation; is the energy consumption required for the electric bus k to run between station i and station i+1 in trip n, in kWh; M is the number of mobile battery packs; W k,g (n) is the energy consumption of electric bus k for the operation of shift n, in kWh; t k,g (n) is the departure time of the electric bus k at the departure station; t k,g+1 (n') is the departure time of the electric bus k at the departure station for the trip n'; k,g (n) is the distance between the starting time of the electric bus k and the starting station of the bus n, in meters; T k,g (n) is the travel time of trip n performed by electric bus k; Formula (17) represents minimizing the energy consumption of electric bus k throughout the day; Formula (18) represents minimizing the number of mobile battery packs M; Formula (19) indicates that there is only one electric bus serving each shift; Formula (20) indicates that the mobile battery pack is placed at only one bus stop; Formula (21) represents the power constraint that should be met during the operation and dispatch of electric buses, that is, to ensure that the remaining power of the electric bus k when the g-th shift leaves the starting station is greater than the power required for the electric bus to run the g-th shift; Formula (22) indicates that vehicle scheduling should satisfy the constraints of the operation schedule, that is, the starting time of the g+1th shift of electric bus k is not less than the sum of the starting time of the gth shift and the travel time of the gth shift; Formula (23) represents the idle distance constraint, which means that the g-th trip of electric bus k starts at the starting station of the corresponding up / down trip; Formula (24) represents the decision variable y i It is a 0-1 variable.
2. According to claim 1, a method for dispatching urban and rural electric public buses based on mobile battery packs is characterized by: In the step 4, the charging time of the electric bus is calculated; The specific process is: The state of the mobile battery pack m at any time As shown below: The end time t when the mobile battery pack m is occupied m Iterative formula and remaining capacity SOC of mobile battery pack m m The calculation formulas are shown in formula (6) and formula (7); if SOC m = 0, and t m Set to ∞; Where: For electric buses Time until the next arrival at station i γ The travel time is in min; Where: τ k,g (n) is the charging time of the electric bus k when it starts charging during the execution of shift n, where shift n is also the g-th shift executed by the electric bus k on that day, in minutes; The ratio of the remaining power of the mobile battery pack m to the power consumed by the electric bus k is β, and the calculation formula is as follows: Where: B is the battery capacity of the electric bus, in kWh, V is the battery capacity of the mobile battery pack, in kWh; The charging time τ of electric bus k when it starts charging during the execution of shift n k,g (n) The calculation formula is as follows: Where: P is the charging power of the mobile battery pack (kW).
3. According to claim 2, a method for dispatching urban and rural electric public buses based on mobile battery packs is characterized in that: In step 5, the remaining power of the electric bus is calculated; the specific process is: The bus driver is at the stop γ Take the mobile battery pack m to charge the electric bus, and return the mobile battery pack m to the station i after use γ ; The charging time τ of electric bus k when it starts charging during the execution of shift n k,g (n) is divided into the charging time during the operation of shift n Charging time during shift n' operation Two parts, where shift n is also the g-th shift performed by electric bus k on the day, and shift n' is the g+1-th shift performed by electric bus k on the day; The calculation formula is as follows: Where: For electric bus k, the trip n starts from station i γ The travel time to station I, in minutes; For electric bus k, the trip n starts from station i γ The travel time to station 1, in minutes; The calculation formula is as follows: The electric bus k performs the trip n' and leaves the station i γ The calculation formula of SOC is as shown in formula (12); Where: SOC k,g+1 (n') is the battery SOC (%) when the electric bus k leaves the starting station for the trip n'; The trip n' performed by electric bus k runs from station 1 to station i γ The required energy consumption in kWh; The trip n' performed by electric bus k runs from station I to station i γ The energy consumption required, in kWh; shift n' is also the g+1th shift performed by electric bus k on that day; The calculation formula of the battery SOC when the electric bus k leaves the starting station for the shift n' is as shown in formula (13), where the shift n' is also the g+1th shift performed by the electric bus k on that day; Where: For electric bus k, the trip n starts from station i γ The energy consumption required to run to site 1, in kWh; For electric bus k, the trip n starts from station i γ Energy consumption required to run to site I, in kWh.
4. The method for dispatching urban and rural electric public buses based on mobile battery packs according to claim 3 is characterized in that: In step 6, the running energy consumption of the electric bus is calculated; the specific process is: The estimated formula for the running energy consumption of the electric bus k between station i and station j during the shift n is as shown in formula (14), where the shift n is also the g-th shift performed by the electric bus k on that day; Where: and is the regression coefficient estimator; The mileage of the electric bus k between the stations i and j during the trip n, in km; is the observed value of the curb weight of the electric bus k between stations i and j during the trip n, in kg; is the travel time of electric bus k from station i to station j in trip n, in min; is the absolute value of the difference between the average ambient temperature between stations i and j corresponding to the shift n performed by electric bus k and the optimal operating temperature of the electric bus, in °C; is the average ambient temperature between stops i and j during trip n performed by electric bus k, in °C; is the optimal operating temperature between stations i and j for the electric bus k on shift n, in °C; shift n is also the g-th shift performed by the electric bus k on that day; The observed value of the curb weight of the electric bus k during the trip n between stations i and j The calculation formula is as shown in formula (15); Where: Z is the curb weight of the electric bus, in kg; is the mass of passengers on the electric bus between stations i and j during the trip n performed by the electric bus k, in kg; Z M is the weight of the mobile battery pack, in kg; In the step 7, the travel time of the electric bus is calculated; The specific process is: The travel time T of trip n performed by electric bus k k,g The calculation formula of (n) is as follows: Where: The travel time of electric bus k for trip n from station i to station i+1, in minutes.
5. The method for dispatching urban and rural electric public buses based on mobile battery packs according to claim 4 is characterized in that: In step nine, the optimization model is solved and the optimal solution of the model is output; the specific process is: Step 1: Determine the mobile battery pack placement location i by implicit enumeration method; there are a total of I feasible locations for mobile battery pack placement in the model; Step 2: For each feasible mobile battery pack placement location, use genetic algorithm to solve the optimal vehicle scheduling and charging plan; Step 3: Return the optimal vehicle dispatching scheme and charging scheme corresponding to the feasible locations of different mobile battery packs to the implicit enumeration method; Step 4: Compare the objective function values of all feasible locations for placing mobile battery packs; select the best solution, and output the optimal location for placing the mobile battery pack and the corresponding optimal vehicle scheduling solution and charging solution; Step 5: Search for the SOC of the mobile battery pack under the optimal vehicle scheduling and charging scheme. If it is not 1, it means that it has been used by the electric bus. The number of mobile battery packs whose SOC is not 1 is the minimum number of mobile battery packs under the optimal vehicle scheduling and charging scheme M. * .
6. The method for dispatching urban and rural electric public buses based on mobile battery packs according to claim 5, characterized in that: In Step 2, for each feasible mobile battery pack placement location, a genetic algorithm is used to solve the optimal vehicle scheduling plan and charging plan; the specific process is: Step 2.1: Initialize variables and population; the process is: Step 2.1.1: Set the population size to R, the maximum number of iterations to Q, and the current number of iterations q to 0. Select electric bus 1 to serve shift 1. If electric bus 1 meets the constraint of serving shift 2, electric bus 1 will continue to serve shift 2. Otherwise, add electric bus 2 to serve shift 2. Add electric buses that have already performed shift tasks to the set {F}. Select electric buses in {F} that meet the constraints to serve the next shift. If there is no electric bus that meets the constraints, add electric bus k to serve the next shift and add it to the set {F}. Generate a feasible solution for the initial vehicle scheduling. The constraints are formulas (21), (22), and (23); Step 2.1.2: Randomly insert charging events; the process is: Inserting S indicates the charging start event, and inserting G indicates the charging end event; Step 2.1.3: Generate an initial feasible solution based on Step 2.1.1 and Step 2.1.2; Step 2.2: Calculate the fitness value of the initial feasible solution generated in Step 2.1.3; The fitness value is calculated through the fitness function Calculated; Fitness function Step 2.1.3 Objective function of the generated initial feasible solution The reciprocal of: The feasible solution corresponding to the maximum fitness value is taken as the elite solution x e , and are retained; the rest are non-elite solutions x c ; Using roulette to solve non-elite c The selection probability of an individual is proportional to the value of its fitness function, and it is retained after selection; In the formula, is the individual's selection probability; Step 2.3: If q = Q, go to Step 3 and approximate the optimal solution of the current group as the optimal solution; if q < Q, go to Step 2.4; Step 2.4: Copy the elite solution x in the current group e Initialize and generate q+1 generation population; Step 2.5: Crossover; the process is: With crossover probability P c Solution for non-elites c Perform single-point crossover, that is, randomly set a crossover point in the chromosome, and the genetic structures of the two individuals after this point are exchanged to generate two new individuals; Step 2.6: Mutation; the process is: With mutation probability P m The population after crossover is mutated, that is, one or more gene points on each chromosome are set as mutation starting points, and the mutation end points with the same number as the mutation points are randomly selected, and the genes at the mutation starting points are deleted from the original positions and inserted after the mutation end points; Step 2.7: q=q+1, update the population, and return to Step 2.2.
