I have a vehicle that can start at any time and has to serve some shipments with special working hours. My problem is, that the vehicle always starts at the time specified by earliest_start( which is 00:00 in my case) or 0 if earliest_start is not specified. For example: If it takes the vehicle 1 hour to drive to the delivery location of the shipment, which has a time window from 8 to 9, it starts at 0 and has to wait 7 hours instead of just starting the route at 7. Is there any way of solving this? As there are different locations with different time windows i don’t want to set earliest_start to a fixed time, but would like to determine the start depending on a minimum of waiting time/completion time.
Also i want to forbid returning to the depot to pickup another shipment. How is this possible without limiting the total time available (latest_end of vehicle)?