Skip to content

Valid input to CVRPTW #4173

Apr 9, 2024 · 3 comments · 5 replies
Discussion options

You must be logged in to vote

a) See https://github.com/google/or-tools/blob/stable/ortools/constraint_solver/samples/vrp_capacity.cc#L150
Basically a (constrained) dimension linked to 1-dimensional transit (we don't care about "a -> moves to-> b", but add capacity due to "leaving a"). Keep in mind: dimensions are additive. You can use dimensions of vrptw example as well as dimensions of cvrp examples (but respect uniqueness -> see return-type of AddDimensionXXX).

It's important to understand the underlying theory of dimensions: https://github.com/google/or-tools/blob/stable/ortools/constraint_solver/routing.h#L3017

b) Most solvers (or academic resources) assume that you can embed this service into the transit. Often …

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by onecable5781
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@sschnug
Comment options

@onecable5781
Comment options

@sschnug
Comment options

@onecable5781
Comment options

@Mizux
Comment options

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