+ All Categories
Home > Documents > User’s Guide for the COG/TPB Travel Demand Forecasting ... · 777 NORTH CAPITOL STREET NE, SUITE...

User’s Guide for the COG/TPB Travel Demand Forecasting ... · 777 NORTH CAPITOL STREET NE, SUITE...

Date post: 18-Jun-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
320
777 NORTH CAPITOL STREET NE, SUITE 300, WASHINGTON, DC 20002 MWCOG.ORG/TPB (202) 962-3200 Metropolitan Washington Council of Governments (COG) National Capital Region Transportation Planning Board (TPB) User’s Guide for the COG/TPB Travel Demand Forecasting Model, Version 2.3.75 Volume 2 of 2: Appendices B (Batch Files), C (Cube Voyager Scripts), and D (AEMS and Linesum Control Files) December 5, 2018
Transcript
  • 777 NORTH CAPITOL STREET NE, SUITE 300, WASHINGTON, DC 20002 MWCOG.ORG/TPB (202) 962-3200

    Metropolitan Washington Council of Governments (COG) National Capital Region Transportation Planning Board (TPB)

    User’s Guide for the COG/TPB Travel Demand Forecasting Model, Version 2.3.75

    Volume 2 of 2: Appendices B (Batch Files), C (Cube Voyager Scripts), and D (AEMS and Linesum Control Files)

    December 5, 2018

  • mwcog_tpb_travel_model_v2.3.75_user_guide_vol2of2_CoverPg_Final.docx

    User’s Guide for the COG/TPB Travel Demand Forecasting Model, Version 2.3.75: Volume 2 of 2

    December 5, 2018

    About the TPB The National Capital Region Transportation Planning Board (TPB) is the federally designated metropolitan planning organization (MPO) for metropolitan Washington. It is responsible for developing and carrying out a continuing, cooperative, and comprehensive transportation planning process in the metropolitan area. Members of the TPB include representatives of the transportation agencies of the states of Maryland and Virginia and the District of Columbia, 23 local governments, the Washington Metropolitan Area Transit Authority, the Maryland and Virginia General Assemblies, and nonvoting members from the Metropolitan Washington Airports Authority and federal agencies. The TPB is staffed by the Department of Transportation Planning at the Metropolitan Washington Council of Governments (COG).

    About COG The Metropolitan Washington Council of Governments (COG) is an independent, nonprofit association that brings area leaders together to address major regional issues in the District of Columbia, suburban Maryland, and Northern Virginia. COG’s membership is comprised of 300 elected officials from 23 local governments, the Maryland and Virginia state legislatures, and U.S. Congress.

    Credits

    Director, Department of Transportation Planning (DTP): Kanti Srikanth Director, Travel Forecasting and Emissions Analysis Program, DTP: Ronald Milone (retired Oct. 2018) Report Authors:

    • This Update: Ray Ngo, Mark Moran, Meseret Seifu, and Feng Xie • Past Versions: Ron Milone, Mark Moran, Meseret Seifu, Hamid Humeida, and Mary Martchouk

    Oversight: COG/TPB Travel Forecasting Subcommittee

    Acknowledgements

    This publication was funded, in part, by grants from the District of Columbia Department of Transportation, the Maryland Department of Transportation, the Virginia Department of Transportation, the Federal Highway Administration and the Federal Transit Administration. The material herein does not necessarily reflect the views of the sponsoring agencies.

    Accommodations Policy

    Alternative formats of this document are available upon request. Visit www.mwcog.org/accommodations or call (202) 962-3300 or (202) 962-3213 (TDD).

    Title VI Nondiscrimination Policy

    The Metropolitan Washington Council of Governments (COG) fully complies with Title VI of the Civil Rights Act of 1964 and related statutes and regulations prohibiting discrimination in all programs and activities. For more information, to file a Title VI related complaint, or to obtain information in another language, visit www.mwcog.org/nondiscrimination or call (202) 962-3300.

    http://www.mwcog.org/accommodationsfile://mwcog.org/DFS/DTP/ateam/docum/fy17/model_doc_user_guide/www.mwcog.org/nondiscrimination

  • El Consejo de Gobiernos del Área Metropolitana de Washington (COG) cumple con el Título VI de la Ley sobre los Derechos Civiles de 1964 y otras leyes y reglamentos en todos sus programas y actividades. Para obtener más información, someter un pleito relacionado al Título VI, u obtener información en otro idioma, visite www.mwcog.org/nondiscrimination o llame al (202) 962-3300.

    Copyright © 2018 by the Metropolitan Washington Council of Governments

  • Appendix B. Batch files

    1. Runall ................................................................................................................................. B-3

    1.1 run_Model_2019_Final.bat ......................................................................................... B-3 1.2 run_ModelSteps_2019_Final.bat ................................................................................ B-3 1.3 run_Model_2021_Final.bat ......................................................................................... B-4 1.4 run_ModelSteps_2021_Final.bat ................................................................................ B-5 1.5 run_Model_2025_Final.bat ......................................................................................... B-6 1.6 run_ModelSteps_2025_Final.bat ................................................................................ B-6 1.7 run_Model_2030_final.bat.......................................................................................... B-7 1.8 run_ModelSteps_2030_final.bat ................................................................................. B-8 1.9 run_Model_2040_Final.bat ......................................................................................... B-9 1.10 run_ModelSteps_2040_Final.bat ................................................................................ B-9 1.11 run_Model_2045_final.bat........................................................................................ B-10 1.12 run_ModelSteps_2045_final.bat ............................................................................... B-11

    2 ‘Pump-Prime’ Iterations ................................................................................................ B-12 2.1 ArcPy_Walkshed_Process.bat .................................................................................. B-12 2.2 set_CPI.bat ................................................................................................................ B-13 2.2 PP_Highway_Build.bat ............................................................................................. B-13 2.3 PP_Highway_Skims.bat............................................................................................ B-13 2.4 PP_Auto_Drivers.bat ................................................................................................ B-14

    3 ‘Standard’ Iterations (1-4) ............................................................................................ B-15 3.1 Transit_Skim_All_Modes_Parallel.bat ..................................................................... B-15 3.2 Transit_Fare.bat ........................................................................................................ B-16 3.3 Trip_Generation.bat .................................................................................................. B-16 3.4 Trip_Distribution.bat ................................................................................................ B-17 3.5 Mode_Choice_Parallel.bat ........................................................................................ B-17 3.6 Auto_Driver.bat ........................................................................................................ B-18 3.7 Time-of-Day.bat........................................................................................................ B-18 3.8 Highway_Assignment_Parallel.bat ........................................................................... B-19 3.9 Average_Link_Speeds.bat - Iterations (2- 4) ........................................................... B-19 3.10 Highway_Skims.bat .................................................................................................. B-19

    4 Transit assignment Batch Files ...................................................................................... B-20 4.1 Transit_Assignment_Parallel.bat .............................................................................. B-20 4.2 TranSum.bat .............................................................................................................. B-21

    5 Optional/Utility Batch Files ........................................................................................... B-21

  • 5.1 SearchForErrs.bat...................................................................................................... B-21 5.2 move_temp_files_v6.bat ........................................................................................... B-22

  • Appendix B Batch file

    B-3

    1. Runall 1.1 run_Model_2019_Final.bat :: Version 2.3.75 :: 2018-09-11 Tue 10:40 AM set root=. set scenar=2019_Final set runbat=run_ModelSteps_2019_Final.bat :: Environment variables for (multistep) distributed processing: :: Environment variables for (intrastep) distributed processing: :: use MDP = t/f (for true or false) :: use IDP = t/f (for true or false) :: Number of subnodes: 1-3 => 3 subnodes and one main node = 4 nodes in total set useIdp=t set useMdp=t :: AMsubnode & MDsubnode are used in highway_assignment_parallel.bat/s set AMsubnode=1-4 set MDsubnode=2-4 :: subnode used in transit fare and transit assignment :: We no longer use IDP in transit skimming, since it would require 16 cores set subnode=1-3 :: This command will :: 1) time the model run (using timethis.exe and the double quotes) :: 2) redirect standard output and standard error to a file :: 3) Use the tee command so that stderr & stdout are sent both to the file and the screen timethis "%runbat% %scenar%" 2>&1 | tee %root%\%scenar%\%scenar%_fulloutput.txt :: Open up the file containing the stderr and stdout if exist %root%\%scenar%\%scenar%_fulloutput.txt start %root%\%scenar%\%scenar%_fulloutput.txt :: Look four errors in the reports and output files call searchForErrs.bat %scenar% :: Open up the file containing any errors found if exist %root%\%scenar%\%scenar%_searchForErrs.txt start %root%\%scenar%\%scenar%_searchForErrs.txt :: Open up other report files if exist %root%\%scenar%\i4_Highway_Assignment.rpt start %root%\%scenar%\i4_Highway_Assignment.rpt if exist %root%\%scenar%\i4_mc_NL_summary.txt start %root%\%scenar%\i4_mc_NL_summary.txt if exist %root%\%scenar%\i4_Assign_Output.net start %root%\%scenar%\i4_Assign_Output.net cd %scenar% start powershell.exe -noexit -Command get-content i4_ue*AM_nonHov*txt -tail 1; get-content i4_ue*AM_hov*txt -tail 1; get-content i4_ue*PM_nonHov*txt -tail 1; get-content i4_ue*PM_hov*txt -tail 1; get-content i4_ue*MD*txt -tail 1; get-content i4_ue*NT*txt -tail 1 cd .. move_temp_files_v6.bat %scenar% :: Cleanup set root= set scenar= set runbat=

    set useIdp= set useMdp= set AMsubnode= set MDsubnode= set subnode=

    1.2 run_ModelSteps_2019_Final.bat :: Version 2.3.75 :: 2018-09-11 :: Version 2.3 TPB Travel Model on 3722 TAZ System set _year_=2019 set _alt_=Ver2.3.75_2019_Final :: Maximum number of user equilibrium iterations used in traffic assignment :: User should not need to change this. Instead, change _relGap_ (below) set _maxUeIter_=1000 :: Set transit constraint path and files :: Current year used to set the constraint = 2020 set _tcpath_= :: UE relative gap threshold: Progressive (10^-2 for pp-i2, 10^-3 for i3, & 10^-4 for i4) :: Set the value below rem ====== Pump Prime Iteration ========================================== set _iter_=pp set _prev_=pp set _relGap_=0.01 REM call ArcPy_Walkshed_Process.bat %1 call Set_CPI.bat %1 call PP_Highway_Build.bat %1 call PP_Highway_Skims.bat %1 call Transit_Skim_All_Modes_Parallel.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call PP_Auto_Drivers.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 1 =================================================== set _iter_=i1 set _prev_=pp call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 2 ===================================================

  • Appendix B Batch file

    B-4

    set _iter_=i2 set _prev_=i1 call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Average_Link_Speeds.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 3 =================================================== set _iter_=i3 set _prev_=i2 set _relGap_=0.001 call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Average_Link_Speeds.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 4 =================================================== set _iter_=i4 set _prev_=i3 set _relGap_=0.0001 call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Average_Link_Speeds.bat %1 call Highway_Skims.bat %1 :: rem ====== Transit assignment ============================================ @echo Starting Transit Assignment Step @date /t & time/t call Transit_Assignment_Parallel.bat %1 call TranSum.bat %1 @echo End of batch file @date /t & time/t :: rem ====== End of batch file ============================================= REM cd %1 REM copy *.txt MDP_%useMDP%\*.txt REM copy *.rpt MDP_%useMDP%\*.rpt REM copy *.log MDP_%useMDP%\*.log REM CD.. set _year_= set _alt_= set _iter_=

    set _prev_= set _maxUeIter_= set _relGap_=

    1.3 run_Model_2021_Final.bat :: Version 2.3.75 :: 2018-09-06 Thu 3:30 PM set root=. set scenar=2021_Final set runbat=run_ModelSteps_2021_Final.bat :: Environment variables for (multistep) distributed processing: :: Environment variables for (intrastep) distributed processing: :: use MDP = t/f (for true or false) :: use IDP = t/f (for true or false) :: Number of subnodes: 1-3 => 3 subnodes and one main node = 4 nodes in total set useIdp=t set useMdp=t :: AMsubnode & MDsubnode are used in highway_assignment_parallel.bat/s set AMsubnode=1-4 set MDsubnode=2-4 :: subnode used in transit fare and transit assignment :: We no longer use IDP in transit skimming, since it would require 16 cores set subnode=1-3 :: This command will :: 1) time the model run (using timethis.exe and the double quotes) :: 2) redirect standard output and standard error to a file :: 3) Use the tee command so that stderr & stdout are sent both to the file and the screen timethis "%runbat% %scenar%" 2>&1 | tee %root%\%scenar%\%scenar%_fulloutput.txt :: Open up the file containing the stderr and stdout if exist %root%\%scenar%\%scenar%_fulloutput.txt start %root%\%scenar%\%scenar%_fulloutput.txt :: Look four errors in the reports and output files call searchForErrs.bat %scenar% :: Open up the file containing any errors found if exist %root%\%scenar%\%scenar%_searchForErrs.txt start %root%\%scenar%\%scenar%_searchForErrs.txt :: Open up other report files if exist %root%\%scenar%\i4_Highway_Assignment.rpt start %root%\%scenar%\i4_Highway_Assignment.rpt if exist %root%\%scenar%\i4_mc_NL_summary.txt start %root%\%scenar%\i4_mc_NL_summary.txt if exist %root%\%scenar%\i4_Assign_Output.net start %root%\%scenar%\i4_Assign_Output.net cd %scenar% start powershell.exe -noexit -Command get-content i4_ue*AM_nonHov*txt -tail 1; get-content i4_ue*AM_hov*txt -tail 1; get-content i4_ue*PM_nonHov*txt -tail 1; get-content i4_ue*PM_hov*txt -tail 1; get-content i4_ue*MD*txt -tail 1; get-content i4_ue*NT*txt -tail 1 cd .. move_temp_files_v6.bat %scenar% :: Cleanup set root= set scenar= set runbat= set useIdp=

  • Appendix B Batch file

    B-5

    set useMdp= set AMsubnode= set MDsubnode= set subnode=

    1.4 run_ModelSteps_2021_Final.bat :: Version 2.3.75 :: 2018-09-06 Thu 3:30 PM :: Version 2.3 TPB Travel Model on 3722 TAZ System set _year_=2021 set _alt_=Ver2.3.75_2021_Final :: Maximum number of user equilibrium iterations used in traffic assignment :: User should not need to change this. Instead, change _relGap_ (below) set _maxUeIter_=1000 :: Set transit constraint path and files :: Current year used to set the constraint = 2020 set _tcpath_= :: UE relative gap threshold: Progressive (10^-2 for pp-i2, 10^-3 for i3, & 10^-4 for i4) :: Set the value below rem ====== Pump Prime Iteration ========================================== set _iter_=pp set _prev_=pp set _relGap_=0.01 REM call ArcPy_Walkshed_Process.bat %1 call Set_CPI.bat %1 call PP_Highway_Build.bat %1 call PP_Highway_Skims.bat %1 call Transit_Skim_All_Modes_Parallel.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call PP_Auto_Drivers.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 1 =================================================== set _iter_=i1 set _prev_=pp call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 2 =================================================== set _iter_=i2

    set _prev_=i1 call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Average_Link_Speeds.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 3 =================================================== set _iter_=i3 set _prev_=i2 set _relGap_=0.001 call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Average_Link_Speeds.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 4 =================================================== set _iter_=i4 set _prev_=i3 set _relGap_=0.0001 call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Average_Link_Speeds.bat %1 call Highway_Skims.bat %1 :: rem ====== Transit assignment ============================================ @echo Starting Transit Assignment Step @date /t & time/t call Transit_Assignment_Parallel.bat %1 call TranSum.bat %1 @echo End of batch file @date /t & time/t :: rem ====== End of batch file ============================================= REM cd %1 REM copy *.txt MDP_%useMDP%\*.txt REM copy *.rpt MDP_%useMDP%\*.rpt REM copy *.log MDP_%useMDP%\*.log REM CD.. set _year_= set _alt_= set _iter_= set _prev_=

  • Appendix B Batch file

    B-6

    set _maxUeIter_= set _relGap_=

    1.5 run_Model_2025_Final.bat :: Version 2.3.75 :: 2018-08-16 Thu 11:28:04 set root=. set scenar=2025_Final set runbat=run_ModelSteps_2025_Final.bat :: Environment variables for (multistep) distributed processing: :: Environment variables for (intrastep) distributed processing: :: use MDP = t/f (for true or false) :: use IDP = t/f (for true or false) :: Number of subnodes: 1-3 => 3 subnodes and one main node = 4 nodes in total set useIdp=t set useMdp=t :: AMsubnode & MDsubnode are used in highway_assignment_parallel.bat/s set AMsubnode=1-4 set MDsubnode=2-4 :: subnode used in transit fare and transit assignment :: We no longer use IDP in transit skimming, since it would require 16 cores set subnode=1-3 :: This command will :: 1) time the model run (using timethis.exe and the double quotes) :: 2) redirect standard output and standard error to a file :: 3) Use the tee command so that stderr & stdout are sent both to the file and the screen timethis "%runbat% %scenar%" 2>&1 | tee %root%\%scenar%\%scenar%_fulloutput.txt :: Open up the file containing the stderr and stdout if exist %root%\%scenar%\%scenar%_fulloutput.txt start %root%\%scenar%\%scenar%_fulloutput.txt :: Look four errors in the reports and output files call searchForErrs.bat %scenar% :: Open up the file containing any errors found if exist %root%\%scenar%\%scenar%_searchForErrs.txt start %root%\%scenar%\%scenar%_searchForErrs.txt :: Open up other report files if exist %root%\%scenar%\i4_Highway_Assignment.rpt start %root%\%scenar%\i4_Highway_Assignment.rpt if exist %root%\%scenar%\i4_mc_NL_summary.txt start %root%\%scenar%\i4_mc_NL_summary.txt if exist %root%\%scenar%\i4_Assign_Output.net start %root%\%scenar%\i4_Assign_Output.net cd %scenar% start powershell.exe -noexit -Command get-content i4_ue*AM_nonHov*txt -tail 1; get-content i4_ue*AM_hov*txt -tail 1; get-content i4_ue*PM_nonHov*txt -tail 1; get-content i4_ue*PM_hov*txt -tail 1; get-content i4_ue*MD*txt -tail 1; get-content i4_ue*NT*txt -tail 1 cd .. move_temp_files_v6.bat %scenar% :: Cleanup set root= set scenar= set runbat= set useIdp= set useMdp= set AMsubnode= set MDsubnode=

    set subnode=

    1.6 run_ModelSteps_2025_Final.bat :: Version 2.3.75 :: 2018-08-16 Thu 11:27:04 :: Version 2.3 TPB Travel Model on 3722 TAZ System set _year_=2025 set _alt_=Ver2.3.75_2025_Final :: Maximum number of user equilibrium iterations used in traffic assignment :: User should not need to change this. Instead, change _relGap_ (below) set _maxUeIter_=1000 :: Set transit constraint path and files :: Current year used to set the constraint = 2020 set _tcpath_= :: UE relative gap threshold: Progressive (10^-2 for pp-i2, 10^-3 for i3, & 10^-4 for i4) :: Set the value below rem ====== Pump Prime Iteration ========================================== set _iter_=pp set _prev_=pp set _relGap_=0.01 REM call ArcPy_Walkshed_Process.bat %1 call Set_CPI.bat %1 call PP_Highway_Build.bat %1 call PP_Highway_Skims.bat %1 call Transit_Skim_All_Modes_Parallel.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call PP_Auto_Drivers.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 1 =================================================== set _iter_=i1 set _prev_=pp call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 2 =================================================== set _iter_=i2 set _prev_=i1

  • Appendix B Batch file

    B-7

    call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Average_Link_Speeds.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 3 =================================================== set _iter_=i3 set _prev_=i2 set _relGap_=0.001 call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Average_Link_Speeds.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 4 =================================================== set _iter_=i4 set _prev_=i3 set _relGap_=0.0001 call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Average_Link_Speeds.bat %1 call Highway_Skims.bat %1 :: rem ====== Transit assignment ============================================ @echo Starting Transit Assignment Step @date /t & time/t call Transit_Assignment_Parallel.bat %1 call TranSum.bat %1 @echo End of batch file @date /t & time/t :: rem ====== End of batch file ============================================= REM cd %1 REM copy *.txt MDP_%useMDP%\*.txt REM copy *.rpt MDP_%useMDP%\*.rpt REM copy *.log MDP_%useMDP%\*.log REM CD.. set _year_= set _alt_= set _iter_= set _prev_= set _maxUeIter_= set _relGap_=

    1.7 run_Model_2030_final.bat :: Version 2.3.75 :: 2018-09-10 Mon 10:30 AM set root=. set scenar=2030_Final set runbat=run_ModelSteps_2030_Final.bat :: Environment variables for (multistep) distributed processing: :: Environment variables for (intrastep) distributed processing: :: use MDP = t/f (for true or false) :: use IDP = t/f (for true or false) :: Number of subnodes: 1-3 => 3 subnodes and one main node = 4 nodes in total set useIdp=t set useMdp=t :: AMsubnode & MDsubnode are used in highway_assignment_parallel.bat/s set AMsubnode=1-4 set MDsubnode=2-4 :: subnode used in transit fare and transit assignment :: We no longer use IDP in transit skimming, since it would require 16 cores set subnode=1-3 :: This command will :: 1) time the model run (using timethis.exe and the double quotes) :: 2) redirect standard output and standard error to a file :: 3) Use the tee command so that stderr & stdout are sent both to the file and the screen timethis "%runbat% %scenar%" 2>&1 | tee %root%\%scenar%\%scenar%_fulloutput.txt :: Open up the file containing the stderr and stdout if exist %root%\%scenar%\%scenar%_fulloutput.txt start %root%\%scenar%\%scenar%_fulloutput.txt :: Look four errors in the reports and output files call searchForErrs.bat %scenar% :: Open up the file containing any errors found if exist %root%\%scenar%\%scenar%_searchForErrs.txt start %root%\%scenar%\%scenar%_searchForErrs.txt :: Open up other report files if exist %root%\%scenar%\i4_Highway_Assignment.rpt start %root%\%scenar%\i4_Highway_Assignment.rpt if exist %root%\%scenar%\i4_mc_NL_summary.txt start %root%\%scenar%\i4_mc_NL_summary.txt if exist %root%\%scenar%\i4_Assign_Output.net start %root%\%scenar%\i4_Assign_Output.net cd %scenar% start powershell.exe -noexit -Command get-content i4_ue*AM_nonHov*txt -tail 1; get-content i4_ue*AM_hov*txt -tail 1; get-content i4_ue*PM_nonHov*txt -tail 1; get-content i4_ue*PM_hov*txt -tail 1; get-content i4_ue*MD*txt -tail 1; get-content i4_ue*NT*txt -tail 1 cd .. move_temp_files_v6.bat %scenar% :: Cleanup set root= set scenar= set runbat= set useIdp= set useMdp= set AMsubnode= set MDsubnode= set subnode=

  • Appendix B Batch file

    B-8

    1.8 run_ModelSteps_2030_final.bat :: Version 2.3.75 :: 2018-09-10 10:30 AM :: Version 2.3 TPB Travel Model on 3722 TAZ System set _year_=2030 set _alt_=Ver2.3.75_2030_Final :: Maximum number of user equilibrium iterations used in traffic assignment :: User should not need to change this. Instead, change _relGap_ (below) set _maxUeIter_=1000 :: Set transit constraint path and files :: Current year used to set the constraint = 2020 set _tcpath_= :: UE relative gap threshold: Progressive (10^-2 for pp-i2, 10^-3 for i3, & 10^-4 for i4) :: Set the value below rem ====== Pump Prime Iteration ========================================== set _iter_=pp set _prev_=pp set _relGap_=0.01 REM call ArcPy_Walkshed_Process.bat %1 call Set_CPI.bat %1 call PP_Highway_Build.bat %1 call PP_Highway_Skims.bat %1 call Transit_Skim_All_Modes_Parallel.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call PP_Auto_Drivers.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 1 =================================================== set _iter_=i1 set _prev_=pp call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 2 =================================================== set _iter_=i2 set _prev_=i1 call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1

    call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Average_Link_Speeds.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 3 =================================================== set _iter_=i3 set _prev_=i2 set _relGap_=0.001 call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Average_Link_Speeds.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 4 =================================================== set _iter_=i4 set _prev_=i3 set _relGap_=0.0001 call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Average_Link_Speeds.bat %1 call Highway_Skims.bat %1 :: rem ====== Transit assignment ============================================ @echo Starting Transit Assignment Step @date /t & time/t call Transit_Assignment_Parallel.bat %1 call TranSum.bat %1 @echo End of batch file @date /t & time/t :: rem ====== End of batch file ============================================= REM cd %1 REM copy *.txt MDP_%useMDP%\*.txt REM copy *.rpt MDP_%useMDP%\*.rpt REM copy *.log MDP_%useMDP%\*.log REM CD.. set _year_= set _alt_= set _iter_= set _prev_= set _maxUeIter_= set _relGap_=

  • Appendix B Batch file

    B-9

    1.9 run_Model_2040_Final.bat :: Version 2.3.75 :: 2018-09-10 Mon 03:40 PM set root=. set scenar=2040_Final set runbat=run_ModelSteps_2040_Final.bat :: Environment variables for (multistep) distributed processing: :: Environment variables for (intrastep) distributed processing: :: use MDP = t/f (for true or false) :: use IDP = t/f (for true or false) :: Number of subnodes: 1-3 => 3 subnodes and one main node = 4 nodes in total set useIdp=t set useMdp=t :: AMsubnode & MDsubnode are used in highway_assignment_parallel.bat/s set AMsubnode=1-4 set MDsubnode=2-4 :: subnode used in transit fare and transit assignment :: We no longer use IDP in transit skimming, since it would require 16 cores set subnode=1-3 :: This command will :: 1) time the model run (using timethis.exe and the double quotes) :: 2) redirect standard output and standard error to a file :: 3) Use the tee command so that stderr & stdout are sent both to the file and the screen timethis "%runbat% %scenar%" 2>&1 | tee %root%\%scenar%\%scenar%_fulloutput.txt :: Open up the file containing the stderr and stdout if exist %root%\%scenar%\%scenar%_fulloutput.txt start %root%\%scenar%\%scenar%_fulloutput.txt :: Look four errors in the reports and output files call searchForErrs.bat %scenar% :: Open up the file containing any errors found if exist %root%\%scenar%\%scenar%_searchForErrs.txt start %root%\%scenar%\%scenar%_searchForErrs.txt :: Open up other report files if exist %root%\%scenar%\i4_Highway_Assignment.rpt start %root%\%scenar%\i4_Highway_Assignment.rpt if exist %root%\%scenar%\i4_mc_NL_summary.txt start %root%\%scenar%\i4_mc_NL_summary.txt if exist %root%\%scenar%\i4_Assign_Output.net start %root%\%scenar%\i4_Assign_Output.net cd %scenar% start powershell.exe -noexit -Command get-content i4_ue*AM_nonHov*txt -tail 1; get-content i4_ue*AM_hov*txt -tail 1; get-content i4_ue*PM_nonHov*txt -tail 1; get-content i4_ue*PM_hov*txt -tail 1; get-content i4_ue*MD*txt -tail 1; get-content i4_ue*NT*txt -tail 1 cd .. move_temp_files_v6.bat %scenar% :: Cleanup set root= set scenar= set runbat= set useIdp= set useMdp= set AMsubnode= set MDsubnode= set subnode=

    1.10 run_ModelSteps_2040_Final.bat :: Version 2.3.75 :: 2018-09-10 Mon 03:40 PM :: Version 2.3 TPB Travel Model on 3722 TAZ System set _year_=2040 set _alt_=Ver2.3.75_2040_Final :: Maximum number of user equilibrium iterations used in traffic assignment :: User should not need to change this. Instead, change _relGap_ (below) set _maxUeIter_=1000 :: Set transit constraint path and files :: Current year used to set the constraint = 2020 set _tcpath_= :: UE relative gap threshold: Progressive (10^-2 for pp-i2, 10^-3 for i3, & 10^-4 for i4) :: Set the value below rem ====== Pump Prime Iteration ========================================== set _iter_=pp set _prev_=pp set _relGap_=0.01 REM call ArcPy_Walkshed_Process.bat %1 call Set_CPI.bat %1 call PP_Highway_Build.bat %1 call PP_Highway_Skims.bat %1 call Transit_Skim_All_Modes_Parallel.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call PP_Auto_Drivers.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 1 =================================================== set _iter_=i1 set _prev_=pp call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 2 =================================================== set _iter_=i2 set _prev_=i1 call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1

  • Appendix B Batch file

    B-10

    call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Average_Link_Speeds.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 3 =================================================== set _iter_=i3 set _prev_=i2 set _relGap_=0.001 call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Average_Link_Speeds.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 4 =================================================== set _iter_=i4 set _prev_=i3 set _relGap_=0.0001 call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Average_Link_Speeds.bat %1 call Highway_Skims.bat %1 :: rem ====== Transit assignment ============================================ @echo Starting Transit Assignment Step @date /t & time/t call Transit_Assignment_Parallel.bat %1 call TranSum.bat %1 @echo End of batch file @date /t & time/t :: rem ====== End of batch file ============================================= REM cd %1 REM copy *.txt MDP_%useMDP%\*.txt REM copy *.rpt MDP_%useMDP%\*.rpt REM copy *.log MDP_%useMDP%\*.log REM CD.. set _year_= set _alt_= set _iter_= set _prev_= set _maxUeIter_= set _relGap_=

    1.11 run_Model_2045_final.bat :: Version 2.3.75 :: 2018-08-09 Thu 15:55:04 set root=. set scenar=2045_Final set runbat=run_ModelSteps_2045_Final.bat :: Environment variables for (multistep) distributed processing: :: Environment variables for (intrastep) distributed processing: :: use MDP = t/f (for true or false) :: use IDP = t/f (for true or false) :: Number of subnodes: 1-3 => 3 subnodes and one main node = 4 nodes in total set useIdp=t set useMdp=t :: AMsubnode & MDsubnode are used in highway_assignment_parallel.bat/s set AMsubnode=1-4 set MDsubnode=2-4 :: subnode used in transit fare and transit assignment :: We no longer use IDP in transit skimming, since it would require 16 cores set subnode=1-3 :: This command will :: 1) time the model run (using timethis.exe and the double quotes) :: 2) redirect standard output and standard error to a file :: 3) Use the tee command so that stderr & stdout are sent both to the file and the screen timethis "%runbat% %scenar%" 2>&1 | tee %root%\%scenar%\%scenar%_fulloutput.txt :: Open up the file containing the stderr and stdout if exist %root%\%scenar%\%scenar%_fulloutput.txt start %root%\%scenar%\%scenar%_fulloutput.txt :: Look four errors in the reports and output files call searchForErrs.bat %scenar% :: Open up the file containing any errors found if exist %root%\%scenar%\%scenar%_searchForErrs.txt start %root%\%scenar%\%scenar%_searchForErrs.txt :: Open up other report files if exist %root%\%scenar%\i4_Highway_Assignment.rpt start %root%\%scenar%\i4_Highway_Assignment.rpt if exist %root%\%scenar%\i4_mc_NL_summary.txt start %root%\%scenar%\i4_mc_NL_summary.txt if exist %root%\%scenar%\i4_Assign_Output.net start %root%\%scenar%\i4_Assign_Output.net cd %scenar% start powershell.exe -noexit -Command get-content i4_ue*AM_nonHov*txt -tail 1; get-content i4_ue*AM_hov*txt -tail 1; get-content i4_ue*PM_nonHov*txt -tail 1; get-content i4_ue*PM_hov*txt -tail 1; get-content i4_ue*MD*txt -tail 1; get-content i4_ue*NT*txt -tail 1 cd .. move_temp_files_v6.bat %scenar% :: Cleanup set root= set scenar= set runbat= set useIdp= set useMdp= set AMsubnode= set MDsubnode= set subnode=

  • Appendix B Batch file

    B-11

    1.12 run_ModelSteps_2045_final.bat :: Version 2.3.75 :: 2018-08-09 Thu 15:50:04 :: Version 2.3 TPB Travel Model on 3722 TAZ System set _year_=2045 set _alt_=Ver2.3.75_2045_Final :: Maximum number of user equilibrium iterations used in traffic assignment :: User should not need to change this. Instead, change _relGap_ (below) set _maxUeIter_=1000 :: Set transit constraint path and files :: Current year used to set the constraint = 2020 set _tcpath_= :: UE relative gap threshold: Progressive (10^-2 for pp-i2, 10^-3 for i3, & 10^-4 for i4) :: Set the value below rem ====== Pump Prime Iteration ========================================== set _iter_=pp set _prev_=pp set _relGap_=0.01 REM call ArcPy_Walkshed_Process.bat %1 call Set_CPI.bat %1 call PP_Highway_Build.bat %1 call PP_Highway_Skims.bat %1 call Transit_Skim_All_Modes_Parallel.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call PP_Auto_Drivers.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 1 =================================================== set _iter_=i1 set _prev_=pp call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 2 =================================================== set _iter_=i2 set _prev_=i1 call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1

    call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Average_Link_Speeds.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 3 =================================================== set _iter_=i3 set _prev_=i2 set _relGap_=0.001 call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Average_Link_Speeds.bat %1 call Highway_Skims.bat %1 :: rem ====== Iteration 4 =================================================== set _iter_=i4 set _prev_=i3 set _relGap_=0.0001 call Transit_Skim_All_Modes_Parallel.bat %1 call Transit_Fare.bat %1 call Trip_Generation.bat %1 call Trip_Distribution.bat %1 call Mode_Choice_Parallel.bat %1 call Auto_Driver.bat %1 call Time-of-Day.bat %1 call Highway_Assignment_Parallel.bat %1 call Average_Link_Speeds.bat %1 call Highway_Skims.bat %1 :: rem ====== Transit assignment ============================================ @echo Starting Transit Assignment Step @date /t & time/t call Transit_Assignment_Parallel.bat %1 call TranSum.bat %1 @echo End of batch file @date /t & time/t :: rem ====== End of batch file ============================================= REM cd %1 REM copy *.txt MDP_%useMDP%\*.txt REM copy *.rpt MDP_%useMDP%\*.rpt REM copy *.log MDP_%useMDP%\*.log REM CD.. set _year_= set _alt_= set _iter_= set _prev_= set _maxUeIter_= set _relGap_=

  • Appendix B Batch file

    B-12

    2 ‘Pump-Prime’ Iterations 2.1 ArcPy_Walkshed_Process.bat @ECHO OFF IF [%1] == [] goto usage CD %1 SET orig_dir=%CD% SET WalkshedDirName=Transit_Walksheds_GIS :: Python Directory :: Cube 6.1.0 SP1 comes with ArcGIS 10.1 runtime :: Cube 6.0.2 comes with ArcGIS 9.3.1 SP2 runtime and is not supported here :: Python 2.6 will support ArcPy upto ArcGIS 10.0. Python 2.7 is needed to support ArcPy with ArcGIS 10.1. SET python_bindir=0 :: Look in C drive IF %python_bindir%==0 CALL:CheckPythonPath C:\Python27\ArcGIS10.5 python_bindir IF %python_bindir%==0 CALL:CheckPythonPath C:\Python27\ArcGIS10.4 python_bindir IF %python_bindir%==0 CALL:CheckPythonPath C:\Python27\ArcGIS10.3 python_bindir IF %python_bindir%==0 CALL:CheckPythonPath C:\Python27\ArcGIS10.2 python_bindir IF %python_bindir%==0 CALL:CheckPythonPath C:\Python27\ArcGIS10.1 python_bindir IF %python_bindir%==0 CALL:CheckPythonPath C:\Python26\ArcGIS10.0 python_bindir :: Look in D drive IF %python_bindir%==0 CALL:CheckPythonPath D:\Python27\ArcGIS10.4 python_bindir IF %python_bindir%==0 CALL:CheckPythonPath D:\Python27\ArcGIS10.4 python_bindir IF %python_bindir%==0 CALL:CheckPythonPath D:\Python27\ArcGIS10.3 python_bindir IF %python_bindir%==0 CALL:CheckPythonPath D:\Python27\ArcGIS10.2 python_bindir IF %python_bindir%==0 CALL:CheckPythonPath D:\Python27\ArcGIS10.1 python_bindir IF %python_bindir%==0 CALL:CheckPythonPath D:\Python26\ArcGIS10.0 python_bindir :: Look in E drive IF %python_bindir%==0 CALL:CheckPythonPath E:\Python27\ArcGIS10.4 python_bindir IF %python_bindir%==0 CALL:CheckPythonPath E:\Python27\ArcGIS10.4 python_bindir IF %python_bindir%==0 CALL:CheckPythonPath E:\Python27\ArcGIS10.3 python_bindir IF %python_bindir%==0 CALL:CheckPythonPath E:\Python27\ArcGIS10.2 python_bindir IF %python_bindir%==0 CALL:CheckPythonPath E:\Python27\ArcGIS10.1 python_bindir IF %python_bindir%==0 CALL:CheckPythonPath E:\Python26\ArcGIS10.0 python_bindir :: Python should be found by now IF %python_bindir%==0 GOTO:error-dependency :DoSteps ECHO. ECHO. ECHO. Using Python from Directory = %python_bindir% CD /D %orig_dir% ECHO. ECHO. :: Create directories ECHO. ECHO.1) Creating Subdirectories ... ECHO. IF NOT EXIST "inputs\%WalkshedDirName%\input" MKDIR "inputs\%WalkshedDirName%\input"

    IF NOT EXIST "inputs\%WalkshedDirName%\output" MKDIR "inputs\%WalkshedDirName%\output" :: Change Working Directory DEL /F /Q /S inputs\%WalkshedDirName%\* CD /D inputs\%WalkshedDirName% :: Prepare Inputs (if *.Lin files exist then use PT else use TRNBUILD) ECHO. ECHO.2) Preparing Inputs ... ECHO. if exist "..\Mode1AM.Lin" ( ECHO. using PT line files start /w Voyager.exe ..\..\..\scripts\MWCOG_Prepare_Inputs_to_Walkshed_Process_PT.s /start -Pvoya -S"%orig_dir%\inputs\%WalkshedDirName%" if errorlevel 2 goto error ) else ( ECHO. using TRNBUILD line files start /w Voyager.exe ..\..\..\scripts\MWCOG_Prepare_Inputs_to_Walkshed_Process_TRNBUILD.s /start -Pvoya -S"%orig_dir%\inputs\%WalkshedDirName%" if errorlevel 2 goto error ) :: Create Walksheds ECHO. ECHO.3) Launching ArcPy-based Walkshed Process ... ECHO. %python_bindir%\python.exe ..\..\..\scripts\MWCOG_ArcPy_Walkshed_Process.py if errorlevel 1 goto error :: Copy AreaWalk.txt file ECHO. ECHO.4) Copying AreaWalk.txt / PercentWalk.txt File(s) ... ECHO. :: Backup existing copies as "Old" IF EXIST ..\AreaWalk.txt COPY /Y ..\AreaWalk.txt ..\AreaWalk_Old.txt IF EXIST ..\PercentWalk.txt COPY /Y ..\PercentWalk.txt ..\PercentWalk_Old.txt :: Now install and overwrite existing copies IF EXIST output\AreaWalk.txt COPY /Y output\AreaWalk.txt ..\. if errorlevel 1 goto error IF EXIST output\PercentWalk.txt COPY /Y output\PercentWalk.txt ..\. if errorlevel 1 goto error :: Copy Walkshed MXD ECHO. ECHO.5) Copying ArcGIS MXD File ... ECHO. COPY /Y ..\..\..\scripts\MWCOG_ArcPy_Walkshed_Process_TEMPLATE.mxd MWCOG_ArcPy_Walksheds_%1.mxd if errorlevel 1 goto error

  • Appendix B Batch file

    B-13

    :: Change to Original Directory CD /D %orig_dir% ECHO. ECHO. :: Done ECHO. Process Complete! GOTO end ::------------------------------------------------------------------------------------------------ ::------------------------------------------------------------------------------------------------ :error ECHO. ECHO. ECHO. ERROR: Error in Walkshed Process ECHO. ECHO. PAUSE :end CD.. GOTO:EOF :usage ECHO. ECHO. Error: No Folder Name Provided ECHO. This batch file requires a folder name. ECHO. PAUSE GOTO:EOF :error-dependency ECHO. ECHO. ECHO ERROR: DEPENDENCIES NOT SATISFIED (Do you have Cube 6.1.0 SP1 or above (with ArcGIS runtime)?) ECHO. ECHO. goto error ::-------------------------------------------------------- ::-- BEGIN Function CheckPythonPath ::-------------------------------------------------------- :CheckPythonPath -- This function checks and sets python path :: -- %~1: Path containing Python.exe :: -- %~2: Variable containing status SET myPath=0 ECHO Searching for Python in Path %~1 IF EXIST %~1 ( CD /D %~1 IF EXIST python.exe ( SET myPath=%~1 ECHO Found Python in Path %~1 ) ELSE ( SET myPath=0 ) ) ELSE ( SET myPath=0 ) SET "%~2=%myPath%" GOTO:EOF ::-------------------------------------------------------- ::-- END Function CheckPythonPath ::--------------------------------------------------------

    2.2 set_CPI.bat cd %1 REM CPI Establishment if exist voya*.* del voya*.* if exist set_CPI.rpt del set_CPI.rpt start /w Voyager.exe ..\scripts\set_CPI.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn set_CPI.rpt /y if exist voya*.* del voya*.* if exist set_factors.rpt del set_factors.rpt start /w Voyager.exe ..\scripts\set_factors.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn set_factors.rpt /y goto end :error REM Processing Error..... PAUSE :end cd..

    2.2 PP_Highway_Build.bat cd %1 REM Highway Network Building if exist voya*.* del voya*.* if exist AreaType_File.rpt del AreaType_File.rpt start /w Voyager.exe ..\scripts\AreaType_File.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn AreaType_File.rpt /y if exist voya*.* del voya*.* if exist highway_build_toll.rpt del V2.3_highway_build.rpt start /w Voyager.exe ..\scripts\V2.3_highway_build.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn V2.3_highway_build.rpt /y if exist temp.net del temp.net goto end :error REM Processing Error..... PAUSE :end cd..

    2.3 PP_Highway_Skims.bat :: 2018-03-30 RN Add lines to execute a check on whether transit stations are accessible

  • Appendix B Batch file

    B-14

    CD %1 set _iterOrder_=initial REM Highway Skims :: COPY ZONEHWY.NET TEMPORARILY TO PPHWY.NET if exist ZONEHWY.NET COPY ZONEHWY.NET PP_HWY.NET /y if exist voya*.* del voya*.* if exist %_iter_%_%_iterOrder_%_Highway_Skims_am.rpt del %_iter_%_%_iterOrder_%_Highway_Skims_am.rpt start /w Voyager.exe ..\scripts\Highway_Skims_am.s /start -Pvoya -S..\%1 if errorlevel 2 goto error if exist voya*.prn copy voya*.prn %_iter_%_%_iterOrder_%_Highway_Skims_am.rpt /y ping -n 11 127.0.0.1 > nul if exist voya*.* del voya*.* if exist %_iter_%_%_iterOrder_%_Highway_Skims_md.rpt del %_iter_%_%_iterOrder_%_Highway_Skims_md.rpt start /w Voyager.exe ..\scripts\Highway_Skims_md.s /start -Pvoya -S..\%1 if errorlevel 2 goto error if exist voya*.prn copy voya*.prn %_iter_%_%_iterOrder_%_Highway_Skims_md.rpt /y :: Additional Steps per the Nested Logit :: modnet.bat / Highway_Skims_Mod.bat / JoinSkims.bat === REM Utility - Convert dummy centroid connectors if exist voya*.* del voya*.* if exist %_iter_%_%_iterOrder_%_ModNet.rpt del %_iter_%_%_iterOrder_%_ModNet.rpt start /w Voyager.exe ..\scripts\modnet.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_%_iterOrder_%_ModNet.rpt /y if exist voya*.* del voya*.* if exist %_iter_%_%_iterOrder_%_Highway_Skims_mod_am.rpt del %_iter_%_%_iterOrder_%_Highway_Skims_mod_am.rpt start /w Voyager.exe ..\scripts\Highway_Skims_mod_am.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_%_iterOrder_%_Highway_Skims_Mod_am.rpt /y :: Check whether transit stations are accessible if exist voya*.* del voya*.* if exist %_iter_%_%_iterOrder_%_CheckStationAccess.rpt del %_iter_%_%_iterOrder_%_CheckStationAccess.rpt start /w Voyager.exe ..\scripts\CheckStationAccess.s /start -Pvoya -S..\%1 if errorlevel 2 (echo STATION CENTROIDS WITHOUT SKIMS. PLEASE CHECK THE NETWORK && goto stationerr) if errorlevel 3 (echo STATION CENTROIDS WITHOUT SKIMS. PLEASE CHECK THE NETWORK && goto stationerr) if exist voya*.prn copy voya*.prn CheckStationAccess.rpt /y if exist voya*.* del voya*.* if exist %_iter_%_%_iterOrder_%_Highway_Skims_mod_md.rpt del %_iter_%_%_iterOrder_%_Highway_Skims_mod_md.rpt start /w Voyager.exe ..\scripts\Highway_Skims_mod_md.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_%_iterOrder_%_Highway_Skims_Mod_md.rpt /y :: ----- Save initial highway skims to special names for later checking

    if exist pp_am_SOV.SKM copy pp_am_SOV.SKM pp_am_SOV_Initial.SKM /y if exist pp_md_SOV.SKM copy pp_md_SOV.SKM pp_md_SOV_Initial.SKM /y if exist pp_am_HOV2.SKM copy pp_am_HOV2.SKM pp_am_HOV2_Initial.SKM /y if exist pp_md_HOV2.SKM copy pp_md_HOV2.SKM pp_md_HOV2_Initial.SKM /y if exist pp_am_HOV3.SKM copy pp_am_HOV3.SKM pp_am_HOV3_Initial.SKM /y if exist pp_md_HOV3.SKM copy pp_md_HOV3.SKM pp_md_HOV3_Initial.SKM /y if exist pp_am_SOV_mod.SKM copy pp_am_SOV_mod.SKM pp_am_SOV_mod_Initial.SKM /y if exist pp_md_SOV_mod.SKM copy pp_md_SOV_mod.SKM pp_md_SOV_mod_Initial.SKM /y if exist pp_am_HOV2_mod.SKM copy pp_am_HOV2_mod.SKM pp_am_HOV2_mod_Initial.SKM /y if exist pp_md_HOV2_mod.SKM copy pp_md_HOV2_mod.SKM pp_md_HOV2_mod_Initial.SKM /y if exist pp_am_HOV3_mod.SKM copy pp_am_HOV3_mod.SKM pp_am_HOV3_mod_Initial.SKM /y if exist pp_md_HOV3_mod.SKM copy pp_md_HOV3_mod.SKM pp_md_HOV3_mod_Initial.SKM /y :: ----- the PP_??.SKM files will be overwritten after the skimming :: ----- of the PP Highway assignment network REM Utility - Join Highway Skims if exist voya*.* del voya*.* if exist %_iter_%_%_iterOrder_%_JoinSkims.rpt del %_iter_%_%_iterOrder_%_JoinSkims.rpt start /w Voyager.exe ..\scripts\joinskims.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_%_iterOrder_%_JoinSkims.rpt /y :: DELETE TEMPORARY ppHWY.NET, THIS WILL BE CREATED AFTER the PP HIGHWAY ASSIGNMENT rem if exist PP_HWY.NET del PP_HWY.NET if exist voya*.* del voya*.* if exist %_iter_%_%_iterOrder_%_Remove_PP_Speed.rpt del %_iter_%_%_iterOrder_%_Remove_PP_Speed.rpt start /w Voyager.exe ..\scripts\Remove_PP_Speed.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_%_iterOrder_%_Remove_PP_Speed.rpt /y goto end :stationerr PAUSE&EXIT :error REM Processing Error.... PAUSE :end CD.. set _iterOrder_=

    2.4 PP_Auto_Drivers.bat CD %1 REM Pump Prime Auto Driver Trips if exist voya*.* del voya*.* if exist %_iter_%_Auto_Drivers.rpt del %_iter_%_Auto_Drivers.rpt start /w Voyager.exe ..\scripts\PP_Auto_Drivers.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_Auto_Drivers.rpt /y

  • Appendix B Batch file

    B-15

    ..\software\extrtab %_iter_%_Auto_Drivers.rpt copy extrtab.out %_iter_%_Auto_Drivers.tab /y del extrtab.out goto end :error REM Processing Error.... PAUSE :end CD..

    3 ‘Standard’ Iterations (1-4) 3.1 Transit_Skim_All_Modes_Parallel.bat :: Transit Skimming for All Submodes :: updated 4/27/07 copy sta_tpp.bse from inputs to output subdir. :: updated 6/15/11 runs walkacc process for pp iteration only :: updated 5/11/16 Update autoacc and local-bus in-vehicle speed degradation CD %1 :: Delete previous iteration highway skim files for Transit Skimming (if files exist) if exist am_sov_mod.skm del am_sov_mod.skm if exist md_sov_mod.skm del md_sov_mod.skm :: Set up current iteration highway skim files for transit Skimming if exist %_prev_%_am_sov_mod.skm copy %_prev_%_am_sov_mod.skm am_sov_mod.skm /y if exist %_prev_%_md_sov_mod.skm copy %_prev_%_md_sov_mod.skm md_sov_mod.skm /y if exist voya*.* del voya*.* if exist parker.rpt del parker.rpt start /w Voyager.exe ..\scripts\parker.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn parker.rpt /y if %_iter_%==pp goto runwalk goto skipwalk :runwalk ::copy transit lines and support files from the inputs subdir. copy inputs\*.TB /y copy inputs\mfare1.a1 /y ::develop walk access links. if exist voya*.* del voya*.* if exist walkacc.rpt del walkacc.rpt start /w Voyager.exe ..\scripts\walkacc.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn walkacc.rpt /y ::adjust local bus run times by applying bus speed degradation factors. if exist voya*.* del voya*.* if exist Adjust_Runtime.rpt del Adjust_Runtime.rpt start /w Voyager.exe ..\scripts\Adjust_Runtime.s /start -Pvoya -S..\%1

    if errorlevel 1 goto error if exist voya*.prn copy voya*.prn Adjust_Runtime.rpt /y :skipwalk if exist voya*.* del voya*.* if exist autoacc5.rpt del autoacc5.rpt start /w Voyager.exe ..\scripts\autoacc5.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn autoacc5.rpt /y rem ---------- Do some cleaning up ---------- :: del /F ..\%1\hov2m%_prev_%am.skm :: del /F ..\%1\hov2m%_prev_%op.skm :: del /F ..\%1\hov3m%_prev_%am.skm :: del /F ..\%1\hov3m%_prev_%op.skm :: del /F ..\%1\tppl*.* CD.. :: ======================================= :: = Transit Skimming Section = :: ======================================= :: Transit Network Building (Final) Commuter Rail if %useMDP%==t goto Parallel_Processing if %useMDP%==T goto Parallel_Processing @echo Start Transit Skims REM If only one CPU, run the four skims sequentially START /wait Transit_Skim_LineHaul_Parallel.bat %1 CR REM Transit Network Building (Final) Metrorail START /wait Transit_Skim_LineHaul_Parallel.bat %1 MR REM Transit Network Building (Final) All Bus START /wait Transit_Skim_LineHaul_Parallel.bat %1 AB REM Transit Network Building (Final) Bus+MetroRail START /wait Transit_Skim_LineHaul_Parallel.bat %1 BM goto Transit_Skims_Are_Done :Parallel_Processing @echo Start Transit Skim - Parallel START Transit_Skim_LineHaul_Parallel.bat %1 CR REM Transit Network Building (Final) Metrorail START Transit_Skim_LineHaul_Parallel.bat %1 MR REM Transit Network Building (Final) All Bus START Transit_Skim_LineHaul_Parallel.bat %1 AB REM Transit Network Building (Final) Bus+MetroRail START /wait Transit_Skim_LineHaul_Parallel.bat %1 BM :Transit_Skims_Are_Done CD %1 goto checkIfDone :waitForMC @ping -n 11 127.0.0.1 :checkIfDone

  • Appendix B Batch file

    B-16

    @REM Check file existence to ensure that there are no errors if exist Transit_Skims_CR.err echo Error in Transit_Skims_CR && goto error if exist Transit_Skims_MR.err echo Error in Transit_Skims_MR && goto error if exist Transit_Skims_AB.err echo Error in Transit_Skims_AB && goto error if exist Transit_Skims_BM.err echo Error in Transit_Skims_BM && goto error @REM Check to ensure that each of the batch processes have finished successfully, if not wait. if not exist Transit_Skims_CR.done goto waitForMC if not exist Transit_Skims_MR.done goto waitForMC if not exist Transit_Skims_AB.done goto waitForMC if not exist Transit_Skims_BM.done goto waitForMC REM @type CR.txt REM @type MR.txt REM @type AB.txt REM @type BM.txt REM CD %1 REM Transit Network Accessibility File developement (For Demographic Models) if exist voya*.* del voya*.* if exist %_iter_%_TRANSIT_Accessibility.RPT del %_iter_%_TRANSIT_Accessibility.RPT start /w Voyager.exe ..\scripts\transit_Accessibility.s /start -Pvoya -S..\%1 if errorlevel 2 goto error if exist voya*.prn copy voya*.prn %_iter_%_TRANSIT_Accessibility.RPT /y goto end :error REM Processing Error...... PAUSE :end CD..

    3.2 Transit_Fare.bat ::-------------------------------------- :: Version 2.3 Transit Fare Process ::-------------------------------------- CD %1 if exist voya*.* del voya*.* if exist %_iter_%_prefarV23.rpt del %_iter_%_prefarV23.rpt start /w Voyager.exe ..\scripts\prefarV23.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_prefarV23.rpt /y if exist voya*.* del voya*.* if exist %_iter_%_Metrorail_skims.rpt del %_iter_%_Metrorail_skims.rpt start /w Voyager.exe ..\scripts\Metrorail_skims.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_Metrorail_skims.rpt /y if exist voya*.* del voya*.* if exist %_iter_%_MFARE1.rpt del %_iter_%_MFARE1.rpt start /w Voyager.exe ..\scripts\MFARE1.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_MFARE1.rpt /y

    if exist voya*.* del voya*.* if exist %_iter_%_MFARE2.rpt del %_iter_%_MFARE2.rpt Cluster.exe MWCOG %subnode% start exit start /w Voyager.exe ..\scripts\MFARE2.s /start -Pvoya -S..\%1 if errorlevel 1 goto error ; Moved from line 37 to correctly report errors on MFARE2 report file Cluster.exe MWCOG %subnode% close exit echo %ERRORLEVEL% ; Added to report Errorlevel return code if exist voya*.prn copy voya*.prn %_iter_%_MFARE2.rpt /y if exist voya*.* del voya*.* if exist %_iter_%_Assemble_Skims_MR.rpt del %_iter_%_Assemble_Skims_MR.rpt start /w Voyager.exe ..\scripts\Assemble_Skims_MR.s /start -Pvoya -S..\%1 if errorlevel 2 goto error if exist voya*.prn copy voya*.prn %_iter_%_Assemble_Skims_MR.rpt /y if exist voya*.* del voya*.* if exist %_iter_%_Assemble_Skims_BM.rpt del %_iter_%_Assemble_Skims_BM.rpt start /w Voyager.exe ..\scripts\Assemble_Skims_BM.s /start -Pvoya -S..\%1 if errorlevel 2 goto error if exist voya*.prn copy voya*.prn %_iter_%_Assemble_Skims_BM.rpt /y if exist voya*.* del voya*.* if exist %_iter_%_Assemble_Skims_AB.rpt del %_iter_%_Assemble_Skims_AB.rpt start /w Voyager.exe ..\scripts\Assemble_Skims_AB.s /start -Pvoya -S..\%1 if errorlevel 2 goto error if exist voya*.prn copy voya*.prn %_iter_%_Assemble_Skims_AB.rpt /y if exist voya*.* del voya*.* if exist %_iter_%_Assemble_Skims_CR.rpt del %_iter_%_Assemble_Skims_CR.rpt start /w Voyager.exe ..\scripts\Assemble_Skims_CR.s /start -Pvoya -S..\%1 if errorlevel 2 goto error if exist voya*.prn copy voya*.prn %_iter_%_Assemble_Skims_CR.rpt /y goto end :error REM Processing Error...... PAUSE :end CD..

    3.3 Trip_Generation.bat ::---------------------------------------- :: Version 2.3 Trip Generation Process -- ::---------------------------------------- CD %1 if exist voya*.* del voya*.* if exist %_iter_%_Demo_Models.rpt del %_iter_%_Demo_Models.rpt start /w Voyager.exe ..\scripts\Demo_Models.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_Demo_Models.rpt /y

  • Appendix B Batch file

    B-17

    if exist voya*.* del voya*.* if exist %_iter_%_Trip_Generation.rpt del %_iter_%_Trip_Generation.rpt start /w Voyager.exe ..\scripts\Trip_Generation.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_Trip_Generation.rpt /y if exist voya*.* del voya*.* if exist %_iter_%_Trip_Generation_Summary.rpt del %_iter_%_Trip_Generation_Summary.rpt start /w Voyager.exe ..\scripts\Trip_Generation_Summary.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_Trip_Generation_Summary.rpt /y if exist voya*.* del voya*.* if exist %_iter_%_Truck_Com_Trip_Generation.rpt del %_iter_%_Truck_Com_Trip_Generation.rpt start /w Voyager.exe ..\scripts\Truck_Com_Trip_Generation.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_Truck_Com_Trip_Generation.rpt /y goto end :error REM Processing Error...... PAUSE :end CD..

    3.4 Trip_Distribution.bat ::---------------------------------------- :: Version 2.3 Trip Distribution Process ::---------------------------------------- CD %1 if exist voya*.* del voya*.* if exist %_iter_%_Prepare_Ext_Auto_Ends.rpt del %_iter_%_Prepare_Ext_Auto_Ends.rpt start /w Voyager.exe ..\scripts\Prepare_Ext_Auto_Ends.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_Prepare_Ext_Auto_Ends.rpt /y if exist voya*.* del voya*.* if exist %_iter_%_Prepare_Ext_ComTruck_Ends.rpt del %_iter_%_Prepare_Ext_ComTruck_Ends.rpt start /w Voyager.exe ..\scripts\Prepare_Ext_ComTruck_Ends.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_Prepare_Ext_ComTruck_Ends.rpt /y if exist voya*.* del voya*.* if exist %_iter_%_Trip_Distribution_External.rpt del %_iter_%_Trip_Distribution_External.rpt start /w Voyager.exe ..\scripts\Trip_Distribution_External.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_Trip_Distribution_External.rpt /y ..\software\extrtab %_iter_%_Trip_Distribution_External.rpt copy extrtab.out %_iter_%_Trip_Distribution_External.tab /y

    del extrtab.out if exist voya*.* del voya*.* if exist %_iter_%_Prepare_Internal_Ends.rpt del %_iter_%_Prepare_Internal_Ends.rpt start /w Voyager.exe ..\scripts\Prepare_Internal_Ends.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_Prepare_Internal_Ends.rpt /y if exist voya*.* del voya*.* if exist %_iter_%_Trip_Distribution_Internal.rpt del %_iter_%_Trip_Distribution_Internal.rpt start /w Voyager.exe ..\scripts\Trip_Distribution_Internal.s /start -Pvoya -S..\%1 if errorlevel 2 goto error REM changed from 1 to 2 due to Cube 6.4 warning of unbalanced Ps & As if exist voya*.prn copy voya*.prn %_iter_%_Trip_Distribution_Internal.rpt /y ..\software\extrtab %_iter_%_Trip_Distribution_Internal.rpt copy extrtab.out %_iter_%_Trip_Distribution_Internal.tab /y del extrtab.out goto end :error REM Processing Error...... PAUSE :end CD..

    3.5 Mode_Choice_Parallel.bat @rem Nested Logit Mode Choice Model Application @echo off CD %1 @rem Copy iteration-specific inputs to generic names if exist %_iter_%_hbw_NL.ptt copy %_iter_%_hbw_NL.ptt HBW_INCOME.PTT /y if exist %_iter_%_hbs_NL.ptt copy %_iter_%_hbs_NL.ptt HBS_INCOME.PTT /y if exist %_iter_%_hbo_NL.ptt copy %_iter_%_hbo_NL.ptt HBO_INCOME.PTT /y if exist %_iter_%_nhw_NL.ptt copy %_iter_%_nhw_NL.ptt NHW_INCOME.PTT /y if exist %_iter_%_nho_NL.ptt copy %_iter_%_nho_NL.ptt NHO_INCOME.PTT /y if exist %_prev_%_hwy_AM.SKM copy %_prev_%_hwy_AM.SKM HWYAM.SKM /y if exist %_prev_%_hwy_OP.SKM copy %_prev_%_hwy_OP.SKM HWYOP.SKM /y if exist %_iter_%_TRNAM_CR.SKM copy %_iter_%_TRNAM_CR.SKM TRNAM_CR.SKM /y if exist %_iter_%_TRNAM_AB.SKM copy %_iter_%_TRNAM_AB.SKM TRNAM_AB.SKM /y if exist %_iter_%_TRNAM_MR.SKM copy %_iter_%_TRNAM_MR.SKM TRNAM_MR.SKM /y if exist %_iter_%_TRNAM_BM.SKM copy %_iter_%_TRNAM_BM.SKM TRNAM_BM.SKM /y if exist %_iter_%_TRNOP_CR.SKM copy %_iter_%_TRNOP_CR.SKM TRNOP_CR.SKM /y if exist %_iter_%_TRNOP_AB.SKM copy %_iter_%_TRNOP_AB.SKM TRNOP_AB.SKM /y if exist %_iter_%_TRNOP_MR.SKM copy %_iter_%_TRNOP_MR.SKM TRNOP_MR.SKM /y if exist %_iter_%_TRNOP_BM.SKM copy %_iter_%_TRNOP_BM.SKM TRNOP_BM.SKM /y if %useMDP%==t goto Parallel_Processing if %useMDP%==T goto Parallel_Processing REM If only one CPU, run the five purposes sequentially @echo Starting Mode Choice @date /t & time/t START /high /wait CALL ../MC_purp.bat %1 NHO

  • Appendix B Batch file

    B-18

    START /high /wait CALL ../MC_purp.bat %1 HBS START /high /wait CALL ../MC_purp.bat %1 NHW START /high /wait CALL ../MC_purp.bat %1 HBO START /high /wait CALL ../MC_purp.bat %1 HBW goto Mode_Choice_is_Done :Parallel_Processing @echo Starting Mode Choice - Parallel Processing @date /t & time/t START /high CALL ../MC_purp.bat %1 NHO @ping -n 11 127.0.0.1 START /high CALL ../MC_purp.bat %1 HBS @ping -n 11 127.0.0.1 START /high CALL ../MC_purp.bat %1 NHW @ping -n 11 127.0.0.1 START /high CALL ../MC_purp.bat %1 HBO @ping -n 11 127.0.0.1 START /high /wait CALL ../MC_purp.bat %1 HBW goto checkIfDone :waitForMC @ping -n 11 127.0.0.1 :checkIfDone @REM Check file existence to ensure that there are no errors if exist HBO.err echo Error in HBO MC && goto error if exist HBS.err echo Error in HBS MC && goto error if exist HBW.err echo Error in HBW MC && goto error if exist NHO.err echo Error in NHO MC && goto error if exist NHW.err echo Error in NHW MC && goto error @REM Check to ensure that each of the batch processes have finished successfully, if not wait. if not exist HBO.done goto waitForMC if not exist HBS.done goto waitForMC if not exist HBW.done goto waitForMC if not exist NHO.done goto waitForMC if not exist NHW.done goto waitForMC :Mode_Choice_is_Done @rem - This step is to collect all the output from the MC to the log file. @type HBW.txt @type HBS.txt @type HBO.txt @type NHW.txt @type NHO.txt @echo Finished Mode Choice @date /t & time/t @rem COPY GENERIC MODE CHOICE OUTPUT FILES @rem TO INTERATION-SPECIFIC NAMES if exist HBW_NL_MC.MTT copy HBW_NL_MC.MTT %_iter_%_HBW_NL_MC.MTT /y if exist HBS_NL_MC.MTT copy HBS_NL_MC.MTT %_iter_%_HBS_NL_MC.MTT /y if exist HBO_NL_MC.MTT copy HBO_NL_MC.MTT %_iter_%_HBO_NL_MC.MTT /y if exist NHW_NL_MC.MTT copy NHW_NL_MC.MTT %_iter_%_NHw_NL_MC.MTT /y if exist NHO_NL_MC.MTT copy NHO_NL_MC.MTT %_iter_%_NHO_NL_MC.MTT /y @ping -n 11 127.0.0.1

    if exist voya*.* del voya*.* if exist %_iter_%_MC_NL_SUMMARY.rpt del %_iter_%_MC_NL_SUMMARY.rpt start /w Voyager.exe ..\scripts\mc_NL_summary.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_mc_NL_summary.rpt /y if exist voya*.prn copy voya*.prn temp.rpt /y ..\software\extrtab temp.rpt if exist extrtab.out copy extrtab.out %_iter_%_mc_NL_summary.tab /y if exist extrtab.out del extrtab.out if exist temp.rpt del temp.rpt if exist *.tb1 copy *.tb1 %_iter_%_mc_NL_summary.txt /y if exist *.tb1 del *.tb1 goto end :error @echo Error in Mode Choice @rem Processing Error.... PAUSE :end CD..

    3.6 Auto_Driver.bat CD %1 REM Auto Driver Trips if exist voya*.* del voya*.* if exist %_iter_%_mc_Auto_Drivers.rpt del %_iter_%_mc_Auto_Drivers.rpt start /w Voyager.exe ..\scripts\mc_Auto_Drivers.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_mc_Auto_Drivers.rpt /y if exist %_iter_%_mc_Auto_Drivers.rpt copy %_iter_%_mc_Auto_Drivers.rpt temp.dat /y ..\software\extrtab temp.dat if exist extrtab.out copy extrtab.out %_iter_%_mc_Auto_Drivers.tab /y if exist extrtab.out del extrtab.out if exist temp.out del temp.out goto end :error REM Processing Error.... PAUSE :end CD..

    3.7 Time-of-Day.bat CD %1 CD %1 REM -- Time of Day Process --- REM ----------------------------------------- REM Modeled Auto Driver Time-of-Day Trips REM ----------------------------------------- if exist voya*.* del voya*.*

  • Appendix B Batch file

    B-19

    if exist %_iter_%_Time-of-Day.rpt del %_iter_%_Time-of-Day.rpt start /w Voyager.exe ..\scripts\Time-of-Day.s /start -Pvoya -S..\%1 if errorlevel 1 goto error copy voya*.prn %_iter_%_Time-of-Day.rpt /y copy %_iter_%_Time-of-Day.rpt temp.dat /y ..\software\extrtab temp.dat copy extrtab.out %_iter_%_Time-of-Day.tab /y del temp.dat REM ----------------------------------------- REM Truck and Exogenous Time-of-Day Trips REM ----------------------------------------- if exist voya*.* del voya*.* if exist %_iter_%_Misc_Time-of-Day.rpt del %_iter_%_Misc_Time-of-Day.rpt start /w Voyager.exe ..\scripts\Misc_Time-of-Day.s /start -Pvoya -S..\%1 if errorlevel 1 goto error copy voya*.prn %_iter_%_Misc_Time-of-Day.rpt /y copy %_iter_%_Misc_Time-of-Day.rpt temp.dat /y ..\software\extrtab temp.dat copy extrtab.out %_iter_%_Misc_Time-of-Day.tab /y del extrtab.out del temp.dat REM ----------------------------------------- REM Prepare trips for highway assignment REM ----------------------------------------- if exist voya*.* del voya*.* if exist %_iter_%_Prepare_Trip_Tables_for_Assignment.rpt del %_iter_%_Prepare_Trip_Tables_for_Assignment.rpt start /w Voyager.exe ..\scripts\Prepare_Trip_Tables_for_Assignment.s /start -Pvoya -S..\%1 if errorlevel 1 goto error copy voya*.prn %_iter_%_Prepare_Trip_Tables_for_Assignment.rpt /y copy %_iter_%_Prepare_Trip_Tables_for_Assignment.rpt temp.dat /y ..\software\extrtab temp.dat copy extrtab.out %_iter_%_Prepare_Trip_Tables_for_Assignment.tab /y del extrtab.out del temp.dat goto end :error REM Processing Error.... PAUSE :end CD..

    3.8 Highway_Assignment_Parallel.bat CD %1 REM Highway Assignment if exist voya*.* del voya*.* if exist %_iter_%_Highway_Assignment.rpt del %_iter_%_Highway_Assignment.rpt Cluster.exe AM %AMsubnode% start exit Cluster.exe MD %MDsubnode% start exit

    start /w Voyager.exe ..\scripts\Highway_Assignment_Parallel.s /start -Pvoya -S..\%1 if errorlevel 2 goto error ; Moved from below Cluster + Changed to 2 (due to crash on Cube 6.4.1) Cluster.exe AM %AMsubnode% close exit Cluster.exe MD %MDsubnode% close exit copy Voya*.prn %_iter_%_Highway_Assignment.rpt /y goto end :error REM Processing Error.... PAUSE :end CD..

    3.9 Average_Link_Speeds.bat - Iterations (2- 4) CD %1 REM Average Link Speeds :: Write loaded links file from assignment to new file :: current iteration speeds will be removed and rewritten with averaged speeds below if exist %_iter_%_HWY.net copy %_iter_%_HWY.net %_iter_%_Assign_Output.net /y if exist %_iter_%_HWY.net copy %_iter_%_HWY.net %_iter_%_HWY.tem1 /y if exist voya*.* del voya*.* if exist %_iter_%_Average_Link_Speeds.rpt del %_iter_%_Average_Link_Speeds.rpt start /w Voyager.exe ..\scripts\Average_Link_Speeds.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_Average_Link_Speeds.rpt /y :: Now copy over the original Loaded file with revised file containing new/avg speeds :: Note: the original file from assignment is maintained as %_iter_%_Assigned_%HWY.net if exist %_iter_%_Averaged_HWY.net copy %_iter_%_Averaged_HWY.net %_iter_%_HWY.net /y goto end :error REM Processing Error.... PAUSE :end CD..

    3.10 Highway_Skims.bat CD %1 REM Highway Skims if exist voya*.* del voya*.* if exist %_iter_%_Highway_Skims_am.rpt del %_iter_%_Highway_Skims_am.rpt start /w Voyager.exe ..\scripts\Highway_Skims_am.s /start -Pvoya -S..\%1 if errorlevel 2 goto error if exist voya*.prn copy voya*.prn %_iter_%_Highway_Skims_am.rpt /y

  • Appendix B Batch file

    B-20

    if exist voya*.* del voya*.* if exist %_iter_%_Highway_Skims_md.rpt del %_iter_%_Highway_Skims_md.rpt start /w Voyager.exe ..\scripts\Highway_Skims_md.s /start -Pvoya -S..\%1 if errorlevel 2 goto error if exist voya*.prn copy voya*.prn %_iter_%_Highway_Skims_md.rpt /y : Additional Steps per the Nested Logit :: modnet.bat / Highway_Skims_Mod.bat / JoinSkims.bat === REM Utility - Convert dummy centroid connectors if exist voya*.* del voya*.* if exist %_iter_%_ModNet.rpt del %_iter_%_ModNet.rpt start /w Voyager.exe ..\scripts\modnet.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_ModNet.rpt /y if exist voya*.* del voya*.* if exist %_iter_%_Highway_Skims_mod_am.rpt del %_iter_%_Highway_Skims_mod_am.rpt start /w Voyager.exe ..\scripts\Highway_Skims_mod_am.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_Highway_Skims_Mod_am.rpt /y if exist voya*.* del voya*.* if exist %_iter_%_Highway_Skims_mod_md.rpt del %_iter_%_Highway_Skims_mod_md.rpt start /w Voyager.exe ..\scripts\Highway_Skims_mod_md.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_Highway_Skims_Mod_md.rpt /y REM Utility - Join Highway Skims if exist voya*.* del voya*.* if exist %_iter_%_JoinSkims.rpt del %_iter_%_JoinSkims.rpt start /w Voyager.exe ..\scripts\joinskims.s /start -Pvoya -S..\%1 if errorlevel 1 goto error if exist voya*.prn copy voya*.prn %_iter_%_JoinSkims.rpt /y goto end :error REM Processing Error.... PAUSE :end CD..

    4 Transit assignment Batch Files 4.1 Transit_Assignment_Parallel.bat CD %1 :: Combine Mode Choice Output for Transit Assignment if exist voya*.* del voya*.* if exist %_iter_%_Combine_Tables_For_TrAssign_Parallel.RPT del %_iter_%_Combine_Tables_For_TrAssign_Parallel.RPT Cluster.exe MWCOG %subnode% start exit

    start /w voyager.exe ..\Scripts\Combine_Tables_For_TrAssign_Parallel.s /start -Pvoya -S..\%1 Cluster.exe MWCOG %subnode% close exit if errorlevel 2 goto error if exist voya*.prn copy voya*.prn %_iter_%_Combine_Tables_For_TrAssign_Parallel.RPT /y CD.. :: ======================================= :: = Transit Assignment Section = :: ======================================= :: Transit Assignment Commuter Rail if %useMDP%==t goto Parallel_Processing if %useMDP%==T goto Parallel_Processing @echo Start Transit Assignments START /wait Transit_Assignment_LineHaul_Parallel.bat %1 CR :: Transit Assignment Metrorail START /wait Transit_Assignment_LineHaul_Parallel.bat %1 MR :: Transit Assignment All Bus START /wait Transit_Assignment_LineHaul_Parallel.bat %1 AB :: Transit Assignment Bus and Metrorail START /wait Transit_Assignment_LineHaul_Parallel.bat %1 BM goto Transit_Assignmets_Are_Done :Parallel_Processing @echo Start Transit Assignments - Parallel START Transit_Assignment_LineHaul_Parallel.bat %1 CR @ping -n 11 127.0.0.1 :: Transit Assignment Metrorail START Transit_Assignment_LineHaul_Parallel.bat %1 MR @ping -n 11 127.0.0.1 :: Transit Assignment All Bus START Transit_Assignment_LineHaul_Parallel.bat %1 AB @ping -n 11 127.0.0.1 :: Transit Assignment Bus and Metrorail START /wait Transit_Assignment_LineHaul_Parallel.bat %1 BM :Transit_Assignmets_Are_Done CD %1 goto checkIfDone :waitForMC @ping -n 11 127.0.0.1 :checkIfDone @REM Check file existence to ensure that there are no errors if exist Transit_Assignment_CR.err echo Error in Transit_Assignment_CR && goto error if exist Transit_Assignment_MR.err echo Error in Transit_Assignment_MR && goto error if exist Transit_Assignment_AB.err echo Error in Transit_Assignment_AB && goto error if exist Transit_Assignment_BM.err echo Error in Transit_Assignment_BM && goto error @REM Check to ensure that each of the batch processes have finished successfully, if not wait. if not exist Transit_Assignment_CR.done goto waitForMC

  • Appendix B Batch file

    B-21

    if not exist Transit_Assignment_MR.done goto waitForMC if not exist Transit_Assignment_AB.done goto waitForMC if not exist Transit_Assignment_BM.done goto waitForMC goto end :error REM Processing Error..... PAUSE :end cd..

    4.2 TranSum.bat :: TranSum.bat :: To be run from the root directory (e.g., E:\modelRuns\fy13\Ver2.3.46) REM Change to the Transum folder, under the scenario-specific folder REM Output report files will be stored in the Transum folder REM The Transum folder starts out empty, since station_names.dbf is stored in Controls CD %1\Transum REM Copy the lineSum control files from the Controls folder to the Transum folder copy ..\..\Controls\LineSum_*.ctl REM Consolidate peak and off-peak volumes from transit assignment ..\..\software\LineSum.exe LineSum_Volume.ctl if %ERRORLEVEL% == 1 goto error REM Metrorail station access (does not include transfers) ..\..\software\LineSum.exe lineSum_MR_access.ctl if %ERRORLEVEL% == 1 goto error REM Metrorail line summaries ..\..\software\LineSum.exe lineSum_MR_line.ctl if %ERRORLEVEL% == 1 goto error goto end :error REM Processing Error...... PAUSE :end ::CD.. CD.. CD..

    5 Optional/Utility Batch Files 5.1 SearchForErrs.bat :: tms3 O:\model_dev\fy14\Ver2.3.56\searchForErrs.bat :: 2014-04-23 Wed 19:24:09 :: Analyst: msm

    :: This batch file will scan travel model reports and output files for errors :: and other anomalies. It is designed to work with the Ver. 2.3 travel model. :: This is to be run from the root dir, e.g., E:\modelRuns\fy12\Ver2.3.37_conf :: It is called from the "run model" batch file, so it can make use of the environment :: variables in that file :: Usage: searchForErrs.bat :: e.g., searchForErrs.bat 2007 :: :: Updates :: DATE PERSON CHANGE :: 2009-01-07 msm Searches for different versions of TP+/Voyager :: User must supply expected version, e.g., 6.1.0 :: if searchForErrs.txt exists, copy it to new file with the same name and the date appended to it if exist %root%\%scenar%\%scenar%_searchForErrs.txt call datename.bat %root%\%scenar%\%scenar%_searchForErrs.txt :: Print header records in search output file (searchForErrs.txt) echo ********** Searching for errors and anomalies after a travel model run ********** > %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo Program name: searchForErrs.bat >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo. >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 :: Search *fulloutput.txt echo ***** Searching *fulloutput.txt >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo. >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo *** Searching for cases where a file could not be found >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 (findstr /i /p /c:"Could Not Find" %1\*fulloutput.txt) >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 (findstr /i /p /c:"cannot find" %1\*fulloutput.txt) >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo. >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo. >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 :: Search report files echo ***** Searching report files (*.rpt) >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo *** Searching for evidence that TP+ (TPMAIN) is running, instead of Voyager (PILOT) >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 (findstr /i /p /c:"TPMAIN" %1\*.rpt) >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo *** Searching for evidence of LINKO nodes that do not have XY values >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 (findstr /i /p /c:"The following LINKO nodes do not have XY values" %1\*.rpt) >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo. >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo *** Searching for different versions of Cube Voyager >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo. >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo *** Expected version: 6.1.0 >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 findstr /i /p /r /c:"\[[0-9]\.[0-9]\.[0-9]\]" %1\*.rpt > tppVoyVers.txt (findstr /i /p /r /v /c:"\[[6]\.[1]\.[0]\]" tppVoyVers.txt) >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo. >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo *** Searching for return codes greater than 1 >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1

  • Appendix B Batch file

    B-22

    (findstr /i /p /r /c:"ReturnCode = [2-9]" %1\*.rpt) >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo. >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo *** Searching for fatal errors >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 (findstr /i /p /r /c:"F([0-9]*):" %1\*.rpt) >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo. >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo *** Searching for warnings >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 (findstr /i /p /r /c:"W([0-9]*):" %1\*.rpt) >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo. >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo. >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 :: Search output files echo ***** If this file (AT_override.TXT) exists, >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo *** there may be area-type overrides >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo *** (a 2nd value of zero => no override) >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 (type %1\inputs\AT_override.TXT) >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo. >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1 echo. >> %root%\%scenar%\%scenar%_searchForErrs.txt 2>&1

    5.2 move_temp_files_v6.bat @echo off :: move_temp_files_v6.bat :: 2012-12-12 msm Batch file created :: 2013-01-21 msm Update: Restore report files assoc. w/ SFB iters pp, i1, i2, and i3 :: 2013-03-04 msm Update: Restore TXT, TAB files assoc. w/ SFB iters pp, i1, i2, and i3 :: 2016-06-10 dqn Update: Restore files for the HOV2+ skims substitution technique (HOT-lane modeling) :: 2017-04-13 dqn Replace Cywin's head and tail functions to Powershell :: Usage (launched from root folder): move_temp_files.bat :: :: When running the TPB Version 2.3.48 Travel Model, in addition to the useful :: output files, such as i4_Assign_Output.net, a number of temporary ("temp") :: files are created, such as i3_Assign_Output.net. This program will move :: these temp files to a folder under the output folder. For example, "2030_base" :: will now include a subfolder called "temp_files". After the batch file has :: been run, the user may use Windows Explorer to manually delete the folders :: containg the temp files. :: The majority of temp files are those associated with the first four :: speed-feedback (SFB) iterations of the model (pp, i1, i2, and i3). :: Some of the "i3" files should be maintained, however, so this batch file :: will restore five of the i3 files. :: Robocopy (robust copy) is a powerful command and "robocopy /MOV" allows the :: command to mimic the Windows move command (and even create a log file), but :: "robocopy /MOV" is very slow, so we have refrained from using it. :: Time delay, x, where x = (seconds of delay) - 1 Thus 6 => 5 sec. delay set time_delay=6 echo( echo Change working folder to the output folder ping -n %time_delay% 127.0.0.1 > nul

    cd %1 :: Calculate number of and size of files BEFORE moving temp files powershell -noprofile -Command "Get-ChildItem | Measure-Object -property Length -Sum| select-object @{n='Total size of the files before moving temp files (MB)';e={ '{0:N2}' -f ($_.Sum / 1MB)}}, @{n='Files Count';e={$_.Count}}| Out-File tot_output_files1.txt echo( echo Create the subfolder to hold the temp files ping -n %time_delay% 127.0.0.1 > nul if not exist temp_files (mkdir temp_files) echo( echo Move temp files associated with SFB iterations pp, i1, i2, and i3 ping -n %time_delay% 127.0.0.1 > nul for %%H in (pp i1 i2 i3) do ( move %%H_* .\temp_files ping -n %time_delay% 127.0.0.1 > nul ) echo( echo Restore the i3 files that are used for truck trip gen, trip distr., and MC ping -n %time_delay% 127.0.0.1 > nul for %%H in (i3_SKIMTOT.TXT i3_AM_SOV.SKM i3_MD_SOV.SKM i3_HWY_AM.SKM i3_HWY_OP.SKM) do ( move .\temp_files\%%H . ) echo( echo Restore files for the HOV3+, HOV2+ skims substitution technique (HOT-lane modeling) ping -n %time_delay% 127.0.0.1 > nul for %%H in (pp i1 i2 i3) do ( move .\temp_files\%%H_am_hov3_mc.skm . move .\temp_files\%%H_md_hov3_mc.skm . move .\temp_files\%%H_am_hov2_mc.skm . move .\temp_files\%%H_md_hov2_mc.skm . move .\temp_files\%%H_am_sov_mc.skm . move .\temp_files\%%H_md_sov_mc.skm . ) echo( echo Restore report files associated with SFB iterations pp, i1, i2, and i3 ping -n %time_delay% 127.0.0.1 > nul for %%H in (pp i1 i2 i3) do ( move .\temp_files\%%H_*.rpt . ) echo( echo Restore TXT,TAB files associated with SFB iterations pp, i1, i2, and i3 ping -n %time_delay% 127.0.0.1 > nul for %%H in (pp i1 i2 i3) do ( move .\temp_files\%%H_*.txt . move .\temp_files\%%H_*.tab . ) echo( echo Move temp files with the following pattern(s): *.tem?, temp.*, temp*.net, echo transit.temp.* ping -n %time_delay% 127.0.0.1 > nul @echo on move *.tem? .\temp_files move temp.* .\temp_files move temp*.net .\temp_files move transit.temp.* .\temp_files @echo off

  • Appendi


Recommended