mapbox / mapbox/node-or-tools

Provide capacities per vehicle at each location in output

Open
#2 0 comments 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

We should output the capacity each vehicle has before / after servicing a location.

Use-case: being able to tell the vehicle's load at a specific time and place.


Implementation:

  • When an assignment could be found: for each vehicle walk over all location indices in the route
  • For each location index store the accumulated capacity domain at this location for the vehicle
const auto* loadVar = capacityDimension.CumulVar(index);
assignment->Value(loadVar)

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 by locating the assignment output path and the vehicle route traversal described in the issue. Inspect how capacityDimension.CumulVar(index) is read for each location index, then verify that the output includes each vehicle's capacity before and after servicing every location.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.