mapbox / mapbox/node-or-tools

Time windows array must include depot?

Open
#61 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

In your example..
```javascript
var vrpSolverOpts = {
numNodes: 3,
costs: [[0, 10, 10], [10, 0, 10], [10, 10, 0]],
durations: [[0, 2, 2], [2, 0, 2], [2, 2, 0]],
timeWindows: [[0, 9], [2, 3], [2, 3]], //<<<< here
demands: [[0, 0, 0], [1, 1, 1], [1, 1, 1]]
};
```
`timeWindows` variable is including a value for the depot index, it must be a full time window? It is represented as hour?

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

The issue points to the inline JavaScript example; start by tracing how the node-or-tools API consumes the timeWindows array and checking the corresponding OR-Tools binding behavior. Done means documenting whether the depot needs an entry, what that entry represents, and whether the values are hours.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
api
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.