Skip to content

Commit

Permalink
add vehicleType to carrier load analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
rewertvsp committed Dec 3, 2024
1 parent 994ebf5 commit 709a743
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ void writeLoadPerVehicle(String analysisOutputDirectory, Scenario scenario) thro

//Write headline:
bw1.write(String.join(delimiter,"vehicleId",
"vehicleTypeId",
"capacity",
"maxLoad",
"load state during tour"));
Expand All @@ -109,6 +110,7 @@ void writeLoadPerVehicle(String analysisOutputDirectory, Scenario scenario) thro
final Double capacity = vehicleType.getCapacity().getOther();

bw1.write(vehicleId.toString());
bw1.write(delimiter + vehicleType.getId().toString());
bw1.write(delimiter + capacity);
bw1.write(delimiter + maxLoad);
bw1.write(delimiter + load);
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
vehicleId capacity maxLoad load state during tour
vehicleId vehicleTypeId capacity maxLoad load state during tour
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
vehicleId capacity maxLoad load state during tour
freight_carrier1_veh_freight_carrier1_veh_heavyVehicle_1_1 50.0 26 [3, 8, 18, 25, 26, 23, 13, 12, 7, 0]
vehicleId vehicleTypeId capacity maxLoad load state during tour
freight_carrier1_veh_freight_carrier1_veh_heavyVehicle_1_1 heavy 50.0 26 [3, 8, 18, 25, 26, 23, 13, 12, 7, 0]

0 comments on commit 709a743

Please sign in to comment.