Trip sections and Position in trips

Trip section numbers and positions in trips are tools for the user to specify positions of stops at customer locations within a trip.

Scenarios trip sections

 

 

Which scenarios can be modeled by trip section numbers?
  • Some customers are promised to be visited early in the trip, e.g.:
    • Set tripSectionNumber of customer locations that have to be visited early to 1.
    • Set tripSectionNumber of all other customer locations to 2.
  • The planner wants deliveries at customer locations to be before pickups at customer locations, e.g.:
    • Set tripSectionNumber of customer locations for delivery to 1.
    • Set tripSectionNumber of customer locations for pickup to 2.
    • You may have to duplicate a customer location if it is used both, for pickup and delivery.
  • Some stops may be added to a given route. They may be added only at the end of a route, e.g.:
    • Set tripSectionNumber of customer locations of a given route to 1.
    • Set tripSectionNumber of customer locations that have to be added to 2.
Scenarios position in trips

 

 

Which scenarios can be modeled by position in trips?
Influence sequence of customer stops

 

 

How can the sequence of customer stops within a trip be influenced?
  • A stop at a customer location with a specific tripSectionNumber will always be after other stops with a specific lower tripSectionNumber, within the same trip.
  • A stop at a customer location with a specific tripSectionNumber will always be before other stops with a specific higher tripSectionNumber, within the same trip.
  • A stop at a customer location with a positionInTrip of type FIRST_CUSTOMER_STOP will always be the very first customer stop in its trip.
  • A stop at a customer location with a positionInTrip of type LAST_CUSTOMER_STOP will always be the very last customer stop in its trip.

Notes: Trip section numbers and position in trips cannot be set both at the same stop of a customer location.
It is valid to set none of the two values. In this case, no particular restriction concerning its customer stop position is implied by this location.

Examples

The following examples show valid or invalid positions of customer stops within a trip in different scenarios.