raviqqe / lns-vrp

Vehicle Routing Problem (VRP) solver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lns-vrp

Vehicle Routing Problem (VRP) solver with Large Neighborhood Search (LNS)

A number of total cases is (s + v - 1)! / (v - 1)! where s is a number of stops and v is a number of vehicles.

Solvers

Exact

Note that those are currently equivalent to a brute force one unless you provide a cost calculator that may return infinity or computes proper lower bounds.

Approximate

  • Nearest neighbor
  • Ruin and recreate
    • Ruined regions are the top-k closest stops and their surrounding stops in routes in an existing solution.
    • Sub-problems are solved by brute force and the 2-opt heuristics.

Examples

cargo run --release --features trace --bin ruin_and_recreate

References

License

The Unlicense

About

Vehicle Routing Problem (VRP) solver

License:The Unlicense


Languages

Language:Rust 99.8%Language:Shell 0.2%