using only routes #162
-
For the Epidemics Model how can we make the agents use only routes instead of a random point in the map ? |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.