Skip to content

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.
      • Run the Calibration
        1. Clear the RESULT folder
        2. Run the queries in ‘reset_db.sql’
        3. Open Matlab (type matlab in the Terminal from any location) and ensure working directory is ~/SimMobST_Calibration.
        4. Open file wspsaNTE_enhanced.m and click the ‘run’ button
    • When existing Trip chains are to be used
      • Run the Calibration
        1. Clear the RESULT folder
        2. Run the queries in ‘reset_db.sql’
        3. Open Matlab (type matlab in the Terminal from any location) and ensure working directory is ~/SimMobST_Calibration.
        4. Open file wspsaNTE_enhanced.m and click the ‘run’ button
  • Outputs

    • Output files will be located at ~/SimMobST_Calibration/RESULT
    • To analyze calibration result, we run the CalResultAnal.R
Clone this wiki locally