Ramp Meter Discharge

Main Page > Tutorials > Tutorial: Performance Measures > Tutorial Ramp Metering Measures

Calculating Ramp Meter Discharge Rate

To calculate the ramp meter discharge rate, first run RampMeterDischarge.cmd, which references a project file; e.g. PerfMeasureAggProject.xml. This process uses the DetectorDataProcessor program, in the folder: \OneDrive\SwashSim\DetectorDataProcessor. The result of this process will be an output file with the detector-measured volume for the detector stations identified in the project file (the ramp meter passage detectors, located immediately downstream of the ramp meter stop bar).

Editing Files Editing the Command File The block below shows the text for a typical command file. The numbers indicate line numbers and should not be included in the code itself.
 * 1) cd C:\University of Florida\Washburn, Scott - SwashSim\DetectorDataProcessor
 * 2) DetectorDataProcessor.exe "C:\Performance Measures\Processing Macros_Scripts\Ramp Meter Discharge Rate\PerfMeasureAggProject.xml" "DetectorCounts"

The command file RampMeterDischarge.cmd only has two lines. The first line will specify the file location of the DetectorDataProcessor program and the second line specifies the file location of the project file. The file paths are shown in bold.

Creating a Command File To create a command file, open a text editor, such as Notepad or Notepad ++, and paste the code above into the editor. Save the file with .cmd affixed at the end of the file name. After saving, the file should appear as a Windows command file in file explorer.

Editing the Project File The block below shows the text for a typical project file. The numbers indicate line numbers and should not be included in the code itself.
 * 1) 
 * 2) 
 * 3)  C:\Performance Measures\Processing Macros_Scripts\Ramp Meter Discharge Rate\PerfMeasureAggProject - Diamond.xml
 * 4)   SwashSimDetectorAggregate
 * 5)   PerformanceMeasureStatistics
 * 6)   
 * 7)     C:\Performance Measures\Diamond Large\Output Data_9_27
 * 8)     DetectorAggregateMeasures_Diamond.csv
 * 9)     C:\Performance Measures\Diamond Large\Output Data_9_27\DetectorAggResults.csv
 * 10)     true</WriteOutputDataToFiles>
 * 11)     <SelectedPerfMeasure>NumVehicles</SelectedPerfMeasure>
 * 12)     <DetsInfo>
 * 13)       <DetectorInfo>
 * 14)         <LinkId>737</LinkId>
 * 15)         <LaneId>1</LaneId>
 * 16)         <DetId>2</DetId>
 * 17)       </DetectorInfo>
 * 18)       <DetectorInfo>
 * 19)         <LinkId>737</LinkId>
 * 20)         <LaneId>2</LaneId>
 * 21)         <DetId>2</DetId>
 * 22)       </DetectorInfo>
 * 23)       <DetectorInfo>
 * 24)         <LinkId>8022</LinkId>
 * 25)         <LaneId>1</LaneId>
 * 26)         <DetId>2</DetId>
 * 27)       </DetectorInfo>
 * 28)       <DetectorInfo>
 * 29)         <LinkId>8022</LinkId>
 * 30)         <LaneId>2</LaneId>
 * 31)         <DetId>2</DetId>
 * 32)       </DetectorInfo>
 * 33)     </DetsInfo>
 * 34)     <PerfMeasureValues>
 * 35)       189
 * 36)       196
 * 37)       198
 * 38)       208
 * 39)       185
 * 40)       202
 * 41)     </PerfMeasureValues>
 * 42)   </DetMeasureStats>
 * 43) </ProjectData>

There are several inputs needed in the project file. The  field specifies the location of the Swashsim output files (The processor uses data from each scenario's DetectorAggregateMeasures.csv to determine the ramp meter discharge rate) and the  field specifies the location of the output file and the file name. Similar to the Ramp Meter Delay macro, the ramp meter discharge project file requires the information of each passage detector. Each field that should be changed for a new interchange is shown in bold and explained in the table below.

The information for each interchange's passage detectors is listed below.

Macro Process

Notes
 * If the  field is left empty, the output file will be named ‘DetectorAggResults.csv’ and be placed in the folder specified in the  field.


 * These values in the output file are an average across all replications.


 * Values will be extracted for all scenarios present in the specified folder path in the project file.