yorak / VeRyPy

A python library with implementations of 15 classical heuristics for the capacitated vehicle routing problem.
MIT License
263 stars 55 forks source link

Check if the depot in endnode_to_route in savings could be initialized to None #1

Open yorak opened 4 years ago

yorak commented 4 years ago

For example, for a solution [0, 1, 2, 3, 0, 4, 5, 6, 7, 0] the corresponding endnode_to_route values would be [X, 0, None, 0, X, 1, None, None, 1, X]. Currenlty, the depot is assigned to the route 0 in endnode_to_route, but with a cursory glance, it would probably also be assigned to None (to indicate this, I've used X in the example), which would make the use of None in the code more consistent.