A vehicle dispatching method for electric bus lines under the influence of charging facility sharing strategy
By constructing an electric bus vehicle dispatching optimization model, the impact of shared charging facilities between electric buses and electric cars on bus line vehicle dispatching was solved, the charging facility utilization rate and bus company profits were improved, and vehicle dispatching and charging plans were optimized.
Patent Information
- Application Number
- CN202210129377.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-11
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-02-11
AI Technical Summary
Existing vehicle dispatching methods fail to effectively consider the impact of shared charging facilities between electric buses and electric cars on bus line vehicle dispatching, resulting in low utilization of charging facilities, prominent charging contradictions for electric cars, and possible increase in line operating costs.
This paper proposes a vehicle dispatching method for electric bus lines under the influence of charging facility sharing strategy. By collecting basic data, defining variables, calculating operating costs, waiting time costs and charging benefits, an electric bus dispatching optimization model is constructed and the model is solved to optimize vehicle dispatching. plan.
It effectively alleviates the charging contradiction of electric cars, improves the utilization rate of charging facilities, increases the charging revenue of bus companies, and comprehensively considers the charging needs of electric buses and electric cars, optimizing vehicle dispatching and charging plans.
Smart Images

Figure CN114462864B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of urban traffic management, and specifically is a method for dispatching electric bus line vehicles under the influence of a charging facility sharing strategy. Background Art
[0002] Electric buses have limited driving range. In order to ensure the normal operation of electric bus lines, in addition to charging at night, bus companies will deploy a small number of charging facilities at the starting stations of the lines to facilitate electric buses to recharge during the day. However, due to the departure frequency of electric bus lines and the time-of-use electricity price policy, charging facilities are obviously idle during some periods, and resources are seriously wasted. At the same time, with the increase in the number of electric cars, the demand for charging is growing rapidly, but the number of public electric car charging facilities is limited, and charging is difficult. The charging facility sharing strategy refers to sharing the charging facilities of buses with electric cars for a fee during certain periods. In the scenario of charging facility sharing, the charging needs of electric buses and electric cars are comprehensively considered, and the sharing plan of the line and the dispatch plan of electric buses are coordinated and optimized. This can not only maximize the system benefits while ensuring the normal operation of the bus lines, but also alleviate the charging contradictions of electric cars and improve the utilization rate of charging facilities.
[0003] The existing vehicle dispatching method does not consider the impact of shared charging facilities between electric buses and electric cars on the vehicle dispatching problem of bus lines. When the charging piles are used by electric cars, electric buses with less power on the line may not be able to charge in time, which will affect the integrity and punctuality of the bus line service. In addition, it is necessary to regulate the use rights of charging piles in different time periods, that is, charging piles cannot be provided to buses and cars at the same time in one time period. The start and end times of bus charging need to be limited to the time period when the bus can use the charging facilities. Bus companies need to adjust the vehicle dispatching plan and charging plan, which may lead to an increase in line operating costs. In order to solve the above problems, the present invention proposes a vehicle dispatching method for electric bus lines under the influence of a charging facility sharing strategy. Summary of the invention
[0004] The purpose of the present invention is to solve the problems of low utilization rate of existing electric bus charging facilities, prominent contradictions in charging electric cars, and the existing vehicle scheduling method being no longer applicable after the implementation of the charging facility sharing strategy, and to propose a vehicle scheduling method for electric bus lines under the influence of the charging facility sharing strategy.
[0005] The specific process of the electric bus line vehicle dispatching method under the influence of a charging facility sharing strategy is as follows:
[0006] Step 1: Collect basic data;
[0007] Step 2: Define variables;
[0008] Step 3: Calculate the operating cost of the electric bus line based on steps 1 and 2;
[0009] Step 4: Calculate the waiting time cost of the electric car based on steps 1 and 2;
[0010] Step 5: Calculate the charging revenue of the bus company based on steps 1 and 2;
[0011] Step 6: Construct an electric bus dispatch optimization model based on steps 3, 4 and 5;
[0012] Step 7: Solve the electric bus dispatch optimization model constructed in step 6.
[0013] The beneficial effects of the present invention are:
[0014] The electric bus line vehicle scheduling method under the influence of the charging facility sharing strategy proposed in the present invention can not only effectively alleviate the charging contradiction of electric cars, improve the utilization rate of charging facilities, and increase the charging income of bus companies, but also comprehensively consider the charging demand of electric buses and electric cars. It can be expanded and applied to different seasons of the same line or other bus lines, providing a reference for the sharing plan of charging facilities, the scheduling plan of electric buses and the coordinated optimization of charging plans. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION
[0016] Specific implementation method 1: In this implementation method, a method for dispatching electric bus lines under the influence of a charging facility sharing strategy has the following specific processes:
[0017] Step 1: Collect basic data;
[0018] Step 2: Define variables;
[0019] Step 3: Calculate the operating cost of the electric bus line based on steps 1 and 2;
[0020] Step 4: Calculate the waiting time cost of the electric car based on steps 1 and 2;
[0021] Step 5: Calculate the charging income of the bus company based on steps 1 and 2;
[0022] Step 6: Construct an electric bus dispatch optimization model based on steps 3, 4 and 5;
[0023] Step 7: Solve the electric bus dispatch optimization model constructed in step 6.
[0024] Specific implementation method 2: This implementation method is different from the specific implementation method 1 in that basic data is collected in step 1; the specific process is:
[0025] 1.1. According to the electric bus line departure schedule, determine the daily service trip number i, i = 1, 2, ..., I, and the departure time of trip i is recorded as D i ;
[0026] The definition of an electric bus is a charging trip from the start to the end of charging, denoted by r, r = 1, 2, ..., R, R is the total charging trip;
[0027] 1.2. Let k represent the kth electric bus, k = 1, 2, ..., K, K is the total number of electric buses;
[0028] n represents the nth line station, n=1,2,…,N, N represents all line stations;
[0029] The number of charging guns deployed at the starting station of the line is recorded as S, the charging power of electric buses is recorded as b, and the average charging power of electric cars is recorded as B;
[0030] Set the safe range of the battery state of charge of the electric bus to [δ2,δ1];
[0031] 1.3. Based on the principle that the electricity price and bus departure interval in each time window remain unchanged, the whole day operation time is divided into q time windows, q = 1, 2, ..., Q, and the duration, start time and end time of each time window are recorded as τ q , and E.T. q ;
[0032] 1.4. The average arrival rate of electric cars coming to charge within the statistical time window q is (number of vehicles arriving per hour), the average amount of electricity that electric cars need to replenish in time window q is The variance is
[0033] The number of electric cars allowed to queue up at the departure station is counted, denoted as HS, where H represents the sum of the number of electric cars allowed to queue up and the number of charging guns.
[0034] The other steps and parameters are the same as those in the first embodiment.
[0035] Specific implementation method three: This implementation method is different from specific implementation methods one or two in that variables are defined in step 2; the specific process is:
[0036] Let variable z q ∈{0,1},z q=0 means that the type of vehicle allowed to be charged within the time window q is an electric bus, z q =1 means that the type of vehicle allowed to be charged within the time window q is an electric car;
[0037] Let the variable Indicates that electric bus k starts service trip i at time t, otherwise
[0038] Let the variable If electric bus k starts charging trip r at time t, otherwise
[0039] Let the variable It indicates that the kth electric bus is not available to serve any trip at time t, otherwise it is 0.
[0040] The other steps and parameters are the same as those in the first or second embodiment.
[0041] 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 line operation cost is calculated based on step 1 and step 2 in step 3; the specific process is:
[0042] 3.1. Use formula (1) to estimate the remaining battery power of electric bus k at any time t and t+1:
[0043]
[0044] Where: and are the remaining battery power of electric bus k at time t and time t+1, kWh; is the average power consumption of electric bus k in service trip i, kWh; is the charging amount of electric bus k during charging trip r, kWh;
[0045] 3.2. Calculate the charge amount of electric bus k during charging trip r And charging time T k,r :
[0046]
[0047]
[0048]
[0049] Where: is the rated capacity of the battery of electric bus k, kWh; For electric buses The remaining battery power at the moment, kWh; for The end time of the charging time window q′ of the electric bus, Time window q′ is the last time window among the consecutive time windows that only allow electric buses to charge, that is, z q = 0 and z q+1 =1 corresponds to time window q; The starting time of charging trip r for electric bus k;
[0050] 3.3. Calculate the average daily purchase cost Z1 of the electric bus line according to formula (5);
[0051]
[0052]
[0053] Where: C k is the unit purchase cost of electric bus k, RMB; γ k is the number of electric buses required for full-day operation, γ k ≤K, as shown in formula (6); Y k is the life span of the electric bus k, days;
[0054] 3.4. Calculate the total charging cost Z2 during the daily operation time of the electric bus line. The calculation method is as follows:
[0055]
[0056]
[0057] Where: is the unit charging cost of the electric bus in the time window q, which is equal to the unit electricity price in the corresponding time window, yuan / kWh; T k,r,q is the charging time of the charging trip r of the electric bus k within the time window q, min, as shown in formula (8).
[0058] The other steps and parameters are the same as those in Specific Embodiments 1 to 3.
[0059] Specific implementation method 5: This implementation method is different from any one of the specific implementation methods 1 to 4 in that the waiting time cost of the electric car is calculated based on step 1 and step 2 in step 4; the specific process is:
[0060] 4.1. Calculation of service intensity ρ q , estimate the average queue length E of electric cars in time window q q (L queue) and the average waiting time E q (T waiting ):
[0061]
[0062]
[0063]
[0064] Where: P q,j is the probability that there are j electric cars waiting to be charged in the time window q; P q,0 is the probability that there is no electric car waiting for charging in the time window q, and ζ is an intermediate variable;
[0065] Calculation of P q,j With P q,0 , as shown in formula (12) and formula (13):
[0066]
[0067]
[0068] Where: Φ G is an intermediate variable;
[0069] 4.3. Calculation of Φ G , the formula is as follows:
[0070]
[0071]
[0072]
[0073]
[0074] Where: Φ D is an intermediate variable; is the intermediate variable, is an intermediate variable; g(ρ q ) is an intermediate variable;
[0075] 4.4. Calculate the waiting time cost Z3 of the electric car using formula (18) and formula (19):
[0076]
[0077]
[0078] Where: C Tis the unit waiting time cost of electric cars, RMB / car / h; τ′ q The length of time that vehicles are not allowed to queue up in the charging time window of electric cars, min; the time window q″ is a continuous number of z q =1 corresponds to the last time window in the time window set, that is, z q =1 and z q+1 = The time window q corresponding to 0; is the average arrival rate of electric cars in the time window q″, vehicles / h; E q″ (T waiting ) is the average waiting time of the electric car in the time window q″, h.
[0079] The other steps and parameters are the same as those in Specific Embodiments 1 to 4.
[0080] Specific implementation method 6: This implementation method is different from the specific implementation methods 1 to 5 in that the charging income of the bus company is calculated based on step 1 and step 2 in step 5; the specific process is:
[0081] Formula (20) is used to calculate the charging profit Z4 of electric cars during the full-day operation time:
[0082]
[0083] Where: is the unit price of electric car service fee in time window q, yuan; τ″ q is the shortest charging time of the electric car, min, i.e., the last τ″ of the charging time window of the electric car q min does not allow newly arrived cars to enter the departure station to charge.
[0084] The other steps and parameters are the same as those in Specific Implementation Methods 1 to 5.
[0085] Specific implementation method 7: This implementation method is different from any one of the specific implementation methods 1 to 6 in that in step 6, an electric bus dispatch optimization model is constructed based on steps 3, 4 and 5; the specific process is:
[0086] 6.1. The optimization objectives are to minimize the daily average purchase cost of electric bus lines, the total charging cost of electric bus lines during daily operation time, the waiting time cost of electric cars, and to maximize the charging income of bus companies, as shown in formula (21):
[0087] min Z=Z1+Z2+Z3-Z4 (21)
[0088] 6.2. Set constraints, as shown in formulas (22) to (30):
[0089]
[0090]
[0091]
[0092]
[0093]
[0094]
[0095] ET q″ -ET q′ ≥β (28)
[0096]
[0097]
[0098] Where: T min is the shortest charging time for electric buses, min; β is a constant, and the recommended value is 120min; is the remaining battery capacity of electric bus k at the start of daily operation, kWh; T k,i is the travel time of service trip i; variable Indicates that electric bus k Start service trip i at any time, otherwise variable If the electric bus k Start the charging trip at time r, otherwise ET q″ is the end time of time window q″; ET q′ is the end time of time window q′; D k,i is the departure time of trip i.
[0099] The other steps and parameters are the same as those in Specific Embodiments 1 to 6.
[0100] Specific implementation eight: This implementation is different from any one of the specific implementations one to seven in that the electric bus dispatch optimization model constructed in step 6 is solved in step 7; the specific process is:
[0101] 7.1. Initializing z q (q=1,2,…,Q, 2 in total Q +1 arrangement method), let g = 1; set the initial node list, the initial node list is empty;
[0102] 7.2. Define the initial column set (The initial column set is the union of the subsets of the vehicle scheduling and charging solution sets for each vehicle), and the feasible vehicle scheduling and charging solution set is used as the root node of the branch and bound tree;
[0103] Put the root node into the node list (initial node list);
[0104] Let X * Record the current optimal feasible solution, Record the corresponding optimal objective function value;
[0105] The column set ψ includes a set of feasible vehicle scheduling and charging solutions (the ones that satisfy constraint formulas (22)-(30) are feasible vehicle scheduling and charging solutions) and a set of infeasible vehicle scheduling and charging solutions;
[0106] For all possible vehicle dispatch and charging solutions for electric bus k, is a subset of all possible vehicle scheduling and charging schemes;
[0107] 7.3. Let the number of iterations l = 0, let
[0108] Decompose the original problem (21)-(30) into the restriction main problem and the pricing sub-problem;
[0109] Define the variable ε θ(k) ∈{0,1}, if and only if the vehicle dispatch and charging plan θ(k) of electric bus k is used to solve the restricted master problem, ε θ(k) =1, otherwise 0,
[0110] 7.4. Solve the current parent node's restricted main problem and obtain the optimal solution (the solution is the electric bus vehicle dispatching plan and charging plan) and the target value, which are recorded as X (l) and
[0111] 7.5. Calculate the pricing sub-problem and determine whether there is a vehicle scheduling solution that makes the objective function of the pricing sub-problem negative. If so, add the vehicle scheduling solution to the restricted main problem and return to step 7.4. Otherwise, proceed to step 7.6.
[0112] 7.6. Judgment:
[0113] if And X (l) For the original problem, it is not feasible, so go to step 7.7;
[0114] if And X (l) If the original problem is feasible, then update X * =X (l) , prune the node (corresponding to the current parent node in 7.4), and go to step 7.9;
[0115] if Prune the node (corresponding to the current parent node in 7.4) and go to step 7.9;
[0116] 7.7. Optimal Solution to the Restricted Main Problem When the Current Condition Does Not Satisfy 0-1 Integers In, look for The one with the value closest to 0.5;
[0117] For the one closest to 0.5 Construct two constraints ε θ(k) =1 (left child) and ε θ(k) =0(right child node); θ(k) =1 is the left child node; ε θ(k) =0 is the right child node;
[0118] 7.8. Activate the left child node as the new current parent node, and set l = l + 1;
[0119] Add the right child node to the current node list and set the lower limit of the right child node to Return to step 7.4;
[0120] 7.9. If the node list that needs to be branched currently still contains node elements, set the node with the smallest lower limit in the node list (each node has a lower limit value) as the current parent node, set l = l + 1, and return to step 7.4;
[0121] If the node list that needs to branch is empty, output the optimal objective function value And corresponding electric bus vehicle dispatching plan and charging plan X * , execute step 7.10;
[0122] 7.10. Record the vehicle dispatching plan and charging plan of electric bus k under the g-th charging facility sharing feasible plan, and obtain the optimal charging time within the time window q according to the vehicle dispatching plan and charging plan of electric bus k under the g-th charging facility sharing feasible plan
[0123] 7.11. Update z q (q=1,2,…,Q,z q Change the permutation combination, for example (0,1,1,0,0,1,1,0), let g=g+1;
[0124] 7.12. Determine whether g is less than 2 Q+1; if yes, go to step 7.13, otherwise go to step 7.14;
[0125] 7.13. Determine the updated z q Whether constraint (28) is satisfied, if yes, go to step 7.2; otherwise go to step 7.11;
[0126] 7.14. Use formula (31) and formula (32) to calculate the optimal charging facility sharing plan;
[0127] min Z=min{Z(1),Z(2),...,Z(g),...,Z(G′)}(31)
[0128]
[0129] Where: Z(g) is the total cost of the g-th charging facility sharing feasible solution, RMB, 1≤g≤2 Q +1; are the waiting time cost of electric cars, the charging income of bus companies and the average daily purchase cost of electric bus lines under the g-th charging facility sharing feasible scheme, RMB;
[0130] 7.15. Combine steps 7.14 and 7.10 to output the charging facility sharing plan g with the minimum total cost and the corresponding electric bus vehicle dispatch plan and charging plan X * and the objective function value as the optimal solution to the problem.
[0131] The other steps and parameters are the same as those in Specific Embodiments 1 to 7.
[0132] 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 electric bus lines under the influence of a charging facility sharing strategy, characterized in that: the specific process of the method is as follows: Step 1: Collect basic data; Step 2: Define variables; Step 3: Calculate the operating cost of the electric bus line based on steps 1 and 2; Step 4: Calculate the waiting time cost of the electric car based on steps 1 and 2; Step 5: Calculate the charging income of the bus company based on steps 1 and 2; Step 6: Construct an electric bus dispatch optimization model based on steps 3, 4 and 5; Step 7: Solve the electric bus dispatch optimization model constructed in step 6; In step 1, basic data is collected; the specific process is: 1.
1. According to the electric bus line departure schedule, determine the daily service trip number i, i = 1, 2, ..., I, and the departure time of trip i is recorded as D i ; The definition of an electric bus is a charging trip from the start to the end of charging, denoted by r, r = 1, 2, ..., R, R is the total charging trip; 1.
2. Let k represent the kth electric bus, k = 1, 2, ..., K, K is the total number of electric buses; n represents the nth line station, n=1,2,…,N, N represents all line stations; The number of charging guns deployed at the starting station of the line is recorded as S, the charging power of electric buses is recorded as b, and the average charging power of electric cars is recorded as B; Set the safe range of the battery state of charge of the electric bus to [δ2,δ1]; 1.
3. Based on the principle that the electricity price and bus departure interval in each time window remain unchanged, the whole day operation time is divided into q time windows, q = 1, 2, ..., Q, and the duration, start time and end time of each time window are recorded as τ q , and E.T. q ; 1.
4. The average arrival rate of electric cars coming to charge within the statistical time window q is The average amount of electricity that the electric car needs to replenish within the time window q is The variance is The number of electric cars allowed to queue up at the departure station is counted, denoted as HS, where H represents the sum of the number of electric cars allowed to queue up and the number of charging guns; In step 2, variables are defined; the specific process is: Let variable z q ∈{0,1},z q =0 means that the type of vehicle allowed to be charged within the time window q is an electric bus, z q =1 means that the type of vehicle allowed to be charged within the time window q is an electric car; Let the variable Indicates that electric bus k starts service trip i at time t, otherwise Let the variable If electric bus k starts charging trip r at time t, otherwise Let the variable indicates that the kth electric bus is not available to serve any trip at time t, otherwise it is 0; In step 3, the electric bus line operating cost is calculated based on step 1 and step 2; the specific process is: 3.
1. Use formula (1) to estimate the remaining battery power of electric bus k at any time t and t+1: Where: and are the remaining battery power of electric bus k at time t and time t+1, kWh; is the average power consumption of electric bus k in service trip i, kWh; is the charging amount of electric bus k during charging trip r, kWh; 3.
2. Calculate the charge amount of electric bus k during charging trip r And charging time T k,r : Where: is the rated capacity of the battery of electric bus k, kWh; For electric buses The remaining battery power at the moment, kWh; for The end time of the charging time window q′ of the electric bus, Time window q′ is the last time window among the consecutive time windows that only allow electric buses to charge, that is, z q = 0 and z q+1 =1 corresponds to time window q; The starting time of charging trip r for electric bus k; 3.
3. Calculate the average daily purchase cost Z1 of the electric bus line according to formula (5); Where: C k is the unit purchase cost of electric bus k, RMB; γ k is the number of electric buses required for full-day operation, γ k ≤K, as shown in formula (6); Y k is the life span of the electric bus k, days; 3.
4. Calculate the total charging cost Z2 during the daily operation time of the electric bus line. The calculation method is as follows: Where: is the unit charging cost of the electric bus in the time window q, which is equal to the unit electricity price in the corresponding time window, yuan / kWh; T k,r,q is the charging time of the charging trip r of the electric bus k within the time window q, min, as shown in formula (8); In step 4, the waiting time cost of the electric car is calculated based on steps 1 and 2; the specific process is: 4.
1. Calculation of service intensity ρ q , estimate the average queue length E of electric cars in time window q q (L queue ) and the average waiting time E q (T waiting ): Where: P q,j is the probability that there are j electric cars waiting to be charged in the time window q; P q,0 is the probability that there is no electric car waiting for charging in the time window q, and ζ is an intermediate variable; Calculation of P q,j With P q,0 , as shown in formula (12) and formula (13): Where: Φ G is an intermediate variable; 4.
3. Calculation of Φ G , the formula is as follows: Where: Φ D is an intermediate variable; is the intermediate variable, is an intermediate variable; g(ρ q ) is an intermediate variable; 4.
4. Calculate the waiting time cost Z3 of the electric car using formula (18) and formula (19): Where: C T is the unit waiting time cost of electric cars, RMB / car / h; τ′ q The length of time that vehicles are not allowed to queue up in the charging time window of electric cars, min; the time window q″ is a continuous number of z q =1 corresponds to the last time window in the time window set, that is, z q =1 and z q+1 = The time window q corresponding to 0; is the average arrival rate of electric cars in the time window q″, vehicles / h; E q″ (T waiting ) is the average waiting time of electric cars in the time window q″, h; In step 5, the charging income of the bus company is calculated based on steps 1 and 2; the specific process is: Formula (20) is used to calculate the charging profit Z4 of electric cars during the full-day operation time: Where: is the unit price of electric car service fee in time window q, yuan; τ″ q is the shortest charging time of the electric car, min, i.e., the last τ″ of the charging time window of the electric car q min does not allow newly arrived cars to enter the departure station to charge.
2. According to claim 1, a method for dispatching electric bus lines under the influence of a charging facility sharing strategy is characterized by: In step 6, an electric bus dispatch optimization model is constructed based on steps 3, 4 and 5; the specific process is: 6.
1. The optimization objectives are to minimize the daily average purchase cost of electric bus lines, the total charging cost of electric bus lines during daily operation time, the waiting time cost of electric cars, and to maximize the charging income of bus companies, as shown in formula (21): min Z=Z1+Z2+Z3-Z4 (21) 6.
2. Set constraints, as shown in formulas (22) to (30): AND q″ -AND q′ ≥β (28) Where: T min is the shortest charging time for electric buses, min; β is a constant; is the remaining battery capacity of electric bus k at the start of daily operation, kWh; T k,i is the travel time of service trip i; variable Indicates that electric bus k Start service trip i at any time, otherwise variable If the electric bus k Start the charging trip at time r, otherwise ET q″ is the end time of time window q″; ET q′ is the end time of time window q′; D k,i is the departure time of trip i.
3. According to claim 2, a method for dispatching electric bus lines under the influence of a charging facility sharing strategy is characterized by: In step 7, the electric bus dispatch optimization model constructed in step 6 is solved; the specific process is: 7.
1. Initializing z q , let g = 1; set the initial node list, the initial node list is empty; 7.
2. Define the initial column set The set of feasible vehicle scheduling and charging solutions is used as the root node of the branch and bound tree; Put the root node into the node list; Let X * Record the current optimal feasible solution, Record the corresponding optimal objective function value; The column set ψ includes a set of feasible vehicle scheduling and charging solutions and a set of infeasible vehicle scheduling and charging solutions; For all possible vehicle dispatch and charging solutions for electric bus k, is a subset of all possible vehicle scheduling and charging schemes; 7.
3. Let the number of iterations l = 0, let Decompose the original problem (21)-(30) into the restriction main problem and the pricing sub-problem; Define the variable ε θ(k) ∈{0,1}, if and only if the vehicle dispatch and charging plan θ(k) of electric bus k is used to solve the restricted master problem, ε θ(k) =1, otherwise 0, 7.
4. Solve the restricted main problem of the current parent node, and obtain the optimal solution and target value, which are recorded as X (l) and 7.
5. Calculate the pricing sub-problem and determine whether there is a vehicle scheduling solution that makes the objective function of the pricing sub-problem negative. If so, add the vehicle scheduling solution to the restricted main problem and return to step 7.
4. Otherwise, proceed to step 7.
6. 7.
6. Judgment: if And X (l) For the original problem, it is not feasible, so go to step 7.7; if And X (l) If the original problem is feasible, then update X * =X (l) , prune the node and go to step 7.9; if Prune the node and go to step 7.9; 7.
7. Optimal Solution to the Restricted Main Problem When the Current Condition Does Not Satisfy 0-1 Integers In, look for The one with the value closest to 0.5; For the one closest to 0.5 Construct two constraints ε θ(k) =1 and ε θ(k) =0;ε θ(k) =1 is the left child node; ε θ(k) =0 is the right child node; 7.
8. Activate the left child node as the new current parent node, and set l = l + 1; Add the right child node to the current node list and set the lower limit of the right child node to Return to step 7.4; 7.
9. If the node list that needs to be branched currently still contains node elements, set the node with the smallest lower limit in the node list as the current parent node, set l=l+1, and return to step 7.4; If the node list that needs to branch is empty, output the optimal objective function value And corresponding electric bus vehicle dispatching plan and charging plan X * , execute step 7.10; 7.
10. Record the vehicle dispatching plan and charging plan of electric bus k under the g-th charging facility sharing feasible plan, and obtain the optimal charging time within the time window q according to the vehicle dispatching plan and charging plan of electric bus k under the g-th charging facility sharing feasible plan 7.
11. Update z q , let g = g + 1; 7.
12. Determine whether g is less than 2 Q +1; if yes, go to step 7.13, otherwise go to step 7.14; 7.
13. Determine the updated z q Whether constraint (28) is satisfied, if yes, go to step 7.2; Otherwise, go to step 7.11; 7.
14. Use formula (31) and formula (32) to calculate the optimal charging facility sharing plan; min Z=min{Z(1),Z(2),...,Z(g),...,Z(G′)} (31) Where: Z(g) is the total cost of the g-th charging facility sharing feasible solution, RMB, 1≤g≤2 Q +1; are the waiting time cost of electric cars, the charging income of bus companies and the average daily purchase cost of electric bus lines under the g-th charging facility sharing feasible scheme, RMB; 7.
15. Combine steps 7.14 and 7.10 to output the charging facility sharing plan g with the minimum total cost and the corresponding electric bus vehicle dispatch plan and charging plan X * and the objective function value as the optimal solution to the problem.
