How to use mesa_geo and have the agents compute path and move on it? #195
-
I have a crowd-logistics model (created using mesa) in which I used continuous space to create my agents . These agents are supposed to move to a destination as needed in each tick. To make my model more realistic, I need to put these agents on an actual map and have them use actual routes. Is this possible? I saw in another discussion on this group (using only routes #162) that referred to Agents and Networks example. I tried to down load this model but I get the following error: I have maintained the same folder structure as shown in the example. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Sorry about the confusion. As mentioned in the README file, in the Agents and Networks example folder, you'll need to do a python3 -m pip install -r requirements.txt so that the Let me know if this works. |
Beta Was this translation helpful? Give feedback.
-
Hi @wang-boyu, Thank you for the response. I followed the instructions. I used the command you showed above and installed the packages through the requirement.txt file. However, I still get thf following error:
|
Beta Was this translation helpful? Give feedback.
-
Hi, the model should be run via the following command (in the example directory): python3 scripts/run.py --campus ub or change python3 scripts/run.py --campus gmu Hopefully this will get the model running : ) |
Beta Was this translation helpful? Give feedback.
-
Hi @wang-boyu, Thank you for fixing the issue. It is working on my computer now. I have a crowd-logistics model (created using mesa) in which I used continuous space to create my agents . These agents are supposed to move to a destination as needed in each tick. To make my model more realistic, I need to put these agents on an actual map and have them use actual routes. Is this possible based on your experience with mesa-geo? I am trying to understand how hard this would be to achieve. |
Beta Was this translation helpful? Give feedback.
Hi, the model should be run via the following command (in the example directory):
or change
ub
togmu
for a different campus map:Hopefully this will get the model running : )