Skip to content
Discussion options

You must be logged in to vote
  1. Your transit(fromA, toB) callback must return service time(A) + travel time(A, B).

  2. Since your transit callback return the sum, when adding a break solver must need to know what is the service time part thus the SetBreakIntervals() method needs it.

  3. So please show us your time dimension transit callback, which should be close to something like this:

int64 time_callback(NodeIndex from_index, NodeIndex to_index) {
  from = manager.IndexToNode(from_index);
  to = manager.IndexToNode(to_index);
  return time_matrix[from][to] + service_times[from];
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@juntek
Comment options

Answer selected by juntek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants