You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
foreach gis:vertex-lists-of road-feature [ v -> ; for the road feature, get the list of vertices
114
114
let previous-node-pt nobody
@@ -813,7 +813,7 @@ PLOT
813
813
456
814
814
739
815
815
672
816
-
Firends at Home
816
+
Friends at Home
817
817
No. of friends at home
818
818
Count of people
819
819
0.0
@@ -852,15 +852,15 @@ You may want to turn off some layers for a clear display.
852
852
853
853
## THINGS TO TRY
854
854
855
-
Change the switches for different dispalys. Try different number of coimmuters. Try the verification.
855
+
Change the switches for different displays. Try different number of coimmuters. Try the verification.
856
856
857
857
## EXTENDING THE MODEL
858
858
859
859
What if the commuters move with a speed (some distance per tick) instead of one node per tick?
860
860
861
861
## NETLOGO FEATURES
862
862
863
-
For faster compuation, this model simplifies the original data by reducing the number of nodes. To do that, the walkway data is loaded to the 20 x 20 grid in Netlogo, which is small, and therefore, many nodes fall on the same patch. In each patch, we only want to keep one node, and duplicate nodes are removed, while their neighbors are connected to the one node left.
863
+
For faster computation, this model simplifies the original data by reducing the number of nodes. To do that, the walkway data is loaded to the 20 x 20 grid in Netlogo, which is small, and therefore, many nodes fall on the same patch. In each patch, we only want to keep one node, and duplicate nodes are removed, while their neighbors are connected to the one node left.
864
864
865
865
Also, links are created in this model to represent raods. This is so far the best way I can find to deal with road related problems in Netlogo. However, because the way I create links is to link nodes one by one (see code for more details), so some roads are likely to be left behind. But again there is no better way I can find. Therefore, I also used a loop in setup to delete nodes that are not connected to the whole network.
0 commit comments