Author | Message |
---|---|
rmedina0531
Posts: 19
|
Posted 14:49 Apr 03, 2020 |
NetLogo Defines these types of roads ; This procedure draws roads of different types between 2 patches. This should mean that a road type of 0 should give a variable delay time depending on traffic, and the static congestion road (type 1) should have a constant delay time, but when running the simulation and inspecting the road patches, the patches with type 1 are giving the variable delay time and the ones of type 0 are static. Am I reading this wrong or are the descriptions incorrect? |
sdo8
Posts: 54
|
Posted 19:09 Apr 03, 2020 |
I've just noticed this as well.
In the netlogo model: Lines 47-53:
As Ricardo mentioned, road-type 1 is a static congestion road (Based off of the Netlogo comments). However, these patches still determine-congestion. Lines 134-144 for determine-congestion are:
It looks like the numbers for "type-of-road" in draw-road are swapped between "dynamic congestion row (0)" and "static congestion road (1)". They are supposed to be 1 and 0 respectively. Lines 232-238 set a base-delay for a type-of-road = 1 as well.
However, the comments under "base-delay" in patches-own, lines 22-28, state that base-delay is used for dynamic delay roads.
TLDR; It looks like a wrong description and the road-types should be 1 for dynamic congestion roads and 0 for static congestion roads. |