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.

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.

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 forthcoming.

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.