Skip to content

Commit

Permalink
use specific randoms to make results reproducible
Browse files Browse the repository at this point in the history
  • Loading branch information
rewertvsp committed Feb 22, 2024
1 parent c6c9c5c commit 06a2fbb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,17 @@ void testTripDistributionGoodsTraffic() throws IOException {

ArrayList<String> modesORvehTypes = new ArrayList<String>(
Arrays.asList("vehTyp1", "vehTyp2", "vehTyp3", "vehTyp4", "vehTyp5"));
ArrayList<String> listOfZones = new ArrayList<>( List.of("testArea1_area1", "testArea1_area2", "testArea2_area3"));

TrafficVolumeGeneration.setInputParameters(usedTrafficType);

Map<TrafficVolumeKey, Object2DoubleMap<Integer>> trafficVolumePerTypeAndZone_start = TrafficVolumeGeneration
.createTrafficVolume_start(resultingDataPerZone, output, sample, modesORvehTypes, usedTrafficType);
Map<TrafficVolumeKey, Object2DoubleMap<Integer>> trafficVolumePerTypeAndZone_stop = TrafficVolumeGeneration
.createTrafficVolume_stop(resultingDataPerZone, output, sample, modesORvehTypes, usedTrafficType);
final TripDistributionMatrix odMatrix = TripDistributionMatrix.Builder
.newInstance(getZoneIndex(inputDataDirectory), trafficVolumePerTypeAndZone_start, trafficVolumePerTypeAndZone_stop, usedTrafficType).build();
.newInstance(getZoneIndex(inputDataDirectory), trafficVolumePerTypeAndZone_start, trafficVolumePerTypeAndZone_stop, usedTrafficType,
listOfZones).build();

Map<String, Map<Id<Link>, Link>> regionLinksMap = new HashMap<>();
regionLinksMap.put("testArea1_area1", new HashMap<>());
Expand Down

0 comments on commit 06a2fbb

Please sign in to comment.