Presentation is loading. Please wait.

Presentation is loading. Please wait.

Integer Linear Programming Refining Procedures for Vehicle Routing Problems Paolo Toth DEIS, University of Bologna, Italy. IASI - CNR, Roma, March 9, 2010.

Similar presentations


Presentation on theme: "Integer Linear Programming Refining Procedures for Vehicle Routing Problems Paolo Toth DEIS, University of Bologna, Italy. IASI - CNR, Roma, March 9, 2010."— Presentation transcript:

1 Integer Linear Programming Refining Procedures for Vehicle Routing Problems Paolo Toth DEIS, University of Bologna, Italy. IASI - CNR, Roma, March 9, 2010

2 Outline - The Distance-Constrained Capacitated Vehicle Routing Problem (DCVRP). - The Open Vehicle Routing Problem (OVRP). - An ILP improvement procedure for VRPs. - Computational results for OVRP. - Computational results for DCVRP. - Conclusions.

3 Based on the papers: T., Tramontani, “An ILP Local Search for Capacitated Vehicle Routing Problems”, from The Vehicle Routing Problem: Latest Advances and New Challenges (Golden, Raghavan, Wasil, Eds.), Springer, 2008. Salari, T., Tramontani, “An ILP Improvement Procedure for the Open Vehicle Routing Problem”, Computers & Operations Research (to appear).

4 Given a “depot”, a set of n “customers” (each having a positive demand), and a fleet of m identical vehicles (each having a “maximum distance” D and a “capacity” Q): Constraints: -Each customer must be visited by exactly one “route”. -Each route must start from the depot, visit a subset of customers and return to the depot. -Each vehicle can perform at most one route. -Each route must have a “global demand” not exceeding Q. Capacitated Vehicle Routing Problem (CVRP)

5 Given a “depot”, a set of n “customers” (each having a positive demand), and a fleet of m identical vehicles (each having a “maximum distance” D and a “capacity” Q): Constraints: -Each customer must be visited by exactly one “route”. -Each route must start from the depot, visit a subset of customers and return to the depot. -Each vehicle can perform at most one route. -Each route must have a “global demand” not exceeding Q. -Each route must have a “global cost” (distance traveled, duration) not exceeding D. Distance-Constrained Capacitated Vehicle Routing Problem (DCVRP)

6 Objectives: -Minimize the number of used vehicles as first objective, and then the global traveling cost. -Minimize the global traveling cost. DCVRP is strongly NP-Hard: generalization of the Bin Packing Problem (traveling costs equal to 0) and of the Traveling Salesman Problem (m = 1). Distance-Constrained Capacitated Vehicle Routing Problem (2)

7 -n = 13, m = 3 Depot + + + + + + + + + + + + + Customers + Distance-Constrained Capacitated Vehicle Routing Problem (3)

8 Open Vehicle Routing Problem (OVRP) -A variant of the “classical” Distance-Constrained Capacitated Vehicle Routing Problem in which the vehicles are not required to return to the depot after completing their service. Depot + + + + + + + + + + + + + Customers + Final Customers

9 Given a “depot”, a set of n “customers” (each having a positive demand), and a fleet of m identical vehicles (each having a “maximum distance” D and a “capacity” Q): Constraints: -Each customer must be visited by exactly one “open route” (path). -Each route must start from the depot and visit a subset of customers. -Each vehicle can perform at most one route. -Each route must have a “global demand” not exceeding Q. -Each route must have a “global cost” (distance traveled, duration) not exceeding D. Open Vehicle Routing Problem (1)

10 Objectives: -Minimize the number of used vehicles as first objective and then the global traveling cost. -Minimize the global traveling cost. OVRP is strongly NP-Hard: generalization of the Bin Packing Problem (traveling costs equal to 0) and of the Shortest Hamiltonian Path Problem (m = 1). Open Vehicle Routing Problem (2)

11 If a directed graph is considered: OVRP is a special case of the classical DCVRP (by setting to zero the cost of each arc entering the depot). If an undirected graph is considered: DCVRP is a special case of OVRP: any DCVRP instance on n customers in a complete undirected graph can be transformed into an OVRP instance on n customers, but no transformation exists in the reverse direction (Letchford – Lysgaard - Eglese, JORS, 2007). Open Vehicle Routing Problem (3)

12 -Companies not owning a vehicle fleet: customers are served by hired vehicles which are not required to come back to the depot (Tarantilis et al., JORS 2005). -Pick up and delivery applications where each vehicle starts from the depot, delivers to a set of customers and then it is required to visit the same customers in reverse order, picking up items to be back-hauled to the depot (Schrage, Networks, 1981). -Planning of train services and school bus routes (Fu- Eglese-Li, JORS, 2005). Open Vehicle Routing Problem Applications

13 Exact Algorithms (no distance constraints, no empty route): - Letchford – Lysgaard – Eglese (JORS, 2007): branch- and-cut, - Pessoa – Poggi de Aragao – Uchoa (“The VRP: Latest Advances and New Challenges”, Golden, Raghavan, Wasil, eds, Springer, 2008): branch-and-cut-and-price. OVRP Literature

14 Heuristic Algorithms (distance constraints, minimize the number of routes and then the global cost): - Brandao (EJOR, 2004): tabu search heuristics, - Fu – Eglese – Li (JORS, 2005 and 2006): tabu search heuristics, - Li – Golden - Wasil (Computers & O.R., 2007): record to record travel heuristic, - Pisinger – Ropke (Computers & O.R., 2007): adaptive large neighborhood search heuristic following a destruct-and-repair paradigm, - Derigs – Reuter (JORS, 2008): tabu search heuristics, - Fleszar - Osman - Hindi (EJOR, 2009): variable neighborhood search heuristic, - Li – Tian – Leung (JORS, 2009): ant colony optimization heuristic. OVRP Literature (2)

15 Heuristic Algorithms ( no distance constraints, minimize the global cost): - Sariklis - Powell (JORS, 2000): two phase heuristic, - Tarantilis – Diakoulaki – Kiranoudis (EJOR, 2004): population based heuristic, - Tarantilis – Iannou – Kiranoudis - Prastacos (JORS, 2005): threshold accepting metaheuristic. OVRP Literature (3)

16 An ILP improvement procedure for OVRP (General description of the algorithm) Given a feasible initial solution z for OVRP: 1) Selection phase: Randomly select a set F of customers. 2) Extraction phase: Extract the customers in F and build a restricted solution z(F) by short-cutting the extracted customers. Each edge in z(F) is viewed as an insertion point i which can allocate one or more customers in F. Denote with I the set of all the insertion points. ( For each restricted route, add to z(F) an insertion point (artificial arc with cost 0) connecting the last customer of the route with the depot.

17 General description of the algorithm (2) 3) Recombination phase 3) Recombination phase: insertion point i in I, g For each insertion point i in I, generate a pool S i of sequences through the recombination of the customers in F (pool of elementary paths connecting subsets of customers in F ), by using a Column Generation Procedure. 4) Reallocation phase: Reallocate all the extracted customers to the restricted solution (through the possible insertion of a sequence of S i into insertion point i in I ) in an optimal way (i.e., by minimizing the global re-insertion cost), by solving an ILP model (Reallocation Model). The previous 4 phases are iteratively executed.

18 Similar framework proposed for the CVRP in: - De Franceschi - Fischetti - T. (Mathematical Programming, 2006). Presented at IASI-CNR, May 17, 2005 (Mini-Workshop in Discrete Optimization, in honor of Egon Balas). Other heuristic algorithms based on the optimal solution of ILP models:... Fischetti – Lodi (Mathematical Programming, 2004): general MIPs (“Local Branching”), Danna – Rothberg – Le Pape (Mathematical Programming, 2005): general MIPs, Archetti – Speranza- Savelsbergh ( Transportation Science, 2008): Split Delivery VRP, Hewitt – Nemhauser – Savesbergh (INFORMS Journal oj Computing, 2009): Capacitated Fixed Charge Network Flow Problem....

19 Initial solution

20 Addition of the final arcs

21 Selection phase

22 Extraction phase Restricted Solution

23 Recombination phase

24 Allocation phase 1

25 Allocation phase 2

26 Elimination of the final arcs

27 Selection Criteria (choice of F) 1)Random-Alternate scheme: for any route, select in a random way all the customers in odd position or all the customers in even position. 2)Scattered scheme: each customer is selected with a probability p; this scheme allows for the removal of consecutive customers (route subsequences) 3)Neighborhood scheme: given a “seed” customer r, then r is selected and other customers v are selected with a probability inversely proportional to the distance of v from r (so that (p n) customers are selected on average). The seed customer is iteratively randomly chosen. The seed customer is iteratively randomly chosen. Computational experiments: schemes 1) and 2) lead to strong improvements of “bad initial solutions”, scheme 3) better for “good initial solutions”. Computational experiments: schemes 1) and 2) lead to strong improvements of “bad initial solutions”, scheme 3) better for “good initial solutions”.

28 Reallocation Model Notations and definitions : - z(F): Restricted Solution obtained by extracting the customers in F from the initial solution. - : set of routes in the restricted solution. -I = I (z, F): set of edges in the restricted solution (set of insertion points in z(F) ). -S i : subset of the sequences s which can be allocated to insertion point i (for each insertion point i in I ); S i (v): subset of S i containing customer v (for each v in F). -q(s): global demand of sequence s.

29 Reallocation Model (2) - : extra cost for assigning sequence s to insertion point i. -I(r): set of insertion points associated with restricted route r. - and : global demand and cost, respectively, of restricted route r.

30 Reallocation Model (3) Subject to:

31 Recombination phase 1)Initialization For each insertion point i  I, initialize subset S i with: - the “basic” sequence extracted from i ; - the feasible singleton sequence (single customer v in F) with the minimum insertion cost; Initialize the LP Relaxation of the Reallocation Model (LRM) with the initial pool of variables corresponding to the current sequences, and solve LRM.

32 -For each insertion point i  I, add to the pool of variables all the feasible sequences {v1, v2} (v1, v2  F ) having reduced cost less than a given threshold RC max. -For each insertion point i  I, solve the column generation problem associated with i, adding to S i all the feasible sequences corresponding to elementary paths in F whose associated variables have a reduced cost less than RC max. Recombination phase: Column Generation Procedure

33 - For any insertion point i  I, the column generation problem associated with i in LRM is a “Resource Constrained Elementary Shortest Path Problem” (RCESPP), which usually arises in the Set Partitioning formulation of CVRP. - For each insertion point i  I, we solve the corresponding RCESPP through a greedy heuristic, with the aim of finding as many variables with small reduced cost as possible. Recombination phase: Column Generation Procedure (2)

34 Recombination phase: Column generation (Heuristic Algorithm) Given an insertion point i = (a,b) and a starting feasible path P = {a,v,b}, with v  F, s.t. the insertion of v between a and b has the minimum reduced cost. 1)Evaluate all the 1-1 feasible exchanges between each extracted customer and each customer v  P, and select the best one (minimum reduced cost); if such an exchange leads to an improvement, perform it and repeat 1. 2)Evaluate the feasible insertion of each extracted customer in each edge (v1,v2)  P, and select the best one. Force such an insertion even if it leads to a worsening of the current path, and repeat from Step 1). If no feasible insertion exists then stop. At any time a new path (sequence) is generated, the corresponding variable is added to the pool of variables if its reduced cost is smaller than RC max.

35 Overall Improvement Procedure 1. (Initialization) Set kt := 0 and kp := 0. Take the starting solution Z 0 as the incumbent solution, and initialize the current solution Z c as Z c := Z 0. 2. (Customer selection) Build the set F by selecting each customer with a probability p. 3. (Customer extraction) Extract the customers of F from the current solution Z c and build the corresponding restricted OVRP solution Z c (F), obtained by shortcutting the extracted customers (I = corresponding insertion point set). 4. (Reallocation) Define the sequence sets S i (i  I ) as previously described (column generation on LRM). Build the corresponding Reallocation Model and solve it by using a general-purpose ILP solver. Once an optimal (or near-optimal) ILP solution has been found, build the corresponding new OVRP solution and possibly update Z c and Z 0.. 5. (Termination) Set kt := kt + 1. If kt = Kt max then Stop. 6. (Perturbation) If Z c has been improved in the last iteration, set kp := 0; otherwise set kp := kp + 1. If kp = Kp max, “perturb” the current solution Z c and set kp := 0. In any case, repeat from Step 2.

36 Perturbation Procedure -If the current solution is not improved after a given number Kp max of consecutive iterations, a random perturbation is performed. -Randomly extract np customers from the current solution Z c (with np randomly generated in a given interval). -Reinsert each extracted customer, in turn, in its best feasible position different from the original one. -If a customer cannot be inserted in any currently non-empty route (due to the capacity and/or distance constraints), a new route is created to allocate the customer.

37 Computational Results for OVRP 24 Benchmark instances from the literature, taken from: - Christofides – Mingozzi – T. (“Combinatorial Optimization”, Christofides – Mingozzi – T. - Sandi, eds, Wiley, 1979; instances C1-C14, n: 50 - 199); - Fisher (Operations Res., 1994; instances F11-F12, n: 71 - 134); - Li – Golden – Wasil (Computers & O.R., 2007; large instances O1-O8, n: 200 - 480). -C1-C5, C11-C12, F11-F12 and O1-O8 instances have only capacity constraints; -C6-C10 and C13-C14 are the same instances as C1-C5 and C11-C12, respectively, but with both capacity and distance constraints (modified for OVRP: D = 0.9 (original duration)), and a larger number of vehicles.

38 Computational Results for OVRP (2) -Algorithm coded in C. -Test on a Pentium IV, 3.4 GHz with 1 GByte RAM. -Times expressed in seconds. -ILOG Cplex 10.0 as LP and ILP solver. -5 runs executed for each instance (with 5 different random number generator seeds). -Parameters : -RC max = 1 (threshold for the reduced costs), - p = 0.5 (probability for a customer to be extracted), -Kt max = 5000 (max. number of main iterations), -Kp max = 50 (max. number of iterations without improvement), -np randomly generated between 15 and 25 (number of customers extracted for the perturbation).

39 Computational Results for OVRP (3) Very good solutions (sometimes the best known solution!) considered as “Initial Solutions”. -Provided by: Fu – Eglese – Li (JORS, 2005 and 2006), Pisinger – Ropke (Computers & O.R., 2007), Derigs – Reuter (JORS, 2008), Fleszar – Osman - Hindi (EJOR, 2009).

40 InstancesPrev.best sol.mInitial solution CostTime C2567.1410567.147.8 C3639.74*8641.8823.2 C4733.1312738.946.8 C5869.2517878.9561.9 C6412.966 0.6 C7568.4911568.496.0 C8644.639646.3181.9 C9756.1414761.2846.6 C10875.0717903.1051.9 C11682.127717.1523.1 C12534.24*10534.714.2 C13896.5012917.9082.1 C14591.8711600.662.5 F12769.667777.0728.4 Average deviation (time)1.18(30.5) Pentium IV 3 GHz Computational results on the 16 “classical” instances, starting from the solutions by Fu-Eglese-Li Provably optimal solutions. Initial solutions optimal for C1 and F11.

41 InstancesPrev.best sol.mInitial solutionBest solution Average solution Average best time Average final time CostTime C2567.1410567.147.8567.14 84.5 C3639.74*8641.8823.2639.74*640.2891.6121.5 C4733.1312738.946.8733.13 4.7166.3 C5869.2517878.9561.9868.81 16.0234.4 C6412.966 0.6412.96 44.8 C7568.4911568.496.0568.49 82.7 C8644.639646.3181.9644.63 1.2147.9 C9756.1414761.2846.6756.14756.24124.8268.0 C10875.0717903.1051.9877.47879.01330.8490.6 C11682.127717.1523.1682.83683.94167.2231.9 C12534.24*10534.714.2534.24*534.2454.6101.1 C13896.5012917.9082.1894.19896.35663.51178.7 C14591.8711600.662.5591.87 237.8367.1 F12769.667777.0728.4769.55770.0564.4159.7 Average deviation (time)1.18(30.5)0.000.06(140.6)(262.8) Pentium IV 3 GHzPentium IV 3.4 GHz Computational results on the 16 “classical” instances, starting from the solutions by Fu-Eglese-Li Provably optimal solutions. Final solution cost equal to the previous best known one. 3 new best solutions. Initial solutions optimal for C1 and F11.

42 InstancesPrev.best sol.mInitial solutionBest solution Average solution Average best time Average final time CostSource C2567.1410567.14 Fu..., Pisinger..., Fleszar... 567.14 84.5 C4733.1312733.13 Fu..., Pisinger..., 733.13 146.0 C5869.2417869.24 Derigs-Reuter 868.93868.94143.8263.4 C6412.966 Fu..., Pisinger..., Fleszar... 412.96 44.8 C7583.19 568.49 10 11 583.19 568.49 Pisinger-Ropke Fu-Eglese_Li 583.19 568.49 583.19 568.49 81.2 82.7 81.2 82.7 C8644.639 Fleszar-Osman-Hindi 644.63 138.0 C9757.84 756.14 13 14 757.84 756.14 Pisinger-Ropke Derigs-Reuter 757.69 756.14 757.72 756.14 76.5 234.8 391.7 234.8 C10875.0717875.07 Derigs-Reuter 874.71 2.3394.4 C11682.127 Pisinger-Ropke, Fleszar... 682.12 178.3 C13904.04 896.50 11 12 904.04 917.90 Fleszar-Osman-Hindi Fu-Eglese_Li 899.16 894.19 899.16 896.35 45.9 663.5 1003.9 1178.7 C14591.87 581.81 11 12 591.87 581.81 Pisinger-Ropke, Fleszar... Derigs-Reuter 591.87 581.81 591.87 581.81 285.8 324.6 285.8 324.6 F12769.667 Fleszar-Osman-Hindi 769.55769.5999.6142.0 Average deviation (time)0.25-0.060.05(169.3)(320.2) Computational results on the 16 “classical” instances, starting from the best available solutions 6 new best solutions (over 12). Initial solutions optimal for C1, C3, C12, F11

43 InstancesPrev.best sol.mInitial solutionBest solution Average solution Average best time Average final time CostTime O16018.525 4676018.52 178.4 O24584.5594584.695494573.53 156.1318.8 O37731.467 40477731.46 295.4 O47260.59107260.599277251.747254.51220.0422.0 O59167.199 11869156.749159.60238.6504.5 O69803.8099805.4512319804.259805.21558.1604.0 O710348.571010348.57319010344.37 229.4661.9 O812420.161012420.16196912420.16 645.9 Average deviation (time)0.00(1685.5)-0.06-0.05(315.2)(453.9) Pentium IV 2.8 GHzPentium IV 3.4 GHz Computational results on the 8 “large-size” instances, starting from the solutions by Derigs-Reuter (JORS, 2008) 4 new best solutions (over 8)

44 InstancesPrev.best sol.mInitial solutionBest solution Average solution Average best time Average final time CostTime C1416.06*5467.800.0416.06*416.8421.866.3 C2564.0611657.070.1564.06 46.783.8 C3639.74*8768.930.1642.14642.6361.9117.8 C4733.13121069.380.2738.05742.94101.5178.0 C5869.24171449.200.4879.89884.95211.8272.4 C6412.966444.980.0412.96415.297.848.0 C7568.4911654.270.1568.49568.6932.778.6 C8644.639752.980.1645.16645.6480.4157.7 C9756.1414896.610.2756.38757.48221.7299.4 C10875.0717983.970.4886.75894.35628.8713.7 C11682.127835.930.1689.24691.03149.8219.8 C12534.24*10545.250.1534.24* 39.896.9 C13896.50121025.110.1902.87906.10723.41133.4 C14581.8112641.660.1581.92 248.8386.9 F11177.00*4201.270.1177.00* 48.889.2 F12769.667919.220.2782.66783.9368.9176.1 Average deviation (time)19.67(0.1)0.450.70(168.4)(257.4) Pentium IV 3.4 GHz Computational results on the 16 “classical” instances, starting from “bad quality” initial solutions Provably optimal solutions. Final solution cost equal to the previous best known one (6 over 16).

45 Current best known solutions for OVRP 10 new best solutions (over 30 instances for which the current best known solution is not proved to be optimal).

46 Computational Results for DCVRP 28 Benchmark instances from the literature proposed by: - Christofides – Mingozzi – T. (“Combinatorial Optimization”, Christofides – Mingozzi – T. - Sandi, eds, Wiley, 1979; instances C1-C14, n: 50 – 199, rounded integer costs); - Golden – Wasil – Kelly - Chao (“Fleet Management and Logistics”, Crainic - Laporte, eds, Kluwer, 1998; instances G1-G12, n: 241 – 484, real costs); - Vigo (Vigo web page; instance V1, n: 100, integer costs); - Taillard (Taillard web page; instance T1, n: 385, real costs). -C1-C5, C11-C12, G1-G12, V1, T1 instances have only capacity constraints; -C6-C10 and C13-C14 are the same instances as C1-C5 and C11-C12, respectively, but with both capacity and distance constraints (and a larger number of vehicles).

47 -Algorithm coded in C. -Test on a Pentium M, 1.86 GHz with 1 GByte RAM. -Times expressed in seconds. -ILOG Cplex 10.0 as LP and ILP solver. -Parameters : -RC max = 1 (threshold for the reduced costs), - p = 0.5 (probability for a customer to be extracted), -Kt max = 5000 (max. number of main iterations). Computational Results for DCVRP

48 Very good solutions considered as “Initial Solutions”, provided by: Taillard (Networks, 1993),, Gendreau - Hertz - Laporte (Man. Science, 1999), T. - Vigo (INFORMS Journal on Computing, 2003). Mester - Braysy (Computers & O.R., 2007). Other Best Solutions: Rochat – Taillard (Journal of Heuristics, 1995), Xu – Kelly (Transportation Science, 1996). Prins (Computers & Operations Research, 2004), Wassan (Journal of the Operational Research Society, 2006), De Franceschi - Fischetti - T. (Mathematical Programming, 2006). Pisinger –Ropke (Computers & Operations Research, 2007), Computational Results for DCVRP

49 InstancesPrev.best sol.mInitial solutionFinal solutionNew best sol. CostSourceCostCPU time C1521*5 Gendreau …_5_ C2830*10832Gendreau …83125_ C3815*8 Gendreau …_51_ C4820*10824Gendreau …82038_ C51034*71035Gendreau …103463_ C65486 Gendreau …_5_ C790511907Gendreau …90530_ C88569 Gendreau …_48_ C986511866Gendreau …86569_ C101526111529Gendreau …15243371524 C111015121016Taillard1015283_ C121289171316Gendreau …128859401285 (16) C131147141180Gendreau …11467341145 C141392181404Gendreau …138513841378 14 “classical” instances, starting from the best available solutions, Rounded integer costs Provably optimal solutions. Final solution cost equal to the previous best known one. 4 new best solutions.

50 InstancesPrev.best sol.mInitial solutionFinal solutionNew best sol. CostSourceCostCPU time G1707.7922707.79Mester-Braysy_5225_ G2859.1126859.11Mester-Braysy_4259_ G3583.3914583.39Mester-Braysy582.6419903582.64 G4997.5227998.73Mester-Braysy998.699440_ G51081.31301081.31Mester-Braysy_7194_ G6741.5616742.04Mester-Braysy739.5345516739.53 G71366.86331366.86Mester-Braysy1366.54127171366.54 G81345.23331345.23Mester-Braysy1343.47316291343.47 G9918.4218918.45Mester-Braysy916.62623207916.62 G101820.09381821.15Mester-Braysy1820.9415721_ G111622.69371622.69Mester-Braysy1622.39368671622.39 G121107.19191107.19Mester-Braysy_23792_ V11067*141076T,-Vigo1067139_ T124422.502524435.50Taillard24421.11827124421.11 14 “large” instances, starting from the best available solutions, Real costs Provably optimal solutions. Final solution cost equal to the previous best known one. 7 new best solutions.

51 Conclusions - For both OVRP and DCVRP the proposed method is very effective in improving the starting solution, even if it is of very- good quality. Future directions: - More sophisticated criteria for extracting the customers from the current solution (Selection Phase). - The overall procedure can be considered as a general framework and it could be extended to cover other variants of Vehicle Routing Problems such as: Vehicle Routing Problems with Heterogenous Fleet, Multi-Depot Vehicle Routing Problems, Multi-Trip Vehicle Routing Problems, …


Download ppt "Integer Linear Programming Refining Procedures for Vehicle Routing Problems Paolo Toth DEIS, University of Bologna, Italy. IASI - CNR, Roma, March 9, 2010."

Similar presentations


Ads by Google