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

pick delivery #790

Merged
merged 44 commits into from
May 17, 2017
Merged

pick delivery #790

merged 44 commits into from
May 17, 2017

Conversation

cvvergara
Copy link
Member

introduction

pickDeliverEuclidean is in the pickDeliver directory. which includes files shared by both functions.
Eventually both functons will reside in the same subdirectory.
For Developing purposes each one will be in a separate directory, code will be duplicated, not changes to pickDeliver should affect pickDeliverEuclidean.
Once it works, then a code cleaning phase to remove the duplicated unchanged code.

  • copy pickDeliver to pickDeliverEuclidean
  • modify pickDeliver to be pickDeliver (matrix)
  • cleaning phase

matrix version

  • travel time:
    • when the matrix is a distance matrix, then a speed value on the vehicle is expected
    • when the matrix is a time matrix, then a factor value on the vehicle is expected
      • matrix considered by the user as a time matrix
    • when speed = in units of s/s (number of seconds per second)
      • speed = 1s/s
      • user can use other values example speed = 2 s/s (for each two seconds in the matrix, make it one second)
        • suppose matrix[2,3] = 6s
        • t = matrix[2,3] / speed = 6s / (2 s/s) = 3s
    • add factor as part of the vehicle information
      • using t = matrix / speed * factor
      • factor < 1, makes the travel time faster (useful for night routing)
      • factor = 1, use the time matrix as it is (normal routing)
      • factor > 1, makes the travel time slower (rush hour routing)

tests

  • With an euclidean matrix, return the same results as the euclidean version

@pgRouting/admins

@cvvergara cvvergara merged commit afdd5d4 into pgRouting:develop May 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants