Replies: 2 comments
-
I've added a line to each move instructions:
In the moving_home_work reflex:
As far as I can tell this has done the trick. A few queries though. a) I am still curious about the clean_network operator - do I need that? Thanks for any help, K |
Beta Was this translation helpful? Give feedback.
-
I'm currently trying to teach myself GAMA. As such I have built a small project where a people agent moves between home and work. This is based on a road/building network taken from OSM via QGIS. Sometimes when I run it instead of moving between the two buildings the people agent jumps from one to the other. The main cause seems to be where a road leads onto an estate of buildings rather than a building itself . This is illustrated in the attached image. As can be seen a yellow road leads into a cluster of buildings. The agent then leaves the road (and presumably the graph) goes to the target building. When told to move to the next building it simply jumps directly to the next building rather then use the network.
Is there a simple fix for this problem?
I have included the code in case it helps. By the way - do I need the clean_network procedure (in global / init) ? I came across it in a model I was looking at but haven't seen it used in any tutorials.
Thanks,
K
Beta Was this translation helpful? Give feedback.
All reactions