Opening times 1 (timeWindow[0].beginTime,timeWindow[0].endTime)

These constraints allow you to define a time window in which resources can go back to the site. Opening times 1 corresponds to the time from which the resource can start to (re)load and Closing times 1 the time beyond which the resource cannot (re)load. This time window applies to all days UNLESS Opening days is defined. In this case, the time window is applied only to this value.

Format: HH:MM

A (re)load operation cannot start before the start time. A (re)load operation started in the time window can continue beyond the end time. If you want the (re)load operation to finish before a certain time you will need to reduce this time by the (re)loading time (if this time is fixed) and define this new time under the closing times 1 constraint.

If a time window is not documented for a site, the resource can perform a (re)load operation at any time during any Opening days defined and within the limit set for the resource’s working hours. You can define up to 4 different time slots (and their associated days) for each site.

[Warning] Warning

Time windows defined as overlapping over several days are not handled. The user cannot use a time window starting at 11:00pm and finishing at 03:00am the next day, but a bypass solution or fix does exist.

Example 1:

Opening times 1 = 07:30 and Closing times 1 = 11:30 define a time window of 4 hours during which the resource can (re)load.

Example 2:

The resource can undertake the (re)load at the depot between 11:00pm and 03:00am In this case, you will need to shift all the times (in one direction or the other) in order for them to be all contained in one day and to restore the sequencing of the route. Opening times 1 = 19:00 and Closing times 1 = 23:00 define a time window of 4 hours during which the resource can undertake the (re)load operation.

Following the optimisation, you need to shift all the visit and (re)load times again to restore the original time window. This (re)load operation was planned by TourSolver at 09:00pm, and in reality it will be undertaken at 01:00am (=23:00+2h). You will therefore need to add the constant of 2h to all the calculated times given.