Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Take Fix cost into account when switch vehicles #451

Open
sj1ang opened this issue Dec 10, 2018 · 0 comments
Open

Take Fix cost into account when switch vehicles #451

sj1ang opened this issue Dec 10, 2018 · 0 comments

Comments

@sj1ang
Copy link

sj1ang commented Dec 10, 2018

It seems that jsprit does not calculate the fix cost difference when switch a new vehicle in bestInsertion. For example, if two vehicle types with the same cost params except for the fix cost ($100 vs $0)are configured in the puzzle, vehicle with $100 fixed cost wouldn't be replaced by vehicle with $0 in the final solution.
I tried calculate the difference between two vehicles in com.graphhopper.jsprit.core.algorithm.recreate.ServiceInsertionCalculator.ServiceInsertionCalculator, the problem seems fixed.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant