Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time windows array must include depot? #61

Open
carlosen14 opened this issue Oct 15, 2018 · 0 comments
Open

Time windows array must include depot? #61

carlosen14 opened this issue Oct 15, 2018 · 0 comments

Comments

@carlosen14
Copy link
Contributor

In your example..

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant