Skip to content

Control extra slack time with breaks #3269

Discussion options

You must be logged in to vote
  1. basically break extent slack to fit in it so forcing slack to zero mean there is no way for the solver to integrate the breaks in the route...

  2. if at routing dimension construction (i.e. routing.AddDimension()) you force slack to be zero then internally all slacks will be built using a ConstantIntVar object (initialised to 0) so any subsequent call to setRange()/setValues() will be silently ignored...

  3. on a TW model, slack if often use by the solver when the vehicle will visit too early the location otherwise.
    if you want soft TW instead (i.e. visiting a location too early is OK but you may pay a penalty proportional to your earliness) take a look at

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@nkkumawat-zomato
Comment options

@Mizux
Comment options

Answer selected by nkkumawat-zomato
Comment options

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

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