mapbox / mapbox/node-or-tools

Minimizing Makespan - the total duration vehicles are on the road

Open
#12 5 comments 1 reaction 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

At the moment users can pass in a durations matrix for costs and we will minimize *the total number of vehicle driving hours*. In contrast, this ticket is about *minimizing the total duration vehicles are on the road*.

---

Implementation:

Minimize the route's end cumul var. for the time dimension. This will minimize the overall completion time.

```c++
for (auto vehicle = 0; vehicle < model.vehicles(); ++vehicle)
model.AddVariableMinimizedByFinalizer(model.CumulVar(model.End(vehicle), timeDimension));
```

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

No file or test is named. Locate the Node.js binding path for routing cost and duration handling, then compare it with the proposed C++ time-dimension finalizer logic; done means the binding can minimize total vehicle time on the road rather than only total driving hours.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.