Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add #6410: [YAPF] Use a max penalty for finding the nearest road vehicle depot #6929
@SamuXarick Yes, it leaves earlier and the max_distance penalty is used. For consistency, either max_distance should be used or removed from the code. I forgot to add a patch for it, but I wrote them two years ago (YAPF and NPF):
Anyway, I don't see why a change in max_distance is needed.
In the file you referenced, both max_distance and max_penalty are used and their meaning is the same. It is explained in the comments. If it is an inconsistency, it shouldn't be dealt here but in a separate commit.