public interface VehicleRoutingActivityCosts
This calculates activity and leg-based costs. If you want to consider for example costs incurred by missed time-windows, you can do it here.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
VehicleRoutingActivityCosts.Parameter |
static class |
VehicleRoutingActivityCosts.Time |
| Modifier and Type | Method and Description |
|---|---|
double |
getActivityCost(TourActivity tourAct,
double arrivalTime,
Driver driver,
Vehicle vehicle)
Calculates and returns the activity cost at tourAct.
|
double |
getActivityDuration(TourActivity tourAct,
double arrivalTime,
Driver driver,
Vehicle vehicle) |
double getActivityCost(TourActivity tourAct, double arrivalTime, Driver driver, Vehicle vehicle)
Here waiting-times, service-times and missed time-windows can be considered.
tourAct - arrivalTime - is actually the arrival time at this tourActivity, which must not nessecarrily be the operation start time. If the theoretical earliest
operation start time at this activity is later than actualStartTime, the driver must wait at this activity.driver - vehicle - if earliestStartTime > latestStartTime activity operations cannot be conducted within the given time-window.double getActivityDuration(TourActivity tourAct, double arrivalTime, Driver driver, Vehicle vehicle)
Copyright © 2013–2016. All rights reserved.