Skip to content

Minimize number of late deliveries with soft time windows #3304

Discussion options

You must be logged in to vote

Yes I managed to solve this by imposing a fixed cost for late deliveries. You can read the details in the cross-post I made over on Stack Overflow.

EDIT: I'll paste the entire Stack Overflow answer below for posterity's sake

I have managed to solve this issue by implementing a fixed penalty in addition to the proportional cost for violating time windows. By imposing a high fixed cost and a low proportional cost, the solver will then be more incentivized to delay an already late job than to be late for another job.

Implementation details can be found in this discussion thread over on the or-tools Github page. The brief rundown of the implementation is as follows:

  1. Split all existing locat…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@weihenglim
Comment options

Comment options

You must be logged in to vote
1 reply
@weihenglim
Comment options

Answer selected by weihenglim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants