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

Add reduce_memory_delele_vehicle_route_pref to World arg #149

Merged
merged 3 commits into from
Oct 3, 2024
Merged

Conversation

toruseo
Copy link
Owner

@toruseo toruseo commented Oct 3, 2024

part of #143

@toruseo toruseo enabled auto-merge October 3, 2024 08:49
@toruseo toruseo merged commit b740c9f into main Oct 3, 2024
11 checks passed
EwoutH added a commit to EwoutH/urban-self-driving-effects that referenced this pull request Oct 3, 2024
Use new reduce_memory_delete_vehicle_route_pref=True argument when initializing the UXsim world to reduce the memory usage. Without this, each vehicle holds its own route_pref to represent possibly heterogeneous route choice. In a large network, its total size may become huge. This deletes it after each vehicle's trip done.

See:
- toruseo/UXsim#143 (comment)
- toruseo/UXsim#149

Rebased the time_bin_mem_opt branch: https://github.com/EwoutH/uxsim@time_bin_mem_opt#egg=uxsim

In-place updates to route_pref (#146) is now also included.
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.

1 participant