Skip to content

Routing problem for a single driver #4213

Discussion options

You must be logged in to vote

Multi-visit implies a need for node-duplication (visit_x -> {visit_x_0, visit_x_1, ...}).

"certain time-gap" is just a constraint on the time-accumulation-dimension similar to time-windows or pickup-and-delivery (Link), e.g.

    MIN_GAP = 100
    routing.solver().Add(
        distance_dimension.CumulVar(visit_x_0) + MIN_GAP
        <= distance_dimension.CumulVar(visit_x_1)
    )

This in conjunction with all the examples in the repository should be enough to do some experiments.

Of course a lot of details are missing, but the task itself is prescribed too informally to tackle those. The main hurdle might be whatever "shift" means to you. It might make sense to not only duplicate visit-nod…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Mizux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants