Figures
Abstract
This work proposes a model considering fairness in the problem of crew scheduling for bus drivers (CSP-BD) using a hybrid ant-colony optimization (HACO) algorithm to solve it. The main contributions of this work are the following: (a) a valid approach for cases with a special cost structure and constraints considering the fairness of working time and idle time; (b) an improved algorithm incorporating Gamma heuristic function and selecting rules. The relationships of each cost are examined with ten bus lines collected from the Beijing Public Transport Holdings (Group) Co., Ltd., one of the largest bus transit companies in the world. It shows that unfair cost is indirectly related to common cost, fixed cost and extra cost and also the unfair cost approaches to common and fixed cost when its coefficient is twice of common cost coefficient. Furthermore, the longest time for the tested bus line with 1108 pieces, 74 blocks is less than 30 minutes. The results indicate that the HACO-based algorithm can be a feasible and efficient optimization technique for CSP-BD, especially with large scale problems.
Citation: Ma J, Song C, Ceder A(, Liu T, Guan W (2017) Fairness in optimizing bus-crew scheduling process. PLoS ONE 12(11): e0187623. https://doi.org/10.1371/journal.pone.0187623
Editor: Xiaolei Ma, Beihang University, CHINA
Received: June 4, 2017; Accepted: October 22, 2017; Published: November 30, 2017
Copyright: © 2017 Ma et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: All relevant data are within the paper and its Supporting Information files.
Funding: This study was supported by National Natural Science Foundation of China (no. 71131001-2, no. 71471014) WG, JHM; National Natural Science Foundation of China (under grant no. 71621001) WG, JHM; The Fundamental Research Funds for the Central Universities, CYS. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
Competing interests: The authors have declared that no competing interests exist.
Introduction
Overview of CSP-BD model
Research involving public transit problems [1–6] has been done for years. It has been known for more than 50 years that the crew-scheduling problem (CSP) for bus drivers (CSP-BD) presents a bus transit company with one of its most important operational-planning problems, since crew costs usually dominate all other factors [7]. The problem involves assigning vehicle trips to crews in such a way that each trip is covered by a shift, while guaranteeing that all other duty functions are feasible and that the total cost of all duties is minimal [8–13]. Thus, under reasonable constraints, less duties means reducing more cost. Some models [7] consider the goal of minimizing the total duties under the limitation of total working hours such as 8 hours according to the legislation. While, some [14, 15] refer to the total working time to spread over for each duty in the limitation of maximum and minimum value. Some models [16–18] consider the duty cost as a whole including real cost, meal cost and so on, while sometimes [19, 20] penalty cost function is added to measure duty working hours to limit hours in labor agreement rules. Moreover, unfairness function considering different duty working hours and overtime penalty is referred in some papers [21]. However, the different idle time may also cause unfairness because more idle time means more rest time, so in this paper we add the unfairness cost function both considering the total working time and idle time for each duty, as well as the common cost and extra working hour cost functions.
Overview of CSP-BD algorithm
CSP-BD has attracted the interest of many researchers since the 1960s, and research in this area has become more active since the 1990s. Most of the methodologies in this context are based on mathematical programming techniques or on a hybrid approach using heuristics and Integer Linear Programming (ILP) [22–25]; the success and limitations of these methodologies have been discussed in Kwan et al. (2000), and Li and Kwan (2003). In the mathematical programming-based approach, CSP-BD is formulated as a sub-set of shifts that covers all pieces of the trip, with the objective of minimizing total costs or the total number of shifts [26]. In recent years, meta-heuristics have been widely used for searching practical near-optimal solutions to NP-hard (highly complex) problems. Meta-heuristics offer three main advantages: (a) they are usually very efficient in searching through very large solution space; (b) they can result in a feasible solution; (c) each class of meta-heuristics has its own methodical and strategic structure; for example, genetic algorithms (GA), one of the most important meta-heuristics, have attracted much attention recently [14, 17, 27, 28]. In addition, effort has also been made in exploring other meta-heuristics, such as Tabu searches (TS) [19, 29, 30], simulated annealing [31] and variable neighborhood search [32].
It is worth mentioning that until now, although much research has been conducted using meta-heuristics little attention has been paid to ant-colony optimization (ACO) for CSP-BD. Even in the one notable exception, Forsyth and Wren [33], the ACO algorithm for CSP-BD is unproved, for they gave up attempting to build shifts by choosing a node in each ant move and, instead, constructed multiple shifts, relying on TRACSII [34]. The work that follows describes how to filter shifts according to certain rules. Several studies [35–37] used the ACO algorithm for air and train-crew scheduling. In addition, an ACO-based method that simulates a real ant colony with positive feedback characteristics was employed in the field of optimization to solve NP-hard problems, such as the traveling-salesman problem [38, 39].
The present paper proposes a Hybrid ACO algorithm to solve CSP-BD. First, a fully connected graph is created, attempting to search for the shortest path from the graph. A vertex represents a relief opportunity, and edges connote pieces of work. Ants move on the graph according to probabilities determined by the heuristic function and pheromone intensity. This study presents the Gamma heuristic function and one first-node choosing rule and also considers the fairness of total working time and idle time in our proposed model. The results of case studies in Beijing show that the proposed HACO performs well and can generate good quality solutions.
The following sections are organized such that the objective function with fairness of working time and idle time is described in Section 2, as well as the construction model for CSP-BD. Thereafter, the detailed design of the HACO is presented in Section 3 for solving the problem. In Section 4, two experiments are respectively to determine the best parameter combinations for HACO algorithm and to testify the sensitivity of unfair cost coefficient in the objective function. In Section 5 ten bus lines are chosen to examine the relationship of the presented costs in the objective function. Finally, conclusions are drawn in Section 6, followed by recommendations for future research.
Crew-scheduling problem for bus drivers (CSP-BD)
The crew-scheduling problem for bus drivers (CSP-BD) involves finding a set of legal shifts or duties that can cover all trips or vehicle blocks in a particular scheduling horizon. The definition is presented in the first part of this section.
Definitions
Each trip is a scheduled activity with specific starting and ending times and locations. The feasibility of a solution mainly depends on the whole available connection of several successive trips in acceptable time.
A vehicle block illustrated in the Fig 1 may be considered a unit of work, which starts and ends at a relief opportunity (RO), meaning the time and place at which a change of drivers is possible.
A piece of work denotes a shorter work between two consecutive ROs completed by the same vehicle.
The idle time is the waiting time or rest time between the arrival time of preceding bus and the departure time of the following one at each RO.
A driver’s shift (or duty) is constructed by several successive pieces of work (called a spell) that can be assigned from the driver’s signing on until his/her signing off at the same depot. For example, shift 1 combines spell 1 with spell 3.
Normally, some constraints restrict crew shifts, such as labor-agreement rules that limit work hours or the time for a break, and so on. The concept of block, shift and spell is shown in Fig 1.
Assumptions for CSP-BD
Listed below are the assumptions regarding the crew scheduling problem for bus drivers:
- The vehicle blocks in the schedule have been utilized as input in the CSP-BD solving process;
- The influence of different bus types can be ignored;
- The actual total working time is allowed to exceed the total expected working time (for example, 450 minutes) that is limited in a reasonable range;
- The duration of each RO is fixed and does not lend itself to random adjustment;
- The time of each spell time is less than the lower bound of total expected working time (for example, 390 minutes) for an available shift.
Objective function of CSP-BD
The objective of the CSP-BD is to minimize a bus company’s total costs, which include standard and additional salary payments to drivers, the cost of potentially unfair working time, and the cost of the average total working time and idle time. The solution is to generate N' legal shifts from the initial predetermined N shifts and M spells.
Following are the CSP-BD restrictions: (i) the maximum daily working time excluding overtime is 450 minutes per shift; (ii) there is an upper limit on overtime, which cannot exceed the maximum daily working time by more than 30 minutes; (iii) every crew is entitled to a maximum of 30 minutes idle time per trip; (iv) the total working time is the time span between sign-on and sign-off, consisting of driving time and idle time; (vi) idle time by definition can only begin the second after sign-on and no later than the last second of the end of the trip; (vii) for each driver there are fixed cost such as welfare and insurance, distinct from standard costs and overtime expenses. The modified equations for the crew scheduling problem, based on existing equations seen from [21], are as follows:
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
- F1(vj): Common cost within the maximum constraint time (Yuan);
- F2(vj): Extra cost that is the penalty cost for the extra working time (Yuan);
- F3(vj): Unfair cost that is the penalty cost for deviating from the average total working time and total idle time in a shift (Yuan);
- N': The total number of generated shifts in a solution;
- C: The fixed cost coefficient, such as welfare and/or insurance for each driver that is set as 70 Yuan;
- N'*C: Fixed cost that is the sum cost of all generated shifts;
- aij: The variable that is equal to 1 when spell i is selected for shift j, otherwise aij is equal to 0;
- xj: The variable which is equal to 1 when shift j is selected otherwise xj is equal to 0;
- λ: The minimum number of spells in a shift set as 1 in the following examples;
: The total idle time in a shift (minute);
: The connecting time between spell i and i' ranging from (0,30] minutes that equals 0 when it is out of that range(minute);
- vj: The total working time in a shift (minute) including the sum of spell time and idle time;
- ti: The total time of a spell i (minute);
- vmax: Maximum constraint working time for the standard fixed cost (Yuan) set as 450 (minute) in the following examples;
- β1: Common cost coefficient equals normal salary per hour (Yuan per hour) set as 15;
- γ: The maximum extra time beyond vmax (minute) set as 30 (Yuan);
- β2: Extra cost coefficient (Yuan per hour) set as 30 (Yuan) twice of the common cost coefficient;
- β3: Unfair cost coefficient means the penalty cost for deviation from the average total time and idle time per hour (Yuan per hour);
The object of the Eq (1) is as a function to minimize the total cost, including the common cost within the maximum constraint time, the extra cost for overtime, the fairness cost for deviating from the average total working time, and the total idle time in a shift and extra fixed costs incurred by an increase of one shift. Eqs (2) and (3) respectively stand for the amount of spells in a shift and the amount of shifts in a solution, and Eq (4) indicates that each spell is only selected by one shift. Eqs (5) and (6) are respectively the calculation of total idle time and working time in a shift. Eq (7) is the common cost multiplied by total working time within its constraints. Eq (8) is the extra cost paid for overtime work when the total working time exceeds the maximum working time according to regulation. Generally, the extra cost paid per hour is much higher than the common cost per hour. In this case, the extra cost paid per hour is twice of the standard salary per hour. Eq (9) is the unfair cost for deviation from the average level working time and idle time. It reflects consideration for fairness in relation to drivers’ working time and availability of the schedule.
HACO-based algorithm for CSP-BD
The common ACO algorithm was inspired by the foraging behavior of ant colonies, which find the shortest route between the ants’ nest and a source of food by exchanging information via pheromone trails left behind by each ant on a trip. Over time, however, the pheromone trail starts to evaporate, thus reducing its attractive strength. The more time it takes for an ant to travel across the path and back again, the more time the pheromones along the path have to evaporate. A short path, by comparison, is marched over more frequently, and thus the pheromone density on shorter paths obviously becomes higher than on longer paths. Thus, when one ant finds a good (i.e., short) path from the colony to the food source, other ants are more likely to follow that path, and positive feedback eventually leads to all the ants’ following a single path.
We note some similarities between the CSP-BD and the traveling salesman problem (TSP) as a means of further substantiating the case for the algorithm proposed in this paper. In the well-informed TSP, each node represents a city to be traversed in iteration, and link values are distances between nodes. Likewise, CSP-BD uses spells as path nodes, and the nodes can be connected by links according to idle time restrictions and consideration for arrival at or departure from a depot.
Accordingly, the characteristics of CSP-BP are integral to our proposed hybrid ant-colony optimization algorithm (HACO) based on Maximum and Minimum Ant System (MMAS). This section primarily describes the process of designing the HACO-based algorithm for solving the CSP-BD problem. Naturally, this includes the node-choosing rule in formulating the probability function, as well as detailed updating of the pheromone-trails rules in MMAS; it is performed through constructing a selection function and generating shifts rules, both are critical procedures of the algorithm.
HACO: Node-choosing rule
Prior to examining the process of ants start searching for a route, it is essential that we identify certain indispensable variables.
- T1×M: A Tabu table deposits the nodes that have been visited in a searching route and its condition at initialization is to empty the table upon the beginning of an ant’s traversing.
- CM×M: A correlation matrix reflects the relation between two nodes (spells). In TSP, the values of the correlation matrix are the distances between two cities. However, in CSP-BD, the values are recognized as the idle time between two nodes under the given constraints, such as maximum idle time, arrival or departure depot and maximum working time in a shift. For example, if the arrival depot of spell i is the same as the departure depot of spell i', then the idle time for the two spells and their total working times are less than the maximum restrictions, such that the value of
is equal to the idle time between spell i and spell i'. From the correlation matrix, each node corresponds to its potential connecting node indicated in the matrix row.
- HM×M: The heuristic matrix shows data results transformed by the heuristic function. Different forms of the heuristic function are listed below.
- PM×M: The pheromone matrix displays the pheromone intensity on the search route. The process of initiation is simplified based on the correlation matrix, whereas pheromone intensity remains at zero on the positions with zero value in the correlation matrix. The matrix updates after all ants traverse their routes in a cycle.
The next node-choosing rule
In the iterative process of the ants’ choosing the next nodes, transition rules play an important role until all nodes have been selected from the graph. Transition rules with many equations and even more parameters stands on the current node to select the next node from the unselected node pool depositing the unvisited nodes in the process of constructing a new shift. Here, the next node is not only the one that may depart later than the arrival time of current node but also the one that arrive earlier than the current node. Then the searching range enlarges compared with the only searching the nodes that depart later.
- τiu(t): Pheromone intensity of the trail between node i and node u in the process of tth iteration. Its value is reflected on the pheromone matrix and it increases or decreases according to the number of ants traversing the trail;
: The non-empty node set for unselected node i in the corresponding row or column of the pheromone matrix in the process of tth iteration;
: The non-empty node set for unselected node i in the corresponding row or column of the correlation matrix;
- ηiu: The heuristic function presenting the closeness between node i and node u; it is inversely proportional to the idle time
. Here, if ηiu = 0, that means node u may not exist in
.
From the property of the problem, the larger the idle time, the less closeness that exists between node i and node u. Gamma-Function (G-F) functions are considered to be the fittest function seen from Eq (13).
(13)
α and β define the importance of pheromone intensity τiu(t) versus the heuristic function. Here, both α and β are non-negative.
- q: a random number uniformly distributed from 0 to 1, chosen from the rand function in MATLAB.
- q0: a parameter determining the degree of correlation of exploitation compared with exploration. Exploitation means acquiring an exact number or value through iterative analysis and calculation, however, exploration is the result of repeated attempts with randomness.
If q ≤ q0, the unique node with the maximum value in Eq (12) is chosen according to exploitation. On the other hand, the parameter is exploration-oriented when the next node is chosen according to S, which is a random variable selected according to the probability obtained by:
(14)
First node-choosing rule
Because of the limitation for total working time, more than one shift is contained in a solution. When one shift is completed, the next chosen node may have no direct relationship with the current chosen node. Then, once one shift has been selected, the next problem concerns how to choose the first node in the next shift. Here, similar rules for choosing the first node for each shift as the transition rules are proposed.
: The non-empty node pool that has not been visited until now at tth iteration for the kth ant, q' is the same meaning as q, and
defines the relative importance of exploitation versus exploration, similar to q0 above mentioned. If
, the node chosen is said to be exploitation-oriented; that is, the unselected node with the highest pheromone density at tth iteration is chosen. In contrast, the exploration defines that the next node is selected randomly from unselectedk using the rand function in MATLAB. The choosing rules do not contain the heuristic function ηij for the reason that there exists no connecting nodes defining in the correlation matrix and has less of relationships compared with the prior nodes in the Tabu table.
HACO: Updating the pheromone trail rule in MMAS
The updated trail rule in MMAS is that the best ants globally or only the best ants deposit pheromones after each cycle. The range of the quantity of pheromone is limited to [τmin,τmax] in order to avoid staggering in the iteration; τmin and τmax denote the minimum and maximum pheromone trail intensity, respectively. This rule is formulated as:
(16)
(17)
- ρ: The quantity of evaporation (0 < ρ < 1). All the pheromone intensities will evaporate in various degrees in order to avoid repeating the same path;
- (1−ρ).τij(t): The remnant of pheromone quantity;
: Quantity of pheromones deposited on the link between node i and node j by the ant that constructed a path with the least cost at tth iteration;
- Q: Control factor for a pheromone to avoid a cost value that is too large to converge to the local optimal point early or too small to search randomly and is set as 10 in the following experiments;
- Cost(Agbest): Global minimum cost from the beginning until the present.
The updated trail rule effectively directs the ants to the most promising space, which rapidly becomes the relatively optimal path.
HACO: Generating shifts rule
Based on the above rules, several nodes have been selected to construct an intact shift. However, due to the constraints on the total working time vj, the length of a shift is also limited. Here, four conditions and their solutions are proposed according to the maximum total working time vmax and minimum total working time vmin.
On the condition that the total working time for one shift is less than the minimum working time, if the following node in and
for this shift exists, then a new node is added to the shift, otherwise, the uncompleted shift is considered as a new shift.
If the total working time is within such range, a new intact shift is generated. The nodes are placed in the Tabu Table, and then preparations can be made for the next shift.
If the total working time of this shift satisfies the above range, then a new shift with the extra working time will be generated, calculating the overtime costs for this shift.
If the total working time exceeds the maximum extra working time, i.e., the working time for the new, added spells is not adapted to this shift, then delete the new added node and change another feasible spell. If no spell node is available for this uncompleted shift, then this short shift will also be generated as a new shift.
Search procedure for solutions using the HACO algorithm
The main task of the HACO algorithm in solving the CSP-BD is to model the objects in the search for the shortest path along a weighted graph with constraints. Calculations are then made in the iterative process, and probabilities are generated as to where to move next, based on pheromone densities and closeness levels. Some constraints are provided to limit the alternative sets, and appropriate parameters of the probability equation are chosen by trial and error. The search procedure for the HACO-based algorithm is shown in Fig 2. The following three main processes are illustrated in detail:
The first part of procedure expressing the initialization at the beginning of algorithm. (b) the second part expressing the updating process. (c) the third part expressing the key process of the algorithm.
Initialization for three matrixes
Upon beginning the procedure for the HACO algorithm in solving the CSP-BD, some data structure such as correlation matrix, pheromone matrix and heuristic matrix are defined in order to store original and changing data. The correlation matrix stores the original spell data relationship and it remains unchangeable throughout the procedure and provides support for most of the following matrixes. If spell node i coincides the depot and idle time constraints, the matrix is filled with the idle time number; otherwise, it is filled with zero. The pheromone matrix is consisted of pheromone density and changes its values in the iterative process. The initiation of this matrix is on the basis of updating rules; all values in the matrix are at the minimum limit. The heuristic matrix is generated based on the correlation matrix, for the only variable in the heuristic function is idle time reflected in the correlation matrix.
Initialization for Tabu table
Before each ant starts to move, the Tabu Table, which is regarded as a node pool with the visited node, is empty. Thereafter, any visited node is put into the pool until the pool is full. Ultimately, when an ant has traversed all routes, all visited nodes are placed into the pool.
Generating a new shift
The procedure combines the rules specified above, to generate a new shift, as shown in Fig 3. First, generate a new undetermined shift according to various node choosing rules. Then, the total working time of the new shift coincides the minimum and maximum working time limit. We are then referred to some chosen conditions: a) the total working time confines to minimum and maximum working time; b) the total working time is more than the maximum working time yet less than the allowed maximum overtime; c) when the total working time is less than the minimum working time, but no available nodes satisfy the current spell, then the spell can also be considered as a new shift.
This figure illustrates the whole procedure of HACO algorithm in detail. At first, the structure of the main data is illustrated: the correlation matrix, the pheromone matrix and the heuristic matrix. If the iteration i is less than the original maximum number iter_max, then the ant number j is determined, and otherwise, the whole algorithm finishes. Then the Tabu table is initiated and a new shift is generated if the Tabu table is not full. The new shift nodes are put into the Tabu table until it is full, that is, all the nodes are put into the Tabu Table. If all ants finish their routes, all solutions are estimated by calculating the total cost and storing the best one. The pheromone density is updated in the pheromone matrix. Then application of the algorithm and the search for the best solution is continued.
Computational tests
To test the performance of the proposed HACO for CSP-BD, two main computational experiments were made. The first experiment was to determine the best parameter combinations for this algorithm. The second experiment was to testify the sensitivity of unfair cost coefficients. The computational tests of the HACO algorithm were carried out by applying the code in MATLAB.
Parameter settings of HACO
The object of this section is to analyze the performance of HACO with different parameter settings for CSP-BD instance with respect to bus line 26 with two depots, 44 blocks and 294 pieces of work with the heuristic Gamma Function (G.F) in which the parameters are set as λ1 = 0.5, λ2 = 0.05 and the constant coefficients in objective function are set as β1 = 15, β2 = 30, β3 = 7.5 (Yuan) and the minimal and maximal quantity of pheromone are set as τmin = 0.005, τmax = 3 (minute). The most important parameters considered in HACO include (a) exploration threshold q0 or , (b) the ratio of α:β (the relative importance of pheromone trails versus the heuristic function), (c) trace persistence coefficient 1−ρ. This study briefly examines the influence of these parameters on HACO with respect to three criteria: the minimal and average minimal cost in each iteration denoted by M.C. and A.M.C. and the number of the iterations where the minimal cost is less than the total average minimal cost defined as Num. Then, we determine the best combination of parameters for achieving the best results. Performance by different combinations of parameter values is tested according to a series of experiments. The various values for each parameter are q0 = 0.8,0.9,0.95, α:β = 1:1,1:2,1:5, ρ = 0.1,0.05,0.01. Each parameter combination in Table 1 was run 20 times and there were 50 ants for each trial. The results are presented in Table 2. From the obtained results, obviously, this combination, q0 = 0.9, α:β = 1:5, 1−ρ = 0.9, could get the best results with minimum cost, minimum average cost and maximum number.
Experiments with the unfair cost coefficient
In this section, we choose a group of values for the unfair cost coefficient β3 in Eq (1) to determine the fairness in CSP-BD. The chosen value of β3 refers to the common cost coefficient β1, that is, β3 = σβ1. The range of value for σ we define in this part includes two sets: R1 = {0.1,0.3,0.5,0.7,0.9} and R2 = {1,2,3,4,5,6,7,8,9,10}. These experiments are based on bus line 26 with two depots, 44 blocks and 294 pieces of work with the heuristic Gamma Function (G.F) in which the parameters are set as λ1 = 0.5, λ2 = 0.05 as well as q0 = 0.9, α:β = 1:5, 1−ρ = 0.9. The maximum iteration is set as 200 and the number of ants is 50. The experiment results with the respective minimal total cost are listed in Table 3 with various costs represented in the objective function equation. From Table 4, we may safely observe the changes of involved costs with the growth of σ. Except for the clear increase of the minimal total cost and the unfair cost, the common cost changes little and the extra cost relatively deceases. Besides, the fixed cost seen from the number of duties also grows. The unfair cost obviously outweighs other three costs when σ is greater than 2. Furthermore, we also calculate the occupancy p of each cost in total cost in order to clearly compare the changes when the given parameter σ grows. In Fig 4, we can clearly see that both the occupancy of common cost and fixed cost obviously decrease while the occupancy of unfair cost increases significantly especially when the given parameter σ is greater than 1. Moreover, we also see that the extra cost changes little that shares a small proportion of the total cost.
(A) σ expressing the ratio between the chosen value and the common cost coefficient. (B) four basiccosts expressing respectively common cost, extra cost, unfair cost and fixed cost. (c) p expressing the occupancy ratio of each cost.
Experiment results
The conditions and best results of the improved ant-colony optimization algorithm are presented, based on the above experiments. The database for these computational tests was the Beijing Bus Transit Group, one of the largest bus transit companies in the world with more than 10,000 buses. We chose 10 bus lines with two depots from database that was shown in Table 4. The parameters for HACO algorithm were q0 = 0.9, α:β = 1:5, 1−ρ = 0.9, using the Gamma heuristic function and the iteration number was 200 and the number of ants was 50. Experiments with σ = 1, σ = 2, σ = 5 were respectively done with the ten represented lines. Other parameters were the same with the above experiments. The final solution was derived from the average minimum results in these iterations. All experiments were run with Intel Core i5-3570 CPU and 4 G installed memories (RAM).
The results are displayed in Tables 5–7 with three following tables. From those tables, it verifies once again that the changes of common cost, extra cost and fixed cost had no direct relationship with unfair cost for there is no obvious increasing or decreasing in those referred costs even though the increase of unfair cost ranges from several to several dozen times. Furthermore, we may clearly see that the common cost, unfair cost and fixed cost are relative to the respective bus lines. For example, all of those provided cost for #345 are the highest, in contrast, cost for #348 are the lowest. The value of common cost, unfair cost and fixed cost are almost the same when the given parameter σ is equal to 2. The running time for each line was also listed in the last column and the longest running time is #322 with the most pieces and blocks. More experiments will be done in the future to test the relationship of the coefficients of common, unfair and fixed cost. The extra cost, in our experiments is relatively low compared with other cost for those chosen timetables made by dispatcher are strictly confined in the given constraints of total working time.
Conclusion
In this work, we consider the fairness of total working and idle time in the process of solving bus-crew scheduling problem using a powerful HACO based algorithm. A series of experiments were done successively in order to determine the best combination of HACO algorithm and validate the sensitivity of the unfair coefficient. From the results, we learned that the common cost, fixed cost and extra cost had no direct relationship with the unfair cost for the values of those three costs were basically unchanged when the unfair cost increased. Except for extra cost, the values of other three costs were very close when the unfair coefficient was at twice the coefficient of common cost. Furthermore, both the occupancy of common cost and fixed cost decreased while unfair cost occupancy deceased. In the last experiments, we chose ten bus lines using real-life cases from the Beijing Public Transport Holdings (Group) Co., Ltd. with pieces and blocks from lowest to highest under three unfair coefficients to examine the relationship of four given cost in the objective function. The final results showed that the common cost associated with the fixed cost for both of the two costs related to the generated duties. The unfair cost for all of bus lines approached to common and fixed cost when the unfair coefficient was twice as much as that of common cost. For the extra cost with small value, it seemed to relate indirectly to other costs. In addition, the results also clearly verified that HACO algorithm performed noticeably advantages, especially for larger scale problems. In our experiments, the bus line with 1108 pieces, 74 blocks consumed less than 30 minutes in an acceptable time. More experiments will be done in the future to test the relationships of the coefficients of common, unfair and fixed cost. In addition, it is worth noting that changing cost parameters may exert an effect on the solution in cases in which serval costs and constraints parameters of the CSP-BD are set as constants. Therefore, more attention should be paid to cost parameters in future works. A further study that is underway will add more constraints to the problem, such as meal time, driver or vehicle constraints and so on.
References
- 1. Wren A. Heuristics ancient and modern: Transport scheduling through the ages. Journal of Heuristics. 1998; 4(1): 87–100.
- 2. Ma X., Wu Y. J., Wang Y., Chen F., & Liu J. Mining smart card data for transit riders’ travel patterns. Transportation Research Part C Emerging Technologies. 2013; 36:1–12.
- 3. Ma X., Liu C., Wen H., Wang Y., & Wu Y. J. Understanding commuting patterns using transit smart card data. Journal of Transport Geography. 2017; 58:135–145.
- 4. Yu H., Wu Z., Chen D., & Ma X. Probabilistic Prediction of Bus Headway Using Relevance Vector Machine Regression. IEEE Transactions on Intelligent Transportation Systems. 2016; 99:1–10.
- 5. Yu H., Chen D., Wu Z., Ma X., & Wang Y. Headway-based bus bunching prediction using transit smart card data. Transportation Research Part C Emerging Technologies. 2016; 72:45–59.
- 6. Lin L, Wang Q, Sadek A W. Short-Term Forecasting of Traffic Volume Evaluating Models Based on Multiple Data Sets and Data Diagnosis Measures. Transportation Research Record Journal of the Transportation Research Board. 2013; 2392:40–47.
- 7. Shen Y, Xia J. Integrated bus transit scheduling for the Beijing bus group based on a unified mode of operation. International Transactions in Operational Research. 2009; 16(2):227–242.
- 8. Ceder A, Fjornes B, Stern H I. OPTIBUS: A Scheduling Package. Computer-Aided Transit Scheduling. 1988; 212–225.
- 9. Wren A., and Rousseau J.M. Bus driver scheduling—An overview. In Computer-Aided Transit Scheduling: Proceedings of the Sixth International Workshop on Computer-Aided Scheduling of Public Transport. 1995; 173–187.
- 10.
Huisman, D. Integrated and Dynamic Vehicle and Crew Scheduling Thesis, Erasmus University Rotterdam. 2004. Available from: https://core.ac.uk/download/pdf/18507389.pdf
- 11.
Ceder A. Public Transit Planning and Operation: Theory, Modeling and Practice. Elsevier; 2007.
- 12.
Ceder A. Public Transit Planning and Operation: Modeling, Practice and Behavior. Second Edition. USA: CRC Press; 2016.
- 13. Liu T., Ceder A., Ma J., Guan W., & Zhou L. Graphical Human–Machine Interactive Approach for Integrated Bus Transit Scheduling: Lessons Gained From a Large Bus Company. IEEE Transactions on Intelligent Transportation Systems. 2016; 18(4):1023–1028. 2016
- 14. Li J, Kwan R S K. A fuzzy genetic algorithm for driver scheduling. European Journal of Operational Research. 2003; 147(2):334–344.
- 15. Leone R, Festa P, Marchitto E. A Bus Driver Scheduling Problem: a new mathematical model and a GRASP approximate solution. Journal of Heuristics. 2011; 17(4):441–466.
- 16. Ramalhinho H, Paixao J M P, Portugal R. Metaheuristics for the bus-driver scheduling problem. Economics Working Papers. 1998; 35(3):331–343.
- 17. Shen Y., Peng K., Chen K., & Li J. Evolutionary crew scheduling with adaptive chromosomes. Transportation Research Part B Methodological. 2013; 56(56):174–185.
- 18. Tóth A, Krész M. An efficient solution approach for real-world driver scheduling problems in urban bus transportation. Central European Journal of Operations Research. 2013; 21(1):75–94.
- 19.
Shen, Y. Tabu Search for Bus and Train Driver Scheduling with Time Windows. Doctoral dissertation, University of Leeds. 2001.
- 20. Valouxis C., and Housos E. Combined bus and driver scheduling. Computers & Operations Research. 2002; 29(3): 243–259.
- 21. Hao N, Song R, Liu X C. Minimum cost based transit crew scheduling optimization model. Shandong Science. 2014; 27(2):76–82.
- 22. Fores S., Proll L., and Wren A. An improved ILP system for driver scheduling. In Computer-Aided Transit Scheduling: Proceedings of the Seventh International Workshop on Computer-Aided Scheduling of Public Transport. 1999; 471:43–61.
- 23. Fores S., Proll L., and Wren A. TRACS II: a hybrid IP/heuristic driver scheduling system for public transport. Journal of the Operational Research Society. 2002; 53(10): 1093–1100.
- 24. Li J. A self-adjusting algorithm for driver scheduling. Journal of Heuristics. 2005; 11(4):351–367.
- 25. Chen S., and Shen Y. An improved column generation algorithm for crew scheduling problems. Journal of Information & Computational Science. 2013; 10(1):175–183.
- 26. Kwan R.S.K., Wren A., and Kwan A.S.K. Hybrid genetic algorithms for scheduling bus and train drivers. Proceedings of the 2000 Congress on Evolutionary Computation. 2000; 1:285–292.
- 27. Li J., and Kwan R. S. K. A fuzzy genetic algorithm for driver scheduling. European Journal of Operational Research. 2003; 147(2):334–344.
- 28. Song C., Guan W., Ma J., & Liu T. Improved Genetic Algorithm with Gene Recombination for Bus Crew-Scheduling Problem. Mathematical Problems in Engineering. 2015; 2015(1):1–14.
- 29. Shen Y., and Kwan R.S.K. Tabu search for driver scheduling. In Computer-Aided Transit Scheduling: Proceedings of the Seventh International Workshop on Computer-Aided Scheduling of Public Transport. 2001; 505:121–135.
- 30.
Shen Y., and Kwan R. S. Tabu search for time windowed public transport driver scheduling. Lecture Notes in Economics and Mathematical Systems, University of Leeds. 2002; 505(121–135).
- 31. Costa M F, Fiedler N C, Mauri G R. Clustering Search and Simulated Annealing to solve the driver scheduling problem for timber transport. Scientia Forestalis/forest Sciences. 2013; 41(99):299–305.
- 32. Ma J.H., Ceder A., Yang Y., Liu T. and Guan W. A case study of Beijing bus crew scheduling: A variable neighborhood-based approach. Journal of Advanced Transportation. 2016; 50(4): 434–445.
- 33.
Forsyth, P., and Wren, A. An ant system for bus driver scheduling. Presented at the 7th International Workshop on Computer-Aided Scheduling of Public Transport, Boston. 1997.
- 34.
Kwan A. S. K., Kwan R. S., Parker M. E., and Wren A. Producing train driver shifts by computer. Research Report Series, School of Computer Studies, University of Leeds. 1996.
- 35. Crawford B., Castro C., and Monfroy E. A hybrid ant algorithm for the airline crew pairing problem. In MICAI 2006: Advances in Artificial Intelligence. 2006; 4293: 381–391.
- 36. Ghoseiri K. Morshedsolouk F.,Ghoseiri K., and Morshedsolouk F. ACS-TS: Train scheduling using ant colony system. Journal of Applied Mathematics and Decision Sciences. 2006; 2006(3):1–28.
- 37. Deng G. F., and Lin W. T. Ant colony optimization-based algorithm for airline crew scheduling problem. Expert Systems with Applications. 2011; 38(5): 5787–5793.
- 38. Zhao M., Pan J. S., Lin C. W., & Yan L. Quantification-Based Ant Colony System for TSP. Genetic and Evolutionary Computing. 2014; 238:331–339.
- 39. Yin L., and Liang M. A. Fuzzy ant colony algorithm and its application in TSP. Mathematics in Practice and Theory. 2011; 6(41): 150–153.