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

Multiple Visits of same node VRP #1246

Closed
PierreHamoir opened this issue May 3, 2019 · 3 comments
Closed

Multiple Visits of same node VRP #1246

PierreHamoir opened this issue May 3, 2019 · 3 comments
Assignees
Labels
Duplicate Help Needed Modeling/Usage problem Solver: Routing Uses the Routing library and the original CP solver
Milestone

Comments

@PierreHamoir
Copy link

Dear All,

I am trying to solve a Waste Collection VRP in which there are Collection Plants (CP) one the one hand and Treatment Plants (TP) on the other hand. The trucks start (and end) at the depot and must take waste from the CP and deliver it to the TP. As there are much more CP as TP, some of The TP can be visited several times during a single trip for each vehicle.

By default the or tools VRP Solver doesn't like it , and I was wondering if there is a solution to allow multiple visits of the same node with this package.

@Mizux
Copy link
Collaborator

Mizux commented May 3, 2019

short answer: no at first routing is a tsp/vrp solver i.e. you can only visit each node one time.

workaround: If you want to be able to visit several time the same node you'll need to split your node in several nodes.

note: there is already few issues on the same subject (#938, #689, #630)

@Mizux Mizux closed this as completed May 3, 2019
@Mizux Mizux added Duplicate Help Needed Modeling/Usage problem Solver: Routing Uses the Routing library and the original CP solver labels May 3, 2019
@PierreHamoir
Copy link
Author

Thank you @Mizux for your answer and sorry for the duplicate.

As I don't know how many visits there will be on the same node, is there a way to tell the solver that it is not compulsory to visit some nodes ?

@Mizux
Copy link
Collaborator

Mizux commented May 3, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Help Needed Modeling/Usage problem Solver: Routing Uses the Routing library and the original CP solver
Projects
None yet
Development

No branches or pull requests

2 participants