LLRP Solver

Run latency location-routing heuristics in your browser. No installation, no Python, no R.

The problem in one picture

Two depots serve customers along routes; each customer's latency is its arrival time. depot A depot B t=4 t=11 t=19 t=5 t=13 t=22 Objective: sum of all customer arrival times = 4+11+19+5+13+22 Moving a customer early shifts the arrival of everyone after it.
Blue and orange routes start at their depots. Numbers are arrival times (latency), not distances. At most p depots may be open.

Decision. Which depots to open (at most p), and which customers each vehicle serves in which order.

Objective. Minimise total latency, the sum of customer arrival times.

Constraints. Vehicle capacity Q; each customer is visited once.

1

Choose an instance

Choose a built-in benchmark or upload your own instance file. Built-in instances carry their best known solution (BKS), which the gap uses.

Using your own data? What the file should look like

Use one plain-text file with the extension .inst. It has three parts: a header with the problem settings, the candidate depots and the customers. Distances are computed from the coordinates (Euclidean, not rounded), so no distance matrix is needed. Routes are open: a vehicle does not return to its depot.

LineMeaning
name textA label for your instanceoptional
n numberNumber of customersrequired
m numberNumber of candidate depotsrequired
Q numberVehicle capacity, in the same unit as the demandsrequired
Nv numberNumber of vehicles available (maximum number of routes)required
Ng numberMaximum number of depots that may be openrequired
bks numberBest known total latency, if you have one; used for the gapoptional
depotsThen m lines, one per depot: x yrequired
customersThen n lines, one per customer: x y demandrequired

Example: 8 customers, 3 candidate depots, 3 vehicles, at most 2 open depots


      
  • Coordinates and demands may be whole numbers or decimals, in any unit. Customers and depots are numbered 1, 2, … in the order you list them.
  • Values can be separated by spaces or tabs, so columns copied from a spreadsheet can be pasted straight into the file.
  • Every demand must be at most Q, and the total demand must be at most Nv × Q; otherwise no feasible solution exists and the page says so.
  • The file is read in your browser and never uploaded. Maximum size 5 MB.

Customers are dots and candidate depots are squares, drawn from the instance file. Hover a point for its data.
2

Choose a heuristic

Pick the metaheuristic. Each one is run with the local search operators you select in step 3.

3

Local search operators

Select the moves the local search may use and their order. The order matters for VND and first-improvement search.

4

Run and estimated time

Choose how each run is sized, set the seeds, check the estimate, then run. Seeds run one after another, and every run ends with its best solution.

Estimated time -
5

Results

Results appear as the seeds finish. The gap line shows each seed against the BKS at 0 %.

Gap to the best known solution, one dot per successful seed (the BKS line is at 0 %).

Routes of the best run

Convergence

SeedCostGap to BKSWall timeBudgetStatus
No runs yet.

About this solver

How it runs. The solver is written in C++ and compiled to WebAssembly, so it runs entirely in your browser; your instances and settings are never sent to a server. The page only reports two anonymous counts (page opened, run started) to GoatCounter, an analytics service that does not track personal data. The same sources build the command-line binaries, and results are reproducible for a given seed on the same version.

Gap. Gap to BKS is 100 × (cost − BKS) / BKS, using the best known solution in the instance file. Costs are total latency (the sum of customer arrival times).

Run mode. Time target (default) sizes the budget (restarts, iterations or generations) so that each run takes about the time you give: a few short pilot runs on your device set the budget, then every seed uses that same budget. Nothing is interrupted, so a run always ends with its best solution; the real time is usually within 20 % of the target, and some population methods finish earlier. Fixed budget uses the budget you enter in step 2, which gives exactly the same result for the same seed on any device. The budget used is shown in the results and in the CSV.

Estimated time. Estimates come from a fitted model on benchmark runs and are only indicative (roughly ±50 %); actual time depends on your device.

Data and citation. The built-in instances come from other researchers (Tuzun and Burke 1999; the Prodhon set; Barreto et al. 2007); the sources are listed in section 6.3 of the Learn page. If you use this app, please cite it as described in the README. The code of this site is released under the MIT License; the benchmark data and third-party components are not covered by it (see THIRD_PARTY_NOTICES.md).

For the full model, the operator definitions and the literature behind each heuristic, see the Learn page.