next up previous index
Next: Create Baseyear Cache Up: Run Management Previous: Start a simulation   Index


Restart a simulation

If you halt a run or it fails, you can restart it at the beginning of any year. To restart the run with run_id 42 at the beginning of year 2005, do:
python restart_run.py 42 2005
Again, options --hostname and --database must be included if non-default values are used. Note that the above command will delete any simulation cache directories for years 2005 onward, since this information is no longer valid once the simulation is restarted at the beginning of 2005.

If the 2005 travel model failed and you want to restart in 2005 but not re-run the UrbanSim models, use the --skip-urbansim option:

python restart_run.py 42 2005 --skip-urbansim

If the 2005 travel model succeeded, and thus wrote its output to the 2006 simulation cache directory, but you need to restart in year 2006, use the --skip-cache-cleanup option:

python restart_run.py 42 2006 --skip-cache-cleanup


next up previous index
Next: Create Baseyear Cache Up: Run Management Previous: Start a simulation   Index
info (at) urbansim.org