-
Notifications
You must be signed in to change notification settings - Fork 43
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
How to implement piecewise linear costs? #94
Comments
If z=0, you can use the |
ok but in my project z has some positive value. Is it not possible to implement it? |
Unfortunately this is not possible generically. But you can obtain an approximation by computing the cost once you have the routes. |
What I do is to add the Fixed cost to every node between the Source and the node i.e |
Yes, this is equivalent to using the Lines 929 to 933 in fb9adea
|
I am currently working on a project where we want the cost of the first 'z' Km to be fixed and after that 'x' unit per km for each vehicle. How can we implement this in your library?
The text was updated successfully, but these errors were encountered: