diff --git a/examples/tsptw.cpp b/examples/tsptw.cpp index 88391c3154..1692ab28ec 100644 --- a/examples/tsptw.cpp +++ b/examples/tsptw.cpp @@ -178,8 +178,15 @@ class TSPTW : public IntMinimizeScript { rel(*this, pos[j-1] < pos[k-1]); element(*this, from, x[0], c[0]); rel(*this, t[0] == max(element(ready,x[0]), c[0])); + // Travel time between consecutive customers + TupleSet legs(3); + for (int j=1; j