Simulation inputs/outputs
Input data
All the required inputs for running the simulation are listed and
described in the configuration file METS_R/data/Data.properties. The
paths of the input data are provided in the first section of the file.
Below are the details of each input:
Zone centroid (Shapefile): the locations of origins/destinations of all demand. One can specify a) the parking space available in each zone by setting theCapacityattribute to a nonnegative value; b) which zones correspond to the hubs by setting theTypeas1in the correspondingCSVfile. InMETS-R, hubs behave differently from normal zones in terms of trip origin/destination sampling and vehicle repositioning criteria.Charging station centroid (Shapefile): similar to the zone shapefile, this is the shapefile for charging stations. For a given scenario, one can specify the number of (L1/L2/DC) chargers in each charging station in the correspondingCSVfile.Network file (SUMO XML)orRoad and lane (Shapefile):METS-Rsupports two types of network inputs. One can directly use the SUMO network as the input forMETS-R, or use the Shapefiles with the following format which can be generated byutil\NYC_map_preparation. The Road Shapefile should contain the information on which lane belongs to which road and the Shapefile of lanes should contain lane connection information.Optional inputs: besides the above inputs, one can also provide
RH_DEMAND_FILE (CSV/JSON)for public transit’s (including ride-hailing and buses) zonal-level demand arrival rate;EV/GV_DEMAND_FILE (CSV)for private EV/GV trips;Background traffic speed (CSV)for a user-specified target speed in different hours of the day, this is needed when the simulation considers only partial traffic.
Output data
The aggregated output data generated in the folder
agg_output/records the number of served requests by taxis and EVs, the trip numbers, the passenger waiting time, and the energy consumption. Such output files are stored under the agg_output file folder, includingBuslog.csv,Chargerlog.csv,EVlog.csv,Linklog.csv,Networklog.csv, andZonelog.csv.Networklog.csvsummarizes the overall operational information of the entire system, the fields ofNetworklog.csvfile are:
tickis the simulation time tick.vehOnRoadis the current number of on-road EV taxis.emptyTripis the cumulative number of empty trips EV taxis perform.chargingTripis the cumulative number of charging trips EV taxis perform.generatedTaxiPassis the total number of generated taxi requests.generatedBusPassis the total number of generated bus requests.generatedCombinedPassis the total number of generated bus-taxi integrated requests.taxiPickupPassis the total number of taxi requests got onboard.busPickupPassis the total number of bus requests got onboard.combinePickupPart1is the total number of combined requests that got onboard in the first trip.combinePickupPart2is the total number of combined requests that got onboard in the second trip.taxiServedPassis the total number of taxi requests served (arrived).busServedPassis the total number of bus requests served (arrived).taxiLeavedPassis the total number of taxi requests that left the system unserved.busLeavedPassis the total number of bus requests that left the system unserved.numWaitingTaxiPassshows the current number of requests who are waiting for EV taxis.numWaitingBusPassshows the current number of requests who are waiting for EV buses.timeStampshows the time of the record (in milliseconds).
The attributes of
Zonelog.csvfile are:
tickis the simulation time tick.zoneIDis the index of the corresponding pickup/drop-off zone.numTaxiPassis the current number of EV taxi requests.numBusPassis the current number of EV bus requests.vehStockis the cumulative number of charging trips performed by EV taxis.taxiGeneratedPassis the total number of generated taxi requests in the zone.taxiServedPassis the total number of taxi requests served in the zone.taxiLeavedPassis the total number of taxi requests that left the zone unserved.taxiPassWaitingTimeshows the cumulative waiting time of served taxi requests.busGeneratedPassis the total number of generated bus requests in the zone.busPassWaitingTimeis the total number of generated bus requests in the zone.busServedPassis the total number of bus requests served in the zone.busLeavedPassis the total number of bus requests that left the zone unserved.busPassWaitingTimeshows the cumulative waiting time of served bus requests.taxiWaitingTimeis the cumulative idling time of EV taxis in the zone.
The attributes of
Linklog.csvfile are:
tickis the simulation time tick.linkIDis the index of the road.flowis the cumulative times of EV traveling across the link.consumptionis the cumulative energy EV consumed on that link.
The attributes of
EVlog.csvfile are:
tickis the simulation time tick.vehicleIDis the index of the EV taxi.tripType, 1 stands for occupied trip, 2 for repositioning trip, 4 for charging trip.originIDis the index of the original zone.destIDis the index of the target zone.distanceis the distance (m) traveled.departure timeis the departure time of the trip.costis the energy consumed by the tripchoiceis the choice of routes among the candidates if eco-routing is enabled.passNumis the number of requests.
The attributes of
Buslog.csvfile are:
tickis the simulation time tick.vehicleIDis the index of the EV bus.routeIDis the index of the transit route that the EV bus is following.tripType, 3 for a regular trip, 4 for a charging trip.originIDis the index of the original zone.destIDis the index of the target zone.distanceis the distance (m) traveled.departure timeis the departure time of the trip.costis the energy consumed by the tripchoiceis the choice of routes among the candidates if eco-routing is enabled.passOnBoardis the number of requests on the EV bus.
The attributes of
Chargerlog.csvfile are:
tickis the simulation time tick.chargerIDis the index of the EV chargers.vehIDis the index of the charging vehicles.chargerTypeshows the type of the chargers, can be L2, L3, or Bus.waitingTimeis the time that the charging vehicles spent in the charging queue.chargingTimeis the time between the start of charging and the time of full charge.initialBatteryLevelis the initial battery level (kWh) of the charging vehicles.
One can toggle the
ENABLE_JSON_WRITEto enable the collection of vehicle trajectory files (and toggle it off to save storage space), which are stored intrajectory_output/and are the necessary inputs for the visualization module. Each JSON object stores the following information:ev:trajectory of EV taxis, including its coordinates, speed, battery level, origin, destination, current link, and number of requestsbus:trajectory of EV buses, including its coordinates, speed, battery level, current link, and number of onboard requestspass:number of newly served requests.link:linkID, cumulative flow, average speed, cumulative energy consumption aggregated by link