mapbox / mapbox/node-or-tools

Heterogeneous Fleets

Open
#11 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
155
Forks
47
PR merge metrics
No merged PRs in 30d

Description

Support different types of vehicles such as walk, bike, car.
Could also be used to model "skill sets" when dispatching employees.

This requires the user to hand us vehicle-class specific
- cost matrices
- duration matrices
- capacities

---

Implementation:

For Costs:

Use `SetArcCostEvaluatorOfVehicle` and provide callback on a per-vehicle basis. We now require numVehicle cost matrices from the user.

For Time Dimension:

Use `AddDimensionWithVehicleTransits`. Takes a vector of transition time evaluators _per vehicle_ for pairs of nodes. `Evaluator(i, j) { return ServiceTime(i) + TransitionTime(i, j); }`. We now require numVehicle duration matrices from the user.

For Capacity Dimension:

Use `AddDimensionWithVehicleCapacity`. See explanation above.

For Time and Capacity:

Use `AddDimensionWithVehicleTransitAndCapacity`. See explanation above.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the vehicle-routing entry points exposing SetArcCostEvaluatorOfVehicle, AddDimensionWithVehicleTransits, AddDimensionWithVehicleCapacity, and AddDimensionWithVehicleTransitAndCapacity. Trace how cost, duration, and capacity inputs are currently represented, then verify that each supports per-vehicle matrices and heterogeneous fleets.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, node.js
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.