using only routes #162
Answered
by
wang-boyu
chahidinho
asked this question in
Q&A
|
For the Epidemics Model how can we make the agents use only routes instead of a random point in the map ? |
Answered by
wang-boyu
Sep 9, 2023
Replies: 1 comment 1 reply
|
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. |
1 reply
Answer selected by
chahidinho
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.