Code Monkey home page Code Monkey logo

Comments (2)

jdlph avatar jdlph commented on August 14, 2024

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.

from path4gmns.

wangyinpu avatar wangyinpu commented on August 14, 2024

from path4gmns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.