Skip to content

Quick Start Guide

Nick Ferguson edited this page Apr 11, 2024 · 18 revisions

Requires Anaconda, git, and R (with all necessary R packages) to be installed on the machine.

  1. With Anaconda Prompt in the target directory on a modeling server's local drive:
    a) clone this repo and move to the development branch.
    git clone https://github.com/CMAP-REPOS/cmap_trip-based_model.git
    cd cmap_trip-based_model
    git checkout develop
    b) if a TBM conda environment already exists, reinstall local packages to use the latest source code.
    conda activate CMAP-TRIP2
    pip install -e src\Mode-Dest-TOD
    pip install -e src\Mode-Dest-TOD\sharrow
    c) copy data from a previous model run. (arguments for recent_conformity and scenario should match the previous model run)
    powershell -file copy_scenario_data.ps1 -recent_conformity c23q4 -scenario 100
  2. Update the project name in Emme > File > Project Settings and rename the .emp and .emp.prj files to match.
  3. Update "Database\batch_file.yaml"
  4. Update growth rate in "prep_macros\distribute.trucks" and "prep_macros\distribute.poes"
  5. Update file location in "prep_macros\build_tod_transit" and "prep_macros\initialize.scenarios"
  6. Update visitor_trips_growth_factor and downtown_surcharge_rates for TNC and TNC_pooled in "Database\cmap_trip_config.yaml"
  7. Make a copy of the previous Conformity scenario. Copy "useful_macros\input_data.mac" from the model run being set up to "Database" in the previous scenario copy. Run the macro in the previous scenario using Emme Prompt ~<input_data.mac. Copy the resulting preload congested travel time files (those with preload or timau in the name) to "Database\default_base_year" in the scenario to be run.
  8. Run "trip_gen.bat" module 3
  9. Run "run_cleanup_script.bat"
  10. Run the following macros, in order, using Emme Prompt:
    "prep_macros\build_tod_transit"
    "useful_macros\delete.initial.batchin.scenarios"
    "prep_macros\initialize.scenarios"
  11. Run "Submit_Full_Regional_Model_SOLA.bat mode 2
Clone this wiki locally