SkimMatrixFreight¶
-
public interface
SkimMatrixFreight
¶ Skim matrix for storing inter-zonal travel times or costs (for freight vehicles).
Author: Milan Lovric
Fields¶
Methods¶
getAbsoluteDifference¶
-
public double
getAbsoluteDifference
(SkimMatrixFreight other)¶ Gets sum of absolute differences between elements of two matrices.
Parameters: - other – The other matrix.
Returns: Sum of absolute differences.
getAverageCost¶
-
public double
getAverageCost
(FreightMatrix demand)¶ Gets average cost weighted by the freight demand.
Parameters: - demand – Freight OD matrix.
Returns: Average cost weighted by freight matrix.
getCost¶
-
public double
getCost
(int originZone, int destinationZone, int vehicleType)¶ Gets cost for a given origin-destination pair and a vehicle type.
Parameters: - originZone – Origin zone.
- destinationZone – Destination zone.
- vehicleType – Vehicle type.
Returns: Origin-destination cost.