RebalancedFreightMatrix¶
-
public class
RebalancedFreightMatrix
extends FreightMatrix¶ Freight matrix created by directly scaling flows using traffic counts. Base on DfT’s BYFM 2006 zoning system (LAD + distribution centres + seaports + airports).
Author: Milan Lovric
Constructors¶
RebalancedFreightMatrix¶
-
public
RebalancedFreightMatrix
(RoadNetworkAssignment rna, RouteSetGenerator rsg, Properties params)¶ Constructor for a rebalanced freight matrix that uses network assignment and traffic counts for matrix rebalancing.
Parameters: - origins – List of origin zones.
- destinations – List of destination zones.
- rna – Road network assignment.
- rsg – Route set generator.
- params – Properties.
RebalancedFreightMatrix¶
-
public
RebalancedFreightMatrix
(String fileName, RoadNetworkAssignment rna, RouteSetGenerator rsg, Properties params)¶ Constructor for a rebalanced freight matrix that uses network assignment and traffic counts for matrix rebalancing.
Parameters: - fileName – Path to the file with the initial OD matrix.
- origins – List of origin zones.
- destinations – List of destination zones.
- rna – Road network assignment.
- rsg – Route set generator.
- params – Properties.
Throws: - IOException – if any.
- FileNotFoundException – if any.
Methods¶
assignAndCalculateRMSN¶
-
public void
assignAndCalculateRMSN
()¶ Assigns OD matrix and calculates RMSN with traffic counts.
getRMSNvalues¶
-
public Map<VehicleType, List<Double>>
getRMSNvalues
()¶ Gets the list of RMSN values over all performed rebalancing iterations.
Returns: List of RMSN values.
getScalingFactors¶
-
public SkimMatrixFreightArray
getScalingFactors
()¶ Calculates scaling factors for OD pairs.
Returns: Scaling factors.