Skip to content

using only routes #162

Answered by wang-boyu
chahidinho asked this question in Q&A
Sep 6, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

It's definitely possible to use routes for agents' movements. There's an example model called Agents and Networks (source code here) where each Commuter has its path computed between home and work locations (in the _path_select() function).

Another way of getting the paths is to do the computation offline somewhere else, save the computed paths (in a dataframe for instance), and load them directly into your model. I don't have an example for this yet.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chahidinho
Comment options

Answer selected by chahidinho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants