alternate_stops
option can be used to define a set of suitable locations for a given stop for each vehicle (e.g., for a break, or for an item pick up at a grocery store), of which exactly one will be added to the vehicle's route automatically.alternate_stops
attribute on root level of the input file. They have the same fields as a normal stop and adhere to the same constraints like, e.g. quantity or time windows. This can be used to introduce a break at a specific time and location (for scheduled breaks) or just location (for flexible breaks). A vehicle can reference one or more alternate stops with the alternate_stops
field. The vehicle will be assigned exactly one stop from the list of alternate stops and, in addition, may be assigned normal stops.alternate_stops
option and set the appropriate time settings for stops to specify when a break can occur or how long a break should be. For example: To ensure a break location is visited during a specified time window for a scheduled break use hard_windows
(hard constraint) or target_time
and earliness/lateness penalties (soft constraint). Or, to set the length of a vehicle break, use stop_duration
.quantity
to 0 (see the example below). This will allow the vehicle to keep items while offline.quantity
to the negative value of the vehicle capacity (see the example below). This forces the vehicle to have not items while offline.