-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup Model #168
Setup Model #168
Conversation
cc @lmz @FlaviaTsang @DavidOry Changes made to the setup process as per our last call. Here is the example setup config file for you to review and provide any further comments. |
…r than or equal to end iteration
|
||
else: # iteration >=1 | ||
elif (self.controller.iteration == 1) & (self.controller.config.warmstart.use_warmstart_skim): | ||
# iteration = 1 and use_warmstart_skim = True : run uncongested transit assignment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why so? is it to compromise for the fact that no warmstart transit assignment was run in global iteration 0, or is it to save run time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, because when using the warm start with the skim option, we skip the transit skim and assignment in the global iteration 0. In iteration 1, the generated transit demand for an OD pair could be non-zero, even if the skim for that OD pair is zero in the warm start skim file (making it inconsistent), and thereby crashing in the congested transit assignment.
I ran into this above issue before making the code change.
Closes #150 |
What existing problem does the pull request solve and why should we include it?
Replicating the capabilities of
SetUpModel
batch file and creating tm2py methods to setup MTC travel model.Code formatting
Code should be PEP8 compliant before merging by running a package like
black
Applicable Issues
Please do not create a Pull Request without creating an issue first.
Issues List
SetUpModel.bat
#150