Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Is UE in DTA necessary ? #30

Closed
wangyinpu opened this issue Mar 8, 2023 · 2 comments
Closed

Is UE in DTA necessary ? #30

wangyinpu opened this issue Mar 8, 2023 · 2 comments
Labels
question Further information is requested

Comments

@wangyinpu
Copy link

When i use pg.perform_network_assignment_DTALite(mode=2, column_gen_num, column_update_num),the mode is UE + DTA, the UE process is necessary before DTA.
If I have my own agent.csv, can I just call the DNL in PATH4GMNS?
Thank you!

@jdlph jdlph added the question Further information is requested label Mar 10, 2023
@jdlph
Copy link
Owner

jdlph commented Mar 11, 2023

UE is the prerequisite to conduct DTA for both Path4GMNS and DTALite.

pg.perform_network_assignment_DTALite(mode=2, column_gen_num, column_update_num) is actually calling DTALite embedded in Path4GMNS. DTALite only supports an integrated run of UE + DTA. In other words, you cannot bypass the UE process and directly run DTA using your own agent.csv.

However, this specific running mode is supported by the simulation module in Path4GMNS. You can directly call pg.perform_simple_simulation(network) to perform DTA based on your own agent.csv. The full sample code is listed below.

import path4gmns as pg

network = pg.read_network()
pg.read_zones(network)
pg.load_demand(network)

pg.perform_simple_simulation(network)
print('complete dynamic simulation.\n')

print('writing agent trajectories')
pg.output_agent_trajectory(network)

You can even continue the UE process starting from your own agent.csv. Details can be found here.

As this "issue" is more toward a question or a discussion, in the future you may want to consider discussions, which is a more proper place. If you have further questions w.r.t. your original question, you can reopen this thread.

@jdlph jdlph closed this as completed Mar 11, 2023
@wangyinpu
Copy link
Author

wangyinpu commented Mar 11, 2023 via email

Repository owner locked and limited conversation to collaborators Mar 11, 2023
@jdlph jdlph converted this issue into discussion #31 Mar 11, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
question Further information is requested
Projects
Status: Done
Development

No branches or pull requests

2 participants