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

feat: DiscreteModeChoiceModule writes utilities as an output #3448

Merged
merged 5 commits into from
Sep 8, 2024

Conversation

tkchouaki
Copy link
Contributor

This PR allows a the DiscreteModeChoice Module, part of the discrete_mode_choice contrib, to output a file dmc_utilities.csv during iterations and at the end of the simulations. This file contains the utilities computed by the DMC models for each person, it has a header person_id;utility.

The generation interval of this file during the iterations can be specified through the writeUtilitiesInterval parameter in the DiscreteModeChoice config group.

This functionality is achieved by storing the utility as a plan attribute. This means that output population files also contain the utility. To generate the CSV file containing the utitlies from a population file, the modules.utils.ExtractPlanUtilities can be used.

@jfbischoff jfbischoff enabled auto-merge September 6, 2024 18:22
@jfbischoff jfbischoff merged commit 7cc2825 into matsim-org:master Sep 8, 2024
47 checks passed
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