Skip to content
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

Merged
merged 10 commits into from
Nov 19, 2024
Merged

Setup Model #168

merged 10 commits into from
Nov 19, 2024

Conversation

AshishKuls
Copy link
Collaborator

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

  • Code linted

Applicable Issues

Please do not create a Pull Request without creating an issue first.

Issues List

@AshishKuls
Copy link
Collaborator Author

AshishKuls commented Sep 24, 2024

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.


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
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

@DavidOry
Copy link
Collaborator

Closes #150

@DavidOry DavidOry merged commit 12908fa into develop Nov 19, 2024
0 of 2 checks passed
@DavidOry DavidOry deleted the setup_model branch November 19, 2024 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants