The problem in one picture
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.
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.
| Line | Meaning | |
|---|---|---|
name text | A label for your instance | optional |
n number | Number of customers | required |
m number | Number of candidate depots | required |
Q number | Vehicle capacity, in the same unit as the demands | required |
Nv number | Number of vehicles available (maximum number of routes) | required |
Ng number | Maximum number of depots that may be open | required |
bks number | Best known total latency, if you have one; used for the gap | optional |
depots | Then m lines, one per depot: x y | required |
customers | Then n lines, one per customer: x y demand | required |
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 mostNv×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.
Choose a heuristic
Pick the metaheuristic. Each one is run with the local search operators you select in step 3.
Local search operators
Select the moves the local search may use and their order. The order matters for VND and first-improvement search.
The operators the local search may use. Each operator scans its full neighbourhood. At least one must be selected.
Local search used inside this metaheuristic. Named operators follow the rc1 neighbourhood definitions. Choose a preset or pick operators.
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.
Results
Results appear as the seeds finish. The gap line shows each seed against the BKS at 0 %.
Routes of the best run
Convergence
| Seed | Cost | Gap to BKS | Wall time | Budget | Status |
|---|---|---|---|---|---|
| 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.