extract_random_route
sometimes extracts zero-length routes!
#5
Labels
Possible Bug
The issue needs more info to be trusted, if yes it can cause bugs.
question
Further information is requested
The possibility is very low, because the
capacity
of the eachdepot
is so big so at least we have 2customer
in each route ofdepot
. But still there is no reason to extract an empty route when there is no empty route in thedepot
itself.May be
initial_routing
is generating bad routes sometimes??? When thecapacity
was between[0, 100]
, there were a lot of singlecustomer
routes, so maybe caused empty route too. I have changed the random to [100, 200]so now each route approximately has at least two
customers` 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 sequentialcustomer
s withID=999
which representsnull customer
s. It means if there is an empty route, only anull customer
will be added so we it cannot pass this test.The text was updated successfully, but these errors were encountered: