1. Introduction
In China, with the rising amount of motor vehicles, the energy consumption is aggravating. At the same time, the automobile exhausted emissions bring severe air pollution, and the energy and environmental problems caused by transportation vehicles are becoming increasingly serious. Driven by the oil crisis and environmental pressure, the government and enterprises are actively promoting the development of pure electric buses. According to statistics, the cost of energy consumption accounts for 30% to 40% of the operating costs of bus operation enterprises. In addition, under the background of the national policy of energy conservation and emission reduction, many bus operators are confronted the targets of the total energy consumption control. Once the target is not completed, they will face penalties. Pure electric buses have the advantages of high energy efficiency and low pollution and they are rapidly replacing traditional fuel buses, accounting for a gradually increasing proportion in the bus fleet. However, pure electric buses have an insufficient driving mileage range, long charging time and the amount of charging infrastructure is not enough, which adds the complexity of bus operation organization. Under the background of application of the pure electric buses, it is the main support to realize the large-scale pure electric bus operation by strengthening the study on the scheduling driving plan based on the constraints of the pure electric bus mileage range and charging time window, ensuring the vehicles to complete the daily operation tasks with maximum reduction on energy consumption under the condition of pure electric buses and fuel buses mixing operation.
In the field of the bus operating organization considering driving ranges constraint, Bodin L et al. [
1] described the problem, and focused on the constraint of the mileage limit of a vehicle without returning to the yard to replenish energy after the departure. Freling. R et al. [
2] discussed the driving ranges constraint as well. This vehicle operating organization method is based on a single parking yard, solving the problem by considering the battery life constraint in the single trip of entering and leaving parking yard, without taking into account the situation that the bus drives back to the yard halfway to charge and continue to conduct the tasks, which makes the model not suitable for the problem considering fuel consumption constraints. Haghani et al. [
3,
4] studied the problem of the regional bus operating organization based on the driving ranges battery life constraint. The paper classified the buses into three shifts, morning, noon and evening, and divided them into the yard matching shifts and the route matching shifts. The model reduced the size of the problem by about 40% without reducing any feasible solutions. The application showed that the research could effectively increase the vehicle operating time and cut the operation cost of bus operators. However, it adopted the post-check strategy, which limited the optimization of the solution to some extent. Ali Haghani et al. [
5] constructed a mathematical model for the multi-depot scheduling with path time constraints, and used an exact algorithm and two heuristic algorithms to solve the model. Amar Oukil [
6], Guy Desaulners [
7] and M.A. Forbes [
8] also studied the multi-depot vehicle scheduling problem, but they used the column generation algorithm and exact algorithm, respectively to solve the problem. Ali Haghani [
4] compared one multi-depot vehicle scheduling model with two single-depot vehicle scheduling models. Natalia Kliewer [
9] and Pablo C. Guedes [
10] modeled the multi-depot bus scheduling problem based on the spatio-temporal network.
In terms of solving the operating organization optimization model, hyper-heuristic and hybrid algorithms have attracted much attention in recent years. Pepin et al. [
11] compared a variety of hybrid heuristic methods for vehicle scheduling, finding that the heuristic method based on column generation had the best solution quality yet with a long solution time, while the heuristic method based on large-scale neighborhood search was fast and of good quality. Among the soft computing method applied to the vehicle scheduling, VAMPIRES [
12,
13] was one of the most successful early heuristic methods, having the similar main ideas to 2-opt algorithms. It had successfully solved hundreds of actual public transport vehicle scheduling problems, and later was replaced by the the BOOST object-oriented software system. Wren and Kwan [
14] reported the application of the system in a British bus company. In the past ten years, more researches focused on the realistic constraints or characteristics, resulting in the emergence of a series of hyper-heuristic and hybrid approaches. For example, Shen [
15] developed a vehicle scheduling method based on the tabu search by applying the 2-opt algorithm. Eliiyi et al. [
16] proposed six types of meta-heuristic methods to solve vehicle scheduling problems with multiple vehicle types and continuous driving time constraints.
Since the 1990s, the focus of the problem research has been on solving the exact solution of the problem. Some scholars had proposed the precise branch-bound method and the precise column generation method. In order to reduce the scale of the problem, the time-space network was introduced into the multi-yard vehicle operating organization. Kliewer et al. [
17] applied the concept of the time-space network to the multi-station vehicle operating organization problem for the first time and explained the method of cutting empty-drive arcs in the network. In addition, it introduced the method and steps of reducing the network scale, proposed the multi-commodity network flow model of the multi-type multi-yard bus driving plan scheduling problem based on the time-space network, and solved an example problem with a large-scale vehicle operation organization by using the standard mathematical optimization software CPLEX. Naumaim et al. [
18] provided a multi-commodity network flow model based on the time-space network and proposed a stochastic programming algorithm to solve the model. It was of great significance to simplify the problem, establish the model and solve the problem. He Di et al. [
19] analyzed the connotation of bus regional dispatching and distribution planning problem, constructed a model of bus regional dispatching and distribution planning based on the space-time network, and verified the model and algorithm through an example. Yang Yang et al. [
20] transformed the planning problem of the electric bus into a directed network. Bodin L et al. [
21] and others put forward the idea of two-stage heuristics to solve the problem of multi-station traffic planning for the first time. Dell Amico et al. [
22] took the minimum number of vehicles required as the optimization objective and used the heuristic algorithm to solve the problem in stages. Freling, R et al. [
23] considered decision variables describing the connection between the vehicles and assigning vehicles to each station. Laurent [
24] solved the problem of the multi-station traffic planning based on the iterative local search algorithm, and analyzed 30 cases.
At present, the research on the bus driving region dispatching is not very mature. Wei Ming et al. [
25] established a mixed integer programming model with time windows, aiming at the minimum number of vehicles, vehicle waiting time and empty driving time, taking into account factors such as yard capacity, allowable vehicle refueling and task reliability of each vehicle. On the basis of describing the vehicle scheduling problem with time windows, multiple yard and multiple vehicle types, Yang Yuanfeng [
26] established a mathematical model and proposed a simulated annealing genetic algorithm to solve the problem. The strong climbing performance of simulated annealing algorithm could avoid the “premature” of the genetic algorithm and improve the convergence speed of the algorithm. Zou Ying [
27] took the regional scheduling of multiple bus lines as the service object, established a bus driving plan model with the objective of minimizing the passengers waiting cost, in-bus cost and the cost of the bus companies and proposed the solution idea of “allocate shifts by-line, optimize to form a network”. Li Jun [
28] proposed a heuristic algorithm based on dispatching after analyzing the vehicle scheduling problem with time windows. The algorithm defined two kinds of dispatching costs, designed a method to arrange routes in the dispatching process, and conducted case verification. Later, Li Jun [
29] proposed a heuristic algorithm based on network optimization, which transformed the vehicle scheduling problem with time windows into several vehicle scheduling problems with a certain start time, then, used the minimum cost and the maximum flow algorithm to solve the vehicle scheduling problem with a certain start time.
To sum up, there are few researches on the optimization theory of regional operating organization currently. From the perspective of the network description, most of them emphasize the fixed allotment relationship between vehicles and vehicle yard. The researches without the fixed allotment relationship between the vehicles and vehicle yard are mainly found in logistics distribution, while fewer studies are in the field of the bus operating organization. The existing researches on the vehicle driving plan model are too simple, which greatly simplify the real operating environment, and the results are difficult to adapt to the complex work. Additionally, the current researches are hardly carried out under the background of the mixing operation with multiple vehicle types such as electric buses and fuel buses, and there are no regional bus driving plan models considering both the mileage range and charging time constraints. Some literature took the battery life into account, but they only discussed the battery life constraint within one shift and did not consider the condition that the vehicle drives back to the yard for charging and continues the tasks. Furthermore, there is little research on bus energy consumption. Therefore, we conduct the research on the regional pure electric bus driving plan with the objectives of energy consumption and bus service level, considering the pure electric bus charging constraints and mileage range constraints, and modify the algorithm to better support the application of pure electric buses in the real operation.
4. Research on Heuristic Optimization Algorithm
In this paper, the energy consumption optimization problem of multi-type bus operating organizations is abstracted into a set segmentation problem, which can be described as the problem that which vehicle completes task shifts in turn. The integer coding method based on vehicles is adopted for chromosome coding, which can be simply expressed as [1231312...]. The coding represents that task one, four and six are completed by the first bus, task two and seven are completed by the second bus, and task three and five are completed by the third bus.
4.1. The Production of Initial Population in Heuristic Algorithm
To solve the model, the paper sets the heuristic algorithm with the following steps:
Arrange the tasks in ascending order according to the task departure time to form T, and the task information includes the task sequence number, route number, departure time, arrival time, departure station, arrival station, travel time, route mileage, the nearest parking yard to the arrival station and the distance between them.
Set up the vehicle set in each parking yard, including the parking yard number and its capacity.
Assign one bus for the first task (the bus has not executed the task, which means the last task shift is empty), randomly extract an electric bus from the parking yard to execute, and record in the following order: The parking yard which the bus belongs to, the remaining mileage of the bus, the sequence number of the completed shift. Additionally, record the driving path of the current bus: The departure parking yard and the task sequence number.
For the rest of task i:
Look for whether there are any already used electric buses that can still execute the task i, which should meet the following two requirements: 1. Remaining mileage subtracts possible empty-driving mileage is greater than task mileage adds the mileage returning to the nearest parking yard; 2. the time when the last task was completed adds possible empty-driving time is less than the start time of the task adds 30 min (the charging time).
According to the following rules, relate the bus to the task:
Give priority to the buses meeting both requirements;
Give priority to the buses meeting the second requirement but not the first. In this case, the bus can return to the parking yard to charge, making it meet the first requirement. Record the nearest charging yard and update the bus information and the driving path information.
If all the requirements cannot be satisfied, the fuel buses will be used.
Look for the last task of each vehicle currently, assign the task i to the vehicle which has the smallest time difference from task i. Determine whether it is necessary to return to the parking yard to link up the tasks and update the vehicle information. All the individuals achieved based on the above heuristic algorithm are all the feasible solutions to the problem.
4.2. Design of Fitness Function
In the process of generating the initial solution, that is, the generation of the running plan of each vehicle, the corresponding task mileage, empty driving mileage, station or waiting time in the yard of the vehicle are recorded. In this paper, ObjV =
is taken as the basis of the individual fitness evaluation, and the advantages and disadvantages of individuals are evaluated. The chromosomes that do not meet the constraints are eliminated. Calculate the objective function value of each individual and sort it. The fitness value of each individual is calculated according to its position in the arrangement. The fitness function of individual
i is as follows:
In the formula, represents the selected pressure difference which is the difference between fitness values of assigned individuals, with a default value of two; N represents the size of the population; Pos represents its position in the arrangement.
4.3. Genetic Manipulation
Through selection, crossover and mutation to achieve the genetic manipulation, the specific process is as follows.
- 1.
Selection. We adopt the roulette strategy RWS as the selection method. Since the probability of each individual being selected is proportional to its fitness function value. The probability of being selected is as follows:
On the basis of knowing the probability of each individual being selected, the selected individual is randomly determined. The specific steps are shown in
Figure 2.
- 2.
Crossover. The single point crossover is used. To adapt to the multi-constraint model proposed above, the following ideas are designed in the crossover operation.
- (a)
Achieve the population from the selection operation for chromosome pairing;
- (b)
According to the crossover probability, determine whether to carry out the crossover operation. If so, move to the next step, otherwise, move to the next species.
- (c)
Search for feasible intersections. Decode to achieve the task shifts of each vehicle in the chromosome, randomly select two vehicles, and determine whether there is an intersection. If yes, conduct the crossover. Otherwise, pass it on to the next population until the two parents are inherited.
- (d)
Move the chromosomes into the next population, determine whether the population size has been reached. If yes, terminate the crossover operation. Otherwise, repeat the above steps.
- 3.
Variation. The variation ranges from 0.0001 to 0.1. Randomly select a certain task of a certain vehicle in the chromosome. Delete the task and the insert it into other vehicles at random, then determine whether the mileage range constraint can be satisfied. If it is feasible, then insert the task. Otherwise, continue to search for the vehicles that can be inserted. If no suitable insertion position can be found in the existing vehicles, a new vehicle will be assigned to perform the corresponding task.
4.4. Design of Termination Principle
Before reaching the maximum number of iterations, determine whether the average fitness of successive generations has not changed, or the variation is less than a threshold. If so, the iterative process of the algorithm converges and the algorithm ends. Before reaching the maximum number of iterations, it is judged whether the average fitness of successive generations is unchanged or the change value is less than a minimum threshold. If so, the iteration process of the algorithm converges and the algorithm ends. Otherwise, if the maximum number of iterations has been reached, the new generation population obtained through selection, crossover and mutation will replace the previous generation population.
4.5. Flow Diagram of the Algorithm
The flow chart describing the established driving plan model is shown in
Figure 3.
Input the parameter of the genetic algorithm: Species size, species generation, crossover probability, mutation probability, and the generation gap.
Input the task information, parking yard information, empty driving distance, average velocity, vehicle information and maximum mileage of pure electric buses. To make the calculation easier, the task information includes the task sequence number, route number, departure time, arrival time, departure station, arrival station, traveling time and route mileage. The parking yard information includes the parking yard number and the number of parking space in the yard. The vehicle information includes the vehicle number, parking yard number which the vehicle belongs to, remaining mileage, completion time of the last task, the sequence number of the last task, the information that whether the vehicle can execute the current task, the parking lot number which the vehicle returns to, empty driving mileage, number of charge cycles and the vehicle energy consumption.
Input the coefficient of the vehicle energy consumption, the coefficient of passengers waiting cost and coefficient of passengers in-bus cost.