The problem
A company must decide which depots to open (at most p) and how to route vehicles from them to customers. In the latency location-routing problem (LLRP) the objective is not distance but total latency: the sum of customer arrival times. Because latency accumulates along a route, moving one customer early shifts the arrival times of everyone after it, so every move is evaluated by recomputing the latency of the affected routes.
Objective
Minimise the total latency:
where is the arrival time of customer , measured from the start of its depot's route.
Constraints
- Depot limit. At most p depots are open.
- Single visit. Every customer is served by exactly one route.
- Vehicle capacity. The demand on one route is at most the vehicle capacity Q.
- Fleet size. At most Nv routes are used.
- Open routes. A route starts at an open depot and ends at its last customer. The return edge to the depot does not contribute to the latency objective, so it is not modelled (Ngueveu et al., 2010; Osorio-Mora et al., 2023). The solver's latency and distance computations follow the same convention.
Notation
- candidate depots
- customers;
- travel time between nodes
- demand of customer
- vehicle capacity
- maximum number of open depots
- fleet size (maximum number of routes)
Routes and arrival times. A solution is a set of routes. A route is with depot , customers and . Writing , the arrival time of the -th customer is the sum of the arcs travelled so far; the arc back to the depot is not included.
Model. With :
The factor counts the customers whose arrival time includes the arc into position . Both and are upper bounds. Because travel times satisfy the triangle inequality and the return leg is free, splitting a route never increases latency, so an optimal solution uses routes (Osorio-Mora et al., 2023).
Arc-based MILP
A compact arc-based mixed-integer model is given below (network-flow idea of Moshref-Javadi and Lee, 2016, with one set of arc variables, no vehicle index and an explicit fleet bound). Arrival times and loads are propagated along the chosen arcs with big-M constraints.
- if customer is visited right after node (a depot if ), else
- if depot is open, else
- arrival time at customer ,
- load carried up to and including ,
(1) each customer has exactly one predecessor; (2) at most one successor, and there is no arc back to a depot, so routes are open; (3)–(5) open depots and fleet size; (6)–(7) arrival times, which also exclude cycles among customers; (8) vehicle capacity. A valid big-M is . At an optimum equals the arrival time of , because the objective pushes every down to its lower bound.
Heuristics in the solver
The solver offers 19 metaheuristics. Each one is run with the local search operators you choose (section 3). They are grouped below by the search mechanism they use, not by name. The small animations show the mechanism; they are schematic, not solver traces. The last column names the paper that uses the same idea: one of the five compared papers, or an additional source listed in section 6 (marked additional, listed in section 6.1). "Not in the five papers" means no additional source is listed yet.
A. Trajectory methods one current solution, worse moves accepted by a rule
| Heuristic | What it does | Literature |
|---|---|---|
sa | Simulated annealing on feasible solutions with random moves, geometric cooling and reheating. | OM23 (simulated annealing framework; OM23 adds a VND after each temperature step, which this version does not). |
ta | Threshold accepting with a shrinking deterministic band. | Dueck and Scheuer (1990, additional): threshold accepting. |
rtr | Record-to-record travel. Excluded from the rc1 campaigns; kept for completeness. | Dueck (1993, additional): record-to-record travel. |
tabu | Solution-memory tabu search with aspiration on a randomised candidate set. | Escobar et al. (2014, additional): granular tabu search inside VNS. Oran et al. (2012, additional): tabu search for VRPTW with priorities. Glover (1989, additional): tabu search, the original formulation. |
ils | Random shaking of strength 2, local search, improving acceptance. | OM23a (iterated local search). |
vns | Shaking with strength k = 1 … kmax, then local search. | Escobar et al. (2014, additional): VNS with granular tabu search for the CLRP. Tanash and As'ad (2025, additional): VNS as second phase. |
B. Multi-start and restarts many independent descents from fresh starts
| Heuristic | What it does | Literature |
|---|---|---|
grasp | Randomised greedy construction followed by local search, restarted. | Feo and Resende (1995, additional); constructive phase of NG22. Prins et al. (2006, additional): GRASP with learning and path relinking for the capacitated LRP. |
msls | Multi-start local search from random priority decodes. | Martí, Resende and Ribeiro (2013, additional): multi-start methods for combinatorial optimisation. |
C. Destroy and repair remove part of a solution, then reinsert it
| Heuristic | What it does | Literature |
|---|---|---|
alns | Adaptive large neighbourhood search: 3 destroy and 2 repair operators, adaptive roulette weights, annealing acceptance. | Ropke and Pisinger (2006, additional): the ALNS framework (PDPTW). |
lns | Large neighbourhood search with uniform choice of destroy and repair operators. | Shaw (1998, additional): large neighbourhood search with constraint programming for VRP. |
ig | Iterated greedy: random removal of a fixed fraction, greedy reinsertion, optional acceptance band. | Ruiz and Stützle (2007, additional): iterated greedy for the permutation flowshop. |
D. Population and elite pool several solutions that recombine or are relinked
| Heuristic | What it does | Literature |
|---|---|---|
ga | Route-decoded genetic algorithm (order crossover, depot gene), memetic with local search. | MJL16 (memetic algorithm with elitism); Z24 (memetic framework). Marinakis and Marinaki (2008, additional): bilevel GA for a real-life LRP. |
aco | Ant colony optimisation with a priority decoder and customer, depot and cardinality pheromones. | Dorigo et al. (1996, additional): ant system. Tanash and As'ad (2025, additional): priority-based ACO as first phase, with VNS. |
grasppr | GRASP with an elite pool; each local optimum is relinked towards an elite solution. | Prins et al. (2006, additional): GRASP with path relinking for the capacitated LRP. |
scatter | Scatter search: diversified pool, reference set and pairwise path relinking. | Glover (1998, additional): template for scatter search and path relinking. |
E. Random-key search a continuous key vector is decoded into a solution
| Heuristic | What it does | Literature |
|---|---|---|
brkga | Biased random-key genetic algorithm with customer-priority, depot and cardinality keys. | Gonçalves and Resende (2011, additional): BRKGA framework. |
pso | Random-key particle swarm; velocity clamp 0.5 and positions wrapped modulo 1. | Eberhart and Kennedy (1995, additional): particle swarm optimisation. |
de | Random-key differential evolution, DE/rand/1/bin. | Storn and Price (1997, additional): differential evolution. |
rkrs | Random-key random search: the decoder of BRKGA, PSO and DE without evolution (control baseline). | Not a published method: the solver's own control baseline, sharing the decoder of BRKGA, PSO and DE. |
Local search operators
A local search repeatedly scans a neighbourhood: the set of solutions reachable with one move of a given operator. It either applies the best improving move (best improvement, the default) or the first one it finds (first improvement). It stops when no operator in the selected set improves the solution.
Each card gives the move, its origin, and the closest counterpart in the cited papers. Our block operators (oropt, swap22 and the like) generalise the single-customer moves; they are our extension, not taken from the cited papers.
Core moves, step by step
Two routes are drawn from their depots (D1 top, D2 bottom); route 1 is blue, route 2 is orange. Gold nodes are the customers involved. Each figure shows the routes before (left) and after (right) one move.
Operators used in the literature
Five papers are compared, listed by year. MJL16 Moshref-Javadi and Lee (2016); NG22 Nucamendi-Guillén et al. (2022); OM23 Osorio-Mora et al. (2023, ITOR); OM23a Osorio-Mora et al. (2023, COR); Z24 Zou et al. (2024). Each column is also a preset in the solver's local search section, and All papers is the union of the operators that at least one paper describes exactly.
✓ means the paper describes this move. ≈ means the closest counterpart, with a different definition. — means the paper does not describe it. MJL16 uses Swap, Insertion and 2-Opt in its memetic local search, and Swap, Relocation and 2-Opt in its granular search. NG22 uses Swap, Insertion and 2-opt inside routes, with Exchange and Relocation between routes. OM23 and OM23a describe the same operator set: insertion, swap, 2-opt (with the two-route crossing), arc-swap, shift2-1, and the depot moves of their random phase or perturbations. They differ in the metaheuristic, a simulated annealing with VND in OM23 and an iterated local search in OM23a.
Z24: oropt2 is a different version of N4.
References
6.1 LLRP references
- MJL16. Moshref-Javadi, M., & Lee, C. (2016). The latency location-routing problem. European Journal of Operational Research, 255(2), 604–619. doi:10.1016/j.ejor.2016.05.048
- NG22. Nucamendi-Guillén, S., Martínez-Salazar, I., Khodaparasti, S., & Bruni, M. E. (2022). New formulations and solution approaches for the latency location routing problem. Computers & Operations Research, 143, 105767. doi:10.1016/j.cor.2022.105767
- OM23. Osorio-Mora, A., Rey, C., Toth, P., & Vigo, D. (2023). Effective metaheuristics for the latency location routing problem. International Transactions in Operational Research, 30, 3801–3832. doi:10.1111/itor.13294
- OM23a. Osorio-Mora, A., Escobar, J. W., & Toth, P. (2023). An iterated local search algorithm for latency vehicle routing problems with multiple depots. Computers & Operations Research, 158, 106293. doi:10.1016/j.cor.2023.106293
- Z24. Zou, Y., Hao, J.-K., & Wu, Q. (2024). A reinforcement learning guided hybrid evolutionary algorithm for the latency location routing problem. Computers & Operations Research, 170, 106758. doi:10.1016/j.cor.2024.106758
6.2 Heuristic references
- Feo, T. A., & Resende, M. G. C. (1995). Greedy randomized adaptive search procedures. Journal of Global Optimization, 6(2), 109–133. As cited in NG22. doi:10.1007/BF01096763
- Prins, C., Prodhon, C., & Wolfler Calvo, R. (2006). Solving the capacitated location-routing problem by a GRASP complemented by a learning process and a path relinking. 4OR, 4, 221–238. doi:10.1007/s10288-006-0001-9
- Escobar, J. W., Linfati, R., Baldoquin, M. G., & Toth, P. (2014). A granular variable tabu neighborhood search for the capacitated location-routing problem. Transportation Research Part B, 67, 344–356. doi:10.1016/j.trb.2014.05.014
- Oran, A., Tan, K. C., Ooi, B. H., Sim, M., & Jaillet, P. (2012). Location and routing models for emergency response plans with priorities. In N. Aschenbruck et al. (Eds.), Future Security 2012, CCIS 318, 129–140. Springer. doi:10.1007/978-3-642-33161-9_20
- Marinakis, Y., & Marinaki, M. (2008). A bilevel genetic algorithm for a real life location routing problem. International Journal of Logistics Research and Applications, 11(1), 49–65. doi:10.1080/13675560701410144
- Tanash, M., & As'ad, R. (2025). Heuristic algorithms for the heterogeneous vehicle routing problem with time windows, customers priority, pickup and delivery. IEEE Access, 13, 110605–110622. doi:10.1109/ACCESS.2025.3583106.
- Glover, F., & Hao, J.-K. (2011). The case for strategic oscillation. Annals of Operations Research, 183, 163–173. doi:10.1007/s10479-009-0597-1
- Ropke, S., & Pisinger, D. (2006). An adaptive large neighborhood search heuristic for the pickup and delivery problem with time windows. Transportation Science, 40(4), 455–472. doi:10.1287/trsc.1050.0135
- Storn, R., & Price, K. (1997). Differential evolution – a simple and efficient heuristic for global optimization over continuous spaces. Journal of Global Optimization, 11, 341–359. doi:10.1023/A:1008202821328
- Eberhart, R., & Kennedy, J. (1995). Particle swarm optimization. Proceedings of the IEEE International Conference on Neural Networks, 4, 1942–1948. doi:10.1109/ICNN.1995.488968
- Gonçalves, J. F., & Resende, M. G. C. (2011). Biased random-key genetic algorithms for combinatorial optimization. Journal of Heuristics, 17(5), 487–525. doi:10.1007/s10732-010-9143-1
- Glover, F. (1989). Tabu search—part I. ORSA Journal on Computing, 1(3), 190–206. doi:10.1287/ijoc.1.3.190
- Dorigo, M., Maniezzo, V., & Colorni, A. (1996). Ant system: optimization by a colony of cooperating agents. IEEE Transactions on Systems, Man, and Cybernetics, Part B, 26(1), 29–41. doi:10.1109/3477.484436
- Martí, R., Resende, M. G. C., & Ribeiro, C. C. (2013). Multi-start methods for combinatorial optimization. European Journal of Operational Research, 226(1), 1–8. doi:10.1016/j.ejor.2012.10.012
- Shaw, P. (1998). Using constraint programming and local search methods to solve vehicle routing problems. In M. Maher & J.-F. Puget (Eds.), Principles and Practice of Constraint Programming (CP98), LNCS 1520. doi:10.1007/3-540-49481-2_30
- Glover, F. (1998). A template for scatter search and path relinking. Artificial Evolution (AE 1997), LNCS 1363, 1–51. doi:10.1007/BFb0026589
- Ruiz, R., & Stützle, T. (2007). A simple and effective iterated greedy algorithm for the permutation flowshop scheduling problem. European Journal of Operational Research, 177(3), 2033–2049. doi:10.1016/j.ejor.2005.12.009
- Dueck, G., & Scheuer, T. (1990). Threshold accepting: a general purpose optimization algorithm appearing superior to simulated annealing. Journal of Computational Physics, 90(1), 161–175. doi:10.1016/0021-9991(90)90201-B
- Dueck, G. (1993). New optimization heuristics: the great deluge algorithm and the record-to-record travel. Journal of Computational Physics, 104(1), 86–92. doi:10.1006/jcph.1993.1010
6.3 Benchmark data and sources
The 76 built-in instances were created by other researchers. Please cite the original sources when you use them. More detail is in DATA.md.
- Tuzun-Burke set (36 instances). Tuzun, D., & Burke, L. I. (1999). A two-phase tabu search approach to the location routing problem. European Journal of Operational Research, 116(1), 87–99.
- Prodhon set (30 instances). Attributed to Prins et al. (2004) by Osorio-Mora et al. (2023, ITOR; reference OM23 above). Distributed on C. Prodhon's web page.
- Barreto set (10 of 19 instances). Barreto, S., Ferreira, C., Paixão, J., & Sousa Santos, B. (2007). Using clustering analysis in a capacitated location-routing problem. European Journal of Operational Research, 179(3), 968–977.
- LLRP benchmark, fleet size K and open-depot limit p. The selection of the 76 instances and the values of K and p follow MJL16 (Tables 2–4), reference 6.1.
- Best known solutions (BKS). Best values recorded in the solution files of Z24 (github.com/YujiZou/LLRP). A BKS is the best value known to us, not a proof of optimality.
No explicit reuse licence was found for the benchmark files; they are credited to their authors. The app converts them to its own text format and uses real-valued Euclidean distances. Third-party components of this site are listed in THIRD_PARTY_NOTICES.md.