Research Article  Open Access
P. Kabcome, T. Mouktonglang, "Vehicle Routing Problem for Multiple Product Types, Compartments, and Trips with Soft Time Windows", International Journal of Mathematics and Mathematical Sciences, vol. 2015, Article ID 126754, 9 pages, 2015. https://doi.org/10.1155/2015/126754
Vehicle Routing Problem for Multiple Product Types, Compartments, and Trips with Soft Time Windows
Abstract
This paper presents a mathematical model to solve the vehicle routing problem with soft time windows (VRPSTW) and distribution of products with multiple categories. In addition, we include multiple compartments and trips. Each compartment is dedicated to a single type of product. Each vehicle is allowed to have more than one trip, as long as it corresponds to the maximum distance allowed in a workday. Numerical results show the effectiveness of our model.
1. Introduction
The vehicle routing problem (VRP) is a wellknown problem in the operation research and combinatorial optimization presented by Dantzig and Ramser [1]. The VRP is also an important problem in the fields of transportation, distribution, and logistics. The context is planning the route to deliver goods from a central depot to customers who have placed orders for such goods. The objective of the VRP is to minimize the total route cost. According to the importance of the VRP, there are so many literatures which refer to the models and the solution of the VRP. Many papers present the different views of the problem, the different features of the system, and the different approaches to solve the problem (see [2–6] and references therein).
The vehicle routing problem with time windows (VRPTW) is a variant of the VRP (Figure 1). A solution of the VRPTW is a set of routes consisting of sequences of customers. Each route is assigned to arrive within their time windows. In addition, if a vehicle arrives before (or after) the lower (or upper) bound of the customer’s time window, the vehicle cannot deliver goods to the customer (see [7–12]). An exception of VRPTW problem is that the time windows can be violated if the penalty is paid. In this case, it is called the vehicle routing problem with soft time windows (VRPSTW). In VRPSTW, each customer has a desirable time window with the highest satisfaction as and a hard time window . A soft time window is shown in Figure 2. In the intervals and the service is allowed for some penalty fee. The interested reader may find more information in [13–16].
The vehicle routing problem with multiple trips (VRPMT) is another variant of the classical VRP. Each vehicle can be scheduled for more than one trip, as long as it corresponds to the maximum distance allowed in the workday [17–20].
The vehicle routing problem with multiple compartments (VRPMC) is also a special case of the VRP. Each compartment of the vehicle has a limit and is dedicated to a single type of products [21, 22].
Many papers present the different views of VRP; there has not been any VRP mathematical model for multiple compartments, trips, and time windows. Several papers presented VRP for single product type. However, in [23], the author presents a model on distributing multiple items for customer.
In this paper, we address the mathematical model for the VRP for multiple product types, compartments, and trips with soft time windows (VRPMPCMTSTW). The proposed VRP can be regarded as the extension to three problems which are(i)the vehicle routing problem with multiple compartments,(ii)the vehicle routing problem with multiple trips,(iii)the vehicle routing problem with soft time windows.
The summary of the three mentioned problems is presented in Table 1. It is clear that our mathematical model solves the classical VRP since it is a special case for the VRP with multiple compartments, trips, and time windows. The time window cases are studied because they are more practical and the soft time window cases are further investigated due to the feasibility of the problem and, in some cases, due to the fact that it reduces the total cost.

In this paper, we present our mathematical models in three cases to see the development process of our study. In the first case, we consider the VRP for multiple product types, compartments, and trips where there is not a time window (model 1). Then we consider the case with time window (model 2) and, finally, the case with soft time window (model 3).
From the above content, model 3 generalizes all previous models mentioned in this paper. It is worth pointing out that another goal of the formulation is to try to formulate the mathematical models which are feasible and solvable by available solvers in a reasonable time. In this research, all models are solved by using AIMMS 3.13 on a personal computer. The remainder of the paper is organized as follows. In Section 2, the problem is defined. Also the assumptions, notations, and mathematical models are presented. Section 3 contains the computational results of our formulations. We use the same set of data from [23] to examine the feasibility and solutions of the model. Finally, in Section 4, we summarize our conclusion and provide pointers for further research.
2. Problem Formulation
In this section, we present a mathematical model for the vehicle routing problem for multiple product types, compartments, and trips with soft time windows. The following notations are introduced to formulate the mathematical model.
Sets (Indexes). Let be a directed graph where is a set of vertices and is a set of arcs representing the connections between the depot and customers and among the customers, where . Indeed, let be a node set ( is origin and is destination), , be the arc set, be a set of vehicles, be a set of product types, be a set of compartments, be a set of trips.
Parameters. Let be a distance between customers and , be a time (hour) from customers to (e.g., when means traveling speed of each vehicle), be the demand of the customer in product , be the capacity of a compartment in the vehicle , be an arbitrary big number (e.g., ), be the fixed cost per kilometer of running of each vehicle, be the cost per unit travel per unit of load of product type by the vehicle, be a service time at the customer , be the lower bound of soft time window for the node , be the upper bound of soft time window for the node , be the lower bound of hard time window for the node , be the upper bound of hard time window for the node , be penalty cost per hour for the earliness, be penalty cost per hour for the lateness.
Decision Variables. Consider is the quantity of product type to be transported from node to node by vehicle in trip , is the quantity of product type to be disposed at node by vehicle in trip , is the starting time of service in node by the vehicle in trip , is the violation degree of a lower bound of soft time window, is the violation degree of an upper bound of soft time window, andThe problem is solved under the following assumptions:(1)Every customer can be served by one and only one vehicle.(2)Every vehicle starts and ends only at the central depot.(3)The total demand on one particular route must not exceed the capacity of the vehicle.(4)Each customer must be served in the related hard time window.(5)A service (wait) time in each customer is allowed.(6)The hard time windows must not be violated.(7)The soft time windows can be violated at a fixed cost.
Mathematical Model. The vehicle routing problem for multiple product types, compartments, and trips (model 1) can then be stated mathematically as follows:
We minimize objective function (3) which consists of two components. The first component represents traveling cost. It depends on distances covered by vehicles and the fixed costs per unit distance. The second component is defined as the fleet cost which is equal to the sum of the costs related to the loading and distance. Constraints (4) are the flow conservation of a vehicle. That is, for , every vehicle starts only once at the depot and no arc terminates at node , and also, for , every vehicle ends only once at the depot and no arc originates from node , and indicate that exactly one vehicle enters and leaves each customer node. Constraints (5) require the fact that each customer is serviced exactly once. Constraints (6) state that all customers must be assigned to at most one vehicle. Constraints (7) ensure that the total number of quantity transported does not exceed the vehicle’s capacity. Constraints (8) state that the sum of the quantities of product type disposed at a customer by all the vehicles must be equal to the demand for product . Constraints (9) represent the sum of quantities of the product type to be transported by the vehicle to the customer from the depot node (). It should in total be greater than the total sum of the demands at all customers. Constraints (10) state that the quantity of product transported to a customer minus the quantity disposed at that customer must be equal to the quantity transported to the next customer by the vehicle. Constraints (11) represent the transported quantity. That is, variable if route segment is not used by vehicle ; otherwise it should not exceed the total tonnage capacity of vehicle . Constraints (12) state that each vehicle must not load at the depot. Constraints (13) and (14) are the flow conservation constraints which describe the vehicle path. Constraints (15) define a limit for each compartment to be dedicated to a single type of product.
This model can be extended to the model called vehicle routing problem for multiple product types, compartments, and trips with time windows (model 2). In the next model, we include the time windows for each node. Consider
Constraints (16) ensure feasibility of the time schedule; that is, must be greater than or equal to whenever the vehicle travels from to . By rewriting constraints (16), they can be replaced with the following constraints:
Constraints (18) ensure that the starting time of a service does not violate the given hard time window.
Proposition 1. Constraintsare valid for model 2. Moreover, any that satisfies constraints (19) satisfies constraints (17).
Proof of Proposition 1 is straightforward and, thus, we omit it.
The vehicle routing problem for multiple product types, compartments, and trips with time windows can be stated as follows:
Constraints (18) assure that the starting time of services does not violate the given hard time windows. Constraints (21) assure that the starting time in next trip of each vehicle is satisfied.
Finally we consider the complete the generalization of all models mentioned in this paper. We include soft time windows for each time window allowing the vehicle to enter the depot earlier or later with some penalties. The vehicle routing problem for multiple product types, compartments, and trips with soft time windows (model 3) can then be stated mathematically as
The objective function differs from models 1 and 2 by adding the third component. The objective function is to minimize the sum of the cost of traveled distances, total of costs related to loading products, and the total penalties of the outrage from soft time windows. We then replaced constraints (19) and (18) by constraints (23). Constraints (24) determine the violation degree of the lower and upper bound of soft time windows for each node.
3. Numerical Results
Let be nodes where and are the same nodes. First of all, we consider test problems in order to observe the feasibility and solvability of the models. We test our models on the sets of 5, 10, and 15 customers. We use the same set of data from [23] to examine the feasibility and solutions of the model. Clearly, our models are more general than the one in [23]. However, we use this data set as a special case. Second of all, we randomly generate demands, service times, time windows of the customers, and distances between nodes as in Tables 2–6. The demands of customers are given in Tables 4–6.





We assume that there are two vehicle types: and and two product types: and . For a general number of vehicles and products, some modifications can be easily done. We define our compartment in Table 7. We only allow a maximum of two trips per day for each vehicle. Obviously, for more general maximum number of trips per day, a small modification can be easily done as well too. For the parameters related to cost function, we let the unit penalty of the earliness be 100 units and we let unit penalty of lateness be 200 units. The cost of travel and loading are shown in Tables 8 and 9. Let also the lower bound of hard time window for the node be . The upper bound of hard time window for the node is and the service time for each node is 10 unit times and is 20unit distance per unit time.



All models have been coded and solved by AIMMS 3.13 [24]. They were run on a computer equipped with a processor Intel Core i5 at 2.3 GHz and 2 GB of RAM memory. The optimal solutions are obtained in Tables 10–12. The average run time for each case is included in Tables 10–12. As one can see, our model can be executed by an available solver on a personal computer in a reasonable time. We present the detailed optimal results of model 3 in the case of 15 customers for the effectiveness of the model. The optimal solutions are presented in Tables 13–16.







From the numerical examples, it is to be expected that the optimal values for the case where time windows are allowed are less than the case where the time windows are not allowed. Detailed results on each problem can be found in Tables 10, 11, and 12 for the of cases models 1 and 2. However, there are a few cases where the time windows do not have any effect. In these cases, the optimal values for both cases should be coincided. As for the case with soft time windows, together with the penalty, we expect that the optimal value of the soft time windows case should obviously be less than the (hard) time windows since the feasible solution set for the soft time windows is strictly larger than the feasible solution set or the time windows. The results of this experiment are shown in Tables 10, 11, and 12 in cases of models 2 and 3.
4. Conclusion
In this paper, we present a mathematical model for the vehicle routing problem for multiple product types, compartments, and trips with soft time windows. We have verified our feasibilities and attended the optimal solution for the problems. We use the software package AIMMS to solve the problems on a personal computer. The run times are acceptable. Numerical results show the effectiveness of our model.
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
Acknowledgments
The authors would like to thank the referees for their valuable comments and suggestions. This research is supported by the Centre of Excellence in Mathematics, the Commission on Higher Education, Thailand.
References
 G. B. Dantzig and J. H. Ramser, “The truck dispatching problem,” Management Science, vol. 6, pp. 80–91, 1959. View at: Google Scholar
 M. Ball, T. Maganti, C. Monma, and G. Nemhasuser, Handbook in Operations Research and Management Science, 8: Network Routing, 1995.
 J.F. Cordeau, M. Gendreau, G. Laporte, J.Y. Potvin, and F. Semet, “A guide to vehicle routing heuristics,” Journal of the Operational Research Society, vol. 53, no. 5, pp. 512–522, 2002. View at: Publisher Site  Google Scholar  Zentralblatt MATH
 M. Gendrau, G. Laport, and J. Potvin, “Vehicle routing: modern heuristics,” in Local Search in Combinatorial Optimization, E. Aarts and J. Lenstra, Eds., pp. 311–336, Wiley, London, UK, 1997. View at: Google Scholar
 B. Golden and A. Assad, Vehicle Routing: Methods and Studies, Elsevier Science, Amsterdam, The Netherlands, 1988.
 P. Toth and D. Vigo, The Vehicle Routing Problem, vol. 9 of SIAM Monographs on Discrete Mathematics and Applications, 2002.
 J.F. Cordeau, G. Laporte, and A. Mercier, “A unified tabu search heuristic for vehicle routing problems with time windows,” Journal of the Operational Research Society, vol. 52, no. 8, pp. 928–936, 2001. View at: Publisher Site  Google Scholar
 M. Desrochers, J. Desrosiers, and M. Solomon, “A new optimization algorithm for the vehicle routing problem with time windows,” Operations Research, vol. 40, no. 2, pp. 342–354, 1992. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 J. Homberger and H. Gehring, “Two evolutionary metaheuristics for the vehicle routing problem with time windows,” INFOR Journal, vol. 37, pp. 297–318, 1999. View at: Google Scholar
 G. Ioannou, M. Kritikos, and G. Prastacos, “A greedy lookahead heuristic for the vehicle routing problem with time windows,” Journal of the Operational Research Society, vol. 52, no. 5, pp. 523–537, 2001. View at: Publisher Site  Google Scholar  Zentralblatt MATH
 N. Kohl and O. B. Madsen, “An optimization algorithm for the vehicle routing problem with time windows based on Lagrangian relaxation,” Operations Research, vol. 45, no. 3, pp. 395–406, 1997. View at: Publisher Site  Google Scholar  MathSciNet
 M. M. Solomon, “Algorithms for the vehicle routing and scheduling problems with time window constraints,” Operations Research, vol. 35, no. 2, pp. 254–265, 1987. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 N. Balakrishnan, “Simple heuristics for the vehicle routeing problem with soft time windows,” Journal of the Operational Research Society, vol. 44, no. 3, pp. 279–287, 1993. View at: Publisher Site  Google Scholar
 G. Ioannou, M. Kritikos, and G. Prastacos, “A problem generatorsolver heuristic for vehicle routing with soft time windows,” Omega, vol. 31, no. 1, pp. 41–53, 2003. View at: Publisher Site  Google Scholar
 H. Min, “A multiobjective vehicle routing problem with soft time windows: the case of a public library distribution system,” SocioEconomic Planning Sciences, vol. 25, no. 3, pp. 179–188, 1991. View at: Publisher Site  Google Scholar
 É. Taillard, P. Badeau, M. Gendreau, F. Guertin, and J.Y. Potvin, “A tabu search heuristic for the vehicle routing problem with soft time windows,” Transportation Science, vol. 31, no. 2, pp. 170–186, 1997. View at: Publisher Site  Google Scholar
 B. Fleischmann, “The vehicle routing problem with multiple use of vehicles,” Working Paper, Fachbereich Wirtschaftswissenschaften, University Hamburg, Hamburg, Germany, 1990. View at: Google Scholar
 R. J. Petch and S. Salhi, “A multiphase constructive heuristic for the vehicle routing problem with multiple trips,” Discrete Applied Mathematics, vol. 133, no. 1–3, pp. 69–92, 2003. View at: Publisher Site  Google Scholar  MathSciNet
 A. Olivera and O. Viera, “Adaptive memory programming for the vehicle routing problem with multiple trips,” Computers & Operations Research, vol. 34, no. 1, pp. 28–47, 2007. View at: Publisher Site  Google Scholar  MathSciNet
 C. Prins, “Efficient heuristics for the heterogeneous fleet multitrip VRP with application to a largescale real case,” Journal of Mathematical Modelling and Algorithms, vol. 1, no. 2, pp. 135–150, 2002. View at: Publisher Site  Google Scholar  MathSciNet
 A. E. Fallahi, C. Prins, and R. Wolfler Calvo, “A memetic algorithm and a tabu search for the multicompartment vehicle routing problem,” Computers & Operations Research, vol. 35, no. 5, pp. 1725–1741, 2008. View at: Publisher Site  Google Scholar
 U. Derigs, J. Gottlieb, J. Kalkoff, M. Piesche, F. Rothlauf, and U. Vogel, “Vehicle routing with compartments: applications, modelling and heuristics,” OR Spectrum, vol. 33, no. 4, pp. 885–914, 2011. View at: Publisher Site  Google Scholar  MathSciNet
 C. G. Tapia, “A mixedbinary linear model for fleet routing and multiple producttype distribution,” Philippine Management Review, vol. 6, no. 1, pp. 75–86, 19951996. View at: Google Scholar
 M. Roelofs and J. Bisschop, AIMMS Language Reference, Paragon Decision Technology, 2013.
Copyright
Copyright © 2015 P. Kabcome and T. Mouktonglang. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.