-
Notifications
You must be signed in to change notification settings - Fork 29
Execution procedure
smart-fm edited this page Nov 9, 2018
·
3 revisions
Short-term Calibration Running Instructions
-
Inputs
- ~/SimMobST_Calibration/data/SensorMapping, ~/SimMobST_Calibration/data/TravelTimeData contain the reference (external) data for the calibration in the .RData file format. These files typically do not change.
- To update the .RData
- The configure_Whole_set.m file contained in ~/SimMobST_Calibration/ the initial values of the parameters for the simulation, along with their upper and lower bound values.
-
Execution of the Calibration loop
- When new Trip chains are provided by MT
- Output the Trip chains from the database into
TripChain.csv
and place it in the folder ~/SimMobST_Calibration/data/TripChain - Run Ffunction.R: Open the Ffunction.R file and dnsure start and end time is set in the code
- Using RStudio: Open file ~/SimMobST_Calibration/data/TripChain/Ffunction.R, then select all the contents of the file and press
Ctrl+Enter
- Using Terminal: Navigate to the folder Open file ~/SimMobST_Calibration/data/TripChain/ and type Ffunction.R to execute.
- Using RStudio: Open file ~/SimMobST_Calibration/data/TripChain/Ffunction.R, then select all the contents of the file and press
- Run the Calibration
- Clear the RESULT folder
- Run the queries in ‘reset_db.sql’
- Open Matlab (type matlab in the Terminal from any location) and ensure working directory is ~/SimMobST_Calibration.
- Open file wspsaNTE_enhanced.m and click the ‘run’ button
- Output the Trip chains from the database into
- When existing Trip chains are to be used
- Run the Calibration
- Clear the RESULT folder
- Run the queries in ‘reset_db.sql’
- Open Matlab (type matlab in the Terminal from any location) and ensure working directory is ~/SimMobST_Calibration.
- Open file wspsaNTE_enhanced.m and click the ‘run’ button
- Run the Calibration
- When new Trip chains are provided by MT
-
Outputs
- Output files will be located at ~/SimMobST_Calibration/RESULT
- To analyze calibration result, we run the CalResultAnal.R