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

extract_random_route sometimes extracts zero-length routes! #5

Open
Nikronic opened this issue Sep 27, 2019 · 0 comments
Open

extract_random_route sometimes extracts zero-length routes! #5

Nikronic opened this issue Sep 27, 2019 · 0 comments
Assignees
Labels
Possible Bug The issue needs more info to be trusted, if yes it can cause bugs. question Further information is requested

Comments

@Nikronic
Copy link
Owner

The possibility is very low, because the capacity of the each depot is so big so at least we have 2 customer in each route of depot. But still there is no reason to extract an empty route when there is no empty route in the depot itself.

May be initial_routing is generating bad routes sometimes??? When the capacity was between [0, 100], there were a lot of single customer routes, so maybe caused empty route too. I have changed the random to [100, 200]so now each route approximately has at least twocustomers` so we won't be able to see an empy route again maybe.

I have not added tests for empty route in initial_routing but I have added some tests that checks there should not be any sequential customers with ID=999 which represents null customers. It means if there is an empty route, only a null customer will be added so we it cannot pass this test.

@Nikronic Nikronic added the question Further information is requested label Sep 27, 2019
@Nikronic Nikronic self-assigned this Sep 27, 2019
@Nikronic Nikronic pinned this issue Sep 27, 2019
@Nikronic Nikronic added the Possible Bug The issue needs more info to be trusted, if yes it can cause bugs. label Sep 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Possible Bug The issue needs more info to be trusted, if yes it can cause bugs. question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant