-
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. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
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 (and will be supported in TransOMS. 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.load_columns(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. |
Beta Was this translation helpful? Give feedback.
-
您好,您的邮件我已收到,谢谢。Hello, your email has been received, thank you.
|
Beta Was this translation helpful? Give feedback.
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 (and will be supported in TransOMS. 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.