routing-formulation

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Routing Formulation

路径规划公式定义

Domain concepts for vehicle routing. No API or interface details here.
车辆路径规划的领域概念介绍。本文不涉及API或接口细节。

What is routing

什么是路径规划

  • TSP: Single vehicle, visit all locations once (e.g. shortest tour).
  • VRP: Multiple vehicles, capacity and/or time limits; assign orders to vehicles and sequence stops.
  • PDP: Pickup and delivery pairs; pickup must be visited before the corresponding delivery.
  • TSP:单车辆,遍历所有地点一次(例如最短路线)。
  • VRP:多车辆,存在容量和/或时间限制;需为车辆分配订单并规划停靠点顺序。
  • PDP:取货与送货配对;必须先访问取货点,再前往对应的送货点。

Required questions (problem and data)

需明确的问题(问题与数据层面)

Ask these if not already clear:
  1. Problem type — TSP, VRP, or PDP?
  2. Locations — How many? Depot(s)? Cost or distance between pairs (matrix or derived)?
  3. Orders / tasks — Which locations must be visited? Demand or service per stop?
  4. Fleet — Number of vehicles, capacity per vehicle (and per dimension if multiple), start/end locations?
  5. Constraints — Time windows (earliest/latest arrival), service times, precedence (order A before B)?
若以下信息不明确,需进行确认:
  1. 问题类型——是TSP、VRP还是PDP?
  2. 地点——共有多少个?是否有仓库?地点间的成本或距离(矩阵形式或推导得出)?
  3. 订单/任务——哪些地点必须被访问?每个停靠点的需求或服务内容?
  4. 车队——车辆数量、每辆车的容量(若为多维度则需明确各维度容量)、起始/终点位置?
  5. 约束条件——时间窗口(最早/最晚到达时间)、服务时长、优先级(A点需在B点之前访问)?

Typical data

典型数据

  • Cost or distance matrix (or travel-time matrix).
  • Order locations and, for VRP, demand per order.
  • Vehicle capacities and optional time windows for vehicles and orders.
  • 成本或距离矩阵(或行程时间矩阵)。
  • 订单地点,以及对于VRP而言,每个订单的需求。
  • 车辆容量,以及车辆和订单可选的时间窗口。