public class AvgServiceDistance extends Object implements JobDistance
If the distance between two jobs cannot be calculated with input-transport costs, it tries the euclidean distance between these jobs.
| Constructor and Description |
|---|
AvgServiceDistance(VehicleRoutingTransportCosts costs) |
| Modifier and Type | Method and Description |
|---|---|
double |
getDistance(Job i,
Job j)
Calculates and returns the average distance between two jobs based on the input-transport costs.
|
public AvgServiceDistance(VehicleRoutingTransportCosts costs)
public double getDistance(Job i, Job j)
If the distance between two jobs cannot be calculated with input-transport costs, it tries the euclidean distance between these jobs.
getDistance in interface JobDistanceCopyright © 2013–2019. All rights reserved.