1. Introduction
The school bus routing problem (SBRP) basically consists of designing a set of routes for transporting students to schools. Park and Kim [
1] provide a review of studies published up until 2009. They emphasize three issues that are relevant to this problem: Are the bus stops fixed a priori or not? Is there a single objective or are there multiple objectives? Which constraints are taken into account? As pointed out by Park and Kim, most studies assume that the bus stop locations as well as the number of students at each stop are given and concentrate on designing the bus routes, aiming to minimize the number of buses used, the total bus travel distance or time, or the total cost. These problems are variants of the well-known Capacitated Vehicle Routing Problem (CVRP). Ellegood et al. [
2] update the literature review and show that nowadays this problem still attracts the attention of many researchers. Moreover, these authors identify a shift in the SBRP characteristics being examined towards more real-world problem settings, as well as an increase in the use of metaheuristic solution approaches.
Just to mention a few recent papers on this topic, Bögl et al. [
3] deal with the SBRP with transfers, i.e., the possibility that students may change buses. In addition to the bus stop selection and bus routing problems, they consider the bus scheduling problem that concerns the computation of a feasible schedule for the buses and the school start time adjustment problem, which aims to optimize the school start times to allow buses to service multiple schools. These authors propose a heuristic based on a destroy and repair optimization approach. The case of mixed loads, where the buses are allowed to carry students from more than one school at the same time, is dealt with by Ellegood et al. [
4], who provide a general analysis to assess the conditions under which mixed loading is likely to be beneficial. Souza Lima et al. [
5,
6], deal with a multiobjective capacitated rural school bus routing problem with heterogeneous fleet and mixed loads. Miranda et al. [
7] expand the concept of mixed-load to multi-load, which means that the students can be picked up and delivered simultaneously. Taking into account that the use of private cars depends on how well public transportation systems operate, Parvasi et al. [
8] formulate a bilevel mathematical model, which considers the possibility of estimating the number of students who choose the public transport system. Mokhtari and Ghezavati [
9] also consider a mixed load school bus routing problem and propose a hybrid multiobjective ant colony optimization algorithm to solve it, which involves two objectives: minimizing the number of the buses and minimizing the average riding time of the students. Lewis and Smith-Miles [
10] propose a heuristic algorithm to find cost-effective solutions to real-world problems, which allow for splitting and merging routes, gauging vehicle dwell times, selecting bus stops, and minimizing walking distances. Caceres et al. [
11] propose a greedy heuristic coupled with a column generation approach for solving the problem arising when students with special needs are involved. This problem includes the need to pick up special education students from their home, the need to configure buses appropriately for them, and the need to provide a higher level of service. A variant of the SBRP, arising when students are allowed to choose their preferred stop among the selected ones, has recently been introduced by Calvete et al. [
12], who propose a bilevel optimization model and a metaheuristic for the solution of the considered problem. On the other hand, metaheuristic algorithms are widely used in routing problems. Toth and Vigo [
13], Elshaer and Awad [
14] and Vidal et al. [
15] provide recent and complete reviews on the variants of the Vehicle Routing Problems and the use of metaheuristic algorithms for solving them.
This paper addresses the School Bus Routing Problem with bus Stop Selection and a Maximum walking Distance constraint (SBRP-SS-MD) as defined by Schittekat et al. [
16] and usually associated with urban areas. This problem deals simultaneously with selecting the bus stops among a set of potential locations, allocating the students to the bus stops and designing the bus routes, while minimizing the total distance traveled by all the buses and taking into account that there is an upper bound on the distance that the students can walk to reach their assigned bus stop. Since the earliest studies on the problem were published, the authors who have studied the SBRP-SS-MD have focused on the three sub-problems involved—location, allocation and routing—and how they are handled to construct a feasible solution. Needless to say, all the three sub-problems are highly interconnected. Taking a solution from one of these sub-problems, even if it is optimal, as the basis from which to build an overall solution of the problem can result in a solution far from the optimal one.
We now review the main papers on the SBRP-SS-MD. A location-allocation-routing approach is taken by Dulac et al. [
17] who propose a two-stage approach. In the first stage, the bus stops are selected and the students are assigned to these selected stops. In the second stage, the routes are generated. The constraints are that the bus capacities cannot be exceeded, there are upper bounds on the number of stops and the length of each route, and there is an upper bound on the total distance that a student can walk.
Chapleau et al. [
18] change the focus and propose to take advantage of the interaction between the selection of the bus stops and the construction of the routes by determining a minimum number of clusters, each including a number of students close to the route capacity. Then, for each cluster the bus stops are selected and a route is generated. This allocation-routing-location strategy is also followed by Bowerman et al. [
19] who consider a multiobjective approach to the problem of providing school bus transportation in urban areas. The optimization criteria are the number of routes, the total bus route length, the load balancing, the length balancing and the student walking distance. The last criterion balances the total distance the students walk from home to and from their bus stops against the route length. They propose a heuristic method for solving the problem in which the students are first partitioned into clusters so that each cluster can be serviced by a single bus route. Then, for each cluster, the bus stops are selected and a bus route that visits the selected stops is generated. The goal of minimizing the number of routes is the dominant objective. The other objectives are combined into a single overall objective using the weighting method.
Riera-Ledesma and Salazar-González [
20] propose to combine the bus stop selection and the bus route generation. They focus on a family of school bus routing problems, which look simultaneously for a set of bus stops, for assigning students to them and for designing bus routes visiting such stops. They approach the problem by introducing a generalization of the CVRP called the multiple vehicle traveling purchaser problem. In this problem there is a set of users going to a common destination and a set of potential bus stops, each one reachable by a subset of users. A fleet of homogeneous vehicles is available at a central depot. Each connection between each pair of bus stops has an asymmetric cost. A nonnegative cost is also associated with each potential assignment of a user to a bus stop. This cost is related to the distance walked by a user from his/her home to a bus stop. They also consider a fixed cost for using each vehicle. The aim of the problem is to assign each user to a potential bus stop and to find least cost routes in such a way that each bus stop with assigned users is served by a route. The total number of users assigned to the stops on a route cannot exceed the capacity of the vehicle. The total length of all the routes plus the total assignment cost must be minimized. The authors propose a branch-and-cut approach to solve the problem. Riera-Ledesma and Salazar-González [
21] work on the same problem, but including additional ‘resource’ constraints. These ‘resources’ refer to constraints involving the quality of the service: bounds on the length of the bus route from the bus stop at which the first student is collected, bounds on the maximum time a student remains on the bus, and bounds on the number of stops visited by the bus. They propose several formulations of the problem and a branch-and-cut-and-price algorithm.
Schittekat et al. [
16] emphasize that, “
when a student can be assigned to multiple stops along the same route, the allocation of this student to a particular stop is arbitrary. This is not the case if a student can be assigned to multiple stops in different routes. All students that can be assigned to multiple routes need to be distributed over those routes in such a way that the capacity of the buses is not exceeded. Compared to traditional CVRPs, the possibility to assign students to different stops offers the possibility to incur potential savings; at the same time, it introduces an extra decision level that makes the problem much more difficult to solve”. They propose a location-routing-allocation approach and develop a GRASP+VND matheuristic that integrates the bus stop selection and the bus route construction sub-problems. Once the bus stops have been selected and the routes have been fixed, the problem of allocating students to the bus stops in such a way that the capacity of the buses is not exceeded is solved by an exact method. Kinable et al. [
22] propose an exact branch-and-price algorithm for the same problem.
From the previous literature review, we notice that two factors are relevant when studying the SBRP-SS-MD: (i) the settings of the problem and (ii) the approach to deal with the three sub-problems. Regarding the settings of the problem, we conclude that there are two issues that are of interest: the routing cost for the company owning the buses, and the walking distance for the students. This has been studied as a single-objective problem, either by combining the routing cost and the walking distance in the objective function [
20,
21] or by treating the walking distance as a constraint [
16,
22] and minimizing only the routing cost. As mentioned above, in this paper we assume the formulation of the SBRP-SS-MD proposed in [
16], i.e., a single-objective problem that minimizes the total distance traveled by all the buses, while the distance that students can walk is constrained. Concerning the way of handling the above mentioned three sub-problems, the contribution of this paper is to develop an innovative matheuristic that follows a location-partial-allocation-routing approach. After selecting a subset of bus stops from which we are able to get a feasible solution, in order to compute it the procedure partially allocates the students to the selected bus stops and constructs the routes for serving these students. Then, if possible, the remaining students are allocated to the current routes. Otherwise, the number of students in the initial allocation is increased. This process is done in a smart way, so that the routing cost is kept low and diversified feasible solutions are found. Another important feature of the matheuristic proposed in this paper is the absence of parameters that need to be tuned. As stated in [
16] “
a good metaheuristic should generate high-quality solutions in little time without the need for excessive parameter tuning”. Finally, it is worth pointing out two main differences between the algorithm discussed in [
16] and the matheuristic developed in this paper. First, in the construction phase, we propose to integrate the allocation of the students and the route construction, while in [
16] the integrated sub-problems are the bus stop selection and the route generation. Second, our procedure includes the solution of four purpose-built Mixed Integer Linear Programming (MILP) problems for selecting the bus stops, together with a more general random selection, which contributes to diversifying the considered solutions. The performance of the matheuristic is tested on the 112 benchmark instances dealt with in the literature [
16,
22], obtaining good results in terms of both the quality of the solution provided and the computational time.
The paper is organized as follows. After the Introduction Section, the SBRP-SS-MD and the Integer Linear Programming (ILP) model are described in
Section 2. The matheuristic is developed in
Section 3. In
Section 4 the computational performance of the proposed algorithm is evaluated. Finally,
Section 5 concludes the paper with some final remarks.
2. Definition and ILP Model of the SBRP-SS-MD
We assume we have a single school, a set of identical buses located at a depot, each with a fixed capacity Q, a set of available bus stops, and a set of students to be transported to the school. Each bus may operate at most one route, and there are as many buses as needed. Moreover, the students can only be allocated to bus stops within a predetermined walking distance. The SBRP-SS-MD consists of selecting a subset of bus stops to be visited, determining for each student which bus stop he/she should walk to, and designing a set of bus routes through the visited bus stops, so that the total cost of the bus routes is minimized.
Let be a directed graph, where V is the node set and A is the arc set. The node set is defined as , where node 0 is the depot, U is the set of student locations and W is the set of available bus stops. The set of arcs is defined as , where and . Arcs in refer to links which are used to construct the routes. Arcs in are used to allocate students to bus stops. We assume that there are no loop arcs.
Each route starts from node 0, visits a subset of bus stops (nodes of W) and finishes visiting node 0. Bus stops do not need to be visited by a route, but if they are, they can be visited by a single route, i.e., the routes are node-disjoint (except for node 0). Every student is allocated to a visited bus stop which he/she can reach by walking, in such a way that the total number of students allocated to the bus stops visited by a bus route is limited by the capacity of the bus. As mentioned above, this problem is not a classical CVRP since the bus stops that are visited and how many students are allocated to each of them are not known a priori.
We assume that there is a nonnegative routing cost associated with each arc , representing the cost of traveling from node i to node j. The cost , , includes the routing cost from the depot to the bus stop i, and the fixed cost of using a bus. The cost , , includes the routing cost from the bus stop i to the depot passing by the school. We assume that these costs satisfy the triangle inequality, i.e., for all . There is also a nonnegative allocation cost associated with each arc , which refers to the distance walked by the student located at node k to reach bus stop i. Let D be the maximum walking distance. Taking into account that each student needs to be allocated to a bus stop he/she can reach, we redefine .
In order to formulate the SBRP-SS-MD as an ILP model, we define the binary decision variables:
For simplicity, when there is no room for confusion, we denote
by
. Then, the SBRP-SS-MD can be formulated as follows:
The objective function (1) minimizes the routing cost. Constraint (2) enforces that as many buses leave the depot (node 0) as enter the depot. Constraints (3) and (4) ensure that exactly one arc enters and leaves a bus stop if and only if the bus stop is selected. Constraints (5) and (6) guarantee that every student is allocated to a single bus stop, which must be selected to be visited. Constraints (7) impose the connectivity of the solution and the bus capacity requirement. Constraints (8)–(10) guarantee that all variables are binary. In this formulation, the constraints have been adapted from the two-index vehicle flow formulation of the CVRP proposed in [
13]. Notice that, although constraints (7) would allow the existence of isolated cycles not connected to the depot, these cycles would involve only bus stops with no students allocated. As we are looking for solutions minimizing the global routing cost, these cycles cannot belong to an optimal solution because a smaller routing cost is obtained if they are eliminated.
Figure 1 shows a feasible solution of the SBRP-SS-MD. The large green square represents the depot. Small squares represent the bus stops (in blue those which are selected and in grey those which are not selected). Red circles are the student locations. The routes are represented by solid lines. The two routes involve, respectively, two and three bus stops. Three of the five available bus stops are not used. The links allocating students to bus stops are represented by dashed lines. Both routes transport seven students.
3. A Partial Allocation Local Search Algorithm for Solving the SBRP-SS-MD
The matheuristic developed in this paper for solving the SBRP-SS-MD (called PALS hereafter) proceeds by constructing a feasible solution in each iteration while the termination condition is not met. Each iteration consists of three steps:
- Step 1:
The selection of the bus stops that can be visited (active stops) and the computation of a feasible allocation of the students to these active stops.
- Step 2:
The construction of a feasible solution of the SBRP-SS-MD by partially using the allocation determined in Step 1, computing the routes, and finally allocating all the students.
- Step 3:
The application of several local search procedures.
The algorithm also includes an initialization step to obtain some insight into the characteristics of the instance analyzed. We now explain all these steps in detail.
3.1. Initialization Step
First, we determine which bus stops must be always active because they are the only available bus stops for some students due to the maximum walking distance constraint. These are named fixed stops. Every feasible solution of the problem needs to have these bus stops activated. Moreover, those students that can only reach one fixed stop are allocated to it.
Second, we determine a lower bound on the minimum number of routes (MNR) that are needed, , where denotes the ceiling function, i.e., is the least integer greater than or equal to a.
3.2. Step 1: Selection of the Active Stops and Computation of a Feasible Allocation
There are two procedures for selecting the active stops. The first one, which is applied in the first four iterations of algorithm PALS, is based on solving a MILP problem. The purpose is to obtain good feasible solutions of the SBRP-SS-MD. The second procedure selects the active stops randomly, aiming to diversify the feasible solutions constructed by the algorithm.
3.2.1. Solving a MILP Problem for Selecting the Active Stops
This procedure identifies four ad hoc sets of active stops and the corresponding allocations aiming at being able to obtain good feasible solutions of the SBRP-SS-MD. These sets are provided by the optimal solutions of the following MILP problems. In these problems, students are allocated to bus stops, and bus stops to buses, without actually constructing the routes. A similar procedure has been proposed in [
12] for the solution of the bilevel version of the SBRP. For the sake of comprehension and because there are some differences with the MILP problems defined in that paper, we briefly explain below the characteristics of the four MILP problems considered.
In addition to the variables
y and
z already introduced, we define the variables:
where
L denotes the set of buses. We assume that
.
Figure 2 gives a scheme of the decision variables. The four problems considered are:
Lexicographic optimization assumes that the objectives are ranked in order of importance and the objective functions are minimized one at a time in order of priority. Hence, the main criterion is minimized first. Then, the second criterion is minimized subject to achieving the optimum with respect to the first criterion [
23].
Thus, in the first iteration, after solving Problem I, algorithm PALS goes to step 2 (described in
Section 3.3) with the set of active stops
and the feasible allocation FA corresponding to the active stops and the allocation of the students provided by the optimal solution of Problem I. The following three iterations do the same with Problems II to IV.
3.2.2. Selecting the Active Stops Randomly
In this procedure, which is applied from the fifth iteration, in order to select the active stops we look for a covering of the students, i.e., we select the active stops in such a way that each student has at least one bus stop within his/her neighborhood defined by the maximum walking distance
D. For this purpose, we activate the fixed stops and randomly select the remaining bus stops which will be activated to have all the students covered. In order to promote the selection of those bus stops that seem to be more promising since they appear frequently in the best solutions, a pool with the best solutions found in the previous iterations is maintained. This pool is initialized in the first iteration with the empty set. Each non-active stop is assigned a weight equal to the number of times that this bus stop appears in the solutions of the pool plus one. Then, a non-active stop is randomly selected, according to probabilities that are proportional to these weights, and activated. Every active stop covers all the students that can reach it. The above process of activating bus stops is repeated until every student is covered by at least one active stop.
Figure 3 displays a covering. The radius of each circle is the maximum distance
D.
A set of active stops, denoted by
, is now available and every student can reach at least one active stop. However, since every bus stop can handle at most
Q students, which is the capacity of the bus, we need to check if it is possible to allocate every student to an active stop. If this is the case, we have to determine a feasible allocation. Otherwise, it is impossible to construct a feasible solution of the SBRP-SS-MD with the current set of active stops. In this case, we are interested in modifying the current set of active stops to be able to achieve a feasible allocation. For this purpose, for
,
, we define the binary decision variables
and then solve the following ILP problem:
where the objective function coefficients are defined as:
and
is a random uniformly distributed number between 0 and 1. Taking into account that the coefficient matrix of problem (
23) is unimodular, the integrality constraint on the variables
can be relaxed to a nonnegativity constraint, and so problem (
23) is a Transportation Problem. Let
be the optimal objective function value of problem (
23) and let
be an optimal solution.
If , the current set of active stops allows us to allocate every student to an active stop. Let FA be the feasible allocation provided by the optimal solution, i.e., FA = . It will be partially used in the following step of the algorithm.
If
it is not possible to allocate every student to an active stop, but there exists a feasible allocation using non-active stops. Since only active stops can be used, a non-active stop with students allocated is randomly selected and activated, i.e., it is inserted in the set
. Problem (
23) is updated and solved again. This process is repeated until the optimal objective function value of problem (
23) is lower than or equal to
and so a feasible allocation is available.
If , the SBRP-SS-MD is not feasible.
It is worth mentioning that, when the set of active stops
provides a feasible allocation FA, in general it is able to provide a lot of feasible allocations. The use of the coefficients (
24) allows us to diversify, since different feasible allocations can be obtained for the same set
as the algorithm proceeds.
3.3. Step 2: Construction of a Feasible Solution from a Partial Allocation of the Students to the Active Stops
At the beginning of this step the set of active stops is available. These are the only bus stops that will be used in the incumbent solution. The allocation FA, which is also at hand, could be used to solve a CVRP to build the routes. In this case, the algorithm would follow a location-allocation-routing approach. However, we have found that this approach usually leads to solutions that are very costly in terms of the routing cost. Therefore, we propose to use partially the allocation FA, to solve a CVRP for building the routes in accordance with this partial allocation, and then try to allocate all the students using these routes. Since using a very limited partial allocation can result in a non feasible solution, a trade-off is needed between the initial number of students whose allocation is taken from FA and the number of times that we need to repeat this process to construct a feasible solution.
Algorithm 1 provides a pseudocode of the proposed procedure. The main steps are as follows. The students who can only reach one of the active stops are allocated to it. These are the fixed students in the incumbent solution. Let
be the number of these students. Let
. Also, let RS be a vector of size
in which the first components are the indices of the fixed students. The remaining components contain the indices of the other students in random order. Then, a partial allocation PFA is obtained by allocating, in accordance with FA,
students, with:
where
denotes the floor function, i.e.,
is the greatest integer less than or equal to
a. Apart from the fixed students, the remaining students to complete PFA are selected according to vector RS.
Algorithm 1: Construction of a feasible solution of the SBRP-SS-MD. |
![Mathematics 08 01214 i001]() |
Then, a CVRP is solved to obtain the routes, where the demand of each bus stop is the number of its allocated students in accordance with PFA. In order to avoid an active stop not being included in any route if it does not have students allocated in the incumbent PFA, and therefore not taken into account when completing the allocation of the students, these stops are assigned a dummy demand equal to one. Let H be the set of routes obtained.
If , it is not possible to allocate all the students to the current routes. Hence, we increase the number of allocated students in the incumbent partial allocation PFA by setting , and updating , the partial allocation PFA and the CVRP solution.
If
(with
) routes are available, we compute a feasible assignment of the students to the current set of routes. For this purpose, for
,
, we define the binary decision variables
and then solve the following ILP problem:
where the objective function coefficients are defined as:
Notice that the coefficient matrix of problem (
26) is unimodular. Hence, the integrality constraint on the variables can be relaxed to a nonnegativity constraint, and so problem (
26) is a Transportation Problem in which the origins are the routes, each with a supply equal to the bus capacity
Q, and the destinations are the students, each with demand equal to one.
Let
be the optimal objective function value of problem (
26).
If
, a feasible solution of the SBRP-SS-MD can be obtained. A set
of active stops and a set of routes
H are available. Moreover, each student has been assigned to a route according to the optimal solution of problem (
26). Regarding the specific bus stop to which the student is allocated, he/she could select any achievable bus stop in his/her assigned route. In the algorithm, each student selects his/her nearest bus stop on that route. This solution is saved if it is the best solution obtained up to this time.
At this time we ask if it is possible to reduce the number of students in the current PFA to try to construct a less costly solution of the corresponding CVRP. For this purpose, we set
, and repeat the process of updating
, the partial allocation PFA and the CVRP solution, and possibly solving again the problem (
26).
If
, the optimal solution of problem (
26) includes students who are allocated to a route for which none of its bus stops is achievable. Hence, it is not possible to get a feasible solution of the SBRP-SS-MD with the current routes. Therefore, we increase the number of students allocated in the current PFA by setting
, and repeating the process.
The process of increasing or decreasing the number of students in the partial allocation finishes when .
3.4. Step 3: Improving Routing Cost Procedures
Three local search procedures (LSP) are applied aiming to improve the objective function value (1).
LSP 1: Remove active stops and reallocate their students
Selecting every active non-fixed stop in random order, the stop is removed from the corresponding route, the two adjacent bus stops are linked, and problem (
26) is solved in order to get a feasible assignment of the students to the updated routes. If there is a feasible assignment, the bus stop is removed. Taking into account the triangle inequality, this procedure reduces the global routing cost.
LSP 2: Change active stops for non-active ones
For every active stop without fixed students in every route, in random order, we look for a non-active stop, which would reduce the routing cost if it replaces the incumbent active stop. If such a bus stop is found, it is located in the route position of the incumbent active stop, and this stop is deactivated. Then, problem (
26) is solved. If the optimal solution provides a feasible assignment, the bus stops are interchanged.
When the active stop considered is a fixed bus stop in the incumbent solution, the search is carried out only among the non-active stops that can be reached by all the students for which that was the only bus stop reachable in the incumbent solution.
LSP 3: Interchange active stops in different bus routes
For every pair of active stops belonging to different routes, we check if the routing cost is reduced when exchanging their position in their respective routes. If so, the bus stops are interchanged, and problem (
26) is solved. If there is a feasible assignment of students to routes, the bus stops are interchanged.
To finish the process, those bus stops with no students allocated are removed from the routes. Since in the implementation of the algorithm we use a heuristic to solve the CVRP, after applying the three local search procedures we solve again the CVRP with the current allocation of students, providing the current routes as initial routes. If this results in improving the objective function value, the local search procedures are applied once again and the bus stops with no students allocated are removed from the routes.
4. Computational Experiments
This section presents and discusses the computational experiments carried out to analyze the behavior of the proposed matheuristic PALS. These experiments aim to show the performance of PALS in terms of the quality of the solution provided and the CPU time involved. For this purpose, the results obtained by the matheuristic are compared with those provided in the literature [
16,
22]. The numerical experiments have been performed on a PC Intel Core i7-9700 with 3.0 gigahertz, having 32.0 gigabytes of RAM and Windows 10 64-bit as the Operating System. The code has been written in C++, TDM-GCC 4.9.2. In the computational experiments we have selected the algorithm VRP_RTR developed by C. Goer, which is an implementation of the RTR metaheuristic to generate good solutions to a CVRP instance. This algorithm is available at the VRPH library:
https://sites.google.com/site/vrphlibrary/home. Also, for solving the Transportation Problems (
23) and (
26) we have used the simplex algorithm for Transportation Problems developed by D.T. MacDonald and available at
https://github.com/engine99/transport-simplex.
The performance of algorithm PALS has been tested on the set of benchmark instances proposed in [
16]. This is a set of 112 instances in which the number of potential bus stops varies from 5 to 80, the number of students ranges between 25 and 800, the bus capacity is 25 or 50, and the maximum walking distance varies from 5 to 40. To improve the presentation of the results, we have classified the instances according to the number of potential bus stops. There are five sets. Set
involves the instances with ID from 1 to 24, which have 5 bus stops; set
involves the instances with ID from 25 to 48, which have 10 bus stops; set
involves the instances with ID from 49 to 72, which have 20 bus stops; set
involves the instances with ID from 73 to 96, which have 40 bus stops; and set
involves the instances with ID from 97 to 112, which have 80 bus stops. The school and the depot are located at the same place. These instances are very different from each other as regards the geographical distribution of the bus stops and of the students. As an illustration,
Figure 4 and
Figure 5 show a subset of these instances. Each of the benchmark instances has been solved five times. The size of the pool mentioned in
Section 3.2 has been set at 10.
We have solved problems I to IV (defined in
Section 3.2.1) using IBM ILOG CPLEX 12.9.0 with the default settings and the stopping criterion set at a time limit of 30 s for each problem. When the CPLEX run is interrupted before providing the optimal solution, the best solution at this time is saved. The termination condition of algorithm PALS has been established in terms of computing time (10 min) or number of iterations without improvement of the objective function (20 iterations), whichever is earlier. This computing time does not include the CPLEX computation time involved in solving Problems I to IV, which is evaluated separately.
We now assess the performance of algorithm PALS by comparing its results with the results presented in the literature. For this purpose, for each benchmark instance we label
,
and
, respectively, the best objective function value, the worst objective function value and the average objective function value obtained in the five runs of the experiments. The corresponding values for the CPU times are denoted by
,
and
. We denote
the total CPU time required by CPLEX for solving problems I to IV, obtained as the sum of the CPU times required to solve each of the four problems. These values are displayed in
Table 1 for each of the 112 benchmark instances. To facilitate the reading of the table, when either
or
are equal to
, a symbol ‘=’ is written in the corresponding column. The table also shows the values of the objective function and the CPU times provided in the two papers that have dealt with these benchmark instances. The values are denoted by
and
when referring to the exact method proposed in [
22], and by
and
when referring to the heuristic method proposed in [
16]. It is worth pointing out that in [
22] the exact algorithm was stopped at 3600 s of computing time with the best solution found at that time. Moreover, in [
16] only the results of one run of the heuristic algorithm are presented. None of the two references [
16,
22] include the characteristics of the computer that was used in the numerical experiments. Finally, we define
, the best objective function value provided in the literature. In
Table 1,
,
or
are written in bold if they are less than
. Also, they are underlined if they are equal to
(except in the cases in which the symbol ‘=’ is written).
For all the instances in sets and , algorithm PALS provides the optimal solution or the best known value of the objective function in all the five runs, i.e., . Notice that the optimal solution is known for all these instances, except instance 46.
Concerning set
, the optimal solution is known for 15 out of the 24 instances. In all of them, except instance 66, the optimal solution is provided in all the five runs, i.e.,
. It is worth pointing out that
is less than
in six out of these 15 instances. Although PALS does not provide the optimal solution in instance 66, we can note that
. With respect to the nine remaining instances of set
, in one instance PALS provides the best value, i.e.,
; in five instances we have
; in one instance
, and in two instances
. Summarizing, in 20 out of the 24 instances, PALS provides an objective function value at least as good as the best value provided in the literature and in one instance the value is better. By comparing PALS with the heuristic proposed in [
16], we can note that for eight instances
is less than
, while for two instances
is less than
.
Regarding set
, only six instances are solved to optimality, and in four of them we have
. PALS provides a better value of the objective function, i.e.,
in 10 out of the 24 instances, the same value
in 7 out of the 24 instances, and a worse value
in 7 out of the 24 instances. Notice that the instance 96 has not been solved with the exact method [
22]. It is worth pointing out that, when
, then the maximum gap
is less than
. Conversely, if
, then the maximum gap
is less than
.
Finally, with respect to set
, only the results of the heuristic algorithm [
16] are available. In 9 out of the 16 instances we have
; in two instances
and in the remaining five instances
. In this set, when
, then the maximum gap
is not greater than
. In contrast, if
, then the maximum gap
is not greater than
.
Summarizing, in 20 out of the 112 instances algorithm PALS provides an objective function value that is better than the best value in the literature, and in 76 instances provides the same value. It is also noted that for 27 instances is less than , while for 14 instances is less than . As a consequence, we can conclude that PALS performs very well in terms of the objective function value.
Regarding the CPU times, the performance of PALS is even better.
Table 2 summarizes, for each set of instances, the average and the standard deviation of the time required by PALS computed as
in the second and third columns, of the time
required by the exact method in the fourth and fifth columns, and of the time
required by the heuristic method in the sixth and seventh columns. The increase in the average CPU time is quite evident in all the sets when comparing PALS with the exact method [
22], and is marked in sets
and
when comparing PALS with the heuristic procedure [
16] (even when we consider that, for each instance, the value of
corresponds to an average of five runs of PALS, while the value of
corresponds to a single run). Moreover, it is worth mentioning that the variability of the total time required by PALS is significantly lower than the variability of the computing times required by the exact and the heuristic methods proposed, respectively, in [
22] and [
16]. Finally, it should be noted that the CPU times required by PALS are small enough to make the application of the algorithm interesting in real situations.